var/cache/dev/twig/67/6750eb3320aaa1fd5146e7d5aaafdcd2.php line 105

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. /* pages/home.html.twig */
  14. class __TwigTemplate_946a6c9d1fbfb9610127f75cbb073859 extends 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.             'css' => [$this'block_css'],
  24.             'menu' => [$this'block_menu'],
  25.             'content' => [$this'block_content'],
  26.             'js' => [$this'block_js'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "base.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""pages/home.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""pages/home.html.twig"));
  41.         $this->parent $this->loadTemplate("base.html.twig""pages/home.html.twig"1);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  45.         
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47.     }
  48.     // line 2
  49.     public function block_css($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""css"));
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""css"));
  56.         // line 3
  57.         echo "    ";
  58.         $this->displayParentBlock("css"$context$blocks);
  59.         echo "
  60.     <style>
  61.         iframe img {
  62.             max-width: 250px;
  63.             max-height: 250px;
  64.         }
  65.         .slider-halfscreen {
  66.              height: 72vh;
  67.          }
  68.     </style>
  69. ";
  70.         
  71.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  72.         
  73.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  74.     }
  75.     // line 15
  76.     public function block_menu($context, array $blocks = [])
  77.     {
  78.         $macros $this->macros;
  79.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  80.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu"));
  81.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  82.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu"));
  83.         // line 16
  84.         echo "     ";
  85.         $this->loadTemplate("components/menu.html.twig""pages/home.html.twig"16)->display(twig_array_merge($context, ["transparent" => twig_get_attribute($this->env$this->source, (isset($context["general"]) || array_key_exists("general"$context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.'16$this->source); })()), "sliderFullscreen", [], "any"falsefalsefalse16)]));
  86.         // line 17
  87.         echo " ";
  88.         
  89.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  90.         
  91.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  92.     }
  93.     // line 18
  94.     public function block_content($context, array $blocks = [])
  95.     {
  96.         $macros $this->macros;
  97.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  98.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  99.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  100.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  101.         // line 19
  102.         echo "
  103.         <div id=\"slider\" class=\"inspiro-slider dots-creative ";
  104.         // line 21
  105.         if ( !twig_get_attribute($this->env$this->source, (isset($context["general"]) || array_key_exists("general"$context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.'21$this->source); })()), "sliderFullscreen", [], "any"falsefalsefalse21)) {
  106.             echo "slider-halfscreen ";
  107.         } else {
  108.             echo " slider-fullscreen";
  109.         }
  110.         echo "\" data-height-xs=\"360\">
  111.             <div class=\"slide\" data-bg-image=\"";
  112.         // line 22
  113.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['App\Twig\ImageRenderExtension']->getFiles($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("images/upload/" twig_get_attribute($this->env$this->source, (isset($context["general"]) || array_key_exists("general"$context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.'22$this->source); })()), "imageAccueil", [], "any"falsefalsefalse22)))), "3x", [], "array"falsefalsefalse22), "html"nulltrue);
  114.         echo "\" >
  115.                 <div class=\"bg-overlay\"></div>
  116.                 <div class=\"container ";
  117.         // line 24
  118.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["general"]) || array_key_exists("general"$context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.'24$this->source); })()), "positionSloganAccueil", [], "any"falsefalsefalse24), "html"nulltrue);
  119.         echo "\">
  120.                     <div class=\"center-sm\" >
  121.                         <div class=\"slide-captions text-light\">
  122.                             <h1 data-animate=\"fadeInUp\" style=\"font-size: 44px ;color : ";
  123.         // line 27
  124.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["general"]) || array_key_exists("general"$context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.'27$this->source); })()), "couleurSlogan", [], "any"falsefalsefalse27), "html"nulltrue);
  125.         echo " !important\" class=\"slider-text\" data-animate-delay=\"600\">";
  126.         echo twig_get_attribute($this->env$this->source, (isset($context["general"]) || array_key_exists("general"$context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.'27$this->source); })()), "slogan", [], "any"falsefalsefalse27);
  127.         echo "</h1>
  128.                             ";
  129.         // line 28
  130.         if (((twig_get_attribute($this->env$this->source, (isset($context["general"]) || array_key_exists("general"$context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.'28$this->source); })()), "sousTexteSlogan", [], "any"falsefalsefalse28) != null) || (twig_get_attribute($this->env$this->source, (isset($context["general"]) || array_key_exists("general"$context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.'28$this->source); })()), "sousTexteSlogan", [], "any"falsefalsefalse28) != ""))) {
  131.             echo "<p class=\"slider-text\" style=\"color : ";
  132.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["general"]) || array_key_exists("general"$context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.'28$this->source); })()), "couleurSlogan", [], "any"falsefalsefalse28), "html"nulltrue);
  133.             echo " !important\"> ";
  134.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["general"]) || array_key_exists("general"$context) ? $context["general"] : (function () { throw new RuntimeError('Variable "general" does not exist.'28$this->source); })()), "sousTexteSlogan", [], "any"falsefalsefalse28), "html"nulltrue);
  135.             echo "</p>";
  136.         }
  137.         // line 29
  138.         echo "                        </div>
  139.                         <a href=\"";
  140.         // line 30
  141.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("contact");
  142.         echo "\" class=\"btn btn-success\" data-animate=\"fadeInUp\" data-animate-delay=\"600\">";
  143.         echo $this->extensions['App\Twig\TransExtension']->trans("home_slider.button");
  144.         echo "</a>
  145.                     </div>
  146.                 </div>
  147.             </div>
  148.         </div>
  149.     ";
  150.         // line 35
  151.         $context['_parent'] = $context;
  152.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["menuS"]) || array_key_exists("menuS"$context) ? $context["menuS"] : (function () { throw new RuntimeError('Variable "menuS" does not exist.'35$this->source); })()), "compositionAccueil", [], "any"falsefalsefalse35), "composition", [], "any"falsefalsefalse35));
  153.         $context['loop'] = [
  154.           'parent' => $context['_parent'],
  155.           'index0' => 0,
  156.           'index'  => 1,
  157.           'first'  => true,
  158.         ];
  159.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  160.             $length count($context['_seq']);
  161.             $context['loop']['revindex0'] = $length 1;
  162.             $context['loop']['revindex'] = $length;
  163.             $context['loop']['length'] = $length;
  164.             $context['loop']['last'] = === $length;
  165.         }
  166.         foreach ($context['_seq'] as $context["_key"] => $context["libelleSection"]) {
  167.             // line 36
  168.             echo "
  169.         ";
  170.             // line 37
  171.             $this->loadTemplate((("composantsPages/homeComponents/" $context["libelleSection"]) . ".html.twig"), "pages/home.html.twig"37)->display($context);
  172.             // line 38
  173.             echo "        ";
  174.             // line 39
  175.             echo "        ";
  176.             // line 40
  177.             echo "        ";
  178.             // line 41
  179.             echo "        ";
  180.             // line 42
  181.             echo "        ";
  182.             // line 43
  183.             echo "        ";
  184.             // line 44
  185.             echo "        ";
  186.             // line 45
  187.             echo "        ";
  188.             // line 46
  189.             echo "        ";
  190.             // line 47
  191.             echo "        ";
  192.             // line 48
  193.             echo "        ";
  194.             // line 49
  195.             echo "        ";
  196.             // line 50
  197.             echo "        ";
  198.             // line 51
  199.             echo "        ";
  200.             // line 52
  201.             echo "
  202.     ";
  203.             ++$context['loop']['index0'];
  204.             ++$context['loop']['index'];
  205.             $context['loop']['first'] = false;
  206.             if (isset($context['loop']['length'])) {
  207.                 --$context['loop']['revindex0'];
  208.                 --$context['loop']['revindex'];
  209.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  210.             }
  211.         }
  212.         $_parent $context['_parent'];
  213.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['libelleSection'], $context['_parent'], $context['loop']);
  214.         $context array_intersect_key($context$_parent) + $_parent;
  215.         
  216.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  217.         
  218.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  219.     }
  220.     // line 56
  221.     public function block_js($context, array $blocks = [])
  222.     {
  223.         $macros $this->macros;
  224.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  225.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""js"));
  226.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  227.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""js"));
  228.         // line 57
  229.         echo "        ";
  230.         $this->displayParentBlock("js"$context$blocks);
  231.         echo "
  232.     ";
  233.         
  234.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  235.         
  236.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  237.     }
  238.     public function getTemplateName()
  239.     {
  240.         return "pages/home.html.twig";
  241.     }
  242.     public function isTraitable()
  243.     {
  244.         return false;
  245.     }
  246.     public function getDebugInfo()
  247.     {
  248.         return array (  260 => 57,  250 => 56,  227 => 52,  225 => 51,  223 => 50,  221 => 49,  219 => 48,  217 => 47,  215 => 46,  213 => 45,  211 => 44,  209 => 43,  207 => 42,  205 => 41,  203 => 40,  201 => 39,  199 => 38,  197 => 37,  194 => 36,  177 => 35,  167 => 30,  164 => 29,  156 => 28,  150 => 27,  144 => 24,  139 => 22,  131 => 21,  127 => 19,  117 => 18,  107 => 17,  104 => 16,  94 => 15,  71 => 3,  61 => 2,  38 => 1,);
  249.     }
  250.     public function getSourceContext()
  251.     {
  252.         return new Source("{% extends 'base.html.twig' %}
  253. {% block css %}
  254.     {{ parent() }}
  255.     <style>
  256.         iframe img {
  257.             max-width: 250px;
  258.             max-height: 250px;
  259.         }
  260.         .slider-halfscreen {
  261.              height: 72vh;
  262.          }
  263.     </style>
  264. {% endblock %}
  265.  {% block menu %}
  266.      {% include('components/menu.html.twig') with {'transparent' : general.sliderFullscreen }%}
  267.  {% endblock %}
  268. {% block content %}
  269.         <div id=\"slider\" class=\"inspiro-slider dots-creative {% if not general.sliderFullscreen %}slider-halfscreen {% else %} slider-fullscreen{% endif %}\" data-height-xs=\"360\">
  270.             <div class=\"slide\" data-bg-image=\"{{ get_assets(asset('images/upload/' ~ general.imageAccueil))['3x'] }}\" >
  271.                 <div class=\"bg-overlay\"></div>
  272.                 <div class=\"container {{ general.positionSloganAccueil }}\">
  273.                     <div class=\"center-sm\" >
  274.                         <div class=\"slide-captions text-light\">
  275.                             <h1 data-animate=\"fadeInUp\" style=\"font-size: 44px ;color : {{ general.couleurSlogan }} !important\" class=\"slider-text\" data-animate-delay=\"600\">{{ general.slogan | raw }}</h1>
  276.                             {% if general.sousTexteSlogan != null or general.sousTexteSlogan != '' %}<p class=\"slider-text\" style=\"color : {{ general.couleurSlogan }} !important\"> {{ general.sousTexteSlogan }}</p>{% endif %}
  277.                         </div>
  278.                         <a href=\"{{ path('contact') }}\" class=\"btn btn-success\" data-animate=\"fadeInUp\" data-animate-delay=\"600\">{{ 'home_slider.button' | admintrans | raw }}</a>
  279.                     </div>
  280.                 </div>
  281.             </div>
  282.         </div>
  283.     {% for libelleSection in menuS.compositionAccueil.composition %}
  284.         {% include('composantsPages/homeComponents/'~libelleSection~'.html.twig') %}
  285.         {#{% include('composantsPages/homeComponents/quiSommesNous.html.twig') %}#}
  286.         {#    {% include('composantsPages/homeComponents/zoneDintervention.html.twig') %}#}
  287.         {#    {% include('composantsPages/homeComponents/nosChiffresCles.html.twig') %}#}
  288.         {#    {% include('composantsPages/homeComponents/nosRealisations.html.twig') %}#}
  289.         {#    {% include('composantsPages/homeComponents/nosReseauxSociauxLiens.html.twig') %}#}
  290.         {#    {% include('composantsPages/homeComponents/ilsNousFontConfiance.html.twig') %}#}
  291.         {#    {% include('composantsPages/homeComponents/nosGaranties.html.twig') %}#}
  292.         {#    {% include('composantsPages/homeComponents/notreActualite.html.twig') %}#}
  293.         {#    {% include('composantsPages/homeComponents/nosClientsTemoignent.html.twig') %}#}
  294.         {#    {% include('composantsPages/homeComponents/nosReseauxSociaux.html.twig') %}#}
  295.         {#    {% include('composantsPages/homeComponents/nosServices.html.twig') %}#}
  296.         {#    {% include('composantsPages/homeComponents/nosTarifs.html.twig') %}#}
  297.         {#    {% include('composantsPages/homeComponents/compteurs.html.twig') %}#}
  298.         {#    {% include('composantsPages/homeComponents/iconesColorees.html.twig') %}#}
  299.     {% endfor %}
  300. {% endblock %}
  301.     {% block js  %}
  302.         {{ parent() }}
  303.     {% endblock %}
  304. ""pages/home.html.twig""/var/www/vhosts/bsbroyalconstruction.fr/spidertec.fr/httpdocs/templates/pages/home.html.twig");
  305.     }
  306. }