var/cache/dev/twig/eb/eba3ad75365337163fc4f93feec67de4.php line 40

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. /* Frontend/Events/list_events.html.twig */
  15. class __TwigTemplate_037cb203bfd633c720c56b11fe2f6711 extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->blocks = [
  24.             'seoheader' => [$this'block_seoheader'],
  25.             'body' => [$this'block_body'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "Frontend/base.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Frontend/Events/list_events.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Frontend/Events/list_events.html.twig"));
  40.         $this->parent $this->loadTemplate("Frontend/base.html.twig""Frontend/Events/list_events.html.twig"1);
  41.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_seoheader($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""seoheader"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""seoheader"));
  55.         // line 4
  56.         yield "    ";
  57.         yield from         $this->loadTemplate("Frontend/Render/head/_seopage.html.twig""Frontend/Events/list_events.html.twig"4)->unwrap()->yield(CoreExtension::merge($context, ["page_selected" => (isset($context["page_selected"]) || array_key_exists("page_selected"$context) ? $context["page_selected"] : (function () { throw new RuntimeError('Variable "page_selected" does not exist.'4$this->source); })())]));
  58.         
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  60.         
  61.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  62.         return; yield '';
  63.     }
  64.     // line 11
  65.     public function block_body($context, array $blocks = [])
  66.     {
  67.         $macros $this->macros;
  68.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  69.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  70.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  71.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  72.         // line 12
  73.         yield "
  74. \t<div class=\"content_pages ";
  75.         // line 13
  76.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["page_selected"]) || array_key_exists("page_selected"$context) ? $context["page_selected"] : (function () { throw new RuntimeError('Variable "page_selected" does not exist.'13$this->source); })()), "slug", [], "any"falsefalsefalse13), "html"nulltrue);
  77.         yield "\">
  78.         
  79. \t\t";
  80.         // line 16
  81.         yield from         $this->loadTemplate("Frontend/Render/_menu_pages.html.twig""Frontend/Events/list_events.html.twig"16)->unwrap()->yield(CoreExtension::merge($context, ["page_selected" => (isset($context["page_selected"]) || array_key_exists("page_selected"$context) ? $context["page_selected"] : (function () { throw new RuntimeError('Variable "page_selected" does not exist.'16$this->source); })())]));
  82.         // line 17
  83.         yield "
  84.         ";
  85.         // line 18
  86.         if ( !Twig\Extension\CoreExtension::testEmpty((isset($context["list_events"]) || array_key_exists("list_events"$context) ? $context["list_events"] : (function () { throw new RuntimeError('Variable "list_events" does not exist.'18$this->source); })()))) {
  87.             // line 19
  88.             yield "
  89.             <div class=\"events_home\">
  90.                 <div class=\"container\">
  91.                     <div class=\"row\">
  92.                         ";
  93.             // line 24
  94.             $context['_parent'] = $context;
  95.             $context['_seq'] = CoreExtension::ensureTraversable((isset($context["list_events"]) || array_key_exists("list_events"$context) ? $context["list_events"] : (function () { throw new RuntimeError('Variable "list_events" does not exist.'24$this->source); })()));
  96.             foreach ($context['_seq'] as $context["_key"] => $context["event"]) {
  97.                 // line 25
  98.                 yield "                            <div class=\"col-lg-6 col-md-6\">
  99.                                 <div class=\"item_events_home\">
  100.                                     <a href=\"";
  101.                 // line 27
  102.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("event_selected", ["slug" => CoreExtension::getAttribute($this->env$this->source$context["event"], "slug", [], "any"falsefalsefalse27)]), "html"nulltrue);
  103.                 yield "\" class=\"img_item_events_home\">
  104.                                         <img class=\"img-fluid\" src=\"";
  105.                 // line 28
  106.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->env->getRuntime('Vich\UploaderBundle\Twig\Extension\UploaderExtensionRuntime')->asset($context["event"], "imageFile")), "html"nulltrue);
  107.                 yield "\" alt=\"";
  108.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["event"], "html"nulltrue);
  109.                 yield "\">
  110.                                     </a>
  111.                                     <div class=\"text_item_events_home\">
  112.                                         <label>
  113.                                             ";
  114.                 // line 32
  115.                 if (( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source$context["event"], "datePublier", [], "any"falsefalsefalse32)) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source$context["event"], "dateFinal", [], "any"falsefalsefalse32)))) {
  116.                     // line 33
  117.                     yield "                                                ";
  118.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env$this->source$context["event"], "datePublier", [], "any"falsefalsefalse33), "d"), "html"nulltrue);
  119.                     yield " - ";
  120.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["event"], "dateFormat", [(isset($context["selected_lang"]) || array_key_exists("selected_lang"$context) ? $context["selected_lang"] : (function () { throw new RuntimeError('Variable "selected_lang" does not exist.'33$this->source); })())], "method"falsefalsefalse33), "html"nulltrue);
  121.                     yield "
  122.                                             ";
  123.                 }
  124.                 // line 35
  125.                 yield "                                        </label>
  126.                                         <h3><a href=\"";
  127.                 // line 36
  128.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("event_selected", ["slug" => CoreExtension::getAttribute($this->env$this->source$context["event"], "slug", [], "any"falsefalsefalse36)]), "html"nulltrue);
  129.                 yield "\">";
  130.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["event"], "html"nulltrue);
  131.                 yield "</a></h3>
  132.                                         <span><img class=\"img-fluid\" src=\"/assets/img/location.png\" alt=\"\">";
  133.                 // line 37
  134.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["event"], "location", [], "any"falsefalsefalse37), "html"nulltrue);
  135.                 yield "</span>
  136.                                     </div>
  137.                                 </div>
  138.                             </div>
  139.                         ";
  140.             }
  141.             $_parent $context['_parent'];
  142.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['event'], $context['_parent'], $context['loop']);
  143.             $context array_intersect_key($context$_parent) + $_parent;
  144.             // line 42
  145.             yield "                        
  146.                     </div>
  147.                     
  148. \t\t            ";
  149.             // line 45
  150.             yield from             $this->loadTemplate("Frontend/Render/_pagination.html.twig""Frontend/Events/list_events.html.twig"45)->unwrap()->yield($context);
  151.             // line 46
  152.             yield "
  153.                 </div>
  154.             </div>
  155.         ";
  156.         } else {
  157.             // line 51
  158.             yield "            <div class=\"container\">
  159.                 <p>nothing</p>
  160.             </div>
  161.         ";
  162.         }
  163.         // line 55
  164.         yield "
  165. \t</div>
  166. ";
  167.         
  168.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  169.         
  170.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  171.         return; yield '';
  172.     }
  173.     /**
  174.      * @codeCoverageIgnore
  175.      */
  176.     public function getTemplateName()
  177.     {
  178.         return "Frontend/Events/list_events.html.twig";
  179.     }
  180.     /**
  181.      * @codeCoverageIgnore
  182.      */
  183.     public function isTraitable()
  184.     {
  185.         return false;
  186.     }
  187.     /**
  188.      * @codeCoverageIgnore
  189.      */
  190.     public function getDebugInfo()
  191.     {
  192.         return array (  186 => 55,  180 => 51,  173 => 46,  171 => 45,  166 => 42,  155 => 37,  149 => 36,  146 => 35,  138 => 33,  136 => 32,  127 => 28,  123 => 27,  119 => 25,  115 => 24,  108 => 19,  106 => 18,  103 => 17,  101 => 16,  95 => 13,  92 => 12,  82 => 11,  70 => 4,  60 => 3,  37 => 1,);
  193.     }
  194.     public function getSourceContext()
  195.     {
  196.         return new Source("{% extends 'Frontend/base.html.twig' %}
  197. {% block seoheader %}
  198.     {% include 'Frontend/Render/head/_seopage.html.twig' with {'page_selected':page_selected} %}
  199. {% endblock %}
  200. {#% block switcher %}
  201. \t{% include 'Frontend/Render/_switcher.html.twig'%}
  202. {% endblock switcher %#}
  203. {% block body %}
  204. \t<div class=\"content_pages {{page_selected.slug}}\">
  205.         
  206. \t\t{% include 'Frontend/Render/_menu_pages.html.twig' with {'page_selected':page_selected} %}
  207.         {% if list_events is not empty %}
  208.             <div class=\"events_home\">
  209.                 <div class=\"container\">
  210.                     <div class=\"row\">
  211.                         {% for event in list_events %}
  212.                             <div class=\"col-lg-6 col-md-6\">
  213.                                 <div class=\"item_events_home\">
  214.                                     <a href=\"{{ path('event_selected',{'slug':event.slug}) }}\" class=\"img_item_events_home\">
  215.                                         <img class=\"img-fluid\" src=\"{{ asset (vich_uploader_asset(event,'imageFile')) }}\" alt=\"{{event}}\">
  216.                                     </a>
  217.                                     <div class=\"text_item_events_home\">
  218.                                         <label>
  219.                                             {% if event.datePublier is not empty and event.dateFinal is not empty %}
  220.                                                 {{event.datePublier|date('d')}} - {{event.dateFormat(selected_lang)}}
  221.                                             {% endif %}
  222.                                         </label>
  223.                                         <h3><a href=\"{{ path('event_selected',{'slug':event.slug}) }}\">{{event}}</a></h3>
  224.                                         <span><img class=\"img-fluid\" src=\"/assets/img/location.png\" alt=\"\">{{event.location}}</span>
  225.                                     </div>
  226.                                 </div>
  227.                             </div>
  228.                         {% endfor %}
  229.                         
  230.                     </div>
  231.                     
  232. \t\t            {% include 'Frontend/Render/_pagination.html.twig' %}
  233.                 </div>
  234.             </div>
  235.         {% else %}
  236.             <div class=\"container\">
  237.                 <p>nothing</p>
  238.             </div>
  239.         {% endif %}
  240. \t</div>
  241. {% endblock body %}""Frontend/Events/list_events.html.twig""/home/site/wwwroot/templates/Frontend/Events/list_events.html.twig");
  242.     }
  243. }