var/cache/dev/twig/ef/ef6ddbe39dc4e7abe8e9f8223551f219b67d06c8f3c6937595dd627a697c3634.php line 48

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. /* front/theme1/localite.html.twig */
  14. class __TwigTemplate_8f9a97d63ed812c17c0165d0e7e3d1b7e7c727faa03d86b0fe768ef6ac42b439 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.             'stylesheets' => [$this'block_stylesheets'],
  24.             'body' => [$this'block_body'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return $this->loadTemplate((("front/" twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'1$this->source); })()), "request", [], "any"falsefalsefalse1), "server", [], "any"falsefalsefalse1), "get", [=> "APP_THEME"], "method"falsefalsefalse1)) . "/base.html.twig"), "front/theme1/localite.html.twig"1);
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/theme1/localite.html.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/theme1/localite.html.twig"));
  39.         $this->getParent($context)->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  42.         
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  44.     }
  45.     // line 3
  46.     public function block_stylesheets($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  53.         // line 4
  54.         echo "      ";
  55.         $this->displayParentBlock("stylesheets"$context$blocks);
  56.         echo "
  57. ";
  58.         
  59.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  60.         
  61.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  62.     }
  63.     // line 8
  64.     public function block_body($context, array $blocks = [])
  65.     {
  66.         $macros $this->macros;
  67.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  68.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  69.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  70.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  71.         // line 9
  72.         echo "         <div class=\"page_cms page_localite pt-5\">
  73.                 <div class=\"breadcrumb-style-default\">
  74.                     <div class=\"container\">
  75.                         <div class=\"row\">
  76.                             <div class=\"col-lg-12\">
  77.                                 <div class=\"inner text-center\">
  78.                                     ";
  79.         // line 15
  80.         if ((array_key_exists("breadcrumb"$context) &&  !twig_test_empty((isset($context["breadcrumb"]) || array_key_exists("breadcrumb"$context) ? $context["breadcrumb"] : (function () { throw new RuntimeError('Variable "breadcrumb" does not exist.'15$this->source); })())))) {
  81.             // line 16
  82.             echo "                                        ";
  83.             echo twig_include($this->env$context, (("front/" twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'16$this->source); })()), "request", [], "any"falsefalsefalse16), "server", [], "any"falsefalsefalse16), "get", [=> "APP_THEME"], "method"falsefalsefalse16)) . "/partials/breadcrumb.html.twig"));
  84.             echo "
  85.                                         <h1 class=\"page-title\">";
  86.             // line 17
  87.             echo twig_escape_filter($this->env, (isset($context["title_page"]) || array_key_exists("title_page"$context) ? $context["title_page"] : (function () { throw new RuntimeError('Variable "title_page" does not exist.'17$this->source); })()), "html"nulltrue);
  88.             echo "</h1>
  89.                                     ";
  90.         }
  91.         // line 19
  92.         echo "                                </div>
  93.                             </div>
  94.                         </div>
  95.                     </div>
  96.                 </div>
  97.                 <div id=\"bloc-principal\" class=\"container-fluid wrapper\">
  98.                     <div class=\"row\">
  99.                         <div class=\"col-sm-12 text-center\">
  100.                             ";
  101.         // line 29
  102.         if ((array_key_exists("parametreRef"$context) &&  !twig_test_empty((isset($context["parametreRef"]) || array_key_exists("parametreRef"$context) ? $context["parametreRef"] : (function () { throw new RuntimeError('Variable "parametreRef" does not exist.'29$this->source); })())))) {
  103.             // line 30
  104.             echo "                                <h2>";
  105.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["parametreRef"]) || array_key_exists("parametreRef"$context) ? $context["parametreRef"] : (function () { throw new RuntimeError('Variable "parametreRef" does not exist.'30$this->source); })()), "soustitreparamref", [], "any"falsefalsefalse30), "html"nulltrue);
  106.             echo "</h2>
  107.                                 ";
  108.             // line 31
  109.             echo twig_get_attribute($this->env$this->source, (isset($context["parametreRef"]) || array_key_exists("parametreRef"$context) ? $context["parametreRef"] : (function () { throw new RuntimeError('Variable "parametreRef" does not exist.'31$this->source); })()), "description", [], "any"falsefalsefalse31);
  110.             echo "
  111.                             ";
  112.         }
  113.         // line 33
  114.         echo "                        </div>
  115.                     </div>
  116.                 </div>
  117.                 <div class=\"container-fluid\">
  118.                     ";
  119.         // line 38
  120.         if ((array_key_exists("secteurs"$context) &&  !twig_test_empty((isset($context["secteurs"]) || array_key_exists("secteurs"$context) ? $context["secteurs"] : (function () { throw new RuntimeError('Variable "secteurs" does not exist.'38$this->source); })())))) {
  121.             // line 39
  122.             echo "                        <div id=\"bloc-secteurs\" class=\"row localites\">
  123.                                 <div class=\"col-sm-12\">
  124.                                     <div class=\"list_blocs pos1\">
  125.                                         <div class=\"blocs\">
  126.                                             <section class=\"results dynam-affichage affichage1 type_affiche3 custom_affichage4\">
  127.                                                 ";
  128.             // line 44
  129.             $context['_parent'] = $context;
  130.             $context['_seq'] = twig_ensure_traversable((isset($context["secteurs"]) || array_key_exists("secteurs"$context) ? $context["secteurs"] : (function () { throw new RuntimeError('Variable "secteurs" does not exist.'44$this->source); })()));
  131.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  132.                 // line 45
  133.                 echo "                                                    ";
  134.                 $context["duree"] = 0.1;
  135.                 // line 46
  136.                 echo "                                                    ";
  137.                 $context["image_item"] = "uploads/images/place.png";
  138.                 // line 47
  139.                 echo "                                                    <div class=\"article wow zoomIn animated\" data-wow-delay=\"";
  140.                 echo twig_escape_filter($this->env, (isset($context["duree"]) || array_key_exists("duree"$context) ? $context["duree"] : (function () { throw new RuntimeError('Variable "duree" does not exist.'47$this->source); })()), "html"nulltrue);
  141.                 echo "s\" style=\"visibility: visible; animation-delay: 0.1s; animation-name: zoomIn;\">
  142.                                                         <span class=\"article-image lazyloaded\"  style=\"background-image: url(";
  143.                 // line 48
  144.                 echo twig_escape_filter($this->env, (isset($context["image_item"]) || array_key_exists("image_item"$context) ? $context["image_item"] : (function () { throw new RuntimeError('Variable "image_item" does not exist.'48$this->source); })()), "html"nulltrue);
  145.                 echo "); background-size: contain; background-position: center center; background-repeat: no-repeat;\"> </span> 
  146.                                                         <span class=\"article-cnt\">
  147.                                                             <a class=\"article-titre\" href=\"";
  148.                 // line 50
  149.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page_details_localite", ["slug" => twig_get_attribute($this->env$this->source$context["item"], "libelleurl", [], "any"falsefalsefalse50)]), "html"nulltrue);
  150.                 echo "\" title=\"";
  151.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "titresecteur", [], "any"falsefalsefalse50), "html"nulltrue);
  152.                 echo "\">";
  153.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "titresecteur", [], "any"falsefalsefalse50), "html"nulltrue);
  154.                 echo "</a>
  155.                                                             ";
  156.                 // line 51
  157.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["item"], "textgenerersecteurfinal", [], "any"falsefalsefalse51))) {
  158.                     // line 52
  159.                     echo "                                                                ";
  160.                     echo $this->extensions['App\Twig\FunctionExtension']->cutTextFunction(twig_get_attribute($this->env$this->source$context["item"], "textgenerersecteurfinal", [], "any"falsefalsefalse52));
  161.                     echo "
  162.                                                             ";
  163.                 }
  164.                 // line 54
  165.                 echo "                                                            <span class=\"article-bts\">
  166.                                                                 <button class=\"article-plus btn-fade\" onclick=\"window.open('";
  167.                 // line 55
  168.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page_details_localite", ["slug" => twig_get_attribute($this->env$this->source$context["item"], "libelleurl", [], "any"falsefalsefalse55)]), "html"nulltrue);
  169.                 echo "', '_self');\" title=\"";
  170.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "titresecteur", [], "any"falsefalsefalse55), "html"nulltrue);
  171.                 echo "\">En savoir plus</button>
  172.                                                             </span>
  173.                                                         </span>
  174.                                                     </div>
  175.                                                     ";
  176.                 // line 59
  177.                 $context["duree"] = ((isset($context["duree"]) || array_key_exists("duree"$context) ? $context["duree"] : (function () { throw new RuntimeError('Variable "duree" does not exist.'59$this->source); })()) + 0.2);
  178.                 // line 60
  179.                 echo "                                                ";
  180.             }
  181.             $_parent $context['_parent'];
  182.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  183.             $context array_intersect_key($context$_parent) + $_parent;
  184.             // line 61
  185.             echo "                                            </section>
  186.                                         </div>
  187.                                     </div>
  188.                                     ";
  189.             // line 70
  190.             echo "                                </div>
  191.                         </div>
  192.                     ";
  193.         }
  194.         // line 73
  195.         echo "                </div>
  196.            
  197.          </div> 
  198. ";
  199.         
  200.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  201.         
  202.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  203.     }
  204.     public function getTemplateName()
  205.     {
  206.         return "front/theme1/localite.html.twig";
  207.     }
  208.     public function isTraitable()
  209.     {
  210.         return false;
  211.     }
  212.     public function getDebugInfo()
  213.     {
  214.         return array (  217 => 73,  212 => 70,  207 => 61,  201 => 60,  199 => 59,  190 => 55,  187 => 54,  181 => 52,  179 => 51,  171 => 50,  166 => 48,  161 => 47,  158 => 46,  155 => 45,  151 => 44,  144 => 39,  142 => 38,  135 => 33,  130 => 31,  125 => 30,  123 => 29,  111 => 19,  106 => 17,  101 => 16,  99 => 15,  91 => 9,  81 => 8,  68 => 4,  58 => 3,  36 => 1,);
  215.     }
  216.     public function getSourceContext()
  217.     {
  218.         return new Source("{% extends \"front/\"~ app.request.server.get('APP_THEME') ~\"/base.html.twig\" %}
  219. {% block stylesheets %}
  220.       {{parent()}}
  221. {% endblock %}
  222. {% block body %}
  223.          <div class=\"page_cms page_localite pt-5\">
  224.                 <div class=\"breadcrumb-style-default\">
  225.                     <div class=\"container\">
  226.                         <div class=\"row\">
  227.                             <div class=\"col-lg-12\">
  228.                                 <div class=\"inner text-center\">
  229.                                     {% if breadcrumb is defined and breadcrumb is not empty %}
  230.                                         {{ include ('front/'~ app.request.server.get('APP_THEME') ~'/partials/breadcrumb.html.twig')}}
  231.                                         <h1 class=\"page-title\">{{title_page}}</h1>
  232.                                     {% endif %}
  233.                                 </div>
  234.                             </div>
  235.                         </div>
  236.                     </div>
  237.                 </div>
  238.                 <div id=\"bloc-principal\" class=\"container-fluid wrapper\">
  239.                     <div class=\"row\">
  240.                         <div class=\"col-sm-12 text-center\">
  241.                             {% if parametreRef is defined and parametreRef is not empty %}
  242.                                 <h2>{{parametreRef.soustitreparamref}}</h2>
  243.                                 {{parametreRef.description|raw}}
  244.                             {% endif %}
  245.                         </div>
  246.                     </div>
  247.                 </div>
  248.                 <div class=\"container-fluid\">
  249.                     {% if secteurs is defined and secteurs is not empty %}
  250.                         <div id=\"bloc-secteurs\" class=\"row localites\">
  251.                                 <div class=\"col-sm-12\">
  252.                                     <div class=\"list_blocs pos1\">
  253.                                         <div class=\"blocs\">
  254.                                             <section class=\"results dynam-affichage affichage1 type_affiche3 custom_affichage4\">
  255.                                                 {% for item in secteurs %}
  256.                                                     {% set duree = 0.1 %}
  257.                                                     {% set image_item = 'uploads/images/place.png' %}
  258.                                                     <div class=\"article wow zoomIn animated\" data-wow-delay=\"{{duree}}s\" style=\"visibility: visible; animation-delay: 0.1s; animation-name: zoomIn;\">
  259.                                                         <span class=\"article-image lazyloaded\"  style=\"background-image: url({{image_item}}); background-size: contain; background-position: center center; background-repeat: no-repeat;\"> </span> 
  260.                                                         <span class=\"article-cnt\">
  261.                                                             <a class=\"article-titre\" href=\"{{path('page_details_localite',{slug:item.libelleurl})}}\" title=\"{{item.titresecteur}}\">{{item.titresecteur}}</a>
  262.                                                             {% if item.textgenerersecteurfinal is not empty %}
  263.                                                                 {{cutText(item.textgenerersecteurfinal)|raw}}
  264.                                                             {% endif %}
  265.                                                             <span class=\"article-bts\">
  266.                                                                 <button class=\"article-plus btn-fade\" onclick=\"window.open('{{path('page_details_localite',{slug:item.libelleurl})}}', '_self');\" title=\"{{item.titresecteur}}\">En savoir plus</button>
  267.                                                             </span>
  268.                                                         </span>
  269.                                                     </div>
  270.                                                     {% set duree = duree + 0.2 %}
  271.                                                 {% endfor %}
  272.                                             </section>
  273.                                         </div>
  274.                                     </div>
  275.                                     {# <a href=\"{{path('page_details_localite',{slug:item.libelleurl})}}\">
  276.                                         <div class=\"d-flex localite_items\">
  277.                                             <div><i class=\"fa fa-map-marker\"></i></div>
  278.                                             <div>{{item.titresecteur}}</div> 
  279.                                         </div>
  280.                                     </a> #}
  281.                                 </div>
  282.                         </div>
  283.                     {% endif %}
  284.                 </div>
  285.            
  286.          </div> 
  287. {% endblock %}
  288. ""front/theme1/localite.html.twig""/var/www/vhosts/hrz.fr/oscar-multilangue.hrz.fr/templates/front/theme1/localite.html.twig");
  289.     }
  290. }