var/cache/dev/twig/39/3940ba01407ed9d772d08ab586faea59.php line 62

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. /* @SyliusShop/Product/Show/_associations.html.twig */
  14. class __TwigTemplate_8870eb0bd93a012b2966d5455a8e0d21 extends \Twig\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.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Product/Show/_associations.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Product/Show/_associations.html.twig"));
  33.         // line 1
  34.         $context['_parent'] = $context;
  35.         $context['_seq'] = twig_ensure_traversable(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.'1$this->source); })()), "associations", [], "any"falsefalsefalse1));
  36.         $context['_iterated'] = false;
  37.         foreach ($context['_seq'] as $context["_key"] => $context["association"]) {
  38.             // line 2
  39.             echo "    ";
  40.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("sylius_shop_partial_product_association_show", ["productId" => 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.'2$this->source); })()), "id", [], "any"falsefalsefalse2), "id" => twig_get_attribute($this->env$this->source$context["association"], "id", [], "any"falsefalsefalse2), "template" => "@SyliusShop/Product/Show/_association.html.twig"]));
  41.             echo "
  42. ";
  43.             $context['_iterated'] = true;
  44.         }
  45.         if (!$context['_iterated']) {
  46.             // line 4
  47.             echo "    <h4 class=\"text-4xl text-center font-bold\">";
  48.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.latest_products"), "html"nulltrue);
  49.             echo "</h4>
  50.     <div data-js-products-carousel-id=\"latest-products\">
  51.         ";
  52.             // line 6
  53.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("sylius_shop_partial_product_index_latest", ["count" => 12"template" => "@SyliusShop/Product/_horizontalList.html.twig"]));
  54.             echo "
  55.     </div>
  56. ";
  57.         }
  58.         $_parent $context['_parent'];
  59.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['association'], $context['_parent'], $context['loop']);
  60.         $context array_intersect_key($context$_parent) + $_parent;
  61.         
  62.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  63.         
  64.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  65.     }
  66.     public function getTemplateName()
  67.     {
  68.         return "@SyliusShop/Product/Show/_associations.html.twig";
  69.     }
  70.     public function isTraitable()
  71.     {
  72.         return false;
  73.     }
  74.     public function getDebugInfo()
  75.     {
  76.         return array (  62 => 6,  56 => 4,  48 => 2,  43 => 1,);
  77.     }
  78.     public function getSourceContext()
  79.     {
  80.         return new Source("{% for association in product.associations %}
  81.     {{ render(url('sylius_shop_partial_product_association_show', {'productId': product.id, 'id': association.id, 'template': '@SyliusShop/Product/Show/_association.html.twig'})) }}
  82. {% else %}
  83.     <h4 class=\"text-4xl text-center font-bold\">{{ 'sylius.ui.latest_products'|trans }}</h4>
  84.     <div data-js-products-carousel-id=\"latest-products\">
  85.         {{ render(url('sylius_shop_partial_product_index_latest', {'count': 12, 'template': '@SyliusShop/Product/_horizontalList.html.twig'})) }}
  86.     </div>
  87. {% endfor %}
  88. ""@SyliusShop/Product/Show/_associations.html.twig""/srv/open_marketplace/templates/bundles/SyliusShopBundle/Product/Show/_associations.html.twig");
  89.     }
  90. }