var/cache/dev/twig/52/527f6a216d9affba5cc904b0fba10796c0e20e04bc74d70ec63fb153e2d9a7e1.php line 61

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_d0b8a1c50167804a28949d5b47285c9610c2b82f76c0e0aa7bdfff8eb7b4a1d8 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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Product/Show/_associations.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_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=\"ui horizontal section divider header\">";
  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.     ";
  51.             // line 5
  52.             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" => 4"template" => "@SyliusShop/Product/_horizontalList.html.twig"]));
  53.             echo "
  54. ";
  55.         }
  56.         $_parent $context['_parent'];
  57.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['association'], $context['_parent'], $context['loop']);
  58.         $context array_intersect_key($context$_parent) + $_parent;
  59.         
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  61.         
  62.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  63.     }
  64.     public function getTemplateName()
  65.     {
  66.         return "@SyliusShop/Product/Show/_associations.html.twig";
  67.     }
  68.     public function isTraitable()
  69.     {
  70.         return false;
  71.     }
  72.     public function getDebugInfo()
  73.     {
  74.         return array (  61 => 5,  56 => 4,  48 => 2,  43 => 1,);
  75.     }
  76.     public function getSourceContext()
  77.     {
  78.         return new Source("{% for association in product.associations %}
  79.     {{ render(url('sylius_shop_partial_product_association_show', {'productId': product.id, 'id': association.id, 'template': '@SyliusShop/Product/Show/_association.html.twig'})) }}
  80. {% else %}
  81.     <h4 class=\"ui horizontal section divider header\">{{ 'sylius.ui.latest_products'|trans }}</h4>
  82.     {{ render(url('sylius_shop_partial_product_index_latest', {'count': 4, 'template': '@SyliusShop/Product/_horizontalList.html.twig'})) }}
  83. {% endfor %}
  84. ""@SyliusShop/Product/Show/_associations.html.twig""/var/www/html/templates/bundles/SyliusShopBundle/Product/Show/_associations.html.twig");
  85.     }
  86. }