var/cache/dev/twig/17/17a0409731acb3e4394d4a5ac788745e.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. /* news/detail.html.twig */
  14. class __TwigTemplate_ee9d93e072f41fb15ce8a0a7e2d23c0d 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""news/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""news/detail.html.twig"));
  41.         $this->parent $this->loadTemplate("layout.html.twig""news/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["new"]) || array_key_exists("new"$context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.'9$this->source); })()), "title", [], "any"falsefalsetrue9), 9$this->source), "html"nulltrue);
  64.         echo "</h1>
  65.                 ";
  66.         // line 10
  67.         echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["new"]) || array_key_exists("new"$context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.'10$this->source); })()), "publishdate", [], "any"falsefalsetrue10), 10$this->source), "j F Y"), "html"nulltrue);
  68.         echo "
  69.             </div>
  70.         </div>
  71.     </header>
  72.     <article class=\"uk-container atp-container-1200 uk-margin-large-bottom\">
  73.         ";
  74.         // line 16
  75.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["new"]) || array_key_exists("new"$context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.'16$this->source); })()), "newsthumb", [], "any"falsefalsetrue16))) {
  76.             // line 17
  77.             echo "        <div class=\"uk-grid uk-child-width-1-2@m\" uk-grid>
  78.             <div class=\"uk-first-column\">
  79.                 <div class=\"apk-news-detail--thumb\">
  80.                     <img src=\"";
  81.             // line 20
  82.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["new"]) || array_key_exists("new"$context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.'20$this->source); })()), "newsthumb", [], "any"falsefalsetrue20), "thumbnail", [=> "global-image"], "method"falsefalsetrue20), 20$this->source), "html"nulltrue);
  83.             echo "\" width=\"277\" height=\"277\" alt=\"";
  84.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["new"]) || array_key_exists("new"$context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.'20$this->source); })()), "title", [], "any"falsefalsetrue20), 20$this->source), "html"nulltrue);
  85.             echo "\"/>
  86.                 </div>
  87.             </div>
  88.             ";
  89.         } else {
  90.             // line 24
  91.             echo "            <div class=\"uk-grid uk-child-width-1-1\" uk-grid>
  92.                 ";
  93.         }
  94.         // line 26
  95.         echo "                <div>
  96.                     <div class=\"uk-margin-small-top\">
  97.                         ";
  98.         // line 28
  99.         echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["new"]) || array_key_exists("new"$context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.'28$this->source); })()), "content", [], "any"falsefalsetrue28), 28$this->source);
  100.         echo "
  101.                     </div>
  102.                 </div>
  103.             </div>
  104.             ";
  105.         // line 32
  106.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["new"]) || array_key_exists("new"$context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.'32$this->source); })()), "imageGallery", [], "any"falsefalsetrue32))) {
  107.             // line 33
  108.             echo "                <div class=\"uk-grid apk-news-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\">
  109.                     ";
  110.             // line 34
  111.             $context['_parent'] = $context;
  112.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["new"]) || array_key_exists("new"$context) ? $context["new"] : (function () { throw new RuntimeError('Variable "new" does not exist.'34$this->source); })()), "imageGallery", [], "any"falsefalsetrue34));
  113.             foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
  114.                 // line 35
  115.                 echo "                        <div uk-lightbox=\"animation: slide\">
  116.                         <a href=\"";
  117.                 // line 36
  118.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["image"], "thumbnail", [=> "global-image"], "method"falsefalsetrue36), 36$this->source), "html"nulltrue);
  119.                 echo "\">
  120.                             ";
  121.                 // line 37
  122.                 echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["image"], "thumbnail", [=> "global-image"], "method"falsefalsetrue37), "html", [=> ["imgAttributes" => ["width" => 255]]], "method"falsefalsetrue37), 37$this->source);
  123.                 echo "
  124.                         </a>
  125.                     </div>
  126.                     ";
  127.             }
  128.             $_parent $context['_parent'];
  129.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
  130.             $context array_intersect_key($context$_parent) + $_parent;
  131.             // line 41
  132.             echo "                </div>
  133.             ";
  134.         }
  135.         // line 43
  136.         echo "    </article>
  137. </main>
  138. ";
  139.         
  140.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  141.         
  142.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  143.     }
  144.     // line 47
  145.     public function block_inlinescripts($context, array $blocks = [])
  146.     {
  147.         $macros $this->macros;
  148.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  149.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""inlinescripts"));
  150.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  151.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""inlinescripts"));
  152.         // line 48
  153.         echo "
  154. ";
  155.         
  156.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  157.         
  158.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  159.     }
  160.     public function getTemplateName()
  161.     {
  162.         return "news/detail.html.twig";
  163.     }
  164.     public function isTraitable()
  165.     {
  166.         return false;
  167.     }
  168.     public function getDebugInfo()
  169.     {
  170.         return array (  174 => 48,  164 => 47,  152 => 43,  148 => 41,  138 => 37,  134 => 36,  131 => 35,  127 => 34,  124 => 33,  122 => 32,  115 => 28,  111 => 26,  107 => 24,  98 => 20,  93 => 17,  91 => 16,  82 => 10,  78 => 9,  71 => 4,  61 => 3,  38 => 1,);
  171.     }
  172.     public function getSourceContext()
  173.     {
  174.         return new Source("{% extends \"layout.html.twig\" %}
  175. {% block content %}
  176. <main id=\"page\" role=\"main\">
  177.     <header class=\"apk-page-header-container\">
  178.         <div class=\"uk-container apk-container-1200\">
  179.             <div class=\"apk-page-header uk-width-4-5@m\">
  180.                 <h1 class=\"uk-h1\">{{ new.title }}</h1>
  181.                 {{ new.publishdate|date('j F Y') }}
  182.             </div>
  183.         </div>
  184.     </header>
  185.     <article class=\"uk-container atp-container-1200 uk-margin-large-bottom\">
  186.         {% if not new.newsthumb is empty %}
  187.         <div class=\"uk-grid uk-child-width-1-2@m\" uk-grid>
  188.             <div class=\"uk-first-column\">
  189.                 <div class=\"apk-news-detail--thumb\">
  190.                     <img src=\"{{ new.newsthumb.thumbnail('global-image') }}\" width=\"277\" height=\"277\" alt=\"{{ new.title }}\"/>
  191.                 </div>
  192.             </div>
  193.             {% else %}
  194.             <div class=\"uk-grid uk-child-width-1-1\" uk-grid>
  195.                 {% endif %}
  196.                 <div>
  197.                     <div class=\"uk-margin-small-top\">
  198.                         {{ new.content|raw }}
  199.                     </div>
  200.                 </div>
  201.             </div>
  202.             {% if not new.imageGallery is empty %}
  203.                 <div class=\"uk-grid apk-news-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\">
  204.                     {% for image in new.imageGallery %}
  205.                         <div uk-lightbox=\"animation: slide\">
  206.                         <a href=\"{{ image.thumbnail('global-image') }}\">
  207.                             {{ image.thumbnail('global-image').html({'imgAttributes' : {'width' : 255}})|raw }}
  208.                         </a>
  209.                     </div>
  210.                     {% endfor %}
  211.                 </div>
  212.             {% endif %}
  213.     </article>
  214. </main>
  215. {% endblock %}
  216. {% block inlinescripts %}
  217. {% endblock inlinescripts %}
  218. ""news/detail.html.twig""/var/www/www.mangogem.com/www/templates/news/detail.html.twig");
  219.     }
  220.     
  221.     public function checkSecurity()
  222.     {
  223.         static $tags = array("if" => 16"for" => 34);
  224.         static $filters = array("escape" => 9"date" => 10"raw" => 28);
  225.         static $functions = array();
  226.         try {
  227.             $this->sandbox->checkSecurity(
  228.                 ['if''for'],
  229.                 ['escape''date''raw'],
  230.                 []
  231.             );
  232.         } catch (SecurityError $e) {
  233.             $e->setSourceContext($this->source);
  234.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  235.                 $e->setTemplateLine($tags[$e->getTagName()]);
  236.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  237.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  238.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  239.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  240.             }
  241.             throw $e;
  242.         }
  243.     }
  244. }