<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* OfficeBrainCustomBundleThemeBundle:IdmeTheme:Banner/bannerLayout.html.twig */
class __TwigTemplate_f47f8e52ea8cf20e4dfda2243696de82961b730e514745a150aaa830e9c36d4d extends \Twig\Template
{
    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = [
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        // line 1
        echo " <!--Slider Section Start-->

 \t  
";
        // line 4
        if ((($context["display_on"] ?? null) == "Home_small")) {
            // line 5
            echo "\t ";
            $context["i"] = 0;
            // line 6
            echo "  \t\t ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["banner_list"] ?? null));
            foreach ($context['_seq'] as $context["key"] => $context["value"]) {
                // line 7
                echo "                        \t";
                // line 8
                echo "                           \t\t<a href=\"";
                echo twig_escape_filter($this->env, $this->getAttribute($context["value"], "bannerUrl", []), "html", null, true);
                echo "\" ";
                if (($this->getAttribute($context["value"], "urlStatus", []) == 1)) {
                    echo " target=\"_blank\" ";
                }
                echo "> 
                                \t<img alt=\"";
                // line 9
                echo twig_escape_filter($this->env, $this->getAttribute($context["value"], "altTags", []), "html", null, true);
                echo "\" title=\"";
                echo twig_escape_filter($this->env, $this->getAttribute($context["value"], "bannerTitle", []), "html", null, true);
                echo "\" src=\"";
                echo twig_escape_filter($this->env, (($context["image_path"] ?? null) . $this->getAttribute($context["value"], "uploadedBanner", [])), "html", null, true);
                echo "\">
                                </a>
                             
                            ";
                // line 13
                echo "                        ";
                $context["i"] = (($context["i"] ?? null) + 1);
                // line 14
                echo "\t            ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['key'], $context['value'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 15
            echo "\t    
<style>
div#master-private-tag.recommeded-product-slider{border-bottom: none;}
div#master-private-tag.recommeded-product-slider .owl-next{top:13%; background-position: -66px 0;}
div#master-private-tag.recommeded-product-slider .owl-prev{top:13%}
.ho-soci-text { text-align-last: center; font-size: 36px; font-weight: normal; padding: 15px 0; font-family: 'SinkinSans-400Regular'; } 
.socal-icons > a { margin: 0 15px; }
</style>
<div class=\"clearfix\"></div>

";
        } elseif ((        // line 25
($context["display_on"] ?? null) == "Motivating_Ideas")) {
            // line 26
            echo "\t";
            if (((isset($context["banner_list"]) || array_key_exists("banner_list", $context)) && (twig_length_filter($this->env, ($context["banner_list"] ?? null)) > 0))) {
                // line 27
                echo "\t<a href=\"";
                echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["banner_list"] ?? null), 0, [], "array"), "bannerUrl", []), "html", null, true);
                echo "\" ";
                if (($this->getAttribute($this->getAttribute(($context["banner_list"] ?? null), 0, [], "array"), "urlStatus", []) == 1)) {
                    echo " target=\"_blank\" ";
                }
                echo "> 
\t\t<img alt=\"";
                // line 28
                echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["banner_list"] ?? null), 0, [], "array"), "altTags", []), "html", null, true);
                echo "\" title=\"";
                echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["banner_list"] ?? null), 0, [], "array"), "bannerTitle", []), "html", null, true);
                echo "\" class=\"lazy\" data-src=\"";
                echo twig_escape_filter($this->env, (($context["image_path"] ?? null) . $this->getAttribute($this->getAttribute(($context["banner_list"] ?? null), 0, [], "array"), "uploadedBanner", [])), "html", null, true);
                echo "\">
