<?php

/* opencartvip/template/opencartvip/module/master_slider.twig */
class __TwigTemplate_9eac27f1a47a43a61c9db1ea673d1dc4612a930461db8ea53edc0464f86cbdb4 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 1
        echo "<div class=\"";
        echo $this->getAttribute((isset($context["j3"]) ? $context["j3"] : null), "classes", array(0 => (isset($context["classes"]) ? $context["classes"] : null)), "method");
        echo "\" style=\"background-image:url('";
        echo (isset($context["first_image"]) ? $context["first_image"] : null);
        echo "')\">
  ";
        // line 2
        if (((isset($context["staticTex"]) ? $context["staticTex"] : null) && $this->getAttribute((isset($context["staticTextLink"]) ? $context["staticTextLink"] : null), "href", array()))) {
            // line 3
            echo "    <a href=\"";
            echo $this->getAttribute((isset($context["staticTextLink"]) ? $context["staticTextLink"] : null), "href", array());
            echo "\" class=\"static-text\"><span>";
            echo (isset($context["staticText"]) ? $context["staticText"] : null);
            echo "</span></a>
  ";
        } elseif (        // line 4
(isset($context["staticText"]) ? $context["staticText"] : null)) {
            // line 5
            echo "    <div class=\"static-text\"><span>";
            echo (isset($context["staticText"]) ? $context["staticText"] : null);
            echo "</span></div>
  ";
        }
        // line 7
        echo "  <img src=\"";
        echo (isset($context["first_image"]) ? $context["first_image"] : null);
        echo "\" alt=\"";
        echo (isset($context["first_alt"]) ? $context["first_alt"] : null);
        echo "\">
  ";
        // line 9
        echo "  <div class=\"master-slider ms-skin-minimal\" data-options='";
        echo twig_jsonencode_filter((isset($context["options"]) ? $context["options"] : null), twig_constant("JSON_FORCE_OBJECT"));
        echo "' ";
        if ((isset($context["parallaxMode"]) ? $context["parallaxMode"] : null)) {
            echo "data-parallax=\"";
            echo (isset($context["parallax"]) ? $context["parallax"] : null);
            echo "\"";
        }
        echo ">
    ";
        // line 10
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["items"]) ? $context["items"] : null));
        foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
            // line 11
            echo "      <div class=\"";
            echo $this->getAttribute((isset($context["j3"]) ? $context["j3"] : null), "classes", array(0 => $this->getAttribute($context["item"], "classes", array())), "method");
            echo "\" ";
            if ($this->getAttribute($context["item"], "delay", array())) {
                echo "data-delay=\"";
                echo $this->getAttribute($context["item"], "delay", array());
                echo "\"";
            }
            echo ">
        <img src=\"";
            // line 12
            echo $this->getAttribute($context["item"], "image", array());
            echo "\" alt=\"";
            echo $this->getAttribute($context["item"], "alt", array());
            echo "\" width=\"";
            echo $this->getAttribute((isset($context["options"]) ? $context["options"] : null), "width", array());
            echo "\" height=\"";
            echo $this->getAttribute((isset($context["options"]) ? $context["options"] : null), "height", array());
            echo "\"/>

        ";
            // line 14
            if (((isset($context["thumbnails"]) ? $context["thumbnails"] : null) && $this->getAttribute($context["item"], "thumb", array()))) {
                // line 15
                echo "          <img src=\"";
                echo $this->getAttribute($context["item"], "thumb", array());
                echo "\" alt=\"";
                echo $this->getAttribute($context["item"], "alt", array());
                echo "\" class=\"ms-thumb\"/>
        ";
            }
            // line 17
            echo "
        ";
            // line 18
            if ($this->getAttribute($this->getAttribute($context["item"], "link", array()), "href", array())) {
                // line 19
                echo "          <a href=\"";
                echo $this->getAttribute($this->getAttribute($context["item"], "link", array()), "href", array());
                echo "\" ";
                echo $this->getAttribute((isset($context["j3"]) ? $context["j3"] : null), "linkAttrs", array(0 => $this->getAttribute($context["item"], "link", array())), "method");
                echo "></a>
        ";
            }
            // line 21
            echo "
        ";
            // line 22
            if (($this->getAttribute($context["item"], "type", array()) == "video")) {
                // line 23
                echo "          ";
                if (($this->getAttribute($context["item"], "videoType", array()) == "html5")) {
                    // line 24
                    echo "            <video data-autopause=\"true\" ";
                    if ($this->getAttribute($this->getAttribute((isset($context["j3"]) ? $context["j3"] : null), "document", array()), "hasClass", array(0 => "ios"), "method")) {
                        echo "playsinline";
                    }
                    echo ">
              ";
                    // line 25
                    $context['_parent'] = $context;
                    $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["item"], "videoSrc", array()));
                    foreach ($context['_seq'] as $context["type"] => $context["src"]) {
                        // line 26
                        echo "                <source src=\"";
                        echo $context["src"];
                        echo "\" type=\"video/";
                        echo $context["type"];
                        echo "\"/>
              ";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['type'], $context['src'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 28
                    echo "            </video>
          ";
                } elseif (($this->getAttribute(                // line 29
$context["item"], "videoType", array()) == "youtube")) {
                    // line 30
                    echo "            <a href=\"https://www.youtube.com/embed/";
                    echo $this->getAttribute($context["item"], "videoSrc", array());
                    echo "?hd=1&wmode=opaque&controls=1&showinfo=0&autoplay=1\" data-type=\"video\"></a>
          ";
                } elseif (($this->getAttribute(                // line 31
$context["item"], "videoType", array()) == "vimeo")) {
                    // line 32
                    echo "            <a href=\"https://player.vimeo.com/video/";
                    echo $this->getAttribute($context["item"], "videoSrc", array());
                    echo "\" data-type=\"video\"></a>
          ";
                }
                // line 34
                echo "        ";
            }
            // line 35
            echo "
        ";
            // line 36
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["item"], "items", array()));
            foreach ($context['_seq'] as $context["_key"] => $context["subitem"]) {
                // line 37
                echo "          ";
                if (($this->getAttribute($context["subitem"], "type", array()) == "text")) {
                    // line 38
                    echo "            <div class=\"";
                    echo $this->getAttribute((isset($context["j3"]) ? $context["j3"] : null), "classes", array(0 => $this->getAttribute($context["subitem"], "classes", array())), "method");
                    echo "\" ";
                    echo twig_join_filter($this->getAttribute($context["subitem"], "data", array()), " ");
                    echo ">";
                    echo $this->getAttribute($context["subitem"], "text", array());
                    echo "</div>
          ";
                } elseif (($this->getAttribute(                // line 39
$context["subitem"], "type", array()) == "hotspot")) {
                    // line 40
                    echo "            <div class=\"";
                    echo $this->getAttribute((isset($context["j3"]) ? $context["j3"] : null), "classes", array(0 => $this->getAttribute($context["subitem"], "classes", array())), "method");
                    echo "\" ";
                    echo twig_join_filter($this->getAttribute($context["subitem"], "data", array()), " ");
                    echo "><div class=\"product-tt\">";
                    echo $this->getAttribute($context["subitem"], "text", array());
                    echo "</div></div>
          ";
                } elseif (($this->getAttribute(                // line 41
$context["subitem"], "type", array()) == "shape")) {
                    // line 42
                    echo "            <img class=\"";
                    echo $this->getAttribute((isset($context["j3"]) ? $context["j3"] : null), "classes", array(0 => $this->getAttribute($context["subitem"], "classes", array())), "method");
                    echo "\" ";
                    echo twig_join_filter($this->getAttribute($context["subitem"], "data", array()), " ");
                    echo " src=\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" alt=\"";
                    echo $this->getAttribute($context["subitem"], "alt", array());
                    echo "\"/>
          ";
                } elseif (($this->getAttribute(                // line 43
$context["subitem"], "type", array()) == "button")) {
                    // line 44
                    echo "            <a class=\"";
                    echo $this->getAttribute((isset($context["j3"]) ? $context["j3"] : null), "classes", array(0 => $this->getAttribute($context["subitem"], "classes", array())), "method");
                    echo "\" ";
                    echo twig_join_filter($this->getAttribute($context["subitem"], "data", array()), " ");
                    echo " ";
                    if ($this->getAttribute($this->getAttribute($context["subitem"], "link", array()), "href", array())) {
                        echo "href=\"";
                        echo $this->getAttribute($this->getAttribute($context["subitem"], "link", array()), "href", array());
                        echo "\" ";
                        echo $this->getAttribute((isset($context["j3"]) ? $context["j3"] : null), "linkAttrs", array(0 => $this->getAttribute($context["subitem"], "link", array())), "method");
                        echo " ";
                    }
                    echo "><span>";
                    echo $this->getAttribute($context["subitem"], "text", array());
                    echo "</span></a>
          ";
                } elseif (($this->getAttribute(                // line 45
$context["subitem"], "type", array()) == "image")) {
                    // line 46
                    echo "            <img class=\"";
                    echo $this->getAttribute((isset($context["j3"]) ? $context["j3"] : null), "classes", array(0 => $this->getAttribute($context["subitem"], "classes", array())), "method");
                    echo "\" ";
                    echo twig_join_filter($this->getAttribute($context["subitem"], "data", array()), " ");
                    echo " src=\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\" data-src=\"";
                    echo $this->getAttribute($context["subitem"], "image", array());
                    echo "\" alt=\"";
                    echo $this->getAttribute($context["subitem"], "alt", array());
                    echo "\"/>
          ";
                } elseif (($this->getAttribute(                // line 47
$context["subitem"], "type", array()) == "video")) {
                    // line 48
                    echo "            <div class=\"";
                    echo $this->getAttribute((isset($context["j3"]) ? $context["j3"] : null), "classes", array(0 => $this->getAttribute($context["subitem"], "classes", array())), "method");
                    echo "\" ";
                    echo twig_join_filter($this->getAttribute($context["subitem"], "data", array()), " ");
                    echo ">
              ";
                    // line 49
                    if (($this->getAttribute($context["subitem"], "videoType", array()) == "html5")) {
                        // line 50
                        echo "                <video controls>
                  ";
                        // line 51
                        $context['_parent'] = $context;
                        $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["subitem"], "videoSrc", array()));
                        foreach ($context['_seq'] as $context["type"] => $context["src"]) {
                            // line 52
                            echo "                    <source src=\"";
                            echo $context["src"];
                            echo "\" type=\"video/";
                            echo $context["type"];
                            echo "\"/>
                  ";
                        }
                        $_parent = $context['_parent'];
                        unset($context['_seq'], $context['_iterated'], $context['type'], $context['src'], $context['_parent'], $context['loop']);
                        $context = array_intersect_key($context, $_parent) + $_parent;
                        // line 54
                        echo "                </video>
              ";
                    } elseif (($this->getAttribute(                    // line 55
$context["subitem"], "videoType", array()) == "youtube")) {
                        // line 56
                        echo "                <iframe src=\"https://www.youtube.com/embed/";
                        echo $this->getAttribute($context["subitem"], "videoSrc", array());
                        echo "?hd=1&wmode=opaque&controls=1&showinfo=0\"></iframe>
              ";
                    } elseif (($this->getAttribute(                    // line 57
$context["subitem"], "videoType", array()) == "vimeo")) {
                        // line 58
                        echo "                <iframe src=\"https://player.vimeo.com/video/";
                        echo $this->getAttribute($context["subitem"], "videoSrc", array());
                        echo "\"></iframe>
              ";
                    }
                    // line 60
                    echo "            </div>
          ";
                }
                // line 62
                echo "        ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['subitem'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 63
            echo "      </div>
    ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 65
        echo "  </div>
