<?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/activites.html.twig */
class __TwigTemplate_217b0da875f9482f8e70fff133bb27aafeec6a17fd60e2697625d726f94b29ad 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/activites.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/activites.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/activites.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, (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 class=\"container-fluid wrapper\">
<div id=\"bloc-principal\" class=\"row\">
<div class=\"col-sm-12 text-center\">
";
// line 28
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.', 28, $this->source); })())))) {
// line 29
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.', 29, $this->source); })()), "soustitreparamref", [], "any", false, false, false, 29), "html", null, true);
echo "</h2>
";
// line 30
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.', 30, $this->source); })()), "description", [], "any", false, false, false, 30);
echo "
";
}
// line 32
echo " </div>
</div>
";
// line 35
if ((array_key_exists("activites", $context) && !twig_test_empty((isset($context["activites"]) || array_key_exists("activites", $context) ? $context["activites"] : (function () { throw new RuntimeError('Variable "activites" does not exist.', 35, $this->source); })())))) {
// line 36
echo " <div id=\"bloc-activites\" class=\"row\">
";
// line 37
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["activites"]) || array_key_exists("activites", $context) ? $context["activites"] : (function () { throw new RuntimeError('Variable "activites" does not exist.', 37, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 38
echo " <div class=\"col-sm-12 col-md-6\">
<div class=\"panel panel-success mb-4\">
<div class=\"panel-heading\"><span class=\"panel-title\"> <a href=\"";
// line 40
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"], "slug", [], "any", false, false, false, 40)]), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "titre", [], "any", false, false, false, 40), "html", null, true);
echo "\" target=\"_top\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "titre", [], "any", false, false, false, 40), "html", null, true);
echo "</a></span></div>
<div class=\"panel-body\">
";
// line 42
if ((twig_get_attribute($this->env, $this->source, $context["item"], "urls_principal", [], "any", true, true, false, 42) && !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["item"], "urls_principal", [], "any", false, false, false, 42)))) {
// line 43
echo " <ul>
";
// line 44
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_array_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "urls_principal", [], "any", false, false, false, 44), 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.', 44, $this->source); })()), "type", [], "any", false, false, false, 44) == "page_ref"); }));
foreach ($context['_seq'] as $context["_key"] => $context["item_url"]) {
// line 45
echo " <li>
<a href=\"";
// line 46
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, 46)]), "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, 46), "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, 46), "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 48
echo "
";
// line 50
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_array_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "urls_principal", [], "any", false, false, false, 50), 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.', 50, $this->source); })()), "type", [], "any", false, false, false, 50) == "page_actualite"); }));
foreach ($context['_seq'] as $context["_key"] => $context["item_url"]) {
// line 51
echo " <li>
<a href=\"";
// line 52
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, 52)]), "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, 52), "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, 52), "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 54
echo "
";
// line 57
if ((twig_get_attribute($this->env, $this->source, $context["item"], "activite_secondiare", [], "any", true, true, false, 57) && !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["item"], "activite_secondiare", [], "any", false, false, false, 57)))) {
// line 58
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["item"], "activite_secondiare", [], "any", false, false, false, 58));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 59
echo " <div class=\"sous_activite\">
";
// line 61
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["item"], "urls", [], "any", true, true, false, 61) && !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["item"], "urls", [], "any", false, false, false, 61)))) {
// line 62
echo " <ul>
";
// line 63
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_array_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "urls", [], "any", false, false, false, 63), 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.', 63, $this->source); })()), "type", [], "any", false, false, false, 63) == "page_ref"); }));
foreach ($context['_seq'] as $context["_key"] => $context["item_url"]) {
// line 64
echo " <li>
<i class=\"fa fa-long-arrow-right\" aria-hidden=\"true\"></i> <a href=\"";
// line 65
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, 65)]), "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, 65), "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, 65), "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 68
echo "
";
// line 69
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_array_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "urls", [], "any", false, false, false, 69), 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.', 69, $this->source); })()), "type", [], "any", false, false, false, 69) == "page_actualite"); }));
foreach ($context['_seq'] as $context["_key"] => $context["item_url"]) {
// line 70
echo " <li>
<i class=\"fa fa-long-arrow-right\" aria-hidden=\"true\"></i> <a href=\"";
// line 71
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, 71)]), "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, 71), "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, 71), "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 74
echo " </ul>
";
}
// line 76
echo " </div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 78
echo " ";
}
echo "
</ul>
";
}
// line 81
echo " </div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 85
echo " </div>
";
}
// line 87
echo "
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "front/theme1/activites.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 305 => 87, 301 => 85, 292 => 81, 285 => 78, 278 => 76, 274 => 74, 261 => 71, 258 => 70, 254 => 69, 251 => 68, 238 => 65, 235 => 64, 231 => 63, 228 => 62, 225 => 61, 222 => 59, 217 => 58, 215 => 57, 210 => 54, 197 => 52, 194 => 51, 190 => 50, 186 => 48, 173 => 46, 170 => 45, 166 => 44, 163 => 43, 161 => 42, 152 => 40, 148 => 38, 144 => 37, 141 => 36, 139 => 35, 134 => 32, 129 => 30, 124 => 29, 122 => 28, 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\">{{title_page}}</h1>
{% endif %}
</div>
</div>
</div>
</div>
</div>
<div class=\"container-fluid wrapper\">
<div id=\"bloc-principal\" 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>
{% if activites is defined and activites is not empty %}
<div id=\"bloc-activites\" class=\"row\">
{% for item in activites %}
<div class=\"col-sm-12 col-md-6\">
<div class=\"panel panel-success mb-4\">
<div class=\"panel-heading\"><span class=\"panel-title\"> <a href=\"{{path('page',{slug:item.slug})}}\" title=\"{{item.titre}}\" target=\"_top\">{{item.titre}}</a></span></div>
<div class=\"panel-body\">
{% if item.urls_principal is defined and item.urls_principal is not empty %}
<ul>
{% for item_url in item.urls_principal|filter(v => v.type == \"page_ref\") %}
<li>
<a href=\"{{path('page', {slug:item_url.slug})}}\" title=\"{{item_url.titre}}\" target=\"_top\"> {{item_url.titre}}</a>
</li>
{% endfor %}
{% for item_url in item.urls_principal|filter(v => v.type == \"page_actualite\") %}
<li>
<a href=\"{{path('page', {slug:item_url.slug})}}\" title=\"{{item_url.titre}}\" target=\"_top\"> {{item_url.titre}}</a>
</li>
{% endfor %}
{% if item.activite_secondiare is defined and item.activite_secondiare is not empty %}
{% for item in item.activite_secondiare %}
<div class=\"sous_activite\">
{# <a href=\"{{path('page',{slug:item.slug})}}\"><i class=\"fa fa-long-arrow-right\" aria-hidden=\"true\"></i> {{item.titre}}</a> #}
{% if item.urls is defined and item.urls is not empty %}
<ul>
{% for item_url in item.urls|filter(v => v.type == \"page_ref\") %}
<li>
<i class=\"fa fa-long-arrow-right\" aria-hidden=\"true\"></i> <a href=\"{{path('page',{slug:item_url.slug})}}\" title=\"{{item_url.titre}}\" target=\"_top\"> {{item_url.titre}}</a>
</li>
{% endfor %}
{% for item_url in item.urls|filter(v => v.type == \"page_actualite\") %}
<li>
<i class=\"fa fa-long-arrow-right\" aria-hidden=\"true\"></i> <a href=\"{{path('page',{slug:item_url.slug})}}\" title=\"{{item_url.titre}}\" target=\"_top\"> {{item_url.titre}}</a>
</li>
{% endfor %}
</ul>
{% endif %}
</div>
{% endfor %}
{% endif %}
</ul>
{% endif %}
</div>
</div>
</div>
{% endfor %}
</div>
{% endif %}
</div>
</div>
{% endblock %}
", "front/theme1/activites.html.twig", "/var/www/vhosts/hrz.fr/oscar-multilangue.hrz.fr/templates/front/theme1/activites.html.twig");
}
}