var/cache/dev/twig/89/89e2bea586412546b116bf639ff0a261.php line 35

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* Shop/list/product.html.twig */
  14. class __TwigTemplate_936661a194f140d069d70b9e8c90ff52 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Shop/list/product.html.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Shop/list/product.html.twig"));
  35.         // line 4
  36.         echo "
  37. ";
  38.         // line 5
  39.         $context["authenticated"] = false;
  40.         // line 6
  41.         $context["link"] = $this->extensions['App\Twig\Extension\ProductExtension']->generateLink($this->sandbox->ensureToStringAllowed((isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'6$this->source); })()), 6$this->source), ["document" => (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'6$this->source); })()), "prefix" => (isset($context["prefix"]) || array_key_exists("prefix"$context) ? $context["prefix"] : (function () { throw new RuntimeError('Variable "prefix" does not exist.'6$this->source); })())], ["authenticated" => (isset($context["authenticated"]) || array_key_exists("authenticated"$context) ? $context["authenticated"] : (function () { throw new RuntimeError('Variable "authenticated" does not exist.'6$this->source); })()), "isProductlist" => (isset($context["isProductlist"]) || array_key_exists("isProductlist"$context) ? $context["isProductlist"] : (function () { throw new RuntimeError('Variable "isProductlist" does not exist.'6$this->source); })())]);
  42.         // line 7
  43.         $context["prdImage"] = twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'7$this->source); })()), "getFirstImageAsset", [], "method"falsefalsetrue7);
  44.         // line 8
  45.         echo "
  46. <div class=\"item\">
  47.     <!--Start Product Image-->
  48.     <div class=\"product-image related-products\">
  49.         <!--Start Product Image-->
  50.         <a href=\"";
  51.         // line 13
  52.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["link"]) || array_key_exists("link"$context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.'13$this->source); })()), 13$this->source), "html"nulltrue);
  53.         echo "\" class=\"product-img cursor-default\">
  54.             <!-- image -->
  55.             ";
  56.         // line 15
  57.         if ((isset($context["prdImage"]) || array_key_exists("prdImage"$context) ? $context["prdImage"] : (function () { throw new RuntimeError('Variable "prdImage" does not exist.'15$this->source); })())) {
  58.             // line 16
  59.             echo "                <img class=\"primary blur-up lazyload product-image-indaba\" data-src=\"";
  60.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["prdImage"]) || array_key_exists("prdImage"$context) ? $context["prdImage"] : (function () { throw new RuntimeError('Variable "prdImage" does not exist.'16$this->source); })()), "thumbnail", ["ProductImages"], "method"falsefalsetrue16), 16$this->source), "html"nulltrue);
  61.             echo "\" src=\"";
  62.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["prdImage"]) || array_key_exists("prdImage"$context) ? $context["prdImage"] : (function () { throw new RuntimeError('Variable "prdImage" does not exist.'16$this->source); })()), "thumbnail", ["ProductImages"], "method"falsefalsetrue16), 16$this->source), "html"nulltrue);
  63.             echo "\" alt=\"image\" title=\"\" style=\"height: 150px;width: 150px\">
  64.             ";
  65.         }
  66.         // line 18
  67.         echo "            <!-- End image -->
  68.             <!-- Hover image -->
  69.             ";
  70.         // line 20
  71.         if ((isset($context["prdImage"]) || array_key_exists("prdImage"$context) ? $context["prdImage"] : (function () { throw new RuntimeError('Variable "prdImage" does not exist.'20$this->source); })())) {
  72.             // line 21
  73.             echo "                <img class=\"hover blur-up lazyload product-image-indaba\" data-src=\"";
  74.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["prdImage"]) || array_key_exists("prdImage"$context) ? $context["prdImage"] : (function () { throw new RuntimeError('Variable "prdImage" does not exist.'21$this->source); })()), "thumbnail", ["ProductImages"], "method"falsefalsetrue21), 21$this->source), "html"nulltrue);
  75.             echo "\" src=\"";
  76.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["prdImage"]) || array_key_exists("prdImage"$context) ? $context["prdImage"] : (function () { throw new RuntimeError('Variable "prdImage" does not exist.'21$this->source); })()), "thumbnail", ["ProductImages"], "method"falsefalsetrue21), 21$this->source), "html"nulltrue);
  77.             echo "\" alt=\"image\" title=\"\" style=\"height: 150px;width: 150px\">
  78.             ";
  79.         }
  80.         // line 23
  81.         echo "            <!-- End hover image -->
  82.         </a>
  83.         <!--End Product Image-->
  84.         <!--Countdown Timer-->
  85.         ";
  86.         // line 29
  87.         echo "        <!--End Countdown Timer-->
  88.         <!--Product Button-->
  89.         ";
  90.         // line 48
  91.         echo "        <!--End Product Button-->
  92.     </div>
  93.     <!--End Product Image-->
  94.     <!--Start Product Details-->
  95.     <div class=\"product-details text-center\">
  96.         <!--Product Name-->
  97.         <div class=\"product-name text-uppercase\">
  98.             <a href=\"product-layout1.html\">";
  99.         // line 55
  100.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'55$this->source); })()), "getName", [], "any"falsefalsetrue55), 55$this->source), "html"nulltrue);
  101.         echo "</a>
  102.         </div>
  103.         <!--End Product Name-->
  104.         <!--Product Price-->
  105.         ";
  106.         // line 62
  107.         echo "        <!--End Product Price-->
  108.         <!--Product Review-->
  109.         ";
  110.         // line 72
  111.         echo "        <!-- End Variant -->
  112.     </div>
  113.     <!--End Product Details-->
  114. </div>
  115. ";
  116.         
  117.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  118.         
  119.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  120.     }
  121.     /**
  122.      * @codeCoverageIgnore
  123.      */
  124.     public function getTemplateName()
  125.     {
  126.         return "Shop/list/product.html.twig";
  127.     }
  128.     /**
  129.      * @codeCoverageIgnore
  130.      */
  131.     public function isTraitable()
  132.     {
  133.         return false;
  134.     }
  135.     /**
  136.      * @codeCoverageIgnore
  137.      */
  138.     public function getDebugInfo()
  139.     {
  140.         return array (  122 => 72,  118 => 62,  111 => 55,  102 => 48,  97 => 29,  90 => 23,  82 => 21,  80 => 20,  76 => 18,  68 => 16,  66 => 15,  61 => 13,  54 => 8,  52 => 7,  50 => 6,  48 => 5,  45 => 4,);
  141.     }
  142.     public function getSourceContext()
  143.     {
  144.         return new Source("{# @var \$product \\App\\Model\\DefaultProduct #}
  145. {# \$authenticated = \$view['security']->isGranted('IS_AUTHENTICATED_FULLY'); #}
  146. {# \$language = \$this->language; #}
  147. {% set authenticated = false %}
  148. {% set link = app_product_generate_link(product, { 'document' : document, 'prefix': prefix } , {'authenticated': authenticated, 'isProductlist': isProductlist }) %}
  149. {%  set prdImage = product.getFirstImageAsset() %}
  150. <div class=\"item\">
  151.     <!--Start Product Image-->
  152.     <div class=\"product-image related-products\">
  153.         <!--Start Product Image-->
  154.         <a href=\"{{ link }}\" class=\"product-img cursor-default\">
  155.             <!-- image -->
  156.             {% if prdImage %}
  157.                 <img class=\"primary blur-up lazyload product-image-indaba\" data-src=\"{{ prdImage.thumbnail('ProductImages') }}\" src=\"{{ prdImage.thumbnail('ProductImages') }}\" alt=\"image\" title=\"\" style=\"height: 150px;width: 150px\">
  158.             {% endif %}
  159.             <!-- End image -->
  160.             <!-- Hover image -->
  161.             {% if prdImage %}
  162.                 <img class=\"hover blur-up lazyload product-image-indaba\" data-src=\"{{ prdImage.thumbnail('ProductImages') }}\" src=\"{{ prdImage.thumbnail('ProductImages') }}\" alt=\"image\" title=\"\" style=\"height: 150px;width: 150px\">
  163.             {% endif %}
  164.             <!-- End hover image -->
  165.         </a>
  166.         <!--End Product Image-->
  167.         <!--Countdown Timer-->
  168.         {# <div class=\"saleTime desktop\" data-countdown=\"2024/10/01\"></div> #}
  169.         <!--End Countdown Timer-->
  170.         <!--Product Button-->
  171.         {# <div class=\"button-set style0 d-none d-md-block\">
  172.                                         <ul>
  173.                                             <!--Cart Button-->
  174.                                             <li><a class=\"btn-icon btn cartIcon pro-addtocart-popup\" href=\"#pro-addtocart-popup\"><i class=\"icon an an-cart-l\"></i> <span class=\"tooltip-label top\">Add to Cart</span></a></li>
  175.                                             <!--End Cart Button-->
  176.                                             <!--Quick View Button-->
  177.                                             <li><a class=\"btn-icon quick-view-popup quick-view\" href=\"javascript:void(0)\" data-toggle=\"modal\" data-target=\"#content_quickview\"><i class=\"icon an an-search-l\"></i> <span class=\"tooltip-label top\">Quick View</span></a></li>
  178.                                             <!--End Quick View Button-->
  179.                                             <!--Wishlist Button-->
  180.                                             <li><a class=\"btn-icon wishlist add-to-wishlist\" href=\"my-wishlist.html\"><i class=\"icon an an-heart-l\"></i> <span class=\"tooltip-label top\">Add To Wishlist</span></a></li>
  181.                                             <!--End Wishlist Button-->
  182.                                             <!--Compare Button-->
  183.                                             <li><a class=\"btn-icon compare add-to-compare\" href=\"compare-style2.html\"><i class=\"icon an an-sync-ar\"></i> <span class=\"tooltip-label top\">Add to Compare</span></a></li>
  184.                                             <!--End Compare Button-->
  185.                                         </ul>
  186.                                     </div> #}
  187.         <!--End Product Button-->
  188.     </div>
  189.     <!--End Product Image-->
  190.     <!--Start Product Details-->
  191.     <div class=\"product-details text-center\">
  192.         <!--Product Name-->
  193.         <div class=\"product-name text-uppercase\">
  194.             <a href=\"product-layout1.html\">{{ product.getName }}</a>
  195.         </div>
  196.         <!--End Product Name-->
  197.         <!--Product Price-->
  198.         {#  <div class=\"product-price\">
  199.                                         <span class=\"price\">\$199.00</span>
  200.                                     </div> #}
  201.         <!--End Product Price-->
  202.         <!--Product Review-->
  203.         {# <div class=\"product-review d-flex align-items-center justify-content-center\"><i class=\"an an-star\"></i> <i class=\"an an-star\"></i> <i class=\"an an-star\"></i><i class=\"an an-star\"></i> <i class=\"an an-star\"></i></div>
  204.                                     <!--End Product Review-->
  205.                                     <!-- Color Variant -->
  206.                                     <ul class=\"swatches\">
  207.                                         <li class=\"swatch medium rounded black\"><span class=\"tooltip-label\">Black</span></li>
  208.                                         <li class=\"swatch medium rounded navy\"><span class=\"tooltip-label\">Navy</span></li>
  209.                                         <li class=\"swatch medium rounded purple\"><span class=\"tooltip-label\">Purple</span></li>
  210.                                     </ul> #}
  211.         <!-- End Variant -->
  212.     </div>
  213.     <!--End Product Details-->
  214. </div>
  215. ""Shop/list/product.html.twig""/var/www/html/templates/Shop/list/product.html.twig");
  216.     }
  217.     
  218.     public function checkSecurity()
  219.     {
  220.         static $tags = array("set" => 5"if" => 15);
  221.         static $filters = array("escape" => 13);
  222.         static $functions = array("app_product_generate_link" => 6);
  223.         try {
  224.             $this->sandbox->checkSecurity(
  225.                 ['set''if'],
  226.                 ['escape'],
  227.                 ['app_product_generate_link']
  228.             );
  229.         } catch (SecurityError $e) {
  230.             $e->setSourceContext($this->source);
  231.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  232.                 $e->setTemplateLine($tags[$e->getTagName()]);
  233.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  234.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  235.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  236.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  237.             }
  238.             throw $e;
  239.         }
  240.     }
  241. }