var/cache/dev/twig/bb/bb755baa45a17759095a7a6999fb6c75.php line 38

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* Pages\PartenariatPage\pagetemplate.html.twig */
  16. class __TwigTemplate_f1149200cb712a54adf6086e9895271a extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source = $this->getSourceContext();
  27.         $this->parent = false;
  28.         $this->blocks = [
  29.         ];
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = []): iterable
  32.     {
  33.         $macros = $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Pages\\PartenariatPage\\pagetemplate.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Pages\\PartenariatPage\\pagetemplate.html.twig"));
  38.         // line 1
  39.         $context["nodeInternalNameParent"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["nodemenu"]) || array_key_exists("nodemenu", $context) ? $context["nodemenu"] : (function () { throw new RuntimeError('Variable "nodemenu" does not exist.', 1, $this->source); })()), "current", [], "any", false, false, false, 1), "node", [], "any", false, false, false, 1), "parent", [], "any", false, false, false, 1), "internalName", [], "any", false, false, false, 1);
  40.         // line 2
  41.         $context["titlePageNodeParent"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["nodemenu"]) || array_key_exists("nodemenu", $context) ? $context["nodemenu"] : (function () { throw new RuntimeError('Variable "nodemenu" does not exist.', 2, $this->source); })()), "getNodeByInternalName", [(isset($context["nodeInternalNameParent"]) || array_key_exists("nodeInternalNameParent", $context) ? $context["nodeInternalNameParent"] : (function () { throw new RuntimeError('Variable "nodeInternalNameParent" does not exist.', 2, $this->source); })()), null, true], "method", false, false, false, 2), "title", [], "any", false, false, false, 2);
  42.         // line 3
  43.         yield "<div class=\"hi-jumbo\">
  44.     <h1 class=\"jumbo-title\">";
  45.         // line 4
  46.         yield ((((isset($context["titlePageNodeParent"]) || array_key_exists("titlePageNodeParent", $context) ? $context["titlePageNodeParent"] : (function () { throw new RuntimeError('Variable "titlePageNodeParent" does not exist.', 4, $this->source); })()) == "Accueil")) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 4, $this->source); })()), "title", [], "any", false, false, false, 4), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["titlePageNodeParent"]) || array_key_exists("titlePageNodeParent", $context) ? $context["titlePageNodeParent"] : (function () { throw new RuntimeError('Variable "titlePageNodeParent" does not exist.', 4, $this->source); })()), "html", null, true)));
  47.         yield "</h1>
  48. </div>
  49. <section class=\"section\">
  50.     <div class=\"container\">
  51.         <div class=\"row\">
  52.             <div class=\"col-sm-8\">
  53.                 <div class=\"row\">
  54.                     <div class=\"col-12\">
  55.                         <article class=\"article-open\">
  56.                             <h1 class=\"art-title\">";
  57.         // line 14
  58.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 14, $this->source); })()), "title", [], "any", false, false, false, 14), "html", null, true);
  59.         yield "</h1>
  60.                             <p>";
  61.         // line 15
  62.         yield $this->extensions['Kunstmaan\NodeBundle\Twig\UrlReplaceTwigExtension']->replaceUrl(CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 15, $this->source); })()), "description", [], "any", false, false, false, 15));
  63.         yield "</p>
  64.                         </article>
  65.                     </div>
  66.                     ";
  67.         // line 18
  68.         yield $this->extensions['Kunstmaan\PagePartBundle\Twig\Extension\PagePartTwigExtension']->renderPageParts($this->env, $context, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 18, $this->source); })()), "partenariatmain");
  69.         yield "
  70.                 </div>
  71.             </div>
  72.             <div class=\"col-sm-4\">
  73.                 <aside class=\"row\">
  74.                     <div class=\"col-12\">
  75.                         ";
  76.         // line 50
  77.         yield "
  78.                         ";
  79.         // line 51
  80.         if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), $this->extensions['IUTUDC\WebsiteBundle\Twig\FunctionTwigExtension']->getLastNews()) > 0)) {
  81.             // line 52
  82.             yield "                            <div class=\"colored-aside categories\">
  83.                                 <h3>Articles récents</h3>
  84.                                 <hr />
  85.                                 <div class=\"colored-aside-text\">
  86.                                     <ul class=\"list-unstyled\">
  87.                                         ";
  88.             // line 57
  89.             $context['_parent'] = $context;
  90.             $context['_seq'] = CoreExtension::ensureTraversable($this->extensions['IUTUDC\WebsiteBundle\Twig\FunctionTwigExtension']->getLastNews());
  91.             foreach ($context['_seq'] as $context["_key"] => $context["article"]) {
  92.                 // line 58
  93.                 yield "                                            ";
  94.                 $context["articlenode"] = $this->extensions['Kunstmaan\NodeBundle\Twig\NodeTwigExtension']->getNodeTranslationFor($context["article"]);
  95.                 // line 59
  96.                 yield "                                            <li>
  97.                                                 <a href=\"";
  98.                 // line 60
  99.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("_slug", ["url" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["articlenode"]) || array_key_exists("articlenode", $context) ? $context["articlenode"] : (function () { throw new RuntimeError('Variable "articlenode" does not exist.', 60, $this->source); })()), "url", [], "any", false, false, false, 60)]), "html", null, true);
  100.                 yield "\"><strong>";
  101.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["article"], "title", [], "any", false, false, false, 60), "html", null, true);
  102.                 yield "</strong></a>
  103.                                             </li>
  104.                                         ";
  105.             }
  106.             $_parent = $context['_parent'];
  107.             unset($context['_seq'], $context['_key'], $context['article'], $context['_parent']);
  108.             $context = array_intersect_key($context, $_parent) + $_parent;
  109.             // line 63
  110.             yield "                                    </ul>
  111.                                 </div>
  112.                             </div>
  113.                         ";
  114.         }
  115.         // line 67
  116.         yield "                    </div>
  117.                 </aside>
  118.             </div>
  119.         </div>
  120.     </div>
  121. </section>
  122. ";
  123.         
  124.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  125.         
  126.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  127.         yield from [];
  128.     }
  129.     /**
  130.      * @codeCoverageIgnore
  131.      */
  132.     public function getTemplateName(): string
  133.     {
  134.         return "Pages\\PartenariatPage\\pagetemplate.html.twig";
  135.     }
  136.     /**
  137.      * @codeCoverageIgnore
  138.      */
  139.     public function isTraitable(): bool
  140.     {
  141.         return false;
  142.     }
  143.     /**
  144.      * @codeCoverageIgnore
  145.      */
  146.     public function getDebugInfo(): array
  147.     {
  148.         return array (  126 => 67,  120 => 63,  109 => 60,  106 => 59,  103 => 58,  99 => 57,  92 => 52,  90 => 51,  87 => 50,  78 => 18,  72 => 15,  68 => 14,  55 => 4,  52 => 3,  50 => 2,  48 => 1,);
  149.     }
  150.     public function getSourceContext(): Source
  151.     {
  152.         return new Source("{% set nodeInternalNameParent = nodemenu.current.node.parent.internalName %}
  153. {% set titlePageNodeParent = nodemenu.getNodeByInternalName(nodeInternalNameParent, null, true).title %}
  154. <div class=\"hi-jumbo\">
  155.     <h1 class=\"jumbo-title\">{{ titlePageNodeParent == \"Accueil\" ? page.title : titlePageNodeParent }}</h1>
  156. </div>
  157. <section class=\"section\">
  158.     <div class=\"container\">
  159.         <div class=\"row\">
  160.             <div class=\"col-sm-8\">
  161.                 <div class=\"row\">
  162.                     <div class=\"col-12\">
  163.                         <article class=\"article-open\">
  164.                             <h1 class=\"art-title\">{{ page.title }}</h1>
  165.                             <p>{{ page.description|replace_url|raw }}</p>
  166.                         </article>
  167.                     </div>
  168.                     {{ render_pageparts(page, 'partenariatmain') }}
  169.                 </div>
  170.             </div>
  171.             <div class=\"col-sm-4\">
  172.                 <aside class=\"row\">
  173.                     <div class=\"col-12\">
  174.                         {#
  175.                         <div class=\"colored-aside calendar\">
  176.                             <h3>Calendrier</h3>
  177.                             <hr />
  178.                             <div class=\"colored-aside-text\">
  179.                                 <div class=\"calendar-item\">
  180.                                     <h6 class=\"calendar-text\"><a href=\"\">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam maximus odio in fermentum rhoncus. In hac habitasse platea dictumst</a></h6>
  181.                                     <div class=\"calendar-date\">
  182.                                         Samedi 23/12/2017 à 15H00
  183.                                     </div>
  184.                                 </div>
  185.                                 <div class=\"calendar-item\">
  186.                                     <h6 class=\"calendar-text\"><a href=\"\">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam maximus odio in fermentum rhoncus. In hac habitasse platea dictumst</a></h6>
  187.                                     <div class=\"calendar-date\">
  188.                                         Samedi 23/12/2017 à 14H00
  189.                                     </div>
  190.                                 </div>
  191.                                 <div class=\"calendar-item\">
  192.                                     <h6 class=\"calendar-text\"><a href=\"\">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam maximus odio in fermentum rhoncus. In hac habitasse platea dictumst</a></h6>
  193.                                     <div class=\"calendar-date\">
  194.                                         Samedi 23/12/2017 à 13H00
  195.                                     </div>
  196.                                 </div>
  197.                             </div>
  198.                         </div>
  199.                         #}
  200.                         {% if get_last_news()|length > 0 %}
  201.                             <div class=\"colored-aside categories\">
  202.                                 <h3>Articles récents</h3>
  203.                                 <hr />
  204.                                 <div class=\"colored-aside-text\">
  205.                                     <ul class=\"list-unstyled\">
  206.                                         {% for article in get_last_news() %}
  207.                                             {% set articlenode = get_node_translation_for(article) %}
  208.                                             <li>
  209.                                                 <a href=\"{{ path('_slug', {'url': articlenode.url}) }}\"><strong>{{ article.title }}</strong></a>
  210.                                             </li>
  211.                                         {% endfor %}
  212.                                     </ul>
  213.                                 </div>
  214.                             </div>
  215.                         {% endif %}
  216.                     </div>
  217.                 </aside>
  218.             </div>
  219.         </div>
  220.     </div>
  221. </section>
  222. ", "Pages\\PartenariatPage\\pagetemplate.html.twig", "/home/u363484990/domains/iut-udc.online/public_html/templates/Pages/PartenariatPage/pagetemplate.html.twig");
  223.     }
  224. }