<?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/Product/_horizontalList.html.twig */
class __TwigTemplate_de3830d73855fe3c7cd51b1d4474d1c82e6cfdb7edf770cf7964c73f530a9a8a 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/Product/_horizontalList.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/Product/_horizontalList.html.twig"));
// line 1
echo "<div class=\"ui four doubling cards cardsOtherProducts\">
<div class=\"swiper-flagshipProducts-button-prev\"></div>
<div class=\"swiper swiper-flagshipProducts swiper-flagshipProducts--3\" data-slidesnumber=\"3\">
<div class=\"swiper-wrapper\" >
";
// line 8
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.', 8, $this->source); })())))) {
// line 9
echo "
";
// line 10
$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.', 10, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
// line 11
echo "
";
// line 12
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 13
$context["product"], "slug", [], "any", false, false, false, 13), "template" => "@SyliusShop/Product/_box.html.twig"]));
// line 15
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 18
echo "
";
}
// line 20
echo "
</div>
<div class=\"swiper-pagination-flagshipProducts\"></div>
</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/Product/_horizontalList.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 79 => 20, 75 => 18, 67 => 15, 65 => 13, 64 => 12, 61 => 11, 57 => 10, 54 => 9, 52 => 8, 43 => 1,);
}
public function getSourceContext()
{
return new Source("<div class=\"ui four doubling cards cardsOtherProducts\">
<div class=\"swiper-flagshipProducts-button-prev\"></div>
<div class=\"swiper swiper-flagshipProducts swiper-flagshipProducts--3\" data-slidesnumber=\"3\">
<div class=\"swiper-wrapper\" >
{% 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>
<div class=\"swiper-pagination-flagshipProducts\"></div>
</div>
<div class=\"swiper-flagshipProducts-button-next\"></div>
</div>
", "@SyliusShop/Product/_horizontalList.html.twig", "/var/www/html/templates/bundles/SyliusShopBundle/Product/_horizontalList.html.twig");
}
}