<?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;
/* Default/page.html.twig */
class __TwigTemplate_c7c3b9021710f5d4254ef01abd5e536b10dba9e67b27df12a5bb22d8674c8fc2 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 6
return "Default/base.html.twig";
}
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", "Default/page.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Default/page.html.twig"));
// line 1
if ((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 1, $this->source); })())) {
// line 2
$context["title"] = twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 2, $this->source); })()), "title", [], "any", false, false, false, 2);
// line 3
$context["description"] = twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 3, $this->source); })()), "description", [], "any", false, false, false, 3);
}
// line 5
$context["menu"] = (((isset($context["menu"]) || array_key_exists("menu", $context) ? $context["menu"] : (function () { throw new RuntimeError('Variable "menu" does not exist.', 5, $this->source); })())) ? ((isset($context["menu"]) || array_key_exists("menu", $context) ? $context["menu"] : (function () { throw new RuntimeError('Variable "menu" does not exist.', 5, $this->source); })())) : ("about"));
// line 6
$this->parent = $this->loadTemplate("Default/base.html.twig", "Default/page.html.twig", 6);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 7
public function block_content($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", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 8
echo "<style>
.title-header.title-h2{
border-bottom: var(--3px) solid var(--white-color);
padding-left: 0px;
padding-bottom: var(--10px)
}
</style>
<div class='relative gpadding ";
// line 15
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["vt-80-in"]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), ["vt-30-in"]), "html", null, true);
echo " '>
\t";
// line 16
if ((((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 16, $this->source); })()) && twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 16, $this->source); })()), "content", [], "any", false, false, false, 16)) && (1 === twig_compare(twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 16, $this->source); })()), "content", [], "any", false, false, false, 16)), 20)))) {
// line 17
echo "\t";
$context["content"] = call_user_func_array($this->env->getFilter('summary')->getCallable(), [twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 17, $this->source); })()), "content", [], "any", false, false, false, 17)]);
// line 18
echo " <div class='";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["flex row top"]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html", null, true);
echo "'>
";
// line 19
$context["hasSidebar"] = (((twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 19, $this->source); })()), "picture", [], "any", false, false, false, 19) || twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 19, $this->source); })()), "pictureTitle", [], "any", false, false, false, 19)) || twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 19, $this->source); })()), "pictureSubtitle", [], "any", false, false, false, 19)) || (1 === twig_compare(twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 19, $this->source); })()), "summary", [], "any", false, false, false, 19)), 20)));
// line 20
echo "\t\t";
if (((twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 20, $this->source); })()), "picture", [], "any", false, false, false, 20) || twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 20, $this->source); })()), "pictureTitle", [], "any", false, false, false, 20)) || twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 20, $this->source); })()), "pictureSubtitle", [], "any", false, false, false, 20))) {
// line 21
echo "\t\t<figure class='";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["third-20 right-60 "]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), ["w100 bottom-20"]), "html", null, true);
echo "'>
\t\t\t";
// line 22
if (twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 22, $this->source); })()), "picture", [], "any", false, false, false, 22)) {
// line 23
echo "\t\t\t<img src='";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 23, $this->source); })()), "picture", [], "any", false, false, false, 23), "thumbnail", [], "any", false, false, false, 23)), "html", null, true);
echo "' class='block w100 ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), [""]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html", null, true);
echo "' alt=\"";
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 23, $this->source); })()), "pictureTitle", [], "any", false, false, false, 23)) ? (twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 23, $this->source); })()), "pictureTitle", [], "any", false, false, false, 23)) : ((isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 23, $this->source); })()))), "html", null, true);
echo "\">
\t\t\t";
}
// line 25
echo "\t\t\t<h2 class='h3 success top-20'>";
((twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 25, $this->source); })()), "pictureTitle", [], "any", false, false, false, 25)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 25, $this->source); })()), "pictureTitle", [], "any", false, false, false, 25), "html", null, true))) : (print ("")));
echo "</h2>
\t\t\t<h3 class='h4 semibold'>";
// line 26
((twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 26, $this->source); })()), "pictureSubtitle", [], "any", false, false, false, 26)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 26, $this->source); })()), "pictureSubtitle", [], "any", false, false, false, 26), "html", null, true))) : (print ("")));
echo "</h3>
\t\t</figure>
";
} elseif ((1 === twig_compare(twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, // line 28
(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 28, $this->source); })()), "summary", [], "any", false, false, false, 28)), 20))) {
// line 29
echo "\t\t<div class='bg-gray ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["third-20 right-60 vt-20-in hz-20-in"]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), ["w100 bottom-20"]), "html", null, true);
echo "' style=\"max-height: calc(100vh - var(--header-height) - var(--60px)); overflow-y: auto\">
\t\t\t<ul class='list p padding-20'>
\t\t\t\t";
// line 31
echo twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 31, $this->source); })()), "summary", [], "any", false, false, false, 31);
echo "
\t\t\t</ul>
\t\t</div>
\t\t";
}
// line 35
echo "\t\t<div class='w100 ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), [(((isset($context["hasSidebar"]) || array_key_exists("hasSidebar", $context) ? $context["hasSidebar"] : (function () { throw new RuntimeError('Variable "hasSidebar" does not exist.', 35, $this->source); })())) ? ("") : ("gpadding"))]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html", null, true);
echo " '>
\t\t\t<div class='article h6 text-justify'>
\t\t\t";
// line 37
echo twig_get_attribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 37, $this->source); })()), "content", [], "any", false, false, false, 37);
echo "
\t\t\t</div>
\t\t</div>
</div>
\t";
}
// line 42
echo "
";
// line 43
if (((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 43, $this->source); })()) && (0 === twig_compare(twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 43, $this->source); })()), "slug", [], "any", false, false, false, 43), "a-propos")))) {
// line 44
echo "\t<div class='w100 ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["top-40"]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html", null, true);
echo " '>
<h2 class=\"h3 ";
// line 45
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["bottom-10"]), "html", null, true);
echo "\">Partenaires</h2>
<div class=\"\">
";
// line 47
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\DefaultController::partners", []));
echo "
</div>
\t</div>
";
}
// line 51
echo "</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Default/page.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 198 => 51, 191 => 47, 186 => 45, 179 => 44, 177 => 43, 174 => 42, 166 => 37, 158 => 35, 151 => 31, 143 => 29, 141 => 28, 136 => 26, 131 => 25, 119 => 23, 117 => 22, 110 => 21, 107 => 20, 105 => 19, 98 => 18, 95 => 17, 93 => 16, 87 => 15, 78 => 8, 68 => 7, 57 => 6, 55 => 5, 52 => 3, 50 => 2, 48 => 1, 35 => 6,);
}
public function getSourceContext()
{
return new Source("{% if page %}
{% set title = page.title %}
{% set description = page.description %}
{% endif %}
{% set menu = menu ? menu : 'about' %}
{% extends 'Default/base.html.twig' %}
{% block content %}
<style>
.title-header.title-h2{
border-bottom: var(--3px) solid var(--white-color);
padding-left: 0px;
padding-bottom: var(--10px)
}
</style>
<div class='relative gpadding {{desktop(\"vt-80-in\")}} {{mobile(\"vt-30-in\")}} '>
\t{% if page and page.content and page.content|length > 20 %}
\t{% set content = page.content|summary %}
<div class='{{desktop(\"flex row top\")}} {{mobile(\"\")}}'>
{% set hasSidebar = page.picture or page.pictureTitle or page.pictureSubtitle or content.summary|length > 20 %}
\t\t{% if page.picture or page.pictureTitle or page.pictureSubtitle %}
\t\t<figure class='{{desktop(\"third-20 right-60 \")}} {{mobile(\"w100 bottom-20\")}}'>
\t\t\t{% if page.picture %}
\t\t\t<img src='{{asset(page.picture.thumbnail)}}' class='block w100 {{desktop(\"\")}} {{mobile(\"\")}}' alt=\"{{page.pictureTitle ? page.pictureTitle : title}}\">
\t\t\t{% endif %}
\t\t\t<h2 class='h3 success top-20'>{{page.pictureTitle ? page.pictureTitle}}</h2>
\t\t\t<h3 class='h4 semibold'>{{page.pictureSubtitle ? page.pictureSubtitle}}</h3>
\t\t</figure>
{% elseif content.summary|length > 20 %}
\t\t<div class='bg-gray {{desktop(\"third-20 right-60 vt-20-in hz-20-in\")}} {{mobile(\"w100 bottom-20\")}}' style=\"max-height: calc(100vh - var(--header-height) - var(--60px)); overflow-y: auto\">
\t\t\t<ul class='list p padding-20'>
\t\t\t\t{{ content.summary|raw }}
\t\t\t</ul>
\t\t</div>
\t\t{% endif %}
\t\t<div class='w100 {{desktop(hasSidebar ? \"\" : \"gpadding\")}} {{mobile(\"\")}} '>
\t\t\t<div class='article h6 text-justify'>
\t\t\t{{ content.content|raw }}
\t\t\t</div>
\t\t</div>
</div>
\t{% endif %}
{% if page and page.slug ==\"a-propos\" %}
\t<div class='w100 {{desktop(\"top-40\")}} {{mobile(\"\")}} '>
<h2 class=\"h3 {{desktop('bottom-10')}}\">Partenaires</h2>
<div class=\"\">
{{render(controller('App\\\\Controller\\\\DefaultController::partners',{}))}}
</div>
\t</div>
{% endif %}
</div>
{% endblock %}
", "Default/page.html.twig", "/home/adminroot/www/templates/Default/page.html.twig");
}
}