<?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;
/* templates/blog_post.html.twig */
class __TwigTemplate_b806a8d8eec051533d1a2a34b529351b extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'body' => [$this, 'block_body'],
'title' => [$this, 'block_title'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "layouts/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "templates/blog_post.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "templates/blog_post.html.twig"));
$this->parent = $this->loadTemplate("layouts/layout.html.twig", "templates/blog_post.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 4
echo " <section class=\"page\">
<!-- === Page header === -->
<div class=\"position-relative\">
<div class=\"page-header\" style=\"background-image:url(";
// line 8
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/activity-2.jpg"), "html", null, true);
echo ")\">
<div class=\"container\">
<div class=\"page-title\">
<h2 class=\"title\">";
// line 11
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("News"), "html", null, true);
echo "</h2>
<p>
</p>
</div>
</div>
</div>
</div>
<div class=\"blog blog-item\" id=\"_post\">
<div class=\"container\">
<div class=\"row\">
<!-- === blog-content === -->
<div class=\"col-sm-12\">
<article>
<div class=\"content\">
<!--=== blog title ===-->
<div class=\"h1 title\">
";
// line 38
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 38, $this->source); })()), "title", [], "any", false, false, false, 38), "html", null, true);
echo "
<small>";
// line 39
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 39, $this->source); })()), "subtitle", [], "any", false, false, false, 39), "html", null, true);
echo "</small>
</div>
<div class=\"blog-info blog-info-top\">
<div class=\"entry\">
<i class=\"fa fa-calendar\"></i>
<span>";
// line 46
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 46, $this->source); })()), "createdAt", [], "any", false, false, false, 46), "d.m.Y"), "html", null, true);
echo "</span>
</div>
</div> <!--/blog-info-->
";
// line 50
echo twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 50, $this->source); })()), "text", [], "any", false, false, false, 50);
echo "
";
// line 52
$context["ids"] = [13, 14, 15];
// line 53
echo " ";
if (twig_in_filter(twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 53, $this->source); })()), "id", [], "any", false, false, false, 53), (isset($context["ids"]) || array_key_exists("ids", $context) ? $context["ids"] : (function () { throw new RuntimeError('Variable "ids" does not exist.', 53, $this->source); })()))) {
// line 54
echo " ";
$this->loadTemplate("partials/news/meeting.html.twig", "templates/blog_post.html.twig", 54)->display($context);
// line 55
echo " ";
}
// line 56
echo " </div>
<!--=== blog image ===-->
<div class=\"image\">
<img src=\"";
// line 61
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("images/" . twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 61, $this->source); })()), "image", [], "any", false, false, false, 61))), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["post"]) || array_key_exists("post", $context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.', 61, $this->source); })()), "title", [], "any", false, false, false, 61), "html", null, true);
echo "\">
</div>
<!--=== blog content ===-->
</article>
</div>
<!-- === blog-menu === -->
</div> <!--/row-->
</div><!--/container-->
</div>
</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 83
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
// line 84
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "templates/blog_post.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 198 => 84, 188 => 83, 155 => 61, 148 => 56, 145 => 55, 142 => 54, 139 => 53, 137 => 52, 132 => 50, 125 => 46, 115 => 39, 111 => 38, 81 => 11, 75 => 8, 69 => 4, 59 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"layouts/layout.html.twig\" %}
{% block body %}
<section class=\"page\">
<!-- === Page header === -->
<div class=\"position-relative\">
<div class=\"page-header\" style=\"background-image:url({{ asset('images/activity-2.jpg') }})\">
<div class=\"container\">
<div class=\"page-title\">
<h2 class=\"title\">{{ 'News'|trans }}</h2>
<p>
</p>
</div>
</div>
</div>
</div>
<div class=\"blog blog-item\" id=\"_post\">
<div class=\"container\">
<div class=\"row\">
<!-- === blog-content === -->
<div class=\"col-sm-12\">
<article>
<div class=\"content\">
<!--=== blog title ===-->
<div class=\"h1 title\">
{{ post.title }}
<small>{{ post.subtitle }}</small>
</div>
<div class=\"blog-info blog-info-top\">
<div class=\"entry\">
<i class=\"fa fa-calendar\"></i>
<span>{{ post.createdAt|date('d.m.Y') }}</span>
</div>
</div> <!--/blog-info-->
{{ post.text|raw }}
{% set ids = [13, 14, 15] %}
{% if post.id in ids %}
{% include 'partials/news/meeting.html.twig' %}
{% endif %}
</div>
<!--=== blog image ===-->
<div class=\"image\">
<img src=\"{{ asset('images/'~post.image) }}\" alt=\"{{ post.title }}\">
</div>
<!--=== blog content ===-->
</article>
</div>
<!-- === blog-menu === -->
</div> <!--/row-->
</div><!--/container-->
</div>
</section>
{% endblock %}
{% block title %}
{% endblock %}
", "templates/blog_post.html.twig", "/var/www/app/templates/templates/blog_post.html.twig");
}
}