var/cache/dev/twig/31/31b0e57a1a403d96c6b9667182dc196067274056fe8c171ec1e77991edf136e1.php line 91

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_37495aac0f65aef2afff96c7208643713e400bc0deb40e94830cbdb1df5d6b2b 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.         $macros["headers"] = $this->macros["headers"] = $this->loadTemplate("@SyliusShop/Common/Macro/sectionHeaders.html.twig""@SyliusShop/Product/Show/_associations.html.twig"1)->unwrap();
  35.         // line 2
  36.         echo "
  37. ";
  38.         // line 3
  39.         $context["afficherNouveautes"] = 0;
  40.         // line 4
  41.         $context['_parent'] = $context;
  42.         $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.'4$this->source); })()), "associations", [], "any"falsefalsefalse4));
  43.         foreach ($context['_seq'] as $context["_key"] => $context["association"]) {
  44.             // line 5
  45.             echo "
  46.     ";
  47.             // line 6
  48.             if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["association"], "getType", [], "method"falsefalsefalse6), "getCode", [], "method"falsefalsefalse6) == "similary_product")) {
  49.                 // line 7
  50.                 echo "        ";
  51.                 $context["afficherNouveautes"] = 0;
  52.                 // line 8
  53.                 echo "        ";
  54.                 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.'8$this->source); })()), "id", [], "any"falsefalsefalse8), "id" => twig_get_attribute($this->env$this->source$context["association"], "id", [], "any"falsefalsefalse8), "template" => "@SyliusShop/Product/Show/_association.html.twig"]));
  55.                 echo "
  56.     ";
  57.             } else {
  58.                 // line 10
  59.                 echo "        ";
  60.                 $context["afficherNouveautes"] = 1;
  61.                 // line 11
  62.                 echo "    ";
  63.             }
  64.         }
  65.         $_parent $context['_parent'];
  66.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['association'], $context['_parent'], $context['loop']);
  67.         $context array_intersect_key($context$_parent) + $_parent;
  68.         // line 13
  69.         echo "
  70. ";
  71.         // line 14
  72.         if (((twig_length_filter($this->envtwig_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.'14$this->source); })()), "associations", [], "any"falsefalsefalse14)) == 0) || ((isset($context["afficherNouveautes"]) || array_key_exists("afficherNouveautes"$context) ? $context["afficherNouveautes"] : (function () { throw new RuntimeError('Variable "afficherNouveautes" does not exist.'14$this->source); })()) == 1))) {
  73.             // line 15
  74.             echo "<div class=\"bloc-top-content text-center\">
  75.     <h2 class=\"title-medium title-small-size-lg\">";
  76.             // line 16
  77.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.pour_completer"), "html"nulltrue);
  78.             echo "</h2>
  79.     <div class=\"contenu-art-top    position-relative px-perso-top\">
  80.         ";
  81.             // line 18
  82.             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" => 8"template" => "@SyliusShop/Product/_horizontalList.html.twig"]));
  83.             echo "
  84.     </div>
  85. </div>
  86. ";
  87.         }
  88.         // line 21
  89.         echo "  
  90. ";
  91.         
  92.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  93.         
  94.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  95.     }
  96.     public function getTemplateName()
  97.     {
  98.         return "@SyliusShop/Product/Show/_associations.html.twig";
  99.     }
  100.     public function isTraitable()
  101.     {
  102.         return false;
  103.     }
  104.     public function getDebugInfo()
  105.     {
  106.         return array (  98 => 21,  91 => 18,  86 => 16,  83 => 15,  81 => 14,  78 => 13,  71 => 11,  68 => 10,  62 => 8,  59 => 7,  57 => 6,  54 => 5,  50 => 4,  48 => 3,  45 => 2,  43 => 1,);
  107.     }
  108.     public function getSourceContext()
  109.     {
  110.         return new Source("{% import '@SyliusShop/Common/Macro/sectionHeaders.html.twig' as headers %}
  111. {% set afficherNouveautes = 0 %}
  112. {% for association in product.associations  %}
  113.     {% if association.getType().getCode() == \"similary_product\"%}
  114.         {% set afficherNouveautes = 0 %}
  115.         {{ render(url('sylius_shop_partial_product_association_show', {'productId': product.id, 'id': association.id, 'template': '@SyliusShop/Product/Show/_association.html.twig'})) }}
  116.     {% else %}
  117.         {% set afficherNouveautes = 1 %}
  118.     {% endif %}
  119. {% endfor %}
  120. {% if (product.associations|length == 0) or (afficherNouveautes == 1) %}
  121. <div class=\"bloc-top-content text-center\">
  122.     <h2 class=\"title-medium title-small-size-lg\">{{'app.product.pour_completer'|trans}}</h2>
  123.     <div class=\"contenu-art-top    position-relative px-perso-top\">
  124.         {{ render(url('sylius_shop_partial_product_index_latest', {'count': 8, 'template': '@SyliusShop/Product/_horizontalList.html.twig'})) }}
  125.     </div>
  126. </div>
  127. {% endif %}  
  128. ""@SyliusShop/Product/Show/_associations.html.twig""/home/6nergiesboutique/www_preprod/themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Product/Show/_associations.html.twig");
  129.     }
  130. }