<?php

/* opencartvip/template/opencartvip/module/banners.twig */
class __TwigTemplate_a55e6c2fa507d4ce22e3b80d905ac6d8754617a813003248a5c2923c1d90067f extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 18
        $context["self"] = $this;
        // line 19
        echo "<div id=\"";
        echo (isset($context["id"]) ? $context["id"] : null);
        echo "\" class=\"";
        echo $this->getAttribute((isset($context["j3"]) ? $context["j3"] : null), "classes", array(0 => (isset($context["classes"]) ? $context["classes"] : null)), "method");
        echo "\">
  ";
        // line 20
        if ((isset($context["title"]) ? $context["title"] : null)) {
            // line 21
            echo "    <h3 class=\"title module-title\">";
            echo (isset($context["title"]) ? $context["title"] : null);
            echo "</h3>
  ";
        }
        // line 23
        echo "  <div class=\"module-body\">
    ";
        // line 25
        echo "    ";
        if ( !(isset($context["carousel"]) ? $context["carousel"] : null)) {
            // line 26
            echo "      ";
            echo $context["self"]->getrenderBanner((isset($context["j3"]) ? $context["j3"] : null), $context);
            echo "
    ";
        }
        // line 28
        echo "    ";
        // line 29
        echo "    ";
        if ((isset($context["carousel"]) ? $context["carousel"] : null)) {
            // line 30
            echo "      <div class=\"swiper\" data-items-per-row='";
            echo twig_jsonencode_filter((isset($context["itemsPerRow"]) ? $context["itemsPerRow"] : null), twig_constant("JSON_FORCE_OBJECT"));
            echo "' data-options='";
            echo twig_jsonencode_filter((isset($context["carouselOptions"]) ? $context["carouselOptions"] : null));
            echo "'>
        <div class=\"swiper-container\" ";
            // line 31
            if ($this->getAttribute((isset($context["j3"]) ? $context["j3"] : null), "isRTL", array(), "method")) {
                echo "dir=\"rtl\"";
            }
            echo ">
          <div class=\"swiper-wrapper\">
            ";
            // line 33
            echo $context["self"]->getrenderBanner((isset($context["j3"]) ? $context["j3"] : null), $context);
            echo "
          </div>
        </div>
        <div class=\"swiper-buttons\">
          <div class=\"swiper-button-prev\"></div>
          <div class=\"swiper-button-next\"></div>
        </div>
        <div class=\"swiper-pagination\"></div>
      </div>
    ";
        }
        // line 43
        echo "  </div>
