<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* blog/byMonth.html.twig */
class __TwigTemplate_f89496a96124ac58673e990d702a1ed71240d564aea86c5e2c30f32d8d7c61fd extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'header' => [$this, 'block_header'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "blog/byMonth.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "blog/byMonth.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "blog/byMonth.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
echo "Blog";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 5
public function block_header($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
// line 6
echo "
<!-- Header -->
<header class=\"header text-white pt-8 mt-10 h-250\" style=\"background-image: url(/img/bg/Header-00.jpg);\" data-overlay=\"8\">
<div class=\"container text-center\">
<div class=\"row\">
<div class=\"col-md-8 mx-auto\">
<h1>Blog - ";
// line 16
echo twig_escape_filter($this->env, twig_title_string_filter($this->env, twig_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->source, twig_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", false, false, false, 16), "locale", [], "any", false, false, false, 16), null, "MMMM Y")), "html", null, true);
echo "</h1>
</div>
</div>
</div>
</header><!-- /.header -->
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 28
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 29
echo "
<section class=\"section bg-gray\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-md-8 col-xl-9\">
<div class=\"row gap-y\">
";
// line 40
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["post"]) {
// line 41
echo "
<!-- Post -->
<div class=\"col-md-6\">
<div class=\"card d-block border hover-shadow-6 mb-6\">
";
// line 47
if ((twig_get_attribute($this->env, $this->source, $context["post"], "imageName", [], "any", false, false, false, 47) != "")) {
// line 48
echo "
<a href=\"";
// line 49
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", false, false, false, 49), "year" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["post"], "date", [], "any", false, false, false, 49), "format", [0 => "Y"], "method", false, false, false, 49), "month" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["post"], "date", [], "any", false, false, false, 49), "format", [0 => "m"], "method", false, false, false, 49), "day" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["post"], "date", [], "any", false, false, false, 49), "format", [0 => "d"], "method", false, false, false, 49)]), "html", null, true);
echo "\"><img class=\"card-img-top\" src=\"";
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", false, false, false, 49))), "mode_tile"), "html", null, true);
echo "\" alt=\"Card image cap\"></a>
";
}
// line 52
echo "
<div class=\"p-6 text-center\">
<p><a class=\"small-5 text-lighter text-uppercase ls-2 fw-400\" href=\"#\">";
// line 55
echo twig_escape_filter($this->env, twig_localized_date_filter($this->env, twig_get_attribute($this->env, $this->source, $context["post"], "date", [], "any", false, false, false, 55), "medium", "none", twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 55), "locale", [], "any", false, false, false, 55)), "html", null, true);
echo "</a></p>
<h5 class=\"mb-0\"><a class=\"text-dark\" href=\"";
// line 57
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", false, false, false, 57), "year" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["post"], "date", [], "any", false, false, false, 57), "format", [0 => "Y"], "method", false, false, false, 57), "month" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["post"], "date", [], "any", false, false, false, 57), "format", [0 => "m"], "method", false, false, false, 57), "day" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["post"], "date", [], "any", false, false, false, 57), "format", [0 => "d"], "method", false, false, false, 57)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["post"], "title", [], "any", false, false, false, 57), "html", null, true);
echo "</a></h5>
</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['post'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 64
echo "
</div>
</div>
";
// line 69
$this->loadTemplate("blog/sidebar.html.twig", "blog/byMonth.html.twig", 69)->display($context);
// line 70
echo "
</div>
</div>
</section>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "blog/byMonth.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block title %}Blog{% endblock %}
{% block header %}
<!-- Header -->
<header class=\"header text-white pt-8 mt-10 h-250\" style=\"background-image: url(/img/bg/Header-00.jpg);\" data-overlay=\"8\">
<div class=\"container text-center\">
<div class=\"row\">
<div class=\"col-md-8 mx-auto\">
<h1>Blog - {{ date | localizeddate('short', 'none', app.request.locale, null, 'MMMM Y') | title }}</h1>
</div>
</div>
</div>
</header><!-- /.header -->
{% endblock %}
{% block body %}
<section class=\"section bg-gray\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-md-8 col-xl-9\">
<div class=\"row gap-y\">
{% for post in posts %}
<!-- Post -->
<div class=\"col-md-6\">
<div class=\"card d-block border hover-shadow-6 mb-6\">
{% if post.imageName != '' %}
<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>
{% endif %}
<div class=\"p-6 text-center\">
<p><a class=\"small-5 text-lighter text-uppercase ls-2 fw-400\" href=\"#\">{{ post.date | localizeddate('medium', 'none', app.request.locale) }}</a></p>
<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>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
{% include 'blog/sidebar.html.twig' %}
</div>
</div>
</section>
{% endblock body %}", "blog/byMonth.html.twig", "/export/home/nomaspapel/templates/blog/byMonth.html.twig");
}
}