var/cache/dev/twig/42/42271f176263bb1793c994cf1d64e11119c76aa8dc0bf9e13f39ba7b3cc30db3.php line 50

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. /* @BitBagSyliusCmsPlugin/Shop/Page/show.html.twig */
  14. class __TwigTemplate_99ab3a59d9a677b862282489a335539fef9f72b17dd2594bcc157c60c4be4aad 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->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'metatags' => [$this'block_metatags'],
  25.             'content' => [$this'block_content'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "@SyliusShop/layout.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@BitBagSyliusCmsPlugin/Shop/Page/show.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@BitBagSyliusCmsPlugin/Shop/Page/show.html.twig"));
  40.         $this->parent $this->loadTemplate("@SyliusShop/layout.html.twig""@BitBagSyliusCmsPlugin/Shop/Page/show.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.         
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  46.     }
  47.     // line 3
  48.     public function block_title($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  55.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'3$this->source); })()), "title", [], "any"falsefalsefalse3))) {
  56.             echo twig_escape_filter($this->envtwig_trim_filter(twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'3$this->source); })()), "title", [], "any"falsefalsefalse3)), "html"nulltrue);
  57.         } else {
  58.             $this->displayParentBlock("title"$context$blocks);
  59.         }
  60.         
  61.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  62.         
  63.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  64.     }
  65.     // line 5
  66.     public function block_metatags($context, array $blocks = [])
  67.     {
  68.         $macros $this->macros;
  69.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  70.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatags"));
  71.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  72.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatags"));
  73.         // line 6
  74.         echo "    ";
  75.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'6$this->source); })()), "metaKeywords", [], "any"falsefalsefalse6))) {
  76.             // line 7
  77.             echo "        <meta name=\"keywords\" content=\"";
  78.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'7$this->source); })()), "metaKeywords", [], "any"falsefalsefalse7), "html"nulltrue);
  79.             echo "\"/>
  80.     ";
  81.         }
  82.         // line 9
  83.         echo "    ";
  84.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'9$this->source); })()), "metaDescription", [], "any"falsefalsefalse9))) {
  85.             // line 10
  86.             echo "        <meta name=\"description\" content=\"";
  87.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'10$this->source); })()), "metaDescription", [], "any"falsefalsefalse10), "html"nulltrue);
  88.             echo "\"/>
  89.     ";
  90.         }
  91.         // line 12
  92.         echo "    ";
  93.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'12$this->source); })()), "translation", [], "any"falsefalsefalse12), "metaRobotIndex", [], "any"falsefalsefalse12) == true)) {
  94.             // line 13
  95.             echo "        ";
  96.             $context["metaRobotIndex"] = "index, follow";
  97.             // line 14
  98.             echo "    ";
  99.         } elseif ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'14$this->source); })()), "translation", [], "any"falsefalsefalse14), "metaRobotIndex", [], "any"falsefalsefalse14) == false)) {
  100.             // line 15
  101.             echo "        ";
  102.             $context["metaRobotIndex"] = "noindex, nofollow";
  103.             // line 16
  104.             echo "    ";
  105.         }
  106.         // line 17
  107.         echo "    <meta name=\"robots\" content=\"";
  108.         echo twig_escape_filter($this->env, (isset($context["metaRobotIndex"]) || array_key_exists("metaRobotIndex"$context) ? $context["metaRobotIndex"] : (function () { throw new RuntimeError('Variable "metaRobotIndex" does not exist.'17$this->source); })()), "html"nulltrue);
  109.         echo "\"/>
  110. ";
  111.         
  112.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  113.         
  114.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  115.     }
  116.     // line 20
  117.     public function block_content($context, array $blocks = [])
  118.     {
  119.         $macros $this->macros;
  120.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  121.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  122.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  123.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  124.         // line 21
  125.         echo "
  126.     ";
  127.         // line 22
  128.         if (twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'22$this->source); })()), "image", [], "any"falsefalsefalse22)) {
  129.             // line 23
  130.             echo "    <div class=\"image-instit-top pt-0 object-fit-img\">
  131.         ";
  132.             // line 24
  133.             $context["path"] = (((array_key_exists("preview"$context) && ((isset($context["preview"]) || array_key_exists("preview"$context) ? $context["preview"] : (function () { throw new RuntimeError('Variable "preview" does not exist.'24$this->source); })()) == true))) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'24$this->source); })()), "image", [], "any"falsefalsefalse24), "path", [], "any"falsefalsefalse24)) : (("/media/image/" twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'24$this->source); })()), "image", [], "any"falsefalsefalse24), "path", [], "any"falsefalsefalse24))));
  134.             // line 25
  135.             echo "            <img class=\"\" src=\"";
  136.             echo twig_escape_filter($this->env, (isset($context["path"]) || array_key_exists("path"$context) ? $context["path"] : (function () { throw new RuntimeError('Variable "path" does not exist.'25$this->source); })()), "html"nulltrue);
  137.             echo "\" alt=\"\">
  138.         </div>
  139.     ";
  140.         }
  141.         // line 28
  142.         echo "    <div class=\"max-container-3 px-2 px-xl-4\">
  143.         <nav>
  144.             <ol class=\"breadcrumb ariane-box m-0  bg-transparent\">
  145.                 <li class=\"breadcrumb-item\"><a href=\"";
  146.         // line 31
  147.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_homepage");
  148.         echo "\">";
  149.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.home"), "html"nulltrue);
  150.         echo "</a></li>
  151.                 <li class=\"breadcrumb-item\">";
  152.         // line 32
  153.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'32$this->source); })()), "name", [], "any"falsefalsefalse32), "html"nulltrue);
  154.         echo "</li>
  155.             </ol>
  156.         </nav>
  157.         <div class=\"page-instit-img mt-md-3 mt-2 pb-md-4 pb-3\">
  158.             <div class=\"text-center pb-2\"><h1 class=\"title-medium color-pink-s\">";
  159.         // line 36
  160.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'36$this->source); })()), "name", [], "any"falsefalsefalse36), "html"nulltrue);
  161.         echo "</h1></div>
  162.             <div class=\"py-3 py-md-5 px-md-4 px-3 fontsize-normal fontsize-mobile-text py-3 text-regular content-instit page-instit-shadow\">
  163.             ";
  164.         // line 39
  165.         echo $this->env->getRuntime('BitBag\SyliusCmsPlugin\Twig\Runtime\RenderContentRuntime')->renderContent((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'39$this->source); })()));
  166.         echo "
  167.                 ";
  168.         // line 40
  169.         if ((twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'40$this->source); })()), "code", [], "any"falsefalsefalse40) == "pick_up_on_site")) {
  170.             // line 41
  171.             echo "                    <a href=\"https://fr.mappy.com/poi/60c9784522e6f13abc204b04\" target=\"_blank\" class=\"font-seize text-underline font-pro-bold color-pink-s\"><i class=\"icon-location\"></i> ";
  172.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.homepage.our_shop"), "html"nulltrue);
  173.             echo "</a>
  174.                     <div class=\"pt-3\">
  175.                         <a href=\"https://fr.mappy.com/poi/60c9784522e6f13abc204b04\" target=\"_blank\" class=\"\">
  176.                             <img src=\"";
  177.             // line 44
  178.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/map.png"), "html"nulltrue);
  179.             echo "\" alt=\"";
  180.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.common.shop_map"), "html"nulltrue);
  181.             echo "\">
  182.                         </a>
  183.                     </div>
  184.                 ";
  185.         }
  186.         // line 49
  187.         echo "
  188.             </div>
  189.         </div>
  190.     </div>
  191.     ";
  192.         // line 54
  193.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'54$this->source); })()), "products", [], "any"falsefalsefalse54)) > 0)) {
  194.             // line 55
  195.             echo "        <h2 class=\"title-medium text-center\">
  196.             ";
  197.             // line 56
  198.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("bitbag_sylius_cms_plugin.ui.page_related_products"), "html"nulltrue);
  199.             echo "
  200.         </h2>
  201.         <div class=\"bitbag-page-products d-none\">
  202.             ";
  203.             // line 59
  204.             $this->loadTemplate("@SyliusShop/Product/_horizontalList.html.twig""@BitBagSyliusCmsPlugin/Shop/Page/show.html.twig"59)->display(twig_array_merge($context, ["products" => twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'59$this->source); })()), "products", [], "any"falsefalsefalse59)]));
  205.             // line 60
  206.             echo "        </div>
  207.     ";
  208.         }
  209.         // line 62
  210.         echo "
  211. ";
  212.         
  213.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  214.         
  215.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  216.     }
  217.     public function getTemplateName()
  218.     {
  219.         return "@BitBagSyliusCmsPlugin/Shop/Page/show.html.twig";
  220.     }
  221.     public function isTraitable()
  222.     {
  223.         return false;
  224.     }
  225.     public function getDebugInfo()
  226.     {
  227.         return array (  237 => 62,  233 => 60,  231 => 59,  225 => 56,  222 => 55,  220 => 54,  213 => 49,  203 => 44,  196 => 41,  194 => 40,  190 => 39,  184 => 36,  177 => 32,  171 => 31,  166 => 28,  159 => 25,  157 => 24,  154 => 23,  152 => 22,  149 => 21,  139 => 20,  126 => 17,  123 => 16,  120 => 15,  117 => 14,  114 => 13,  111 => 12,  105 => 10,  102 => 9,  96 => 7,  93 => 6,  83 => 5,  60 => 3,  37 => 1,);
  228.     }
  229.     public function getSourceContext()
  230.     {
  231.         return new Source("{% extends '@SyliusShop/layout.html.twig' %}
  232. {% block title %}{% if page.title is not empty %}{{ page.title|trim }}{% else %}{{ parent() }}{% endif %}{% endblock %}
  233. {% block metatags %}
  234.     {% if page.metaKeywords is not empty %}
  235.         <meta name=\"keywords\" content=\"{{ page.metaKeywords }}\"/>
  236.     {% endif %}
  237.     {% if page.metaDescription is not empty %}
  238.         <meta name=\"description\" content=\"{{ page.metaDescription }}\"/>
  239.     {% endif %}
  240.     {% if page.translation.metaRobotIndex == true %}
  241.         {% set metaRobotIndex = 'index, follow' %}
  242.     {% elseif page.translation.metaRobotIndex == false %}
  243.         {% set metaRobotIndex = 'noindex, nofollow' %}
  244.     {% endif %}
  245.     <meta name=\"robots\" content=\"{{ metaRobotIndex }}\"/>
  246. {% endblock %}
  247. {% block content %}
  248.     {% if page.image %}
  249.     <div class=\"image-instit-top pt-0 object-fit-img\">
  250.         {% set path = preview is defined and preview == true ? page.image.path : '/media/image/'~page.image.path %}
  251.             <img class=\"\" src=\"{{ path }}\" alt=\"\">
  252.         </div>
  253.     {% endif %}
  254.     <div class=\"max-container-3 px-2 px-xl-4\">
  255.         <nav>
  256.             <ol class=\"breadcrumb ariane-box m-0  bg-transparent\">
  257.                 <li class=\"breadcrumb-item\"><a href=\"{{ path('sylius_shop_homepage') }}\">{{ 'sylius.ui.home'|trans }}</a></li>
  258.                 <li class=\"breadcrumb-item\">{{ page.name }}</li>
  259.             </ol>
  260.         </nav>
  261.         <div class=\"page-instit-img mt-md-3 mt-2 pb-md-4 pb-3\">
  262.             <div class=\"text-center pb-2\"><h1 class=\"title-medium color-pink-s\">{{ page.name }}</h1></div>
  263.             <div class=\"py-3 py-md-5 px-md-4 px-3 fontsize-normal fontsize-mobile-text py-3 text-regular content-instit page-instit-shadow\">
  264.             {{ bitbag_cms_render_content(page) }}
  265.                 {% if page.code ==\"pick_up_on_site\" %}
  266.                     <a href=\"https://fr.mappy.com/poi/60c9784522e6f13abc204b04\" target=\"_blank\" class=\"font-seize text-underline font-pro-bold color-pink-s\"><i class=\"icon-location\"></i> {{'app.homepage.our_shop'|trans}}</a>
  267.                     <div class=\"pt-3\">
  268.                         <a href=\"https://fr.mappy.com/poi/60c9784522e6f13abc204b04\" target=\"_blank\" class=\"\">
  269.                             <img src=\"{{asset('images/map.png')}}\" alt=\"{{ 'app.common.shop_map'|trans }}\">
  270.                         </a>
  271.                     </div>
  272.                 {% endif %}
  273.             </div>
  274.         </div>
  275.     </div>
  276.     {% if page.products|length > 0 %}
  277.         <h2 class=\"title-medium text-center\">
  278.             {{ 'bitbag_sylius_cms_plugin.ui.page_related_products'|trans }}
  279.         </h2>
  280.         <div class=\"bitbag-page-products d-none\">
  281.             {% include '@SyliusShop/Product/_horizontalList.html.twig' with {'products': page.products} %}
  282.         </div>
  283.     {% endif %}
  284. {% endblock %}
  285. ""@BitBagSyliusCmsPlugin/Shop/Page/show.html.twig""/home/chouettemauve/preprod/sylius/themes/BootstrapTheme/templates/bundles/BitBagSyliusCmsPlugin/Shop/Page/show.html.twig");
  286.     }
  287. }