var/cache/dev/twig/4f/4f961aa4494ebd3af69d7cec623c9a44.php line 60

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. /* @openform_front_templates/News/index.html.twig */
  14. class __TwigTemplate_9d27f43c4002a298cd538d5605a6fad5 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.             'bodyAttr' => [$this'block_bodyAttr'],
  24.             'content' => [$this'block_content'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "@openform_front_templates/base.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@openform_front_templates/News/index.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@openform_front_templates/News/index.html.twig"));
  39.         // line 5
  40.         $context["pageSubTitle"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'5$this->source); })()), "Translation", [], "any"falsefalsefalse5), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'5$this->source); })()), "request", [], "any"falsefalsefalse5), "locale", [], "any"falsefalsefalse5), [], "array"falsefalsefalse5), "title", [], "any"falsefalsefalse5);
  41.         // line 6
  42.         $context["metaTitle"] = ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'6$this->source); })()), "Translation", [], "any"falsefalsefalse6), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'6$this->source); })()), "request", [], "any"falsefalsefalse6), "locale", [], "any"falsefalsefalse6), [], "array"falsefalsefalse6), "metaTitle", [], "any"falsefalsefalse6)) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'6$this->source); })()), "Translation", [], "any"falsefalsefalse6), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'6$this->source); })()), "request", [], "any"falsefalsefalse6), "locale", [], "any"falsefalsefalse6), [], "array"falsefalsefalse6), "metaTitle", [], "any"falsefalsefalse6)) : (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'6$this->source); })()), "Translation", [], "any"falsefalsefalse6), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'6$this->source); })()), "request", [], "any"falsefalsefalse6), "locale", [], "any"falsefalsefalse6), [], "array"falsefalsefalse6), "title", [], "any"falsefalsefalse6)));
  43.         // line 7
  44.         $context["metaDescription"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'7$this->source); })()), "Translation", [], "any"falsefalsefalse7), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'7$this->source); })()), "request", [], "any"falsefalsefalse7), "locale", [], "any"falsefalsefalse7), [], "array"falsefalsefalse7), "metaDescription", [], "any"falsefalsefalse7);
  45.         // line 8
  46.         $context["metaKeywords"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'8$this->source); })()), "Translation", [], "any"falsefalsefalse8), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'8$this->source); })()), "request", [], "any"falsefalsefalse8), "locale", [], "any"falsefalsefalse8), [], "array"falsefalsefalse8), "metaKeywords", [], "any"falsefalsefalse8);
  47.         // line 9
  48.         $context["pageImage"] = ((twig_get_attribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'9$this->source); })()), "imagePath", [], "any"falsefalsefalse9)) ? (twig_get_attribute($this->env$this->source, (isset($context["openform_front_util"]) || array_key_exists("openform_front_util"$context) ? $context["openform_front_util"] : (function () { throw new RuntimeError('Variable "openform_front_util" does not exist.'9$this->source); })()), "getImagePathByType", [twig_get_attribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'9$this->source); })()), "Thumb", [], "any"falsefalsefalse9), "list"], "method"falsefalsefalse9)) : (""));
  49.         // line 1
  50.         $this->parent $this->loadTemplate("@openform_front_templates/base.html.twig""@openform_front_templates/News/index.html.twig"1);
  51.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  52.         
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  54.         
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  56.     }
  57.     // line 3
  58.     public function block_bodyAttr($context, array $blocks = [])
  59.     {
  60.         $macros $this->macros;
  61.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  62.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bodyAttr"));
  63.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  64.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bodyAttr"));
  65.         echo "news-list-body";
  66.         
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  68.         
  69.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  70.     }
  71.     // line 11
  72.     public function block_content($context, array $blocks = [])
  73.     {
  74.         $macros $this->macros;
  75.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  76.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  77.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  78.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  79.         // line 12
  80.         echo "    <h1 class=\"index-news__title\">
  81.        ";
  82.         // line 13
  83.         echo twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'13$this->source); })()), "Translation", [], "any"falsefalsefalse13), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'13$this->source); })()), "request", [], "any"falsefalsefalse13), "locale", [], "any"falsefalsefalse13), [], "array"falsefalsefalse13), "titleHtml", [], "any"falsefalsefalse13);
  84.         echo "
  85.     </h1>
  86.     ";
  87.         // line 15
  88.         $this->loadTemplate("@openform_front_templates/_blocks_sections/block.html.twig""@openform_front_templates/News/index.html.twig"15)->display(twig_array_merge($context, ["sections" => (((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["openform_front_util"]) || array_key_exists("openform_front_util"$context) ? $context["openform_front_util"] : (function () { throw new RuntimeError('Variable "openform_front_util" does not exist.'15$this->source); })()), "getSections", [(isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'15$this->source); })())], "method"falsefalsefalse15)) > 0)) ? (twig_slice($this->envtwig_get_attribute($this->env$this->source, (isset($context["openform_front_util"]) || array_key_exists("openform_front_util"$context) ? $context["openform_front_util"] : (function () { throw new RuntimeError('Variable "openform_front_util" does not exist.'15$this->source); })()), "getSections", [(isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'15$this->source); })())], "method"falsefalsefalse15), 01)) : (""))]));
  89.         // line 16
  90.         echo "    <section class=\"index-news mak\">
  91.         <div class=\"index-news__wrapper js-list-data container\">
  92.             
  93.             
  94.             <div class=\"index-news__filters js-filters\">
  95.                 <div class=\"input-date\">
  96.                     <input id=\"date\" type=\"text\" name=\"date\" class=\"js-date\">
  97.                     <label for=\"date\">";
  98.         // line 23
  99.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("T_SHOW_FROM", [], "openform_front"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'23$this->source); })()), "request", [], "any"falsefalsefalse23), "locale", [], "any"falsefalsefalse23)), "html"nulltrue);
  100.         echo "</label>
  101.                 </div>
  102.             </div>
  103.             <div class=\"index-news__items js-result-content\" 
  104.                 data-url=\"";
  105.         // line 27
  106.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["toolkit_route_localizer"]) || array_key_exists("toolkit_route_localizer"$context) ? $context["toolkit_route_localizer"] : (function () { throw new RuntimeError('Variable "toolkit_route_localizer" does not exist.'27$this->source); })()), "generate", ["news_list_filter_ajax", [], twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'27$this->source); })()), "request", [], "any"falsefalsefalse27), "locale", [], "any"falsefalsefalse27)], "method"falsefalsefalse27), "html"nulltrue);
  107.         echo "\" >
  108.                 ";
  109.         // line 28
  110.         $this->loadTemplate("@openform_front_templates/News/components/_list.html.twig""@openform_front_templates/News/index.html.twig"28)->display($context);
  111.         // line 29
  112.         echo "            </div>
  113.             ";
  114.         // line 30
  115.         $this->loadTemplate("@openform_front_templates/_includes/_pagination.html.twig""@openform_front_templates/News/index.html.twig"30)->display(twig_array_merge($context, ["pages" => (isset($context["maxPages"]) || array_key_exists("maxPages"$context) ? $context["maxPages"] : (function () { throw new RuntimeError('Variable "maxPages" does not exist.'30$this->source); })())]));
  116.         echo 
  117.         </div>
  118.     </section>
  119.     ";
  120.         // line 33
  121.         $this->loadTemplate("@openform_front_templates/_blocks_sections/block.html.twig""@openform_front_templates/News/index.html.twig"33)->display(twig_array_merge($context, ["sections" => (((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["openform_front_util"]) || array_key_exists("openform_front_util"$context) ? $context["openform_front_util"] : (function () { throw new RuntimeError('Variable "openform_front_util" does not exist.'33$this->source); })()), "getSections", [(isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'33$this->source); })())], "method"falsefalsefalse33)) > 0)) ? (twig_slice($this->envtwig_get_attribute($this->env$this->source, (isset($context["openform_front_util"]) || array_key_exists("openform_front_util"$context) ? $context["openform_front_util"] : (function () { throw new RuntimeError('Variable "openform_front_util" does not exist.'33$this->source); })()), "getSections", [(isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'33$this->source); })())], "method"falsefalsefalse33), 1twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["openform_front_util"]) || array_key_exists("openform_front_util"$context) ? $context["openform_front_util"] : (function () { throw new RuntimeError('Variable "openform_front_util" does not exist.'33$this->source); })()), "getSections", [(isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'33$this->source); })())], "method"falsefalsefalse33)))) : (""))]));
  122.         
  123.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  124.         
  125.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  126.     }
  127.     public function getTemplateName()
  128.     {
  129.         return "@openform_front_templates/News/index.html.twig";
  130.     }
  131.     public function isTraitable()
  132.     {
  133.         return false;
  134.     }
  135.     public function getDebugInfo()
  136.     {
  137.         return array (  140 => 33,  134 => 30,  131 => 29,  129 => 28,  125 => 27,  118 => 23,  109 => 16,  107 => 15,  102 => 13,  99 => 12,  89 => 11,  70 => 3,  59 => 1,  57 => 9,  55 => 8,  53 => 7,  51 => 6,  49 => 5,  36 => 1,);
  138.     }
  139.     public function getSourceContext()
  140.     {
  141.         return new Source("{% extends '@openform_front_templates/base.html.twig' %}
  142. {% block bodyAttr %}news-list-body{% endblock %}
  143. {% set pageSubTitle = entity.Translation[app.request.locale].title %}
  144. {% set metaTitle = entity.Translation[app.request.locale].metaTitle ? entity.Translation[app.request.locale].metaTitle : entity.Translation[app.request.locale].title %}
  145. {% set metaDescription = entity.Translation[app.request.locale].metaDescription %}
  146. {% set metaKeywords = entity.Translation[app.request.locale].metaKeywords %}
  147. {% set pageImage = entity.imagePath ? openform_front_util.getImagePathByType(entity.Thumb,'list') : '' %}
  148. {% block content %}
  149.     <h1 class=\"index-news__title\">
  150.        {{ entity.Translation[app.request.locale].titleHtml|raw }}
  151.     </h1>
  152.     {% include \"@openform_front_templates/_blocks_sections/block.html.twig\" with { sections: openform_front_util.getSections(entity)|length > 0 ? openform_front_util.getSections(entity)|slice(0, 1) : '' } %}
  153.     <section class=\"index-news mak\">
  154.         <div class=\"index-news__wrapper js-list-data container\">
  155.             
  156.             
  157.             <div class=\"index-news__filters js-filters\">
  158.                 <div class=\"input-date\">
  159.                     <input id=\"date\" type=\"text\" name=\"date\" class=\"js-date\">
  160.                     <label for=\"date\">{{ 'T_SHOW_FROM'|trans({}, 'openform_front', app.request.locale) }}</label>
  161.                 </div>
  162.             </div>
  163.             <div class=\"index-news__items js-result-content\" 
  164.                 data-url=\"{{ toolkit_route_localizer.generate('news_list_filter_ajax', {}, app.request.locale) }}\" >
  165.                 {% include '@openform_front_templates/News/components/_list.html.twig' %}
  166.             </div>
  167.             {% include \"@openform_front_templates/_includes/_pagination.html.twig\" with { pages: maxPages } %} 
  168.         </div>
  169.     </section>
  170.     {% include \"@openform_front_templates/_blocks_sections/block.html.twig\" with { sections: openform_front_util.getSections(entity)|length > 0 ? openform_front_util.getSections(entity)|slice(1, openform_front_util.getSections(entity)|length) : '' } %}
  171. {% endblock %}
  172. ""@openform_front_templates/News/index.html.twig""/var/www/php81/fpd.in.openform.pl/src/Package/Openform/Front/Templates/News/index.html.twig");
  173.     }
  174. }