var/cache/dev/twig/77/77c5905c1c81d24dae482cb776c8635145b537c5388ae394f571e0c91163c76d.php line 40

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_ca98ecb6b61b350c5fb7b64f67413712048fa29cbf2defa300a518fda70549e4 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.         
  92.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  93.         
  94.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  95.     }
  96.     // line 14
  97.     public function block_content($context, array $blocks = [])
  98.     {
  99.         $macros $this->macros;
  100.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  101.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  102.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  103.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  104.         // line 15
  105.         echo "    
  106.     ";
  107.         // line 16
  108.         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.'16$this->source); })()), "image", [], "any"falsefalsefalse16)) {
  109.             // line 17
  110.             echo "    ";
  111.             $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.'17$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.'17$this->source); })()), "image", [], "any"falsefalsefalse17), "path", [], "any"falsefalsefalse17)) : (("/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.'17$this->source); })()), "image", [], "any"falsefalsefalse17), "path", [], "any"falsefalsefalse17))));
  112.             // line 18
  113.             echo "    <div class=\"instit-top-image instit-has-bgimg text-center pt-0 d-flex justify-content-center align-items-center\" style=\"background-image: url(";
  114.             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.'18$this->source); })()), "html"nulltrue);
  115.             echo ")\" >
  116.         <h1 class=\"title-medium color-white text-uppercase\">";
  117.             // line 19
  118.             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.'19$this->source); })()), "name", [], "any"falsefalsefalse19), "html"nulltrue);
  119.             echo "</h1>
  120.     </div>
  121.     ";
  122.         } else {
  123.             // line 22
  124.             echo "        <div class=\"instit-top-image text-center pt-0 d-flex justify-content-center bg-gradient-orange  align-items-center\">
  125.             <h1 class=\"title-medium color-white text-uppercase\">";
  126.             // line 23
  127.             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.'23$this->source); })()), "name", [], "any"falsefalsefalse23), "html"nulltrue);
  128.             echo "</h1>
  129.         </div>
  130.     ";
  131.         }
  132.         // line 26
  133.         echo "
  134.     <div class=\"max-container-5 px-2 px-xl-4\">
  135.         <nav>
  136.             <ol class=\"breadcrumb ariane-box m-0  bg-transparent\">
  137.                 <li class=\"breadcrumb-item\"><a href=\"";
  138.         // line 30
  139.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_homepage");
  140.         echo "\">";
  141.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.home"), "html"nulltrue);
  142.         echo "</a></li>
  143.                 <li class=\"breadcrumb-item\">";
  144.         // line 31
  145.         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.'31$this->source); })()), "name", [], "any"falsefalsefalse31), "html"nulltrue);
  146.         echo "</li>
  147.             </ol>
  148.         </nav>
  149.         <div class=\"page-instit-img mt-md-3 mt-2\">
  150.             <div class=\"py-3 py-md-4 fontsize-mobile-text py-3 text-regular\">";
  151.         // line 35
  152.         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.'35$this->source); })()));
  153.         echo "</div>
  154.             ";
  155.         // line 39
  156.         echo "        </div>
  157.     </div>
  158.     ";
  159.         // line 50
  160.         echo "\t
  161. ";
  162.         
  163.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  164.         
  165.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  166.     }
  167.     public function getTemplateName()
  168.     {
  169.         return "@BitBagSyliusCmsPlugin/Shop/Page/show.html.twig";
  170.     }
  171.     public function isTraitable()
  172.     {
  173.         return false;
  174.     }
  175.     public function getDebugInfo()
  176.     {
  177.         return array (  184 => 50,  180 => 39,  176 => 35,  169 => 31,  163 => 30,  157 => 26,  151 => 23,  148 => 22,  142 => 19,  137 => 18,  134 => 17,  132 => 16,  129 => 15,  119 => 14,  105 => 10,  102 => 9,  96 => 7,  93 => 6,  83 => 5,  60 => 3,  37 => 1,);
  178.     }
  179.     public function getSourceContext()
  180.     {
  181.         return new Source("{% extends '@SyliusShop/layout.html.twig' %}
  182. {% block title %}{% if page.title is not empty %}{{ page.title|trim }}{% else %}{{ parent() }}{% endif %}{% endblock %}
  183. {% block metatags %}
  184.     {% if page.metaKeywords is not empty %}
  185.         <meta name=\"keywords\" content=\"{{ page.metaKeywords }}\"/>
  186.     {% endif %}
  187.     {% if page.metaDescription is not empty %}
  188.         <meta name=\"description\" content=\"{{ page.metaDescription }}\"/>
  189.     {% endif %}
  190. {% endblock %} 
  191. {% block content %}
  192.     
  193.     {% if page.image %}
  194.     {% set path = preview is defined and preview == true ? page.image.path : '/media/image/'~page.image.path %}
  195.     <div class=\"instit-top-image instit-has-bgimg text-center pt-0 d-flex justify-content-center align-items-center\" style=\"background-image: url({{ path }})\" >
  196.         <h1 class=\"title-medium color-white text-uppercase\">{{ page.name }}</h1>
  197.     </div>
  198.     {% else %}
  199.         <div class=\"instit-top-image text-center pt-0 d-flex justify-content-center bg-gradient-orange  align-items-center\">
  200.             <h1 class=\"title-medium color-white text-uppercase\">{{ page.name }}</h1>
  201.         </div>
  202.     {% endif %}
  203.     <div class=\"max-container-5 px-2 px-xl-4\">
  204.         <nav>
  205.             <ol class=\"breadcrumb ariane-box m-0  bg-transparent\">
  206.                 <li class=\"breadcrumb-item\"><a href=\"{{ path('sylius_shop_homepage') }}\">{{ 'sylius.ui.home'|trans }}</a></li>
  207.                 <li class=\"breadcrumb-item\">{{ page.name }}</li>
  208.             </ol>
  209.         </nav>
  210.         <div class=\"page-instit-img mt-md-3 mt-2\">
  211.             <div class=\"py-3 py-md-4 fontsize-mobile-text py-3 text-regular\">{{ bitbag_cms_render_content(page) }}</div>
  212.             {#<div class=\"bitbag-page-sections d-none\">
  213.                 {% include '@BitBagSyliusCmsPlugin/Shop/Page/Show/_sections.html.twig' %}
  214.             </div>#}
  215.         </div>
  216.     </div>
  217.     {#{% if page.products|length > 0 %}
  218.         <h2>
  219.             {{ 'bitbag_sylius_cms_plugin.ui.page_related_products'|trans }}
  220.         </h2>
  221.         <div class=\"bitbag-page-products d-none\">
  222.             {% include '@SyliusShop/Product/_horizontalList.html.twig' with {'products': page.products} %}
  223.         </div>
  224.     {% endif %}#}
  225. \t
  226. {% endblock %}""@BitBagSyliusCmsPlugin/Shop/Page/show.html.twig""/home/6nergiesboutique/www_preprod/themes/BootstrapTheme/templates/bundles/BitBagSyliusCmsPlugin/Shop/Page/show.html.twig");
  227.     }
  228. }