<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
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;
/* Shop/list/product.html.twig */
class __TwigTemplate_936661a194f140d069d70b9e8c90ff52 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Shop/list/product.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Shop/list/product.html.twig"));
// line 4
echo "
";
// line 5
$context["authenticated"] = false;
// line 6
$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); })())]);
// line 7
$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", false, false, true, 7);
// line 8
echo "
<div class=\"item\">
<!--Start Product Image-->
<div class=\"product-image related-products\">
<!--Start Product Image-->
<a href=\"";
// line 13
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", null, true);
echo "\" class=\"product-img cursor-default\">
<!-- image -->
";
// line 15
if ((isset($context["prdImage"]) || array_key_exists("prdImage", $context) ? $context["prdImage"] : (function () { throw new RuntimeError('Variable "prdImage" does not exist.', 15, $this->source); })())) {
// line 16
echo " <img class=\"primary blur-up lazyload product-image-indaba\" data-src=\"";
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", false, false, true, 16), 16, $this->source), "html", null, true);
echo "\" src=\"";
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", false, false, true, 16), 16, $this->source), "html", null, true);
echo "\" alt=\"image\" title=\"\" style=\"height: 150px;width: 150px\">
";
}
// line 18
echo " <!-- End image -->
<!-- Hover image -->
";
// line 20
if ((isset($context["prdImage"]) || array_key_exists("prdImage", $context) ? $context["prdImage"] : (function () { throw new RuntimeError('Variable "prdImage" does not exist.', 20, $this->source); })())) {
// line 21
echo " <img class=\"hover blur-up lazyload product-image-indaba\" data-src=\"";
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", false, false, true, 21), 21, $this->source), "html", null, true);
echo "\" src=\"";
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", false, false, true, 21), 21, $this->source), "html", null, true);
echo "\" alt=\"image\" title=\"\" style=\"height: 150px;width: 150px\">
";
}
// line 23
echo " <!-- End hover image -->
</a>
<!--End Product Image-->
<!--Countdown Timer-->
";
// line 29
echo " <!--End Countdown Timer-->
<!--Product Button-->
";
// line 48
echo " <!--End Product Button-->
</div>
<!--End Product Image-->
<!--Start Product Details-->
<div class=\"product-details text-center\">
<!--Product Name-->
<div class=\"product-name text-uppercase\">
<a href=\"product-layout1.html\">";
// line 55
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", false, false, true, 55), 55, $this->source), "html", null, true);
echo "</a>
</div>
<!--End Product Name-->
<!--Product Price-->
";
// line 62
echo " <!--End Product Price-->
<!--Product Review-->
";
// line 72
echo " <!-- End Variant -->
</div>
<!--End Product Details-->
</div>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "Shop/list/product.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{# @var \$product \\App\\Model\\DefaultProduct #}
{# \$authenticated = \$view['security']->isGranted('IS_AUTHENTICATED_FULLY'); #}
{# \$language = \$this->language; #}
{% set authenticated = false %}
{% set link = app_product_generate_link(product, { 'document' : document, 'prefix': prefix } , {'authenticated': authenticated, 'isProductlist': isProductlist }) %}
{% set prdImage = product.getFirstImageAsset() %}
<div class=\"item\">
<!--Start Product Image-->
<div class=\"product-image related-products\">
<!--Start Product Image-->
<a href=\"{{ link }}\" class=\"product-img cursor-default\">
<!-- image -->
{% if prdImage %}
<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\">
{% endif %}
<!-- End image -->
<!-- Hover image -->
{% if prdImage %}
<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\">
{% endif %}
<!-- End hover image -->
</a>
<!--End Product Image-->
<!--Countdown Timer-->
{# <div class=\"saleTime desktop\" data-countdown=\"2024/10/01\"></div> #}
<!--End Countdown Timer-->
<!--Product Button-->
{# <div class=\"button-set style0 d-none d-md-block\">
<ul>
<!--Cart Button-->
<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>
<!--End Cart Button-->
<!--Quick View Button-->
<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>
<!--End Quick View Button-->
<!--Wishlist Button-->
<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>
<!--End Wishlist Button-->
<!--Compare Button-->
<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>
<!--End Compare Button-->
</ul>
</div> #}
<!--End Product Button-->
</div>
<!--End Product Image-->
<!--Start Product Details-->
<div class=\"product-details text-center\">
<!--Product Name-->
<div class=\"product-name text-uppercase\">
<a href=\"product-layout1.html\">{{ product.getName }}</a>
</div>
<!--End Product Name-->
<!--Product Price-->
{# <div class=\"product-price\">
<span class=\"price\">\$199.00</span>
</div> #}
<!--End Product Price-->
<!--Product Review-->
{# <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>
<!--End Product Review-->
<!-- Color Variant -->
<ul class=\"swatches\">
<li class=\"swatch medium rounded black\"><span class=\"tooltip-label\">Black</span></li>
<li class=\"swatch medium rounded navy\"><span class=\"tooltip-label\">Navy</span></li>
<li class=\"swatch medium rounded purple\"><span class=\"tooltip-label\">Purple</span></li>
</ul> #}
<!-- End Variant -->
</div>
<!--End Product Details-->
</div>
", "Shop/list/product.html.twig", "/var/www/html/templates/Shop/list/product.html.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 5, "if" => 15);
static $filters = array("escape" => 13);
static $functions = array("app_product_generate_link" => 6);
try {
$this->sandbox->checkSecurity(
['set', 'if'],
['escape'],
['app_product_generate_link']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}