\t</a>
\t";
            }
        } else {
            // line 32
            echo "
 <div id=\"myCarousel\" class=\"carousel slide\" data-ride=\"carousel\">
    <ol class=\"carousel-indicators\" style=\"bottom:5px;\">
    ";
            // line 35
            $context["i"] = 0;
            // line 36
            echo "    ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["banner_list"] ?? null));
            foreach ($context['_seq'] as $context["key"] => $context["value"]) {
                // line 37
                echo "        <li data-target=\"#myCarousel\" data-slide-to=\"";
                echo twig_escape_filter($this->env, ($context["i"] ?? null), "html", null, true);
                echo "\" ";
                if ((($context["i"] ?? null) == 0)) {
                    echo "class=\"active\"";
                }
                echo "></li>
        ";
                // line 38
                $context["i"] = (($context["i"] ?? null) + 1);
                // line 39
                echo "    ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['key'], $context['value'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            echo "    
    </ol>
    <!-- Wrapper for slides -->
\t<div class=\"carousel-inner\" ";
            // line 42
            echo (((($context["display_on"] ?? null) == "Category")) ? ("id=\"js_category_desc_banner\"") : (""));
            echo ">
  \t
  \t\t";
            // line 44
            $context["i"] = 0;
            // line 45
            echo "  \t\t ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["banner_list"] ?? null));
            foreach ($context['_seq'] as $context["key"] => $context["value"]) {
                // line 46
                echo "  \t\t   ";
                if ((($context["display_on"] ?? null) == "Category")) {
                    // line 47
                    echo "  \t\t \t<div class=\"js-get-banner hide\">";
                    echo $this->getAttribute($context["value"], "bannerDescription", []);
                    echo "</div>
  \t\t \t";
                }
                // line 49
                echo "  \t\t \t<div class=\"item  ";
                if ((($context["i"] ?? null) == 0)) {
                    echo "active";
                }
                echo "\">
                        \t";
                // line 50
                if ((twig_length_filter($this->env, $this->getAttribute($context["value"], "bannerDimensions", [])) > 0)) {
                    echo " 
                        \t<a  href=\"";
                    // line 51
                    echo twig_escape_filter($this->env, $this->getAttribute($context["value"], "bannerUrl", []), "html", null, true);
                    echo "\" ";
                    echo (((($context["display_on"] ?? null) != "Category")) ? ("class=\"js-get-banner\"") : (""));
                    echo " ";
                    if (($this->getAttribute($context["value"], "urlStatus", []) == 1)) {
                        echo " target=\"_blank\" ";
                    }
                    echo " rel=\"";
                    echo twig_escape_filter($this->env, $this->getAttribute($context["value"], "id", []), "html", null, true);
                    echo "\" > ";
                }
                // line 52
                echo "                              \t";
                if (($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["app"] ?? null), "request", []), "get", [0 => "project_setting"], "method"), "access_rule", []), "report", []), "option", []), "admin_report", []), "status", []) == 1)) {
                    // line 53
                    echo "                             \t  <img alt=\"";
                    echo twig_escape_filter($this->env, $this->getAttribute($context["value"], "uploadedBanner", []), "html", null, true);
                    echo "\" class=\" \"  title=\"";
                    echo twig_escape_filter($this->env, $this->getAttribute($context["value"], "bannerTitle", []), "html", null, true);
                    echo "\" u=\"image\"  src=\"";
                    echo twig_escape_filter($this->env, (($context["image_path"] ?? null) . $this->getAttribute($context["value"], "uploadedBanner", [])), "html", null, true);
                    echo "\"  />
                             \t";
                } else {
                    // line 55
                    echo "                             \t  ";
                    // line 56
                    echo "                             \t  <img alt=\"";
                    echo twig_escape_filter($this->env, $this->getAttribute($context["value"], "uploadedBanner", []), "html", null, true);
                    echo "\" class=\"\" title=\"";
                    echo twig_escape_filter($this->env, $this->getAttribute($context["value"], "bannerTitle", []), "html", null, true);
                    echo "\" u=\"image\"  src=\"";
                    echo twig_escape_filter($this->env, (($context["image_path"] ?? null) . $this->getAttribute($context["value"], "uploadedBanner", [])), "html", null, true);
                    echo "\"  />
                             \t";
                }
                // line 57
                echo "                              
                            ";
                // line 58
                if ((twig_length_filter($this->env, $this->getAttribute($context["value"], "bannerUrl", [])) > 0)) {
                    echo " </a> ";
                }
                // line 59
                echo "                        ";
                $context["i"] = (($context["i"] ?? null) + 1);
                // line 60
                echo "            </div>";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['key'], $context['value'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 61
            echo "            
\t            
    </div>

\t";
            // line 65
            if (((isset($context["banner_list"]) || array_key_exists("banner_list", $context)) && (twig_length_filter($this->env, ($context["banner_list"] ?? null)) > 1))) {
                echo "  
\t<a class=\"left carousel-control\" href=\"#myCarousel\" data-slide=\"prev\">
\t\t  <span class=\"glyphicon glyphicon-chevron-left\"></span>
\t\t  <span class=\"sr-only\">Previous</span>
\t </a>
\t <a class=\"right carousel-control\" href=\"#myCarousel\" data-slide=\"next\">
\t\t  <span class=\"glyphicon glyphicon-chevron-right\"></span>
\t\t  <span class=\"sr-only\">Next</span>
\t\t</a>
    ";
            }
            // line 75
            echo "</div>
</div>

<style>
div#myCarousel .owl-stage > .owl-item  img {position: relative;top: 0;left: 0;max-width: 100%;max-height: 100%;-ms-transform: translateX(0%) translateY(0%);transform: translateX(0%) translateY(0%);-webkit-transform: translateX(0%) translateY(0%);}
div#myCarousel > .owl-nav {display: none;}
div#myCarousel > .owl-dots {position: absolute;bottom: 10px;text-align: center;left: 0;right: 0;background:transparent;}
div#myCarousel > .owl-dots > .owl-dot {display: inline-block;margin: 0 5px;}
div#myCarousel > .owl-dots > .owl-dot > span {border: 2px solid #d2d2d2;width: 15px;height: 15px;display: inline-block;border-radius: 10px;cursor: pointer;background-color: transparent;}
div#myCarousel > .owl-dots > .owl-dot:hover > span, div#myCarousel > .owl-dots > .owl-dot.active > span {border: 2px solid #468a65;}
</style>
<div class=\"clearfix\"></div>
";
        }
        // line 87
        echo "\t   
         
";
    }

    public function getTemplateName()
    {
        return "OfficeBrainCustomBundleThemeBundle:IdmeTheme:Banner/bannerLayout.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  264 => 87,  249 => 75,  236 => 65,  230 => 61,  224 => 60,  221 => 59,  217 => 58,  214 => 57,  204 => 56,  202 => 55,  192 => 53,  189 => 52,  177 => 51,  173 => 50,  166 => 49,  160 => 47,  157 => 46,  152 => 45,  150 => 44,  145 => 42,  135 => 39,  133 => 38,  124 => 37,  119 => 36,  117 => 35,  112 => 32,  101 => 28,  92 => 27,  89 => 26,  87 => 25,  75 => 15,  69 => 14,  66 => 13,  56 => 9,  47 => 8,  45 => 7,  40 => 6,  37 => 5,  35 => 4,  30 => 1,);
    }

    /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
    public function getSource()
    {
        @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);

        return $this->getSourceContext()->getCode();
    }

    public function getSourceContext()
    {
        return new Source("", "OfficeBrainCustomBundleThemeBundle:IdmeTheme:Banner/bannerLayout.html.twig", "/var/www/html/project/OfficeBrain/CustomBundle/ThemeBundle/Resources/views/IdmeTheme/Banner/bannerLayout.html.twig");
    }
}
