var/cache/dev/twig/5c/5cf30b5a2f23b5f4ab0f0b0d4440b6a77bf443cc43fedd73425c0acf569bdd94.php line 133

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/Layout/Footer/_grid.html.twig */
  14. class __TwigTemplate_e397d99d0a73af594281516c14daed9863ccedf9cfbc3f55eb8bc63a443ac866 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/Layout/Footer/_grid.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/Layout/Footer/_grid.html.twig"));
  33.         // line 1
  34.         echo "
  35. ";
  36.         // line 2
  37.         $context["media_ourshop"] = $this->extensions['App\Twig\Extensions\Cms\SectionExtension']->getMediaImageByCode("media_our_shop"twig_get_attribute($this->env$this->source, (isset($context["sylius"]) || array_key_exists("sylius"$context) ? $context["sylius"] : (function () { throw new RuntimeError('Variable "sylius" does not exist.'2$this->source); })()), "localeCode", [], "any"falsefalsefalse2), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["sylius"]) || array_key_exists("sylius"$context) ? $context["sylius"] : (function () { throw new RuntimeError('Variable "sylius" does not exist.'2$this->source); })()), "channel", [], "any"falsefalsefalse2), "code", [], "any"falsefalsefalse2));
  38.         // line 3
  39.         if ( !(null === (isset($context["media_ourshop"]) || array_key_exists("media_ourshop"$context) ? $context["media_ourshop"] : (function () { throw new RuntimeError('Variable "media_ourshop" does not exist.'3$this->source); })()))) {
  40.             // line 4
  41.             echo "<section class=\"bloc-collection-index py-lg-4 py-md-3 pt-3 pb-2  my-1  hidden-index\">
  42.         <div class=\"container px-0\">
  43.             <div class=\"row no-gutters bg-blue-opac mt-md-3 \">
  44.                 <div class=\"col-md-7\">
  45.                     <div class=\"h-100 object-fit-img\">
  46.                         ";
  47.             // line 9
  48.             if ( !(null === twig_get_attribute($this->env$this->source, (isset($context["media_ourshop"]) || array_key_exists("media_ourshop"$context) ? $context["media_ourshop"] : (function () { throw new RuntimeError('Variable "media_ourshop" does not exist.'9$this->source); })()), "path", [], "any"falsefalsefalse9))) {
  49.                 // line 10
  50.                 echo "                            ";
  51.                 $context["path_shop"] = twig_get_attribute($this->env$this->source, (isset($context["media_ourshop"]) || array_key_exists("media_ourshop"$context) ? $context["media_ourshop"] : (function () { throw new RuntimeError('Variable "media_ourshop" does not exist.'10$this->source); })()), "path", [], "any"falsefalsefalse10);
  52.                 // line 11
  53.                 echo "                        ";
  54.             } else {
  55.                 // line 12
  56.                 echo "                             ";
  57.                 $context["path_shop"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/img_boutique.jpg");
  58.                 // line 13
  59.                 echo "                         ";
  60.             }
  61.             // line 14
  62.             echo "                        <img src=\"";
  63.             echo twig_escape_filter($this->env, (isset($context["path_shop"]) || array_key_exists("path_shop"$context) ? $context["path_shop"] : (function () { throw new RuntimeError('Variable "path_shop" does not exist.'14$this->source); })()), "html"nulltrue);
  64.             echo "\" alt=\"";
  65.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["media_ourshop"]) || array_key_exists("media_ourshop"$context) ? $context["media_ourshop"] : (function () { throw new RuntimeError('Variable "media_ourshop" does not exist.'14$this->source); })()), "name", [], "any"falsefalsefalse14), "html"nulltrue);
  66.             echo "\" />
  67.                     </div>
  68.                 </div>
  69.                 <div class=\"col-md-5 has-bg-chouette\">
  70.                     <div class=\"pl-lg-5 pl-md-4 px-md-3 px-4 pt-md-5 pt-4 pb-sm-4 pb-4 d-flex align-items-center h-100\">
  71.                         <div class=\"max-container-txt text-left m-auto m-md-0\">
  72.                             <h2 class=\"title-medium title-medium-mobile text-white text-center text-md-left\"> ";
  73.             // line 20
  74.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["media_ourshop"]) || array_key_exists("media_ourshop"$context) ? $context["media_ourshop"] : (function () { throw new RuntimeError('Variable "media_ourshop" does not exist.'20$this->source); })()), "name", [], "any"falsefalsefalse20), "html"nulltrue);
  75.             echo "</h2>
  76.                             <div class=\"texte-gris-mobile font-seize  text-center text-md-left\">
  77.                             ";
  78.             // line 22
  79.             if ( !(null === twig_get_attribute($this->env$this->source, (isset($context["media_ourshop"]) || array_key_exists("media_ourshop"$context) ? $context["media_ourshop"] : (function () { throw new RuntimeError('Variable "media_ourshop" does not exist.'22$this->source); })()), "content", [], "any"falsefalsefalse22))) {
  80.                 // line 23
  81.                 echo "                               ";
  82.                 echo twig_get_attribute($this->env$this->source, (isset($context["media_ourshop"]) || array_key_exists("media_ourshop"$context) ? $context["media_ourshop"] : (function () { throw new RuntimeError('Variable "media_ourshop" does not exist.'23$this->source); })()), "content", [], "any"falsefalsefalse23);
  83.                 echo "
  84.                             ";
  85.             }
  86.             // line 25
  87.             echo "                            </div>
  88.                             ";
  89.             // line 26
  90.             if ( !(null === twig_get_attribute($this->env$this->source, (isset($context["media_ourshop"]) || array_key_exists("media_ourshop"$context) ? $context["media_ourshop"] : (function () { throw new RuntimeError('Variable "media_ourshop" does not exist.'26$this->source); })()), "link", [], "any"falsefalsefalse26))) {
  91.                 // line 27
  92.                 echo "                            <div class=\"mt-1 pt-3 pb-0 text-center text-md-left\">
  93.                                 <a href=\"/";
  94.                 // line 28
  95.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["media_ourshop"]) || array_key_exists("media_ourshop"$context) ? $context["media_ourshop"] : (function () { throw new RuntimeError('Variable "media_ourshop" does not exist.'28$this->source); })()), "link", [], "any"falsefalsefalse28), "html"nulltrue);
  96.                 echo "\" class=\"btn-link transition-bgcolor minw-sm bg-white-link\" title=\"";
  97.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.common.learn_more"), "html"nulltrue);
  98.                 echo "\">";
  99.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.common.learn_more"), "html"nulltrue);
  100.                 echo "</a>
  101.                             </div>
  102.                              ";
  103.             }
  104.             // line 31
  105.             echo "                        </div>
  106.                     </div>
  107.                 </div>
  108.             </div>
  109.         </div>
  110. </section>
  111.  ";
  112.         }
  113.         // line 38
  114.         echo "<section class=\"py-md-3  pt-3  hidden-index\">
  115.     ";
  116.         // line 39
  117.         $this->loadTemplate("@SyliusShop/Homepage/_reinsurance.html.twig""@SyliusShop/Layout/Footer/_grid.html.twig"39)->display($context);
  118.         // line 40
  119.         echo "</section>
  120. <footer>
  121.     <div class=\"d-flex flex-column\">
  122.         ";
  123.         // line 43
  124.         $this->loadTemplate("@SyliusShop/Homepage/_newsletter.html.twig""@SyliusShop/Layout/Footer/_grid.html.twig"43)->display($context);
  125.         // line 44
  126.         echo "        <div class=\"footer-bottom\">
  127.             <div class=\"max-container-2 p-0 px-xl-4 px-lg-2 px-3\">
  128.                 <div class=\"bloc-footer-menu\">
  129.                     <div class=\"row mx-lg-n3 mx-n1\">
  130.                          ";
  131.         // line 48
  132.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.footer.grid");
  133.         echo "
  134.                     </div>
  135.                 </div>
  136.             </div>
  137.         </div>
  138.     </div>
  139. ";
  140.         
  141.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  142.         
  143.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  144.     }
  145.     public function getTemplateName()
  146.     {
  147.         return "@SyliusShop/Layout/Footer/_grid.html.twig";
  148.     }
  149.     public function isTraitable()
  150.     {
  151.         return false;
  152.     }
  153.     public function getDebugInfo()
  154.     {
  155.         return array (  141 => 48,  135 => 44,  133 => 43,  128 => 40,  126 => 39,  123 => 38,  114 => 31,  104 => 28,  101 => 27,  99 => 26,  96 => 25,  90 => 23,  88 => 22,  83 => 20,  71 => 14,  68 => 13,  65 => 12,  62 => 11,  59 => 10,  57 => 9,  50 => 4,  48 => 3,  46 => 2,  43 => 1,);
  156.     }
  157.     public function getSourceContext()
  158.     {
  159.         return new Source("
  160. {% set media_ourshop = app_get_media_image_by_code('media_our_shop', sylius.localeCode, sylius.channel.code) %}
  161. {% if media_ourshop is not null %}
  162. <section class=\"bloc-collection-index py-lg-4 py-md-3 pt-3 pb-2  my-1  hidden-index\">
  163.         <div class=\"container px-0\">
  164.             <div class=\"row no-gutters bg-blue-opac mt-md-3 \">
  165.                 <div class=\"col-md-7\">
  166.                     <div class=\"h-100 object-fit-img\">
  167.                         {% if media_ourshop.path is not null %}
  168.                             {% set path_shop =  media_ourshop.path %}
  169.                         {% else %}
  170.                              {% set path_shop =  asset('images/img_boutique.jpg') %}
  171.                          {% endif %}
  172.                         <img src=\"{{path_shop}}\" alt=\"{{ media_ourshop.name }}\" />
  173.                     </div>
  174.                 </div>
  175.                 <div class=\"col-md-5 has-bg-chouette\">
  176.                     <div class=\"pl-lg-5 pl-md-4 px-md-3 px-4 pt-md-5 pt-4 pb-sm-4 pb-4 d-flex align-items-center h-100\">
  177.                         <div class=\"max-container-txt text-left m-auto m-md-0\">
  178.                             <h2 class=\"title-medium title-medium-mobile text-white text-center text-md-left\"> {{ media_ourshop.name }}</h2>
  179.                             <div class=\"texte-gris-mobile font-seize  text-center text-md-left\">
  180.                             {% if media_ourshop.content is not null %}
  181.                                {{ media_ourshop.content|raw }}
  182.                             {% endif %}
  183.                             </div>
  184.                             {% if media_ourshop.link is not null %}
  185.                             <div class=\"mt-1 pt-3 pb-0 text-center text-md-left\">
  186.                                 <a href=\"/{{ media_ourshop.link }}\" class=\"btn-link transition-bgcolor minw-sm bg-white-link\" title=\"{{'app.common.learn_more'|trans}}\">{{'app.common.learn_more'|trans}}</a>
  187.                             </div>
  188.                              {% endif %}
  189.                         </div>
  190.                     </div>
  191.                 </div>
  192.             </div>
  193.         </div>
  194. </section>
  195.  {% endif %}
  196. <section class=\"py-md-3  pt-3  hidden-index\">
  197.     {% include '@SyliusShop/Homepage/_reinsurance.html.twig' %}
  198. </section>
  199. <footer>
  200.     <div class=\"d-flex flex-column\">
  201.         {% include '@SyliusShop/Homepage/_newsletter.html.twig' %}
  202.         <div class=\"footer-bottom\">
  203.             <div class=\"max-container-2 p-0 px-xl-4 px-lg-2 px-3\">
  204.                 <div class=\"bloc-footer-menu\">
  205.                     <div class=\"row mx-lg-n3 mx-n1\">
  206.                          {{ sylius_template_event('sylius.shop.layout.footer.grid') }}
  207.                     </div>
  208.                 </div>
  209.             </div>
  210.         </div>
  211.     </div>
  212. ""@SyliusShop/Layout/Footer/_grid.html.twig""/home/chouettemauve/preprod/sylius/themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Layout/Footer/_grid.html.twig");
  213.     }
  214. }