var/cache/dev/twig/6e/6e02cb060cada0a5331a921174bebe43d19e84b2b9ad90aad9da968f2f91fb37.php line 56

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/_productsVisited.html.twig */
  14. class __TwigTemplate_c0bf202ca2f56b82a7ba4b33ee953897577b17b0a293d0a9d3cdf9349f723adf 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/_productsVisited.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/_productsVisited.html.twig"));
  33.         // line 2
  34.         if (twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'2$this->source); })()), "user", [], "any"falsefalsefalse2)) {
  35.             // line 3
  36.             echo "    ";
  37.             $context["customerId"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'3$this->source); })()), "user", [], "any"falsefalsefalse3), "customer", [], "any"falsefalsefalse3), "id", [], "any"falsefalsefalse3);
  38.         } else {
  39.             // line 5
  40.             echo "    ";
  41.             $context["customerId"] = null;
  42.         }
  43.         // line 7
  44.         echo "<div class=\"bloc-top-content text-center pt-md-4 pt-3\">
  45.     ";
  46.         // line 8
  47.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("app_shop_products_visited", ["customerId" => (isset($context["customerId"]) || array_key_exists("customerId"$context) ? $context["customerId"] : (function () { throw new RuntimeError('Variable "customerId" does not exist.'8$this->source); })())]));
  48.         echo "
  49. </div>
  50. ";
  51.         
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  53.         
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  55.     }
  56.     public function getTemplateName()
  57.     {
  58.         return "@SyliusShop/Product/Show/_productsVisited.html.twig";
  59.     }
  60.     public function isTraitable()
  61.     {
  62.         return false;
  63.     }
  64.     public function getDebugInfo()
  65.     {
  66.         return array (  56 => 8,  53 => 7,  49 => 5,  45 => 3,  43 => 2,);
  67.     }
  68.     public function getSourceContext()
  69.     {
  70.         return new Source("{#     PRODUCTS VISITED / produits déjà consultés        #}
  71. {% if app.user %}
  72.     {% set customerId = app.user.customer.id %}
  73. {% else %}
  74.     {% set customerId = null %}
  75. {% endif %}
  76. <div class=\"bloc-top-content text-center pt-md-4 pt-3\">
  77.     {{ render(url('app_shop_products_visited', {'customerId' : customerId })) }}
  78. </div>
  79. ""@SyliusShop/Product/Show/_productsVisited.html.twig""/home/chouettemauve/preprod/sylius/themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Product/Show/_productsVisited.html.twig");
  80.     }
  81. }