var/cache/dev/twig/97/979c56fbad6667193f3d5f6ce390950a244889a10131f2fd981404357438b5ab.php line 122

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. /* blog/byMonth.html.twig */
  14. class __TwigTemplate_f89496a96124ac58673e990d702a1ed71240d564aea86c5e2c30f32d8d7c61fd extends \Twig\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.             'title' => [$this'block_title'],
  24.             'header' => [$this'block_header'],
  25.             'body' => [$this'block_body'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "base.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""blog/byMonth.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""blog/byMonth.html.twig"));
  40.         $this->parent $this->loadTemplate("base.html.twig""blog/byMonth.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.         
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  46.     }
  47.     // line 3
  48.     public function block_title($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  55.         echo "Blog";
  56.         
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  58.         
  59.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  60.     }
  61.     // line 5
  62.     public function block_header($context, array $blocks = [])
  63.     {
  64.         $macros $this->macros;
  65.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  66.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  67.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  68.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  69.         // line 6
  70.         echo "
  71. <!-- Header -->
  72. <header class=\"header text-white pt-8 mt-10 h-250\" style=\"background-image: url(/img/bg/Header-00.jpg);\" data-overlay=\"8\">
  73.     <div class=\"container text-center\">
  74.         <div class=\"row\">
  75.             <div class=\"col-md-8 mx-auto\">
  76.                 <h1>Blog - ";
  77.         // line 16
  78.         echo twig_escape_filter($this->envtwig_title_string_filter($this->envtwig_localized_date_filter($this->env, (isset($context["date"]) || array_key_exists("date"$context) ? $context["date"] : (function () { throw new RuntimeError('Variable "date" does not exist.'16$this->source); })()), "short""none"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.'16$this->source); })()), "request", [], "any"falsefalsefalse16), "locale", [], "any"falsefalsefalse16), null"MMMM Y")), "html"nulltrue);
  79.         echo "</h1>
  80.             </div>
  81.         </div>
  82.     </div>
  83. </header><!-- /.header -->
  84. ";
  85.         
  86.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  87.         
  88.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  89.     }
  90.     // line 28
  91.     public function block_body($context, array $blocks = [])
  92.     {
  93.         $macros $this->macros;
  94.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  95.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  96.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  97.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  98.         // line 29
  99.         echo "
  100.     <section class=\"section bg-gray\">
  101.         <div class=\"container\">
  102.             <div class=\"row\">
  103.                 <div class=\"col-md-8 col-xl-9\">
  104.                     <div class=\"row gap-y\">
  105.                     ";
  106.         // line 40
  107.         $context['_parent'] = $context;
  108.         $context['_seq'] = twig_ensure_traversable((isset($context["posts"]) || array_key_exists("posts"$context) ? $context["posts"] : (function () { throw new RuntimeError('Variable "posts" does not exist.'40$this->source); })()));
  109.         foreach ($context['_seq'] as $context["_key"] => $context["post"]) {
  110.             // line 41
  111.             echo "
  112.                         <!-- Post -->
  113.                         <div class=\"col-md-6\">
  114.                             <div class=\"card d-block border hover-shadow-6 mb-6\">
  115.                             ";
  116.             // line 47
  117.             if ((twig_get_attribute($this->env$this->source$context["post"], "imageName", [], "any"falsefalsefalse47) != "")) {
  118.                 // line 48
  119.                 echo "
  120.                                 <a href=\"";
  121.                 // line 49
  122.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("show_post", ["slug" => twig_get_attribute($this->env$this->source$context["post"], "slug", [], "any"falsefalsefalse49), "year" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["post"], "date", [], "any"falsefalsefalse49), "format", [=> "Y"], "method"falsefalsefalse49), "month" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["post"], "date", [], "any"falsefalsefalse49), "format", [=> "m"], "method"falsefalsefalse49), "day" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["post"], "date", [], "any"falsefalsefalse49), "format", [=> "d"], "method"falsefalsefalse49)]), "html"nulltrue);
  123.                 echo "\"><img class=\"card-img-top\" src=\"";
  124.                 echo twig_escape_filter($this->env$this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("/assets/blog/" twig_get_attribute($this->env$this->source$context["post"], "imageName", [], "any"falsefalsefalse49))), "mode_tile"), "html"nulltrue);
  125.                 echo "\" alt=\"Card image cap\"></a>
  126.                             ";
  127.             }
  128.             // line 52
  129.             echo "
  130.                                 <div class=\"p-6 text-center\">
  131.                                     <p><a class=\"small-5 text-lighter text-uppercase ls-2 fw-400\" href=\"#\">";
  132.             // line 55
  133.             echo twig_escape_filter($this->envtwig_localized_date_filter($this->envtwig_get_attribute($this->env$this->source$context["post"], "date", [], "any"falsefalsefalse55), "medium""none"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.'55$this->source); })()), "request", [], "any"falsefalsefalse55), "locale", [], "any"falsefalsefalse55)), "html"nulltrue);
  134.             echo "</a></p>
  135.                                     <h5 class=\"mb-0\"><a class=\"text-dark\" href=\"";
  136.             // line 57
  137.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("show_post", ["slug" => twig_get_attribute($this->env$this->source$context["post"], "slug", [], "any"falsefalsefalse57), "year" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["post"], "date", [], "any"falsefalsefalse57), "format", [=> "Y"], "method"falsefalsefalse57), "month" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["post"], "date", [], "any"falsefalsefalse57), "format", [=> "m"], "method"falsefalsefalse57), "day" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["post"], "date", [], "any"falsefalsefalse57), "format", [=> "d"], "method"falsefalsefalse57)]), "html"nulltrue);
  138.             echo "\">";
  139.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["post"], "title", [], "any"falsefalsefalse57), "html"nulltrue);
  140.             echo "</a></h5>
  141.                                 </div>
  142.                             </div>
  143.                         </div>
  144.                     ";
  145.         }
  146.         $_parent $context['_parent'];
  147.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['post'], $context['_parent'], $context['loop']);
  148.         $context array_intersect_key($context$_parent) + $_parent;
  149.         // line 64
  150.         echo "
  151.                     </div>
  152.                 </div>
  153.                 ";
  154.         // line 69
  155.         $this->loadTemplate("blog/sidebar.html.twig""blog/byMonth.html.twig"69)->display($context);
  156.         // line 70
  157.         echo "
  158.             </div>
  159.         </div>
  160.     </section>
  161. ";
  162.         
  163.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  164.         
  165.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  166.     }
  167.     public function getTemplateName()
  168.     {
  169.         return "blog/byMonth.html.twig";
  170.     }
  171.     public function isTraitable()
  172.     {
  173.         return false;
  174.     }
  175.     public function getDebugInfo()
  176.     {
  177.         return array (  204 => 70,  202 => 69,  195 => 64,  180 => 57,  175 => 55,  170 => 52,  162 => 49,  159 => 48,  157 => 47,  149 => 41,  145 => 40,  132 => 29,  122 => 28,  101 => 16,  89 => 6,  79 => 5,  60 => 3,  37 => 1,);
  178.     }
  179.     public function getSourceContext()
  180.     {
  181.         return new Source("{% extends 'base.html.twig' %}
  182. {% block title %}Blog{% endblock %}
  183. {% block header %}
  184. <!-- Header -->
  185. <header class=\"header text-white pt-8 mt-10 h-250\" style=\"background-image: url(/img/bg/Header-00.jpg);\" data-overlay=\"8\">
  186.     <div class=\"container text-center\">
  187.         <div class=\"row\">
  188.             <div class=\"col-md-8 mx-auto\">
  189.                 <h1>Blog - {{ date | localizeddate('short', 'none', app.request.locale, null, 'MMMM Y') | title }}</h1>
  190.             </div>
  191.         </div>
  192.     </div>
  193. </header><!-- /.header -->
  194. {% endblock %}
  195. {% block body %}
  196.     <section class=\"section bg-gray\">
  197.         <div class=\"container\">
  198.             <div class=\"row\">
  199.                 <div class=\"col-md-8 col-xl-9\">
  200.                     <div class=\"row gap-y\">
  201.                     {% for post in posts %}
  202.                         <!-- Post -->
  203.                         <div class=\"col-md-6\">
  204.                             <div class=\"card d-block border hover-shadow-6 mb-6\">
  205.                             {% if post.imageName != '' %}
  206.                                 <a href=\"{{ path('show_post', {'slug': post.slug, 'year': post.date.format('Y'), 'month': post.date.format('m'), 'day': post.date.format('d') }) }}\"><img class=\"card-img-top\" src=\"{{ asset('/assets/blog/'~ post.imageName) | imagine_filter('mode_tile') }}\" alt=\"Card image cap\"></a>
  207.                             {% endif %}
  208.                                 <div class=\"p-6 text-center\">
  209.                                     <p><a class=\"small-5 text-lighter text-uppercase ls-2 fw-400\" href=\"#\">{{ post.date | localizeddate('medium', 'none', app.request.locale) }}</a></p>
  210.                                     <h5 class=\"mb-0\"><a class=\"text-dark\" href=\"{{ path('show_post', {'slug': post.slug, 'year': post.date.format('Y'), 'month': post.date.format('m'), 'day': post.date.format('d') }) }}\">{{ post.title }}</a></h5>
  211.                                 </div>
  212.                             </div>
  213.                         </div>
  214.                     {% endfor %}
  215.                     </div>
  216.                 </div>
  217.                 {% include 'blog/sidebar.html.twig' %}
  218.             </div>
  219.         </div>
  220.     </section>
  221. {% endblock body %}""blog/byMonth.html.twig""/export/home/nomaspapel/templates/blog/byMonth.html.twig");
  222.     }
  223. }