</div>
";
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  298 => 65,  291 => 63,  285 => 62,  281 => 60,  275 => 58,  273 => 57,  268 => 56,  266 => 55,  263 => 54,  252 => 52,  248 => 51,  245 => 50,  243 => 49,  236 => 48,  234 => 47,  223 => 46,  221 => 45,  204 => 44,  202 => 43,  193 => 42,  191 => 41,  182 => 40,  180 => 39,  171 => 38,  168 => 37,  164 => 36,  161 => 35,  158 => 34,  152 => 32,  150 => 31,  145 => 30,  143 => 29,  140 => 28,  129 => 26,  125 => 25,  118 => 24,  115 => 23,  113 => 22,  110 => 21,  102 => 19,  100 => 18,  97 => 17,  89 => 15,  87 => 14,  76 => 12,  65 => 11,  61 => 10,  50 => 9,  43 => 7,  37 => 5,  35 => 4,  28 => 3,  26 => 2,  19 => 1,);
    }
}
/* <div class="{{ j3.classes(classes) }}" style="background-image:url('{{ first_image }}')">*/
/*   {% if staticTex and staticTextLink.href %}*/
/*     <a href="{{ staticTextLink.href }}" class="static-text"><span>{{ staticText }}</span></a>*/
/*   {% elseif staticText %}*/
/*     <div class="static-text"><span>{{ staticText }}</span></div>*/
/*   {% endif %}*/
/*   <img src="{{ first_image }}" alt="{{ first_alt }}">*/
/*   {#<img src="{{ first_image }}" alt="{{ first_alt }}" class="img-2">#}*/
/*   <div class="master-slider ms-skin-minimal" data-options='{{ options|json_encode(constant('JSON_FORCE_OBJECT')) }}' {% if parallaxMode %}data-parallax="{{ parallax }}"{% endif %}>*/
/*     {% for item in items %}*/
/*       <div class="{{ j3.classes(item.classes) }}" {% if item.delay %}data-delay="{{ item.delay }}"{% endif %}>*/
/*         <img src="{{ item.image }}" alt="{{ item.alt }}" width="{{ options.width }}" height="{{ options.height }}"/>*/
/* */
/*         {% if thumbnails and item.thumb %}*/
/*           <img src="{{ item.thumb }}" alt="{{ item.alt }}" class="ms-thumb"/>*/
/*         {% endif %}*/
/* */
/*         {% if item.link.href %}*/
/*           <a href="{{ item.link.href }}" {{ j3.linkAttrs(item.link) }}></a>*/
/*         {% endif %}*/
/* */
/*         {% if item.type == 'video' %}*/
/*           {% if item.videoType == 'html5' %}*/
/*             <video data-autopause="true" {% if j3.document.hasClass('ios') %}playsinline{% endif %}>*/
/*               {% for type, src in item.videoSrc %}*/
/*                 <source src="{{ src }}" type="video/{{ type }}"/>*/
/*               {% endfor %}*/
/*             </video>*/
/*           {% elseif item.videoType == 'youtube' %}*/
/*             <a href="https://www.youtube.com/embed/{{ item.videoSrc }}?hd=1&wmode=opaque&controls=1&showinfo=0&autoplay=1" data-type="video"></a>*/
/*           {% elseif item.videoType == 'vimeo' %}*/
/*             <a href="https://player.vimeo.com/video/{{ item.videoSrc }}" data-type="video"></a>*/
/*           {% endif %}*/
/*         {% endif %}*/
/* */
/*         {% for subitem in item.items %}*/
/*           {% if subitem.type == 'text' %}*/
/*             <div class="{{ j3.classes(subitem.classes) }}" {{ subitem.data|join(' ') }}>{{ subitem.text }}</div>*/
/*           {% elseif subitem.type == 'hotspot' %}*/
/*             <div class="{{ j3.classes(subitem.classes) }}" {{ subitem.data|join(' ') }}><div class="product-tt">{{ subitem.text }}</div></div>*/
/*           {% elseif subitem.type == 'shape' %}*/
/*             <img class="{{ j3.classes(subitem.classes) }}" {{ subitem.data|join(' ') }} src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" data-src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" alt="{{ subitem.alt }}"/>*/
/*           {% elseif subitem.type == 'button' %}*/
/*             <a class="{{ j3.classes(subitem.classes) }}" {{ subitem.data|join(' ') }} {% if subitem.link.href %}href="{{ subitem.link.href }}" {{ j3.linkAttrs(subitem.link) }} {% endif %}><span>{{ subitem.text }}</span></a>*/
/*           {% elseif subitem.type == 'image' %}*/
/*             <img class="{{ j3.classes(subitem.classes) }}" {{ subitem.data|join(' ') }} src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" data-src="{{ subitem.image }}" alt="{{ subitem.alt }}"/>*/
/*           {% elseif subitem.type == 'video' %}*/
/*             <div class="{{ j3.classes(subitem.classes) }}" {{ subitem.data|join(' ') }}>*/
/*               {% if subitem.videoType == 'html5' %}*/
/*                 <video controls>*/
/*                   {% for type, src in subitem.videoSrc %}*/
/*                     <source src="{{ src }}" type="video/{{ type }}"/>*/
/*                   {% endfor %}*/
/*                 </video>*/
/*               {% elseif subitem.videoType == 'youtube' %}*/
/*                 <iframe src="https://www.youtube.com/embed/{{ subitem.videoSrc }}?hd=1&wmode=opaque&controls=1&showinfo=0"></iframe>*/
/*               {% elseif subitem.videoType == 'vimeo' %}*/
/*                 <iframe src="https://player.vimeo.com/video/{{ subitem.videoSrc }}"></iframe>*/
/*               {% endif %}*/
/*             </div>*/
/*           {% endif %}*/
/*         {% endfor %}*/
/*       </div>*/
/*     {% endfor %}*/
/*   </div>*/
/* </div>*/
/* */