</div>
";
    }

    // line 1
    public function getrenderBanner($__j3__ = null, $__context__ = null, ...$__varargs__)
    {
        $context = $this->env->mergeGlobals(array(
            "j3" => $__j3__,
            "context" => $__context__,
            "varargs" => $__varargs__,
        ));

        $blocks = array();

        ob_start();
        try {
            // line 2
            echo "  ";
            $context["self"] = $this;
            // line 3
            echo "  ";
            $context["index"] = 0;
            // line 4
            echo "  ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["context"]) ? $context["context"] : null), "items", array()));
            foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
                // line 5
                echo "    <div class=\"";
                echo $this->getAttribute((isset($context["j3"]) ? $context["j3"] : null), "classes", array(0 => $this->getAttribute($context["item"], "classes", array())), "method");
                echo "\">
      <a ";
                // line 6
                if ($this->getAttribute($this->getAttribute($context["item"], "link", array()), "href", array())) {
                    echo "href=\"";
                    echo $this->getAttribute($this->getAttribute($context["item"], "link", array()), "href", array());
                    echo "\"";
                }
                echo " ";
                echo $this->getAttribute((isset($context["j3"]) ? $context["j3"] : null), "linkAttrs", array(0 => $this->getAttribute($context["item"], "link", array())), "method");
                echo ">
        ";
                // line 7
                if (0) {
                    // line 8
                    echo "          <img src=\"";
                    echo $this->getAttribute($context["item"], "image", array());
                    echo "\" data-src=\"";
                    echo $this->getAttribute($context["item"], "image", array());
                    echo "\" alt=\"";
                    echo $this->getAttribute($context["item"], "title", array());
                    echo "\" width=\"";
                    echo $this->getAttribute($this->getAttribute((isset($context["context"]) ? $context["context"] : null), "imageDimensions", array()), "width", array());
                    echo "\" height=\"";
                    echo $this->getAttribute($this->getAttribute((isset($context["context"]) ? $context["context"] : null), "imageDimensions", array()), "height", array());
                    echo "\" class=\"lazyload\"/>
        ";
                } else {
                    // line 10
                    echo "          <img src=\"";
                    echo $this->getAttribute($context["item"], "image", array());
                    echo "\" alt=\"";
                    echo $this->getAttribute($context["item"], "title", array());
                    echo "\" width=\"";
                    echo $this->getAttribute($this->getAttribute((isset($context["context"]) ? $context["context"] : null), "imageDimensions", array()), "width", array());
                    echo "\" height=\"";
                    echo $this->getAttribute($this->getAttribute((isset($context["context"]) ? $context["context"] : null), "imageDimensions", array()), "height", array());
                    echo "\"/>
        ";
                }
                // line 12
                echo "        <span class=\"banner-text banner-caption\">";
                echo $this->getAttribute($context["item"], "title", array());
                echo "</span>
        <span class=\"banner-text banner-caption-2\">";
                // line 13
                echo $this->getAttribute($context["item"], "title2", array());
                echo "</span>
      </a>
    </div>
  ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
        } catch (Exception $e) {
            ob_end_clean();

            throw $e;
        } catch (Throwable $e) {
            ob_end_clean();

            throw $e;
        }

        return ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
    }

    public function getTemplateName()
    {
        return "opencartvip/template/opencartvip/module/banners.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  158 => 13,  153 => 12,  141 => 10,  127 => 8,  125 => 7,  115 => 6,  110 => 5,  105 => 4,  102 => 3,  99 => 2,  86 => 1,  80 => 43,  67 => 33,  60 => 31,  53 => 30,  50 => 29,  48 => 28,  42 => 26,  39 => 25,  36 => 23,  30 => 21,  28 => 20,  21 => 19,  19 => 18,);
    }
}
/* {% macro renderBanner(j3, context) %}*/
/*   {% import _self as self %}*/
/*   {% set index = 0 %}*/
/*   {% for item in context.items %}*/
/*     <div class="{{ j3.classes(item.classes) }}">*/
/*       <a {% if item.link.href %}href="{{ item.link.href }}"{% endif %} {{ j3.linkAttrs(item.link) }}>*/
/*         {% if 0 %}*/
/*           <img src="{{ item.image }}" data-src="{{ item.image }}" alt="{{ item.title }}" width="{{ context.imageDimensions.width }}" height="{{ context.imageDimensions.height }}" class="lazyload"/>*/
/*         {% else %}*/
/*           <img src="{{ item.image }}" alt="{{ item.title }}" width="{{ context.imageDimensions.width }}" height="{{ context.imageDimensions.height }}"/>*/
/*         {% endif %}*/
/*         <span class="banner-text banner-caption">{{ item.title }}</span>*/
/*         <span class="banner-text banner-caption-2">{{ item.title2 }}</span>*/
/*       </a>*/
/*     </div>*/
/*   {% endfor %}*/
/* {% endmacro %}*/
/* {% import _self as self %}*/
/* <div id="{{ id }}" class="{{ j3.classes(classes) }}">*/
/*   {% if title %}*/
/*     <h3 class="title module-title">{{ title }}</h3>*/
/*   {% endif %}*/
/*   <div class="module-body">*/
/*     {# grid #}*/
/*     {% if not carousel %}*/
/*       {{ self.renderBanner(j3, _context) }}*/
/*     {% endif %}*/
/*     {# grid + carousel #}*/
/*     {% if carousel %}*/
/*       <div class="swiper" data-items-per-row='{{ itemsPerRow|json_encode(constant('JSON_FORCE_OBJECT')) }}' data-options='{{ carouselOptions|json_encode }}'>*/
/*         <div class="swiper-container" {% if j3.isRTL() %}dir="rtl"{% endif %}>*/
/*           <div class="swiper-wrapper">*/
/*             {{ self.renderBanner(j3, _context) }}*/
/*           </div>*/
/*         </div>*/
/*         <div class="swiper-buttons">*/
/*           <div class="swiper-button-prev"></div>*/
/*           <div class="swiper-button-next"></div>*/
/*         </div>*/
/*         <div class="swiper-pagination"></div>*/
/*       </div>*/
/*     {% endif %}*/
/*   </div>*/
/* </div>*/
/* */
