<?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/page_partenaires.html.twig */
class __TwigTemplate_e2752c8272f6a7108f85c6eb7f73f577 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'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/page_partenaires.html.twig", 1);
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/theme1/page_partenaires.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/theme1/page_partenaires.html.twig"));
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 4
echo "
<div class=\"page_cms pt-5\">
<div class=\"breadcrumb-style-default\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-lg-12\">
<div class=\"inner text-center\">
<ol class=\"breadcrumb d-flex justify-content-center\" itemscope itemtype=\"http://schema.org/BreadcrumbList\">
<li class=\"breadcrumb-item\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a href=\"";
// line 12
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("index_page_home");
echo "\" itemprop=\"item\"><span itemprop=\"name\">Accueil</span></a><meta itemprop=\"position\" content=\"1\" /></li>
<li class=\"breadcrumb-item active\" aria-current=\"page\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><span itemprop=\"name\">";
// line 13
echo "Partenaires";
echo "</span><meta itemprop=\"position\" content=\"2\" /></li>
</ol>
<h1 class=\"page-title\">";
// line 15
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["parametre"]) || array_key_exists("parametre", $context) ? $context["parametre"] : (function () { throw new RuntimeError('Variable "parametre" does not exist.', 15, $this->source); })()), "titre", [], "any", false, false, false, 15), "html", null, true);
echo "</h1>
</div>
</div>
</div>
</div>
</div>
<div class=\"container-fluid wrapper mt-3\">
<div class=\"row gx-5 py-2\">
<div class=\"col-sm-12 text-justify my-4\">
";
// line 25
echo twig_get_attribute($this->env, $this->source, (isset($context["parametre"]) || array_key_exists("parametre", $context) ? $context["parametre"] : (function () { throw new RuntimeError('Variable "parametre" does not exist.', 25, $this->source); })()), "texte", [], "any", false, false, false, 25);
echo "
</div>
</div>
</div>
";
// line 30
if (( !twig_test_empty((isset($context["liste_partenaire"]) || array_key_exists("liste_partenaire", $context) ? $context["liste_partenaire"] : (function () { throw new RuntimeError('Variable "liste_partenaire" does not exist.', 30, $this->source); })())) || !twig_test_empty((isset($context["liste_partenaire_invitations"]) || array_key_exists("liste_partenaire_invitations", $context) ? $context["liste_partenaire_invitations"] : (function () { throw new RuntimeError('Variable "liste_partenaire_invitations" does not exist.', 30, $this->source); })())))) {
// line 31
echo " <div class=\"items-partenaire\">
";
// line 32
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["liste_partenaire"]) || array_key_exists("liste_partenaire", $context) ? $context["liste_partenaire"] : (function () { throw new RuntimeError('Variable "liste_partenaire" does not exist.', 32, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["partenaire"]) {
// line 33
echo " ";
$context["image"] = (((twig_get_attribute($this->env, $this->source, $context["partenaire"], "image", [], "any", false, false, false, 33) != "")) ? (twig_get_attribute($this->env, $this->source, $context["partenaire"], "image", [], "any", false, false, false, 33)) : (("/uploads/images/" . twig_get_attribute($this->env, $this->source, $this->extensions['App\Twig\ParametreSiteExtension']->ParametreSiteFunction(), "imagevide", [], "any", false, false, false, 33))));
// line 34
echo " <div class=\"col-lg-4 col-md-6\">
<a href=\"";
// line 35
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page_detail_partenaire", ["slug" => twig_get_attribute($this->env, $this->source, $context["partenaire"], "slug", [], "any", false, false, false, 35)]), "html", null, true);
echo "\" class=\"item-partenaire text-dark text-hover-dark\">
";
// line 36
if ((twig_get_attribute($this->env, $this->source, $context["partenaire"], "image", [], "any", false, false, false, 36) != "")) {
// line 37
echo " <div class=\"item-image\">
<img alt=\"";
// line 38
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["partenaire"], "titre", [], "any", false, false, false, 38), "html", null, true);
echo "\" title=\"";
echo twig_get_attribute($this->env, $this->source, $context["partenaire"], "titre", [], "any", false, false, false, 38);
echo "\" src=\"";
echo twig_escape_filter($this->env, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 38, $this->source); })()), "html", null, true);
echo "\" class=\"img-fluid\"/>
</div>
";
}
// line 41
echo "
<div class=\"item-content\">
";
// line 43
if ((twig_get_attribute($this->env, $this->source, $context["partenaire"], "titre", [], "any", false, false, false, 43) != "")) {
echo " <div class=\"titre-item\">";
echo twig_get_attribute($this->env, $this->source, $context["partenaire"], "titre", [], "any", false, false, false, 43);
echo "</div>";
}
// line 44
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["partenaire"], "text", [], "any", false, false, false, 44)) {
echo " <div class=\"text-item\">";
echo twig_get_attribute($this->env, $this->source, $this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(twig_get_attribute($this->env, $this->source, $context["partenaire"], "text", [], "any", false, false, false, 44)), "truncate", [0 => 150], "method", false, false, false, 44);
echo "...</div>";
}
// line 45
echo " </div>
</a>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['partenaire'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 49
echo "
";
// line 50
if ((((isset($context["liste_partenaire_invitations"]) || array_key_exists("liste_partenaire_invitations", $context) ? $context["liste_partenaire_invitations"] : (function () { throw new RuntimeError('Variable "liste_partenaire_invitations" does not exist.', 50, $this->source); })()) != null) && !twig_test_empty((isset($context["liste_partenaire_invitations"]) || array_key_exists("liste_partenaire_invitations", $context) ? $context["liste_partenaire_invitations"] : (function () { throw new RuntimeError('Variable "liste_partenaire_invitations" does not exist.', 50, $this->source); })())))) {
// line 51
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["liste_partenaire_invitations"]) || array_key_exists("liste_partenaire_invitations", $context) ? $context["liste_partenaire_invitations"] : (function () { throw new RuntimeError('Variable "liste_partenaire_invitations" does not exist.', 51, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 52
echo "
";
// line 53
$context["titre"] = "";
// line 54
echo " ";
if (((twig_get_attribute($this->env, $this->source, $context["item"], "domaine_sender", [], "any", false, false, false, 54) == (isset($context["baseurl"]) || array_key_exists("baseurl", $context) ? $context["baseurl"] : (function () { throw new RuntimeError('Variable "baseurl" does not exist.', 54, $this->source); })())) && twig_get_attribute($this->env, $this->source, $context["item"], "titre_reciver", [], "any", true, true, false, 54))) {
echo "
";
// line 55
$context["titre"] = twig_get_attribute($this->env, $this->source, $context["item"], "titre_reciver", [], "any", false, false, false, 55);
// line 56
echo " ";
} elseif (((twig_get_attribute($this->env, $this->source, $context["item"], "domaine_reciver", [], "any", false, false, false, 56) == (isset($context["baseurl"]) || array_key_exists("baseurl", $context) ? $context["baseurl"] : (function () { throw new RuntimeError('Variable "baseurl" does not exist.', 56, $this->source); })())) && twig_get_attribute($this->env, $this->source, $context["item"], "titre_sender", [], "any", true, true, false, 56))) {
echo "
";
// line 57
$context["titre"] = twig_get_attribute($this->env, $this->source, $context["item"], "titre_sender", [], "any", false, false, false, 57);
// line 58
echo " ";
}
// line 59
echo "
";
// line 60
$context["texte"] = "";
// line 61
echo " ";
if (((twig_get_attribute($this->env, $this->source, $context["item"], "domaine_sender", [], "any", false, false, false, 61) == (isset($context["baseurl"]) || array_key_exists("baseurl", $context) ? $context["baseurl"] : (function () { throw new RuntimeError('Variable "baseurl" does not exist.', 61, $this->source); })())) && twig_get_attribute($this->env, $this->source, $context["item"], "texte_reciver", [], "any", true, true, false, 61))) {
echo "
";
// line 62
$context["texte"] = twig_get_attribute($this->env, $this->source, $context["item"], "texte_reciver", [], "any", false, false, false, 62);
// line 63
echo " ";
} elseif (((twig_get_attribute($this->env, $this->source, $context["item"], "domaine_reciver", [], "any", false, false, false, 63) == (isset($context["baseurl"]) || array_key_exists("baseurl", $context) ? $context["baseurl"] : (function () { throw new RuntimeError('Variable "baseurl" does not exist.', 63, $this->source); })())) && twig_get_attribute($this->env, $this->source, $context["item"], "texte_sender", [], "any", true, true, false, 63))) {
echo "
";
// line 64
$context["texte"] = twig_get_attribute($this->env, $this->source, $context["item"], "texte_sender", [], "any", false, false, false, 64);
// line 65
echo " ";
}
// line 66
echo "
";
// line 67
$context["image_url"] = "";
// line 68
echo " ";
if (((twig_get_attribute($this->env, $this->source, $context["item"], "domaine_sender", [], "any", false, false, false, 68) == (isset($context["baseurl"]) || array_key_exists("baseurl", $context) ? $context["baseurl"] : (function () { throw new RuntimeError('Variable "baseurl" does not exist.', 68, $this->source); })())) && twig_get_attribute($this->env, $this->source, $context["item"], "image_reciver", [], "any", true, true, false, 68))) {
echo "
";
// line 69
$context["image_url"] = twig_get_attribute($this->env, $this->source, $context["item"], "image_reciver", [], "any", false, false, false, 69);
// line 70
echo " ";
} elseif (((twig_get_attribute($this->env, $this->source, $context["item"], "domaine_reciver", [], "any", false, false, false, 70) == (isset($context["baseurl"]) || array_key_exists("baseurl", $context) ? $context["baseurl"] : (function () { throw new RuntimeError('Variable "baseurl" does not exist.', 70, $this->source); })())) && twig_get_attribute($this->env, $this->source, $context["item"], "image_sender", [], "any", true, true, false, 70))) {
echo "
";
// line 71
$context["image_url"] = twig_get_attribute($this->env, $this->source, $context["item"], "image_sender", [], "any", false, false, false, 71);
// line 72
echo " ";
}
// line 73
echo "
<div class=\"col-lg-4 col-md-6\">
<a href=\"";
// line 75
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page_detail_partenaire", ["slug" => (($this->extensions['App\Twig\FunctionExtension']->TitreSlugify((isset($context["titre"]) || array_key_exists("titre", $context) ? $context["titre"] : (function () { throw new RuntimeError('Variable "titre" does not exist.', 75, $this->source); })())) . "-") . twig_get_attribute($this->env, $this->source, $context["item"], "id", [], "any", false, false, false, 75)), "p" => "hr"]), "html", null, true);
echo "\" class=\"item-partenaire text-dark text-hover-dark\">
";
// line 76
if ((isset($context["image_url"]) || array_key_exists("image_url", $context) ? $context["image_url"] : (function () { throw new RuntimeError('Variable "image_url" does not exist.', 76, $this->source); })())) {
echo "
<div class=\"item-image\">
<img alt=\"";
// line 78
echo twig_escape_filter($this->env, (isset($context["titre"]) || array_key_exists("titre", $context) ? $context["titre"] : (function () { throw new RuntimeError('Variable "titre" does not exist.', 78, $this->source); })()), "html", null, true);
echo "\" title=\"";
echo (isset($context["titre"]) || array_key_exists("titre", $context) ? $context["titre"] : (function () { throw new RuntimeError('Variable "titre" does not exist.', 78, $this->source); })());
echo "\" src=\"";
echo twig_escape_filter($this->env, (isset($context["image_url"]) || array_key_exists("image_url", $context) ? $context["image_url"] : (function () { throw new RuntimeError('Variable "image_url" does not exist.', 78, $this->source); })()), "html", null, true);
echo "\" class=\"img-fluid\"/>
</div>
";
}
// line 81
echo "
<div class=\"item-content\">
";
// line 83
if ((isset($context["titre"]) || array_key_exists("titre", $context) ? $context["titre"] : (function () { throw new RuntimeError('Variable "titre" does not exist.', 83, $this->source); })())) {
echo "
<div class=\"titre-item\">";
// line 84
echo (isset($context["titre"]) || array_key_exists("titre", $context) ? $context["titre"] : (function () { throw new RuntimeError('Variable "titre" does not exist.', 84, $this->source); })());
echo "</div>
";
}
// line 86
echo "
";
// line 87
if ((isset($context["texte"]) || array_key_exists("texte", $context) ? $context["texte"] : (function () { throw new RuntimeError('Variable "texte" does not exist.', 87, $this->source); })())) {
echo "
<div class=\"text-item\">";
// line 88
echo twig_get_attribute($this->env, $this->source, $this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString((isset($context["texte"]) || array_key_exists("texte", $context) ? $context["texte"] : (function () { throw new RuntimeError('Variable "texte" does not exist.', 88, $this->source); })())), "truncate", [0 => 150], "method", false, false, false, 88);
echo "...</div>
";
}
// line 90
echo "
</div>
</a>
</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 95
echo " ";
}
// line 96
echo "
</div>
";
}
// line 99
echo "</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "front/theme1/page_partenaires.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 309 => 99, 304 => 96, 301 => 95, 291 => 90, 286 => 88, 282 => 87, 279 => 86, 274 => 84, 270 => 83, 266 => 81, 256 => 78, 251 => 76, 247 => 75, 243 => 73, 240 => 72, 238 => 71, 233 => 70, 231 => 69, 226 => 68, 224 => 67, 221 => 66, 218 => 65, 216 => 64, 211 => 63, 209 => 62, 204 => 61, 202 => 60, 199 => 59, 196 => 58, 194 => 57, 189 => 56, 187 => 55, 182 => 54, 180 => 53, 177 => 52, 172 => 51, 170 => 50, 167 => 49, 158 => 45, 151 => 44, 145 => 43, 141 => 41, 131 => 38, 128 => 37, 126 => 36, 122 => 35, 119 => 34, 116 => 33, 112 => 32, 109 => 31, 107 => 30, 99 => 25, 86 => 15, 81 => 13, 77 => 12, 67 => 4, 57 => 3, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"front/\"~ app.request.server.get('APP_THEME') ~\"/base.html.twig\" %}
{% block body %}
<div class=\"page_cms pt-5\">
<div class=\"breadcrumb-style-default\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-lg-12\">
<div class=\"inner text-center\">
<ol class=\"breadcrumb d-flex justify-content-center\" itemscope itemtype=\"http://schema.org/BreadcrumbList\">
<li class=\"breadcrumb-item\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a href=\"{{path('index_page_home')}}\" itemprop=\"item\"><span itemprop=\"name\">Accueil</span></a><meta itemprop=\"position\" content=\"1\" /></li>
<li class=\"breadcrumb-item active\" aria-current=\"page\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><span itemprop=\"name\">{{'Partenaires'}}</span><meta itemprop=\"position\" content=\"2\" /></li>
</ol>
<h1 class=\"page-title\">{{parametre.titre}}</h1>
</div>
</div>
</div>
</div>
</div>
<div class=\"container-fluid wrapper mt-3\">
<div class=\"row gx-5 py-2\">
<div class=\"col-sm-12 text-justify my-4\">
{{parametre.texte|raw}}
</div>
</div>
</div>
{% if liste_partenaire is not empty or liste_partenaire_invitations is not empty %}
<div class=\"items-partenaire\">
{% for partenaire in liste_partenaire %}
{% set image = partenaire.image != ''? partenaire.image:'/uploads/images/'~ ParametreSite().imagevide %}
<div class=\"col-lg-4 col-md-6\">
<a href=\"{{path('page_detail_partenaire',{'slug':partenaire.slug})}}\" class=\"item-partenaire text-dark text-hover-dark\">
{% if partenaire.image != '' %}
<div class=\"item-image\">
<img alt=\"{{partenaire.titre}}\" title=\"{{partenaire.titre|raw}}\" src=\"{{image}}\" class=\"img-fluid\"/>
</div>
{% endif %}
<div class=\"item-content\">
{% if partenaire.titre != \"\" %} <div class=\"titre-item\">{{partenaire.titre|raw}}</div>{% endif %}
{% if partenaire.text %} <div class=\"text-item\">{{partenaire.text|u.truncate(150)|raw}}...</div>{% endif %}
</div>
</a>
</div>
{% endfor %}
{% if liste_partenaire_invitations != null and liste_partenaire_invitations is not empty %}
{% for item in liste_partenaire_invitations %}
{% set titre = \"\" %}
{% if item.domaine_sender == baseurl and item.titre_reciver is defined %}
{% set titre = item.titre_reciver %}
{% elseif item.domaine_reciver == baseurl and item.titre_sender is defined %}
{% set titre = item.titre_sender %}
{% endif %}
{% set texte = \"\" %}
{% if item.domaine_sender == baseurl and item.texte_reciver is defined %}
{% set texte = item.texte_reciver %}
{% elseif item.domaine_reciver == baseurl and item.texte_sender is defined %}
{% set texte = item.texte_sender %}
{% endif %}
{% set image_url = \"\" %}
{% if item.domaine_sender == baseurl and item.image_reciver is defined %}
{% set image_url = item.image_reciver %}
{% elseif item.domaine_reciver == baseurl and item.image_sender is defined %}
{% set image_url = item.image_sender %}
{% endif %}
<div class=\"col-lg-4 col-md-6\">
<a href=\"{{ path('page_detail_partenaire', {'slug': titre_slugify(titre)~'-'~item.id, 'p' : 'hr'}) }}\" class=\"item-partenaire text-dark text-hover-dark\">
{% if image_url %}
<div class=\"item-image\">
<img alt=\"{{titre}}\" title=\"{{titre|raw}}\" src=\"{{image_url}}\" class=\"img-fluid\"/>
</div>
{% endif %}
<div class=\"item-content\">
{% if titre %}
<div class=\"titre-item\">{{titre|raw}}</div>
{% endif %}
{% if texte %}
<div class=\"text-item\">{{texte|u.truncate(150)|raw}}...</div>
{% endif %}
</div>
</a>
</div>
{% endfor %}
{% endif %}
</div>
{% endif %}
</div>
{% endblock %}
", "front/theme1/page_partenaires.html.twig", "/var/www/vhosts/hrz.fr/new-site.hrz.fr/templates/front/theme1/page_partenaires.html.twig");
}
}