var/cache/dev/twig/db/db3c51f84a5276ef131353e1e7fed43ccefbf14de28a3bcf82c37599301e76a8.php line 192

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. /* SyliusShopBundle:Homepage:index.html.twig */
  14. class __TwigTemplate_65eb06523e1414979167e4b3ca9db982fa022d15dd2acb3a28dcc794f4d1f1b7 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.             'javascripts' => [$this'block_javascripts'],
  24.             'stylesheets' => [$this'block_stylesheets'],
  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""SyliusShopBundle:Homepage:index.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""SyliusShopBundle:Homepage:index.html.twig"));
  40.         // line 12
  41.         $context["block"] = $this->extensions['App\Twig\Extensions\Cms\BlockExtension']->getBlock("texteperso_index"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.'12$this->source); })()), "channel", [], "any"falsefalsefalse12), "code", [], "any"falsefalsefalse12));
  42.         // line 14
  43.         $context["partners"] = $this->extensions['App\Twig\Extensions\Partner\PartnerExtension']->getPartners();
  44.         // line 1
  45.         $this->parent $this->loadTemplate("@SyliusShop/layout.html.twig""SyliusShopBundle:Homepage:index.html.twig"1);
  46.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  49.         
  50.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  51.     }
  52.     // line 3
  53.     public function block_javascripts($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  60.         // line 4
  61.         echo "    ";
  62.         $this->displayParentBlock("javascripts"$context$blocks);
  63.         echo "
  64.     ";
  65.         // line 5
  66.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("home"null"bootstrapTheme");
  67.         echo "
  68. ";
  69.         
  70.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  71.         
  72.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  73.     }
  74.     // line 7
  75.     public function block_stylesheets($context, array $blocks = [])
  76.     {
  77.         $macros $this->macros;
  78.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  79.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  80.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  81.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  82.         // line 8
  83.         echo "    ";
  84.         $this->displayParentBlock("stylesheets"$context$blocks);
  85.         echo "
  86.     ";
  87.         // line 9
  88.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("home"null"bootstrapTheme");
  89.         echo "
  90. ";
  91.         
  92.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  93.         
  94.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  95.     }
  96.     // line 17
  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 18
  105.         echo "    <div class=\"index-bg m-0\">
  106.         <div class=\"homepage\">
  107.             ";
  108.         // line 21
  109.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.homepage");
  110.         echo "
  111.             <div class=\"section-partenaire text-center\">
  112.                 <div class=\"container p-0\">
  113.                     <h2 class=\"titre-medium \">";
  114.         // line 24
  115.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.homepage.ilsnousfont_confiance"), "html"nulltrue);
  116.         echo "</h2>
  117.                     <div class=\"content-list-partenaire pos-relative mt-3 mt-md-5\">
  118.                         <div class=\"part-prev prev-top\"></div>
  119.                         <div class=\"part-next next-top\"></div>
  120.                         <div class=\"index-partenaire swiper-container\" >
  121.                             <div class=\"partenaire-wrapper swiper-wrapper align-items-center\">
  122.                                  ";
  123.         // line 30
  124.         $context['_parent'] = $context;
  125.         $context['_seq'] = twig_ensure_traversable((isset($context["partners"]) || array_key_exists("partners"$context) ? $context["partners"] : (function () { throw new RuntimeError('Variable "partners" does not exist.'30$this->source); })()));
  126.         foreach ($context['_seq'] as $context["_key"] => $context["partner"]) {
  127.             // line 31
  128.             echo "                                    <div class=\"swiper-slide partenaire-item\">
  129.                                         <a href=\"\" title=\"";
  130.             // line 32
  131.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["partner"], "name", [], "any"falsefalsefalse32), "html"nulltrue);
  132.             echo "\">
  133.                                             ";
  134.             // line 33
  135.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["partner"], "filePath", [], "any"falsefalsefalse33))) {
  136.                 // line 34
  137.                 echo "                                                <img src=\"";
  138.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["partner"], "filePath", [], "any"falsefalsefalse34), "html"nulltrue);
  139.                 echo "\"  alt=\"";
  140.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["partner"], "alt", [], "any"falsefalsefalse34), "html"nulltrue);
  141.                 echo "\"/>
  142.                                             ";
  143.             } else {
  144.                 // line 36
  145.                 echo "                                                <img src=\"//placehold.it/200x56'\"  alt=\"\"/>
  146.                                             ";
  147.             }
  148.             // line 38
  149.             echo "                                        </a>
  150.                                     </div>
  151.                                  ";
  152.         }
  153.         $_parent $context['_parent'];
  154.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['partner'], $context['_parent'], $context['loop']);
  155.         $context array_intersect_key($context$_parent) + $_parent;
  156.         // line 41
  157.         echo "
  158.                             </div>
  159.                             <div class=\"swiper-pagination\"></div>
  160.                         </div>
  161.                     </div>
  162.                 </div>
  163.             </div>
  164.             ";
  165.         // line 49
  166.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("app_shop_partial_contact_request"));
  167.         echo "
  168.         </div>
  169.     </div>
  170. ";
  171.         
  172.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  173.         
  174.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  175.     }
  176.     public function getTemplateName()
  177.     {
  178.         return "SyliusShopBundle:Homepage:index.html.twig";
  179.     }
  180.     public function isTraitable()
  181.     {
  182.         return false;
  183.     }
  184.     public function getDebugInfo()
  185.     {
  186.         return array (  192 => 49,  182 => 41,  174 => 38,  170 => 36,  162 => 34,  160 => 33,  156 => 32,  153 => 31,  149 => 30,  140 => 24,  134 => 21,  129 => 18,  119 => 17,  107 => 9,  102 => 8,  92 => 7,  80 => 5,  75 => 4,  65 => 3,  54 => 1,  52 => 14,  50 => 12,  37 => 1,);
  187.     }
  188.     public function getSourceContext()
  189.     {
  190.         return new Source("{% extends '@SyliusShop/layout.html.twig' %}
  191. {% block javascripts %}
  192.     {{ parent() }}
  193.     {{ encore_entry_script_tags('home', null, 'bootstrapTheme') }}
  194. {% endblock %}
  195. {% block stylesheets %}
  196.     {{ parent() }}
  197.     {{ encore_entry_link_tags('home', null, 'bootstrapTheme') }}
  198. {% endblock %}
  199. {% set block = app_get_blocks('texteperso_index', sylius.channel.code )  %}
  200. {% set partners = app_get_partners()  %}
  201. {% block content %}
  202.     <div class=\"index-bg m-0\">
  203.         <div class=\"homepage\">
  204.             {{ sylius_template_event('sylius.shop.homepage') }}
  205.             <div class=\"section-partenaire text-center\">
  206.                 <div class=\"container p-0\">
  207.                     <h2 class=\"titre-medium \">{{'app.homepage.ilsnousfont_confiance' |trans}}</h2>
  208.                     <div class=\"content-list-partenaire pos-relative mt-3 mt-md-5\">
  209.                         <div class=\"part-prev prev-top\"></div>
  210.                         <div class=\"part-next next-top\"></div>
  211.                         <div class=\"index-partenaire swiper-container\" >
  212.                             <div class=\"partenaire-wrapper swiper-wrapper align-items-center\">
  213.                                  {% for partner in partners %}
  214.                                     <div class=\"swiper-slide partenaire-item\">
  215.                                         <a href=\"\" title=\"{{ partner.name }}\">
  216.                                             {% if  partner.filePath is not empty %}
  217.                                                 <img src=\"{{ partner.filePath }}\"  alt=\"{{ partner.alt }}\"/>
  218.                                             {% else %}
  219.                                                 <img src=\"//placehold.it/200x56'\"  alt=\"\"/>
  220.                                             {% endif %}
  221.                                         </a>
  222.                                     </div>
  223.                                  {% endfor %}
  224.                             </div>
  225.                             <div class=\"swiper-pagination\"></div>
  226.                         </div>
  227.                     </div>
  228.                 </div>
  229.             </div>
  230.             {{ render(url('app_shop_partial_contact_request')) }}
  231.         </div>
  232.     </div>
  233. {% endblock %}
  234. ""SyliusShopBundle:Homepage:index.html.twig""/home/rayonnage/preprod/sylius/themes/BootstrapTheme/SyliusShopBundle/views/Homepage/index.html.twig");
  235.     }
  236. }