<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* front/theme1/localite.html.twig */
class __TwigTemplate_8f9a97d63ed812c17c0165d0e7e3d1b7e7c727faa03d86b0fe768ef6ac42b439 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheets' => [$this, 'block_stylesheets'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return $this->loadTemplate((("front/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 1), "server", [], "any", false, false, false, 1), "get", [0 => "APP_THEME"], "method", false, false, false, 1)) . "/base.html.twig"), "front/theme1/localite.html.twig", 1);
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/theme1/localite.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/theme1/localite.html.twig"));
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 4
echo " ";
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 8
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 9
echo " <div class=\"page_cms page_localite pt-5\">
<div class=\"breadcrumb-style-default\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-lg-12\">
<div class=\"inner text-center\">
";
// line 15
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); })())))) {
// line 16
echo " ";
echo twig_include($this->env, $context, (("front/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 16), "server", [], "any", false, false, false, 16), "get", [0 => "APP_THEME"], "method", false, false, false, 16)) . "/partials/breadcrumb.html.twig"));
echo "
<h1 class=\"page-title\">";
// line 17
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", null, true);
echo "</h1>
";
}
// line 19
echo " </div>
</div>
</div>
</div>
</div>
<div id=\"bloc-principal\" class=\"container-fluid wrapper\">
<div class=\"row\">
<div class=\"col-sm-12 text-center\">
";
// line 29
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); })())))) {
// line 30
echo " <h2>";
echo twig_escape_filter($this->env, 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.', 30, $this->source); })()), "soustitreparamref", [], "any", false, false, false, 30), "html", null, true);
echo "</h2>
";
// line 31
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", false, false, false, 31);
echo "
";
}
// line 33
echo " </div>
</div>
</div>
<div class=\"container-fluid\">
";
// line 38
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); })())))) {
// line 39
echo " <div id=\"bloc-secteurs\" class=\"row localites\">
<div class=\"col-sm-12\">
<div class=\"list_blocs pos1\">
<div class=\"blocs\">
<section class=\"results dynam-affichage affichage1 type_affiche3 custom_affichage4\">
";
// line 44
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 45
echo " ";
$context["duree"] = 0.1;
// line 46
echo " ";
$context["image_item"] = "uploads/images/place.png";
// line 47
echo " <div class=\"article wow zoomIn animated\" data-wow-delay=\"";
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", null, true);
echo "s\" style=\"visibility: visible; animation-delay: 0.1s; animation-name: zoomIn;\">
<span class=\"article-image lazyloaded\" style=\"background-image: url(";
// line 48
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", null, true);
echo "); background-size: contain; background-position: center center; background-repeat: no-repeat;\"> </span>
<span class=\"article-cnt\">
<a class=\"article-titre\" href=\"";
// line 50
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", false, false, false, 50)]), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "titresecteur", [], "any", false, false, false, 50), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "titresecteur", [], "any", false, false, false, 50), "html", null, true);
echo "</a>
";
// line 51
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["item"], "textgenerersecteurfinal", [], "any", false, false, false, 51))) {
// line 52
echo " ";
echo $this->extensions['App\Twig\FunctionExtension']->cutTextFunction(twig_get_attribute($this->env, $this->source, $context["item"], "textgenerersecteurfinal", [], "any", false, false, false, 52));
echo "
";
}
// line 54
echo " <span class=\"article-bts\">
<button class=\"article-plus btn-fade\" onclick=\"window.open('";
// line 55
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", false, false, false, 55)]), "html", null, true);
echo "', '_self');\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "titresecteur", [], "any", false, false, false, 55), "html", null, true);
echo "\">En savoir plus</button>
</span>
</span>
</div>
";
// line 59
$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);
// line 60
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 61
echo " </section>
</div>
</div>
";
// line 70
echo " </div>
</div>
";
}
// line 73
echo " </div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "front/theme1/localite.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends \"front/\"~ app.request.server.get('APP_THEME') ~\"/base.html.twig\" %}
{% block stylesheets %}
{{parent()}}
{% endblock %}
{% block body %}
<div class=\"page_cms page_localite pt-5\">
<div class=\"breadcrumb-style-default\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-lg-12\">
<div class=\"inner text-center\">
{% if breadcrumb is defined and breadcrumb is not empty %}
{{ include ('front/'~ app.request.server.get('APP_THEME') ~'/partials/breadcrumb.html.twig')}}
<h1 class=\"page-title\">{{title_page}}</h1>
{% endif %}
</div>
</div>
</div>
</div>
</div>
<div id=\"bloc-principal\" class=\"container-fluid wrapper\">
<div class=\"row\">
<div class=\"col-sm-12 text-center\">
{% if parametreRef is defined and parametreRef is not empty %}
<h2>{{parametreRef.soustitreparamref}}</h2>
{{parametreRef.description|raw}}
{% endif %}
</div>
</div>
</div>
<div class=\"container-fluid\">
{% if secteurs is defined and secteurs is not empty %}
<div id=\"bloc-secteurs\" class=\"row localites\">
<div class=\"col-sm-12\">
<div class=\"list_blocs pos1\">
<div class=\"blocs\">
<section class=\"results dynam-affichage affichage1 type_affiche3 custom_affichage4\">
{% for item in secteurs %}
{% set duree = 0.1 %}
{% set image_item = 'uploads/images/place.png' %}
<div class=\"article wow zoomIn animated\" data-wow-delay=\"{{duree}}s\" style=\"visibility: visible; animation-delay: 0.1s; animation-name: zoomIn;\">
<span class=\"article-image lazyloaded\" style=\"background-image: url({{image_item}}); background-size: contain; background-position: center center; background-repeat: no-repeat;\"> </span>
<span class=\"article-cnt\">
<a class=\"article-titre\" href=\"{{path('page_details_localite',{slug:item.libelleurl})}}\" title=\"{{item.titresecteur}}\">{{item.titresecteur}}</a>
{% if item.textgenerersecteurfinal is not empty %}
{{cutText(item.textgenerersecteurfinal)|raw}}
{% endif %}
<span class=\"article-bts\">
<button class=\"article-plus btn-fade\" onclick=\"window.open('{{path('page_details_localite',{slug:item.libelleurl})}}', '_self');\" title=\"{{item.titresecteur}}\">En savoir plus</button>
</span>
</span>
</div>
{% set duree = duree + 0.2 %}
{% endfor %}
</section>
</div>
</div>
{# <a href=\"{{path('page_details_localite',{slug:item.libelleurl})}}\">
<div class=\"d-flex localite_items\">
<div><i class=\"fa fa-map-marker\"></i></div>
<div>{{item.titresecteur}}</div>
</div>
</a> #}
</div>
</div>
{% endif %}
</div>
</div>
{% endblock %}
", "front/theme1/localite.html.twig", "/var/www/vhosts/hrz.fr/oscar-multilangue.hrz.fr/templates/front/theme1/localite.html.twig");
}
}