var/cache/dev/twig/89/894a34d8af793be5696f63b2d7e7a7fc50108badb1d2bf01118b7efffae7cb7d.php line 45

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. /* frontend/article/news.html.twig */
  16. class __TwigTemplate_be4380508f218ec2a1b32bedbd57a081000d3b71c04f96ae2940083c701399dd 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->blocks = [
  28.             'content' => [$this'block_content'],
  29.             'title' => [$this'block_title'],
  30.             'meta_desc_key' => [$this'block_meta_desc_key'],
  31.         ];
  32.     }
  33.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  34.     {
  35.         // line 1
  36.         return "base.html.twig";
  37.     }
  38.     protected function doDisplay(array $context, array $blocks = []): iterable
  39.     {
  40.         $macros $this->macros;
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""frontend/article/news.html.twig"));
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""frontend/article/news.html.twig"));
  45.         $this->parent $this->loadTemplate("base.html.twig""frontend/article/news.html.twig"1);
  46.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  49.         
  50.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  51.     }
  52.     // line 3
  53.     /**
  54.      * @return iterable<null|scalar|\Stringable>
  55.      */
  56.     public function block_content(array $context, array $blocks = []): iterable
  57.     {
  58.         $macros $this->macros;
  59.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  61.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  62.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  63.         // line 4
  64.         yield "    <!-- START OF CATEGORY NAME SECTION -->
  65.     <section class=\"section\">
  66.         <div class=\"container\">
  67.             <div class=\"columns is-multiline\">
  68.                 <div class=\"column is-full\">
  69.                     <span class=\"is-size-2 \">";
  70.         // line 10
  71.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("news", [], "store"), "html"nulltrue);
  72.         yield "</span>
  73.                 </div>
  74.                 <div class=\"column is-full\">
  75.                     ";
  76.         // line 15
  77.         $context['_parent'] = $context;
  78.         $context['_seq'] = CoreExtension::ensureTraversable(Twig\Extension\CoreExtension::slice($this->env->getCharset(), (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'15$this->source); })()), 030));
  79.         foreach ($context['_seq'] as $context["_key"] => $context["row"]) {
  80.             // line 16
  81.             yield "                        <!-- START OF MEDIA OBJECT -->
  82.                         <article class=\"media\">
  83.                             <div class=\"media-left\">
  84.                                 <i class=\"far fa-file has-text-danger\"></i>
  85.                             </div>
  86.                             <div class=\"media-content\">
  87.                                 <div class=\"content\" style=\"margin-top:-4px;\">
  88.                                     <a href=\"";
  89.             // line 23
  90.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("single_news", ["id" => CoreExtension::getAttribute($this->env$this->source$context["row"], "id", [], "any"falsefalsefalse23), "slug" => CoreExtension::getAttribute($this->env$this->source$context["row"], "slug", [], "any"falsefalsefalse23)]), "html"nulltrue);
  91.             yield "\">
  92.                                         <span class=\"title\" style=\"font-weight: 500\">";
  93.             // line 24
  94.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["row"], "title", [], "any"falsefalsefalse24), "html"nulltrue);
  95.             yield "</span>
  96.                                     </a>
  97.                                     <br>
  98.                                     <small class=\"is-size-7\" style=\"font-weight:100;\">";
  99.             // line 27
  100.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env$this->source$context["row"], "createdAt", [], "any"falsefalsefalse27), "Y-m-d"), "html"nulltrue);
  101.             yield "</small>
  102.                                     <br>
  103.                                     <p class=\"is-size-7\">";
  104.             // line 29
  105.             yield CoreExtension::getAttribute($this->env$this->source$context["row"], "content", [], "any"falsefalsefalse29);
  106.             yield "</p>
  107.                                 </div>
  108.                             </div>
  109.                         </article>
  110.                         <!-- END OF MEDIA OBJECT -->
  111.                     ";
  112.         }
  113.         $_parent $context['_parent'];
  114.         unset($context['_seq'], $context['_key'], $context['row'], $context['_parent']);
  115.         $context array_intersect_key($context$_parent) + $_parent;
  116.         // line 35
  117.         yield "
  118.                 </div>
  119.             </div>
  120.         </div>
  121.     </section>
  122.     <!-- END OF CATEGORY NAME SECTION -->
  123. ";
  124.         
  125.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  126.         
  127.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  128.         yield from [];
  129.     }
  130.     // line 44
  131.     /**
  132.      * @return iterable<null|scalar|\Stringable>
  133.      */
  134.     public function block_title(array $context, array $blocks = []): iterable
  135.     {
  136.         $macros $this->macros;
  137.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  138.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  139.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  140.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  141.         // line 45
  142.         yield "     ";
  143.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("news", [], "store"), "html"nulltrue);
  144.         yield " - ";
  145.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("page_main_title", [], "store"CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'45$this->source); })()), "request", [], "any"falsefalsefalse45), "locale", [], "any"falsefalsefalse45)), "html"nulltrue);
  146.         yield "
  147. ";
  148.         
  149.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  150.         
  151.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  152.         yield from [];
  153.     }
  154.     // line 48
  155.     /**
  156.      * @return iterable<null|scalar|\Stringable>
  157.      */
  158.     public function block_meta_desc_key(array $context, array $blocks = []): iterable
  159.     {
  160.         $macros $this->macros;
  161.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  162.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta_desc_key"));
  163.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  164.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta_desc_key"));
  165.         // line 49
  166.         yield "    ";
  167.         yield from $this->yieldParentBlock("meta_desc_key"$context$blocks);
  168.         yield "
  169.     ";
  170.         // line 50
  171.         if ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'50$this->source); })()), "request", [], "any"falsefalsefalse50), "locale", [], "any"falsefalsefalse50) == "pl")) {
  172.             // line 51
  173.             yield "        ";
  174.             // line 52
  175.             yield "        ";
  176.             // line 55
  177.             yield "    ";
  178.         }
  179.         
  180.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  181.         
  182.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  183.         yield from [];
  184.     }
  185.     /**
  186.      * @codeCoverageIgnore
  187.      */
  188.     public function getTemplateName(): string
  189.     {
  190.         return "frontend/article/news.html.twig";
  191.     }
  192.     /**
  193.      * @codeCoverageIgnore
  194.      */
  195.     public function isTraitable(): bool
  196.     {
  197.         return false;
  198.     }
  199.     /**
  200.      * @codeCoverageIgnore
  201.      */
  202.     public function getDebugInfo(): array
  203.     {
  204.         return array (  205 => 55,  203 => 52,  201 => 51,  199 => 50,  194 => 49,  181 => 48,  165 => 45,  152 => 44,  134 => 35,  122 => 29,  117 => 27,  111 => 24,  107 => 23,  98 => 16,  94 => 15,  86 => 10,  78 => 4,  65 => 3,  42 => 1,);
  205.     }
  206.     public function getSourceContext(): Source
  207.     {
  208.         return new Source("{% extends 'base.html.twig' %}
  209. {% trans_default_domain 'store' %}
  210. {% block content %}
  211.     <!-- START OF CATEGORY NAME SECTION -->
  212.     <section class=\"section\">
  213.         <div class=\"container\">
  214.             <div class=\"columns is-multiline\">
  215.                 <div class=\"column is-full\">
  216.                     <span class=\"is-size-2 \">{{ 'news'|trans }}</span>
  217.                 </div>
  218.                 <div class=\"column is-full\">
  219.                     {% for row in news|slice(0,30) %}
  220.                         <!-- START OF MEDIA OBJECT -->
  221.                         <article class=\"media\">
  222.                             <div class=\"media-left\">
  223.                                 <i class=\"far fa-file has-text-danger\"></i>
  224.                             </div>
  225.                             <div class=\"media-content\">
  226.                                 <div class=\"content\" style=\"margin-top:-4px;\">
  227.                                     <a href=\"{{ path('single_news', {'id':row.id, 'slug':row.slug}) }}\">
  228.                                         <span class=\"title\" style=\"font-weight: 500\">{{ row.title }}</span>
  229.                                     </a>
  230.                                     <br>
  231.                                     <small class=\"is-size-7\" style=\"font-weight:100;\">{{ row.createdAt|date('Y-m-d') }}</small>
  232.                                     <br>
  233.                                     <p class=\"is-size-7\">{{ row.content|raw }}</p>
  234.                                 </div>
  235.                             </div>
  236.                         </article>
  237.                         <!-- END OF MEDIA OBJECT -->
  238.                     {% endfor %}
  239.                 </div>
  240.             </div>
  241.         </div>
  242.     </section>
  243.     <!-- END OF CATEGORY NAME SECTION -->
  244. {% endblock %}
  245. {% block title %}
  246.      {{ 'news'|trans }} - {{ 'page_main_title'|trans({}, 'store', app.request.locale) }}
  247. {% endblock %}
  248. {% block meta_desc_key %}
  249.     {{ parent() }}
  250.     {% if app.request.locale == 'pl' %}
  251.         {# veltis tag #}
  252.         {#
  253.         <script async src='https://app.veltis.io/uploads/veltis.js'></script><script>window.veltisData = window.veltisData || []; function veltisTag() { veltisData.push(arguments); } veltisTag('js', new Date()); veltisTag('config', '1aadaf84c154d3e3'); </script>
  254.         #}
  255.     {% endif %}
  256. {% endblock %}""frontend/article/news.html.twig""/home/users/ck_new/templates/frontend/article/news.html.twig");
  257.     }
  258. }