var/cache/dev/twig/4c/4c790977855bbee8621a27845491a224.php line 86

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\ContentPage\pagetemplate.html.twig */
  16. class __TwigTemplate_34958f34ab9d8434d9d63fde38befa2f 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\\ContentPage\\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\\ContentPage\\pagetemplate.html.twig"));
  38.         // line 1
  39.         $context["nodeInternalNameParent"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse1), "node", [], "any"falsefalsefalse1), "parent", [], "any"falsefalsefalse1), "internalName", [], "any"falsefalsefalse1);
  40.         // line 2
  41.         $context["titlePageNodeParent"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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); })()), nulltrue], "method"falsefalsefalse2), "title", [], "any"falsefalsefalse2);
  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"falsefalsefalse4), "html"nulltrue)) : ($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"nulltrue)));
  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\">
  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"falsefalsefalse14), "html"nulltrue);
  59.         yield "</h1>
  60.                             ";
  61.         // line 15
  62.         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.'15$this->source); })()), "main");
  63.         yield "
  64.                         </article>
  65.                     </div>
  66.                 </div>
  67.             </div>
  68.             <div class=\"col-sm-4\">
  69.                 <aside class=\"row\">
  70.                     <div class=\"col-12\">
  71.                         ";
  72.         // line 49
  73.         yield "
  74.                         ";
  75.         // line 50
  76.         if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), $this->extensions['IUTUDC\WebsiteBundle\Twig\FunctionTwigExtension']->getLastNews()) > 0)) {
  77.             // line 51
  78.             yield "                            <div class=\"colored-aside categories\">
  79.                                 <h3>Articles récents</h3>
  80.                                 <hr />
  81.                                 <div class=\"colored-aside-text\">
  82.                                     <ul class=\"list-unstyled\">
  83.                                         ";
  84.             // line 56
  85.             $context['_parent'] = $context;
  86.             $context['_seq'] = CoreExtension::ensureTraversable($this->extensions['IUTUDC\WebsiteBundle\Twig\FunctionTwigExtension']->getLastNews());
  87.             foreach ($context['_seq'] as $context["_key"] => $context["article"]) {
  88.                 // line 57
  89.                 yield "                                            ";
  90.                 $context["articlenode"] = $this->extensions['Kunstmaan\NodeBundle\Twig\NodeTwigExtension']->getNodeTranslationFor($context["article"]);
  91.                 // line 58
  92.                 yield "                                            <li>
  93.                                                 <a href=\"";
  94.                 // line 59
  95.                 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.'59$this->source); })()), "url", [], "any"falsefalsefalse59)]), "html"nulltrue);
  96.                 yield "\"><strong>";
  97.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["article"], "title", [], "any"falsefalsefalse59), "html"nulltrue);
  98.                 yield "</strong></a>
  99.                                             </li>
  100.                                         ";
  101.             }
  102.             $_parent $context['_parent'];
  103.             unset($context['_seq'], $context['_key'], $context['article'], $context['_parent']);
  104.             $context array_intersect_key($context$_parent) + $_parent;
  105.             // line 62
  106.             yield "                                    </ul>
  107.                                 </div>
  108.                             </div>
  109.                         ";
  110.         }
  111.         // line 66
  112.         yield "                    </div>
  113.                 </aside>
  114.             </div>
  115.         </div>
  116.     </div>
  117. </section>
  118. ";
  119.         
  120.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  121.         
  122.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  123.         yield from [];
  124.     }
  125.     /**
  126.      * @codeCoverageIgnore
  127.      */
  128.     public function getTemplateName(): string
  129.     {
  130.         return "Pages\\ContentPage\\pagetemplate.html.twig";
  131.     }
  132.     /**
  133.      * @codeCoverageIgnore
  134.      */
  135.     public function isTraitable(): bool
  136.     {
  137.         return false;
  138.     }
  139.     /**
  140.      * @codeCoverageIgnore
  141.      */
  142.     public function getDebugInfo(): array
  143.     {
  144.         return array (  122 => 66,  116 => 62,  105 => 59,  102 => 58,  99 => 57,  95 => 56,  88 => 51,  86 => 50,  83 => 49,  72 => 15,  68 => 14,  55 => 4,  52 => 3,  50 => 2,  48 => 1,);
  145.     }
  146.     public function getSourceContext(): Source
  147.     {
  148.         return new Source("{% set nodeInternalNameParent = nodemenu.current.node.parent.internalName %}
  149. {% set titlePageNodeParent = nodemenu.getNodeByInternalName(nodeInternalNameParent, null, true).title %}
  150. <div class=\"hi-jumbo\">
  151.     <h1 class=\"jumbo-title\">{{ titlePageNodeParent == \"Accueil\" ? page.title : titlePageNodeParent }}</h1>
  152. </div>
  153. <section class=\"section\">
  154.     <div class=\"container\">
  155.         <div class=\"row\">
  156.             <div class=\"col-sm-8\">
  157.                 <div class=\"row\">
  158.                     <div class=\"col\">
  159.                         <article class=\"article-open\">
  160.                             <h1 class=\"art-title\">{{ page.title }}</h1>
  161.                             {{ render_pageparts(page, 'main') }}
  162.                         </article>
  163.                     </div>
  164.                 </div>
  165.             </div>
  166.             <div class=\"col-sm-4\">
  167.                 <aside class=\"row\">
  168.                     <div class=\"col-12\">
  169.                         {#
  170.                         <div class=\"colored-aside calendar\">
  171.                             <h3>Calendrier</h3>
  172.                             <hr />
  173.                             <div class=\"colored-aside-text\">
  174.                                 <div class=\"calendar-item\">
  175.                                     <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>
  176.                                     <div class=\"calendar-date\">
  177.                                         Samedi 23/12/2017 à 15H00
  178.                                     </div>
  179.                                 </div>
  180.                                 <div class=\"calendar-item\">
  181.                                     <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>
  182.                                     <div class=\"calendar-date\">
  183.                                         Samedi 23/12/2017 à 14H00
  184.                                     </div>
  185.                                 </div>
  186.                                 <div class=\"calendar-item\">
  187.                                     <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>
  188.                                     <div class=\"calendar-date\">
  189.                                         Samedi 23/12/2017 à 13H00
  190.                                     </div>
  191.                                 </div>
  192.                             </div>
  193.                         </div>
  194.                         #}
  195.                         {% if get_last_news()|length > 0 %}
  196.                             <div class=\"colored-aside categories\">
  197.                                 <h3>Articles récents</h3>
  198.                                 <hr />
  199.                                 <div class=\"colored-aside-text\">
  200.                                     <ul class=\"list-unstyled\">
  201.                                         {% for article in get_last_news() %}
  202.                                             {% set articlenode = get_node_translation_for(article) %}
  203.                                             <li>
  204.                                                 <a href=\"{{ path('_slug', {'url': articlenode.url}) }}\"><strong>{{ article.title }}</strong></a>
  205.                                             </li>
  206.                                         {% endfor %}
  207.                                     </ul>
  208.                                 </div>
  209.                             </div>
  210.                         {% endif %}
  211.                     </div>
  212.                 </aside>
  213.             </div>
  214.         </div>
  215.     </div>
  216. </section>
  217. ""Pages\\ContentPage\\pagetemplate.html.twig""/home/u363484990/domains/iut-udc.online/public_html/templates/Pages/ContentPage/pagetemplate.html.twig");
  218.     }
  219. }