var/cache/dev/twig/1b/1b5eb390de7418ca51e9123cf4db9e07.php line 51

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. /* events/detail.html.twig */
  14. class __TwigTemplate_0bc8f48d6fa2029a72d8c478282defd1 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.             'inlinescripts' => [$this'block_inlinescripts'],
  25.         ];
  26.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  27.         $this->checkSecurity();
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "layout.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""events/detail.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""events/detail.html.twig"));
  41.         $this->parent $this->loadTemplate("layout.html.twig""events/detail.html.twig"1);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  45.         
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47.     }
  48.     // line 3
  49.     public function block_content($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  56.         // line 4
  57.         echo "<main id=\"page\" role=\"main\">
  58.     <header class=\"apk-page-header-container\">
  59.         <div class=\"uk-container apk-container-1200\">
  60.             <div class=\"apk-page-header uk-width-4-5@m\">
  61.                 <h1 class=\"uk-h1\">";
  62.         // line 9
  63.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'9$this->source); })()), "title", [], "any"falsefalsetrue9), 9$this->source), "html"nulltrue);
  64.         echo "</h1>
  65.                 <div class=\"apk-page-header--text\">
  66.                     ";
  67.         // line 11
  68.         if ((twig_date_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'11$this->source); })()), "eventdate", [], "any"falsefalsetrue11), "j F Y") == twig_date_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'11$this->source); })()), "eventdateend", [], "any"falsefalsetrue11), "j F Y"))) {
  69.             // line 12
  70.             echo "                        ";
  71.             echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'12$this->source); })()), "eventdate", [], "any"falsefalsetrue12), 12$this->source), "j F Y"), "html"nulltrue);
  72.             echo "
  73.                     ";
  74.         } else {
  75.             // line 14
  76.             echo "                        ";
  77.             echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'14$this->source); })()), "eventdate", [], "any"falsefalsetrue14), 14$this->source), "j F Y"), "html"nulltrue);
  78.             echo " <span><svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\" data-svg=\"arrow-right\"><polyline fill=\"none\" stroke=\"#000\" points=\"10 5 15 9.5 10 14\"></polyline><line fill=\"none\" stroke=\"#000\" x1=\"4\" y1=\"9.5\" x2=\"15\" y2=\"9.5\"></line></svg></span> ";
  79.             echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'14$this->source); })()), "eventdateend", [], "any"falsefalsetrue14), 14$this->source), "j F Y"), "html"nulltrue);
  80.             echo "
  81.                     ";
  82.         }
  83.         // line 16
  84.         echo "                </div>
  85.             </div>
  86.         </div>
  87.     </header>
  88.     <article class=\"uk-container atp-container-1200 uk-margin-large-bottom\">
  89.         ";
  90.         // line 22
  91.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'22$this->source); })()), "newsthumb", [], "any"falsefalsetrue22))) {
  92.             // line 23
  93.             echo "        <div class=\"uk-grid uk-child-width-1-2@m\" uk-grid>
  94.             <div class=\"uk-first-column\">
  95.                 <div class=\"apk-event-detail--thumb\">
  96.                     <img src=\"";
  97.             // line 26
  98.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'26$this->source); })()), "newsthumb", [], "any"falsefalsetrue26), "thumbnail", [=> "global-image"], "method"falsefalsetrue26), 26$this->source), "html"nulltrue);
  99.             echo "\" width=\"580\" alt=\"";
  100.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'26$this->source); })()), "title", [], "any"falsefalsetrue26), 26$this->source), "html"nulltrue);
  101.             echo "\"/>
  102.                 </div>
  103.             </div>
  104.             ";
  105.         } else {
  106.             // line 30
  107.             echo "            <div class=\"uk-grid uk-child-width-1-1\" uk-grid>
  108.                 ";
  109.         }
  110.         // line 32
  111.         echo "                <div>
  112.                     <div class=\"uk-margin-small-top\">
  113.                         ";
  114.         // line 34
  115.         echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'34$this->source); })()), "content", [], "any"falsefalsetrue34), 34$this->source);
  116.         echo "
  117.                     </div>
  118.                 </div>
  119.             </div>
  120.             ";
  121.         // line 38
  122.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'38$this->source); })()), "imageGallery", [], "any"falsefalsetrue38))) {
  123.             // line 39
  124.             echo "                <div class=\"apk-event-detail--gallery uk-margin-medium-top uk-margin-large-bottom uk-grid-small uk-child-width-1-2@s uk-child-width-1-4@m uk-child-width-1-5@l uk-flex-center uk-text-center\" uk-grid uk-lightbox=\"animation: slide\">
  125.                     ";
  126.             // line 40
  127.             $context['_parent'] = $context;
  128.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'40$this->source); })()), "imageGallery", [], "any"falsefalsetrue40));
  129.             foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
  130.                 // line 41
  131.                 echo "                        <div uk-lightbox=\"animation: slide\">
  132.                         <a href=\"";
  133.                 // line 42
  134.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["image"], "thumbnail", [=> "global-image"], "method"falsefalsetrue42), 42$this->source), "html"nulltrue);
  135.                 echo "\">
  136.                             ";
  137.                 // line 43
  138.                 echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["image"], "thumbnail", [=> "global-image"], "method"falsefalsetrue43), "html", [=> ["imgAttributes" => ["width" => 255]]], "method"falsefalsetrue43), 43$this->source);
  139.                 echo "
  140.                         </a>
  141.                     </div>
  142.                     ";
  143.             }
  144.             $_parent $context['_parent'];
  145.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
  146.             $context array_intersect_key($context$_parent) + $_parent;
  147.             // line 47
  148.             echo "                </div>
  149.             ";
  150.         }
  151.         // line 49
  152.         echo "    </article>
  153. </main>
  154. ";
  155.         
  156.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  157.         
  158.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  159.     }
  160.     // line 53
  161.     public function block_inlinescripts($context, array $blocks = [])
  162.     {
  163.         $macros $this->macros;
  164.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  165.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""inlinescripts"));
  166.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  167.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""inlinescripts"));
  168.         // line 54
  169.         echo "
  170. ";
  171.         
  172.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  173.         
  174.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  175.     }
  176.     public function getTemplateName()
  177.     {
  178.         return "events/detail.html.twig";
  179.     }
  180.     public function isTraitable()
  181.     {
  182.         return false;
  183.     }
  184.     public function getDebugInfo()
  185.     {
  186.         return array (  190 => 54,  180 => 53,  168 => 49,  164 => 47,  154 => 43,  150 => 42,  147 => 41,  143 => 40,  140 => 39,  138 => 38,  131 => 34,  127 => 32,  123 => 30,  114 => 26,  109 => 23,  107 => 22,  99 => 16,  91 => 14,  85 => 12,  83 => 11,  78 => 9,  71 => 4,  61 => 3,  38 => 1,);
  187.     }
  188.     public function getSourceContext()
  189.     {
  190.         return new Source("{% extends \"layout.html.twig\" %}
  191. {% block content %}
  192. <main id=\"page\" role=\"main\">
  193.     <header class=\"apk-page-header-container\">
  194.         <div class=\"uk-container apk-container-1200\">
  195.             <div class=\"apk-page-header uk-width-4-5@m\">
  196.                 <h1 class=\"uk-h1\">{{ event.title }}</h1>
  197.                 <div class=\"apk-page-header--text\">
  198.                     {% if event.eventdate|date('j F Y') == event.eventdateend|date('j F Y') %}
  199.                         {{ event.eventdate|date('j F Y') }}
  200.                     {% else %}
  201.                         {{ event.eventdate|date('j F Y') }} <span><svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\" data-svg=\"arrow-right\"><polyline fill=\"none\" stroke=\"#000\" points=\"10 5 15 9.5 10 14\"></polyline><line fill=\"none\" stroke=\"#000\" x1=\"4\" y1=\"9.5\" x2=\"15\" y2=\"9.5\"></line></svg></span> {{ event.eventdateend|date('j F Y') }}
  202.                     {% endif %}
  203.                 </div>
  204.             </div>
  205.         </div>
  206.     </header>
  207.     <article class=\"uk-container atp-container-1200 uk-margin-large-bottom\">
  208.         {% if not event.newsthumb is empty %}
  209.         <div class=\"uk-grid uk-child-width-1-2@m\" uk-grid>
  210.             <div class=\"uk-first-column\">
  211.                 <div class=\"apk-event-detail--thumb\">
  212.                     <img src=\"{{ event.newsthumb.thumbnail('global-image') }}\" width=\"580\" alt=\"{{ event.title }}\"/>
  213.                 </div>
  214.             </div>
  215.             {% else %}
  216.             <div class=\"uk-grid uk-child-width-1-1\" uk-grid>
  217.                 {% endif %}
  218.                 <div>
  219.                     <div class=\"uk-margin-small-top\">
  220.                         {{ event.content|raw }}
  221.                     </div>
  222.                 </div>
  223.             </div>
  224.             {% if not event.imageGallery is empty %}
  225.                 <div class=\"apk-event-detail--gallery uk-margin-medium-top uk-margin-large-bottom uk-grid-small uk-child-width-1-2@s uk-child-width-1-4@m uk-child-width-1-5@l uk-flex-center uk-text-center\" uk-grid uk-lightbox=\"animation: slide\">
  226.                     {% for image in event.imageGallery %}
  227.                         <div uk-lightbox=\"animation: slide\">
  228.                         <a href=\"{{ image.thumbnail('global-image') }}\">
  229.                             {{ image.thumbnail('global-image').html({'imgAttributes' : {'width' : 255}})|raw }}
  230.                         </a>
  231.                     </div>
  232.                     {% endfor %}
  233.                 </div>
  234.             {% endif %}
  235.     </article>
  236. </main>
  237. {% endblock %}
  238. {% block inlinescripts %}
  239. {% endblock inlinescripts %}""events/detail.html.twig""/var/www/www.mangogem.com/www/templates/events/detail.html.twig");
  240.     }
  241.     
  242.     public function checkSecurity()
  243.     {
  244.         static $tags = array("if" => 11"for" => 40);
  245.         static $filters = array("escape" => 9"date" => 11"raw" => 34);
  246.         static $functions = array();
  247.         try {
  248.             $this->sandbox->checkSecurity(
  249.                 ['if''for'],
  250.                 ['escape''date''raw'],
  251.                 []
  252.             );
  253.         } catch (SecurityError $e) {
  254.             $e->setSourceContext($this->source);
  255.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  256.                 $e->setTemplateLine($tags[$e->getTagName()]);
  257.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  258.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  259.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  260.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  261.             }
  262.             throw $e;
  263.         }
  264.     }
  265. }