var/cache/dev/twig/ce/ce0f9a5ebeca3833ba836f52eb92535295dfd92211eded98fc1324f413e371a7.php line 58

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* Default/page.html.twig */
  14. class __TwigTemplate_c7c3b9021710f5d4254ef01abd5e536b10dba9e67b27df12a5bb22d8674c8fc2 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'content' => [$this'block_content'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 6
  29.         return "Default/base.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Default/page.html.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Default/page.html.twig"));
  38.         // line 1
  39.         if ((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'1$this->source); })())) {
  40.             // line 2
  41.             $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"falsefalsefalse2);
  42.             // line 3
  43.             $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"falsefalsefalse3);
  44.         }
  45.         // line 5
  46.         $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"));
  47.         // line 6
  48.         $this->parent $this->loadTemplate("Default/base.html.twig""Default/page.html.twig"6);
  49.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  50.         
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  52.         
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  54.     }
  55.     // line 7
  56.     public function block_content($context, array $blocks = [])
  57.     {
  58.         $macros $this->macros;
  59.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  61.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  62.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  63.         // line 8
  64.         echo "<style>
  65.     .title-header.title-h2{
  66.         border-bottom: var(--3px) solid var(--white-color);
  67.         padding-left: 0px;
  68.         padding-bottom: var(--10px)
  69.     }
  70. </style>
  71. <div class='relative gpadding ";
  72.         // line 15
  73.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["vt-80-in"]), "html"nulltrue);
  74.         echo " ";
  75.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), ["vt-30-in"]), "html"nulltrue);
  76.         echo " '>
  77. \t";
  78.         // line 16
  79.         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"falsefalsefalse16)) && (=== twig_compare(twig_length_filter($this->envtwig_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"falsefalsefalse16)), 20)))) {
  80.             // line 17
  81.             echo "\t";
  82.             $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"falsefalsefalse17)]);
  83.             // line 18
  84.             echo "    <div class='";
  85.             echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["flex row top"]), "html"nulltrue);
  86.             echo " ";
  87.             echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html"nulltrue);
  88.             echo "'>
  89.         ";
  90.             // line 19
  91.             $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"falsefalsefalse19) || 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"falsefalsefalse19)) || 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"falsefalsefalse19)) || (=== twig_compare(twig_length_filter($this->envtwig_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"falsefalsefalse19)), 20)));
  92.             // line 20
  93.             echo "\t\t";
  94.             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"falsefalsefalse20) || 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"falsefalsefalse20)) || 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"falsefalsefalse20))) {
  95.                 // line 21
  96.                 echo "\t\t<figure class='";
  97.                 echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["third-20 right-60 "]), "html"nulltrue);
  98.                 echo " ";
  99.                 echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), ["w100 bottom-20"]), "html"nulltrue);
  100.                 echo "'>
  101. \t\t\t";
  102.                 // line 22
  103.                 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"falsefalsefalse22)) {
  104.                     // line 23
  105.                     echo "\t\t\t<img src='";
  106.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse23), "thumbnail", [], "any"falsefalsefalse23)), "html"nulltrue);
  107.                     echo "' class='block w100 ";
  108.                     echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), [""]), "html"nulltrue);
  109.                     echo " ";
  110.                     echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html"nulltrue);
  111.                     echo "' alt=\"";
  112.                     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"falsefalsefalse23)) ? (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"falsefalsefalse23)) : ((isset($context["title"]) || array_key_exists("title"$context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.'23$this->source); })()))), "html"nulltrue);
  113.                     echo "\">
  114. \t\t\t";
  115.                 }
  116.                 // line 25
  117.                 echo "\t\t\t<h2 class='h3 success top-20'>";
  118.                 ((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"falsefalsefalse25)) ? (print (twig_escape_filter($this->envtwig_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"falsefalsefalse25), "html"nulltrue))) : (print ("")));
  119.                 echo "</h2>
  120. \t\t\t<h3 class='h4 semibold'>";
  121.                 // line 26
  122.                 ((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"falsefalsefalse26)) ? (print (twig_escape_filter($this->envtwig_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"falsefalsefalse26), "html"nulltrue))) : (print ("")));
  123.                 echo "</h3>
  124. \t\t</figure>
  125.         ";
  126.             } elseif ((=== twig_compare(twig_length_filter($this->envtwig_get_attribute($this->env$this->source,             // line 28
  127. (isset($context["content"]) || array_key_exists("content"$context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.'28$this->source); })()), "summary", [], "any"falsefalsefalse28)), 20))) {
  128.                 // line 29
  129.                 echo "\t\t<div class='bg-gray ";
  130.                 echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["third-20 right-60 vt-20-in hz-20-in"]), "html"nulltrue);
  131.                 echo " ";
  132.                 echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), ["w100 bottom-20"]), "html"nulltrue);
  133.                 echo "' style=\"max-height: calc(100vh - var(--header-height) - var(--60px)); overflow-y: auto\">
  134. \t\t\t<ul class='list p padding-20'>
  135. \t\t\t\t";
  136.                 // line 31
  137.                 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"falsefalsefalse31);
  138.                 echo "
  139. \t\t\t</ul>
  140. \t\t</div>
  141. \t\t";
  142.             }
  143.             // line 35
  144.             echo "\t\t<div class='w100 ";
  145.             echo twig_escape_filter($this->envcall_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"nulltrue);
  146.             echo " ";
  147.             echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html"nulltrue);
  148.             echo " '>
  149. \t\t\t<div class='article h6 text-justify'>
  150. \t\t\t";
  151.             // line 37
  152.             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"falsefalsefalse37);
  153.             echo "
  154. \t\t\t</div>
  155. \t\t</div>
  156.     </div>
  157. \t";
  158.         }
  159.         // line 42
  160.         echo "
  161.     ";
  162.         // line 43
  163.         if (((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'43$this->source); })()) && (=== 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"falsefalsefalse43), "a-propos")))) {
  164.             // line 44
  165.             echo "\t<div class='w100 ";
  166.             echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["top-40"]), "html"nulltrue);
  167.             echo " ";
  168.             echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html"nulltrue);
  169.             echo " '>
  170.         <h2 class=\"h3 ";
  171.             // line 45
  172.             echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["bottom-10"]), "html"nulltrue);
  173.             echo "\">Partenaires</h2>
  174.         <div class=\"\">
  175.             ";
  176.             // line 47
  177.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\DefaultController::partners", []));
  178.             echo "
  179.         </div>
  180. \t</div>
  181.     ";
  182.         }
  183.         // line 51
  184.         echo "</div>
  185. ";
  186.         
  187.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  188.         
  189.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  190.     }
  191.     public function getTemplateName()
  192.     {
  193.         return "Default/page.html.twig";
  194.     }
  195.     public function isTraitable()
  196.     {
  197.         return false;
  198.     }
  199.     public function getDebugInfo()
  200.     {
  201.         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,);
  202.     }
  203.     public function getSourceContext()
  204.     {
  205.         return new Source("{% if page %}
  206. {% set title = page.title %}
  207. {% set description = page.description %}
  208. {% endif %}
  209. {% set menu = menu ? menu : 'about' %}
  210. {% extends 'Default/base.html.twig' %}
  211. {% block content %}
  212. <style>
  213.     .title-header.title-h2{
  214.         border-bottom: var(--3px) solid var(--white-color);
  215.         padding-left: 0px;
  216.         padding-bottom: var(--10px)
  217.     }
  218. </style>
  219. <div class='relative gpadding {{desktop(\"vt-80-in\")}} {{mobile(\"vt-30-in\")}} '>
  220. \t{% if page and page.content and page.content|length > 20 %}
  221. \t{% set content = page.content|summary %}
  222.     <div class='{{desktop(\"flex row top\")}} {{mobile(\"\")}}'>
  223.         {% set hasSidebar = page.picture or page.pictureTitle or page.pictureSubtitle or content.summary|length > 20 %}
  224. \t\t{% if page.picture or page.pictureTitle or page.pictureSubtitle %}
  225. \t\t<figure class='{{desktop(\"third-20 right-60 \")}} {{mobile(\"w100 bottom-20\")}}'>
  226. \t\t\t{% if page.picture %}
  227. \t\t\t<img src='{{asset(page.picture.thumbnail)}}' class='block w100 {{desktop(\"\")}} {{mobile(\"\")}}' alt=\"{{page.pictureTitle ? page.pictureTitle : title}}\">
  228. \t\t\t{% endif %}
  229. \t\t\t<h2 class='h3 success top-20'>{{page.pictureTitle ? page.pictureTitle}}</h2>
  230. \t\t\t<h3 class='h4 semibold'>{{page.pictureSubtitle ? page.pictureSubtitle}}</h3>
  231. \t\t</figure>
  232.         {% elseif content.summary|length > 20 %}
  233. \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\">
  234. \t\t\t<ul class='list p padding-20'>
  235. \t\t\t\t{{ content.summary|raw }}
  236. \t\t\t</ul>
  237. \t\t</div>
  238. \t\t{% endif %}
  239. \t\t<div class='w100 {{desktop(hasSidebar ? \"\" : \"gpadding\")}} {{mobile(\"\")}} '>
  240. \t\t\t<div class='article h6 text-justify'>
  241. \t\t\t{{ content.content|raw }}
  242. \t\t\t</div>
  243. \t\t</div>
  244.     </div>
  245. \t{% endif %}
  246.     {% if page and page.slug ==\"a-propos\" %}
  247. \t<div class='w100 {{desktop(\"top-40\")}} {{mobile(\"\")}} '>
  248.         <h2 class=\"h3 {{desktop('bottom-10')}}\">Partenaires</h2>
  249.         <div class=\"\">
  250.             {{render(controller('App\\\\Controller\\\\DefaultController::partners',{}))}}
  251.         </div>
  252. \t</div>
  253.     {% endif %}
  254. </div>
  255. {% endblock %}
  256. ""Default/page.html.twig""/home/adminroot/www/templates/Default/page.html.twig");
  257.     }
  258. }