<?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_details.html.twig */
class __TwigTemplate_f8c3de086019cfcd23a4d176dea2085cad2d5f5b83e5ad86f7ebd34dd22fbe03 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_details.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_details.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_details.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_activite 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, twig_get_attribute($this->env, $this->source, twig_last($this->env, (isset($context["breadcrumb"]) || array_key_exists("breadcrumb", $context) ? $context["breadcrumb"] : (function () { throw new RuntimeError('Variable "breadcrumb" does not exist.', 17, $this->source); })())), "name", [], "any", false, false, false, 17), "html", null, true);
echo "</h1>
";
}
// line 19
echo " </div>
</div>
</div>
</div>
</div>
<div class=\"container-fluid wrapper\">
<div class=\"row\">
<div class=\"col-sm-12 text-center\">
<h2>";
// line 29
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["secteur"]) || array_key_exists("secteur", $context) ? $context["secteur"] : (function () { throw new RuntimeError('Variable "secteur" does not exist.', 29, $this->source); })()), "titre", [], "any", false, false, false, 29), "html", null, true);
echo "</h2>
<div>";
// line 30
echo twig_get_attribute($this->env, $this->source, (isset($context["secteur"]) || array_key_exists("secteur", $context) ? $context["secteur"] : (function () { throw new RuntimeError('Variable "secteur" does not exist.', 30, $this->source); })()), "textgenerersecteurfinal", [], "any", false, false, false, 30);
echo "</div>
</div>
</div>
<div class=\"row mt-2\">
";
// line 36
if ((array_key_exists("resultats", $context) && (twig_length_filter($this->env, twig_array_filter($this->env, (isset($context["resultats"]) || array_key_exists("resultats", $context) ? $context["resultats"] : (function () { throw new RuntimeError('Variable "resultats" does not exist.', 36, $this->source); })()), function ($__v__) use ($context, $macros) { $context["v"] = $__v__; return (twig_get_attribute($this->env, $this->source, (isset($context["v"]) || array_key_exists("v", $context) ? $context["v"] : (function () { throw new RuntimeError('Variable "v" does not exist.', 36, $this->source); })()), "type", [], "any", false, false, false, 36) == "activite_primaire"); })) > 0))) {
// line 37
echo " <div class=\"col-sm-12 col-md-6\">
<div class=\"panel panel-success mb-4\">
<div class=\"panel-heading\"><span class=\"panel-title\">Activité principale</span></div>
<div class=\"panel-body\">
<ul>
";
// line 42
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_array_filter($this->env, (isset($context["resultats"]) || array_key_exists("resultats", $context) ? $context["resultats"] : (function () { throw new RuntimeError('Variable "resultats" does not exist.', 42, $this->source); })()), function ($__v__) use ($context, $macros) { $context["v"] = $__v__; return (twig_get_attribute($this->env, $this->source, (isset($context["v"]) || array_key_exists("v", $context) ? $context["v"] : (function () { throw new RuntimeError('Variable "v" does not exist.', 42, $this->source); })()), "type", [], "any", false, false, false, 42) == "activite_primaire"); }));
foreach ($context['_seq'] as $context["_key"] => $context["item_url"]) {
// line 43
echo " <li>
<a href=\"";
// line 44
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => twig_get_attribute($this->env, $this->source, $context["item_url"], "slug", [], "any", false, false, false, 44)]), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item_url"], "titre", [], "any", false, false, false, 44), "html", null, true);
echo "\" target=\"_top\"> ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item_url"], "titre", [], "any", false, false, false, 44), "html", null, true);
echo "</a>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item_url'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 46
echo "
</ul>
</div>
</div>
</div>
";
}
// line 52
echo "
";
// line 53
if ((array_key_exists("resultats", $context) && (twig_length_filter($this->env, twig_array_filter($this->env, (isset($context["resultats"]) || array_key_exists("resultats", $context) ? $context["resultats"] : (function () { throw new RuntimeError('Variable "resultats" does not exist.', 53, $this->source); })()), function ($__v__) use ($context, $macros) { $context["v"] = $__v__; return (twig_get_attribute($this->env, $this->source, (isset($context["v"]) || array_key_exists("v", $context) ? $context["v"] : (function () { throw new RuntimeError('Variable "v" does not exist.', 53, $this->source); })()), "type", [], "any", false, false, false, 53) == "activite_secondaire"); })) > 0))) {
// line 54
echo " <div class=\"col-sm-12 col-md-6\">
<div class=\"panel panel-success mb-4\">
<div class=\"panel-heading\"><span class=\"panel-title\">Activité secondaire</span></div>
<div class=\"panel-body\">
<ul>
";
// line 59
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_array_filter($this->env, (isset($context["resultats"]) || array_key_exists("resultats", $context) ? $context["resultats"] : (function () { throw new RuntimeError('Variable "resultats" does not exist.', 59, $this->source); })()), function ($__v__) use ($context, $macros) { $context["v"] = $__v__; return (twig_get_attribute($this->env, $this->source, (isset($context["v"]) || array_key_exists("v", $context) ? $context["v"] : (function () { throw new RuntimeError('Variable "v" does not exist.', 59, $this->source); })()), "type", [], "any", false, false, false, 59) == "activite_secondaire"); }));
foreach ($context['_seq'] as $context["_key"] => $context["item_url"]) {
// line 60
echo " <li>
<a href=\"";
// line 61
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => twig_get_attribute($this->env, $this->source, $context["item_url"], "slug", [], "any", false, false, false, 61)]), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item_url"], "titre", [], "any", false, false, false, 61), "html", null, true);
echo "\" target=\"_top\"> ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item_url"], "titre", [], "any", false, false, false, 61), "html", null, true);
echo "</a>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item_url'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 63
echo "
</ul>
</div>
</div>
</div>
";
}
// line 69
echo "
";
// line 71
if ((array_key_exists("resultats", $context) && (twig_length_filter($this->env, twig_array_filter($this->env, (isset($context["resultats"]) || array_key_exists("resultats", $context) ? $context["resultats"] : (function () { throw new RuntimeError('Variable "resultats" does not exist.', 71, $this->source); })()), function ($__v__) use ($context, $macros) { $context["v"] = $__v__; return (twig_get_attribute($this->env, $this->source, (isset($context["v"]) || array_key_exists("v", $context) ? $context["v"] : (function () { throw new RuntimeError('Variable "v" does not exist.', 71, $this->source); })()), "type", [], "any", false, false, false, 71) == "article"); })) > 0))) {
// line 72
echo " <div class=\"col-sm-12 col-md-6\">
<div class=\"panel panel-success mb-4\">
<div class=\"panel-heading\"><span class=\"panel-title\">Article</span></div>
<div class=\"panel-body\">
<ul>
";
// line 77
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_array_filter($this->env, (isset($context["resultats"]) || array_key_exists("resultats", $context) ? $context["resultats"] : (function () { throw new RuntimeError('Variable "resultats" does not exist.', 77, $this->source); })()), function ($__v__) use ($context, $macros) { $context["v"] = $__v__; return (twig_get_attribute($this->env, $this->source, (isset($context["v"]) || array_key_exists("v", $context) ? $context["v"] : (function () { throw new RuntimeError('Variable "v" does not exist.', 77, $this->source); })()), "type", [], "any", false, false, false, 77) == "article"); }));
foreach ($context['_seq'] as $context["_key"] => $context["item_url"]) {
// line 78
echo " <li>
<a href=\"";
// line 79
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page", ["slug" => twig_get_attribute($this->env, $this->source, $context["item_url"], "slug", [], "any", false, false, false, 79)]), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item_url"], "titre", [], "any", false, false, false, 79), "html", null, true);
echo "\" target=\"_top\"> ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item_url"], "titre", [], "any", false, false, false, 79), "html", null, true);
echo "</a>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item_url'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 81
echo "
</ul>
</div>
</div>
</div>
";
}
// line 86
echo "
</div>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "front/theme1/localite_details.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 254 => 86, 246 => 81, 233 => 79, 230 => 78, 226 => 77, 219 => 72, 217 => 71, 213 => 69, 205 => 63, 192 => 61, 189 => 60, 185 => 59, 178 => 54, 176 => 53, 173 => 52, 165 => 46, 152 => 44, 149 => 43, 145 => 42, 138 => 37, 136 => 36, 127 => 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_activite 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\">{{breadcrumb|last.name}}</h1>
{% endif %}
</div>
</div>
</div>
</div>
</div>
<div class=\"container-fluid wrapper\">
<div class=\"row\">
<div class=\"col-sm-12 text-center\">
<h2>{{secteur.titre}}</h2>
<div>{{secteur.textgenerersecteurfinal|raw}}</div>
</div>
</div>
<div class=\"row mt-2\">
{% if resultats is defined and resultats|filter(v => v.type == 'activite_primaire')|length > 0 %}
<div class=\"col-sm-12 col-md-6\">
<div class=\"panel panel-success mb-4\">
<div class=\"panel-heading\"><span class=\"panel-title\">Activité principale</span></div>
<div class=\"panel-body\">
<ul>
{% for item_url in resultats|filter(v => v.type == 'activite_primaire') %}
<li>
<a href=\"{{path('page',{slug:item_url.slug})}}\" title=\"{{item_url.titre}}\" target=\"_top\"> {{item_url.titre}}</a>
</li>
{% endfor %}
</ul>
</div>
</div>
</div>
{% endif %}
{% if resultats is defined and resultats|filter(v => v.type == 'activite_secondaire')|length > 0 %}
<div class=\"col-sm-12 col-md-6\">
<div class=\"panel panel-success mb-4\">
<div class=\"panel-heading\"><span class=\"panel-title\">Activité secondaire</span></div>
<div class=\"panel-body\">
<ul>
{% for item_url in resultats|filter(v => v.type == 'activite_secondaire') %}
<li>
<a href=\"{{path('page',{slug:item_url.slug})}}\" title=\"{{item_url.titre}}\" target=\"_top\"> {{item_url.titre}}</a>
</li>
{% endfor %}
</ul>
</div>
</div>
</div>
{% endif %}
{% if resultats is defined and resultats|filter(v => v.type == 'article')|length > 0 %}
<div class=\"col-sm-12 col-md-6\">
<div class=\"panel panel-success mb-4\">
<div class=\"panel-heading\"><span class=\"panel-title\">Article</span></div>
<div class=\"panel-body\">
<ul>
{% for item_url in resultats|filter(v => v.type == 'article') %}
<li>
<a href=\"{{path('page',{slug:item_url.slug})}}\" title=\"{{item_url.titre}}\" target=\"_top\"> {{item_url.titre}}</a>
</li>
{% endfor %}
</ul>
</div>
</div>
</div>
{% endif %}
</div>
</div>
</div>
{% endblock %}
", "front/theme1/localite_details.html.twig", "/var/www/vhosts/hrz.fr/oscar-multilangue.hrz.fr/templates/front/theme1/localite_details.html.twig");
}
}