<?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;
/* @SyliusShop/Homepage/_best_selling.html.twig */
class __TwigTemplate_e1e4437e8abf9781dcaa27cb051786c189de23883c105ab21ca6fbbfdac55198 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/Homepage/_best_selling.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/Homepage/_best_selling.html.twig"));
// line 1
echo "<div class=\"ui three cards\" id=\"products\">
<div class=\"swiper-flagshipProducts-button-prev\"></div>
<!-- Slider main container -->
<div class=\"swiper swiper-flagshipProducts swiper-flagshipProducts--";
// line 5
echo twig_escape_filter($this->env, (isset($context["grid"]) || array_key_exists("grid", $context) ? $context["grid"] : (function () { throw new RuntimeError('Variable "grid" does not exist.', 5, $this->source); })()), "html", null, true);
echo "\" data-slidesnumber=";
echo twig_escape_filter($this->env, (isset($context["grid"]) || array_key_exists("grid", $context) ? $context["grid"] : (function () { throw new RuntimeError('Variable "grid" does not exist.', 5, $this->source); })()), "html", null, true);
echo ">
<!-- Additional required wrapper -->
<div class=\"swiper-wrapper\" >
<!-- Slides -->
";
// line 11
if ((array_key_exists("products", $context) && !twig_test_empty((isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 11, $this->source); })())))) {
// line 12
echo "
";
// line 13
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 13, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
// line 14
echo "
";
// line 15
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("sylius_shop_partial_product_show_by_slug", ["slug" => twig_get_attribute($this->env, $this->source, // line 16
$context["product"], "slug", [], "any", false, false, false, 16), "template" => "@SyliusShop/Product/_box.html.twig"]));
// line 18
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 21
echo "
";
}
// line 23
echo "
</div>
<!-- If we need pagination -->
<div class=\"swiper-pagination-flagshipProducts\"></div>
<!-- If we need navigation buttons -->
</div>
<div class=\"swiper-flagshipProducts-button-next\"></div>
</div>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "@SyliusShop/Homepage/_best_selling.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 87 => 23, 83 => 21, 75 => 18, 73 => 16, 72 => 15, 69 => 14, 65 => 13, 62 => 12, 60 => 11, 49 => 5, 43 => 1,);
}
public function getSourceContext()
{
return new Source("<div class=\"ui three cards\" id=\"products\">
<div class=\"swiper-flagshipProducts-button-prev\"></div>
<!-- Slider main container -->
<div class=\"swiper swiper-flagshipProducts swiper-flagshipProducts--{{grid}}\" data-slidesnumber={{grid}}>
<!-- Additional required wrapper -->
<div class=\"swiper-wrapper\" >
<!-- Slides -->
{% if products is defined and products is not empty %}
{% for product in products %}
{{ render(url('sylius_shop_partial_product_show_by_slug', {
'slug': product.slug,
'template': '@SyliusShop/Product/_box.html.twig'
})) }}
{% endfor %}
{% endif %}
</div>
<!-- If we need pagination -->
<div class=\"swiper-pagination-flagshipProducts\"></div>
<!-- If we need navigation buttons -->
</div>
<div class=\"swiper-flagshipProducts-button-next\"></div>
</div>
", "@SyliusShop/Homepage/_best_selling.html.twig", "/var/www/html/templates/bundles/SyliusShopBundle/Homepage/_best_selling.html.twig");
}
}