<?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;
/* HitsoContentBundle:Front\Article:show.html.twig */
class __TwigTemplate_f345a68db799512857d51db5c74742a17b4f3d643f8b0479c98f72e6e73d6434 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheets' => [$this, 'block_stylesheets'],
'body_class' => [$this, 'block_body_class'],
'content' => [$this, 'block_content'],
'articleMeta' => [$this, 'block_articleMeta'],
'articleHeader' => [$this, 'block_articleHeader'],
'articleCover' => [$this, 'block_articleCover'],
'articleLead' => [$this, 'block_articleLead'],
'articleContent' => [$this, 'block_articleContent'],
'articleFooter' => [$this, 'block_articleFooter'],
'articleComments' => [$this, 'block_articleComments'],
'related_articles' => [$this, 'block_related_articles'],
'contact' => [$this, 'block_contact'],
'meta' => [$this, 'block_meta'],
'footer_javascripts' => [$this, 'block_footer_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "HitsoCommonBundle::layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "HitsoContentBundle:Front\\Article:show.html.twig"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "HitsoContentBundle:Front\\Article:show.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "HitsoContentBundle:Front\\Article:show.html.twig"));
// line 2
$context["related"] = $this->extensions['Hitso\Bundle\ContentBundle\Twig\Extension\ContentExtension']->getRelatedArticles((isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 2, $this->source); })()), 4);
// line 1
$this->parent = $this->loadTemplate("HitsoCommonBundle::layout.html.twig", "HitsoContentBundle:Front\\Article:show.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 4
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 5
echo " ";
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
<link rel=\"stylesheet\" href=\"";
// line 6
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/hitsocommon/hitsox-default-theme/source/css/article-critical.css"), "html", null, true);
echo "\">
<link rel=\"preload\" as=\"style\" href=\"";
// line 7
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\WebLinkExtension']->preload($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/hitsocommon/hitsox-default-theme/source/css/article-critical.css")), "html", null, true);
echo "\">
<link rel=\"preload\" href=\"";
// line 8
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\WebLinkExtension']->preload($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/hitsocommon/hitsox-default-theme/source/css/article.css")), "html", null, true);
echo "\" as=\"style\" onload=\"this.onload=null;this.rel='stylesheet'\">
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
}
// line 11
public function block_body_class($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_class"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_class"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_class"));
$this->displayParentBlock("body_class", $context, $blocks);
echo " page--article";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
}
// line 13
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 14
echo " <main class=\"main\">
";
// line 15
$twigCacheStrategy1 = $this->env->getExtension('Twig\CacheExtension\Extension')->getCacheStrategy();
$twigKey1 = $twigCacheStrategy1->generateKey($this->extensions['Hitso\Bundle\CommonBundle\Twig\AppExtension']->getCacheHash(("article_main_" . twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 15, $this->source); })()), "version", [], "any", false, false, false, 15))), ["time" => 3600] );
$twigCacheBody1 = $twigCacheStrategy1->fetchBlock($twigKey1);
if ($twigCacheBody1 === false) {
ob_start();
// line 16
echo " <article class=\"article\">
";
// line 18
$this->displayBlock('articleMeta', $context, $blocks);
// line 19
echo "
";
// line 20
$this->displayBlock('articleHeader', $context, $blocks);
// line 48
echo "
";
// line 49
$this->displayBlock('articleCover', $context, $blocks);
// line 68
echo "
";
// line 69
$this->displayBlock('articleLead', $context, $blocks);
// line 76
echo "
";
// line 77
$this->displayBlock('articleContent', $context, $blocks);
// line 84
echo "
";
// line 85
$this->displayBlock('articleFooter', $context, $blocks);
// line 111
echo "
";
// line 112
$this->displayBlock('articleComments', $context, $blocks);
// line 117
echo "
";
// line 118
echo $this->extensions['Hitso\Bundle\SeoBundle\Twig\JsonLinkingDataExtension']->generate((isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 118, $this->source); })()));
echo "
</article>
";
$twigCacheBody1 = ob_get_clean();
$twigCacheStrategy1->saveBlock($twigKey1, $twigCacheBody1);
}
echo $twigCacheBody1;
// line 121
echo "
";
// line 122
$this->displayBlock('related_articles', $context, $blocks);
// line 173
echo "
";
// line 174
$this->displayBlock('contact', $context, $blocks);
// line 177
echo " </main>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
}
// line 18
public function block_articleMeta($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "articleMeta"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "articleMeta"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "articleMeta"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
}
// line 20
public function block_articleHeader($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "articleHeader"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "articleHeader"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "articleHeader"));
// line 21
echo " ";
$context["dateRendered"] = twig_localized_date_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 21, $this->source); })()), "publishedAt", [], "any", false, false, false, 21), "none", "none", twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["sites"]) || array_key_exists("sites", $context) ? $context["sites"] : (function () { throw new RuntimeError('Variable "sites" does not exist.', 21, $this->source); })()), "current", [], "any", false, false, false, 21), "locale", [], "any", false, false, false, 21), null, "d MMMM Y 'godz.' hh:mm");
// line 22
echo " <div class=\"article__head\">
<h1 class=\"article__head-title\" itemprop=\"name headline\" id=\"article_title\">
";
// line 24
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 24, $this->source); })()), "title", [], "any", false, false, false, 24), "html", null, true);
echo "
</h1>
<div class=\"article__meta\">
<!-- authors -->
";
// line 29
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 29, $this->source); })()), "authors", [], "any", false, false, false, 29)) > 0)) {
// line 30
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 30, $this->source); })()), "authors", [], "any", false, false, false, 30));
foreach ($context['_seq'] as $context["_key"] => $context["contentAuthor"]) {
// line 31
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["contentAuthor"], "user", [], "any", true, true, false, 31)) {
$context["author"] = twig_get_attribute($this->env, $this->source, $context["contentAuthor"], "user", [], "any", false, false, false, 31);
} else {
$context["author"] = twig_get_attribute($this->env, $this->source, $context["contentAuthor"], "author", [], "any", false, false, false, 31);
}
// line 32
echo " <div class=\"article__author\" itemscope itemprop=\"author\" itemtype=\"http://schema.org/Person\">
";
// line 33
if ( !(null === (isset($context["author"]) || array_key_exists("author", $context) ? $context["author"] : (function () { throw new RuntimeError('Variable "author" does not exist.', 33, $this->source); })()))) {
// line 34
echo " ";
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["author"]) || array_key_exists("author", $context) ? $context["author"] : (function () { throw new RuntimeError('Variable "author" does not exist.', 34, $this->source); })()), "avatar", [], "any", false, false, false, 34))) {
// line 35
echo " <div class=\"article__author-avatar\"></div>
";
}
// line 37
echo " <span class=\"article__author-name\" itemprop=\"name\">";
ob_start();
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["contentAuthor"], "header", [], "any", false, false, false, 37), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["author"]) || array_key_exists("author", $context) ? $context["author"] : (function () { throw new RuntimeError('Variable "author" does not exist.', 37, $this->source); })()), "name", [], "any", false, false, false, 37), "html", null, true);
echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
echo "</span>
";
}
// line 39
echo " </div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['contentAuthor'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 41
echo " ";
}
// line 42
echo "
<!-- publication date -->
<time class=\"article__meta-date\">";
// line 44
echo twig_escape_filter($this->env, (isset($context["dateRendered"]) || array_key_exists("dateRendered", $context) ? $context["dateRendered"] : (function () { throw new RuntimeError('Variable "dateRendered" does not exist.', 44, $this->source); })()), "html", null, true);
echo "</time>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
}
// line 49
public function block_articleCover($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "articleCover"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "articleCover"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "articleCover"));
// line 50
echo " <div class=\"article__photo\">
";
// line 51
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 51, $this->source); })()), "photo", [], "any", false, false, false, 51))) {
// line 52
echo " ";
$context["imageUrl"] = $this->extensions['Hitso\Bundle\CommonBundle\Twig\MediaUrlExtension']->imageUrl(twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 52, $this->source); })()), "photo", [], "any", false, false, false, 52), "content_cover");
// line 53
echo " ";
$context["altText"] = ((twig_get_attribute($this->env, $this->source, ($context["article"] ?? null), "photoAlt", [], "any", true, true, false, 53)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["article"] ?? null), "photoAlt", [], "any", false, false, false, 53))) : (""));
// line 54
echo " <picture class=\"article__photo-picture\">
<source media=\"(max-width: 360px)\" srcset=\"";
// line 55
echo twig_escape_filter($this->env, $this->extensions['Hitso\Bundle\CommonBundle\Twig\MediaUrlExtension']->imageUrl(twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 55, $this->source); })()), "photo", [], "any", false, false, false, 55), "content_cover_small"), "html", null, true);
echo "\">
<source media=\"(max-width: 760px)\" srcset=\"";
// line 56
echo twig_escape_filter($this->env, $this->extensions['Hitso\Bundle\CommonBundle\Twig\MediaUrlExtension']->imageUrl(twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 56, $this->source); })()), "photo", [], "any", false, false, false, 56), "content_cover_medium"), "html", null, true);
echo "\">
<source media=\"(max-width: 1024px)\" srcset=\"";
// line 57
echo twig_escape_filter($this->env, $this->extensions['Hitso\Bundle\CommonBundle\Twig\MediaUrlExtension']->imageUrl(twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 57, $this->source); })()), "photo", [], "any", false, false, false, 57), "content_cover_large"), "html", null, true);
echo "\">
<img class=\"article__photo-img\" itemprop=\"image\" alt=\"";
// line 58
echo twig_escape_filter($this->env, (isset($context["altText"]) || array_key_exists("altText", $context) ? $context["altText"] : (function () { throw new RuntimeError('Variable "altText" does not exist.', 58, $this->source); })()), "html", null, true);
echo "\" src=\"";
echo twig_escape_filter($this->env, (isset($context["imageUrl"]) || array_key_exists("imageUrl", $context) ? $context["imageUrl"] : (function () { throw new RuntimeError('Variable "imageUrl" does not exist.', 58, $this->source); })()), "html", null, true);
echo "\"/>
</picture>
";
// line 60
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 60, $this->source); })()), "photoCaption", [], "any", false, false, false, 60))) {
// line 61
echo " <div class=\"article__photo-caption\">
";
// line 62
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 62, $this->source); })()), "photoCaption", [], "any", false, false, false, 62), "html", null, true);
echo "
</div>
";
}
// line 65
echo " ";
}
// line 66
echo " </div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
}
// line 69
public function block_articleLead($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "articleLead"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "articleLead"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "articleLead"));
// line 70
echo " <div class=\"article__lead\">
<p>
";
// line 72
echo twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 72, $this->source); })()), "lead", [], "any", false, false, false, 72);
echo "
</p>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
}
// line 77
public function block_articleContent($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "articleContent"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "articleContent"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "articleContent"));
// line 78
echo " <div class=\"article__content\">
";
// line 79
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 79, $this->source); })()), "elements", [], "any", false, false, false, 79));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["element"]) {
// line 80
echo " ";
$this->loadTemplate((("HitsoContentBundle:Front/Article/Elements:" . twig_get_attribute($this->env, $this->source, $context["element"], "typeName", [], "any", false, false, false, 80)) . ".html.twig"), "HitsoContentBundle:Front\\Article:show.html.twig", 80)->display($context);
// line 81
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['element'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 82
echo " </div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
}
// line 85
public function block_articleFooter($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "articleFooter"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "articleFooter"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "articleFooter"));
// line 86
echo " ";
$context["dateRendered"] = twig_localized_date_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 86, $this->source); })()), "publishedAt", [], "any", false, false, false, 86), "none", "none", twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["sites"]) || array_key_exists("sites", $context) ? $context["sites"] : (function () { throw new RuntimeError('Variable "sites" does not exist.', 86, $this->source); })()), "current", [], "any", false, false, false, 86), "locale", [], "any", false, false, false, 86), null, "d MMMM Y 'godz.' hh:mm");
// line 87
echo "
<!-- article footer -->
<div class=\"article__footer\">
<div class=\"article__meta\">
<!-- author -->
";
// line 92
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 92, $this->source); })()), "authors", [], "any", false, false, false, 92)) > 0)) {
// line 93
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["article"]) || array_key_exists("article", $context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.', 93, $this->source); })()), "authors", [], "any", false, false, false, 93));
foreach ($context['_seq'] as $context["_key"] => $context["contentAuthor"]) {
// line 94
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["contentAuthor"], "user", [], "any", true, true, false, 94)) {
$context["author"] = twig_get_attribute($this->env, $this->source, $context["contentAuthor"], "user", [], "any", false, false, false, 94);
} else {
$context["author"] = twig_get_attribute($this->env, $this->source, $context["contentAuthor"], "author", [], "any", false, false, false, 94);
}
// line 95
echo " <div class=\"article__author\">
";
// line 96
if ( !(null === (isset($context["author"]) || array_key_exists("author", $context) ? $context["author"] : (function () { throw new RuntimeError('Variable "author" does not exist.', 96, $this->source); })()))) {
// line 97
echo " ";
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["author"]) || array_key_exists("author", $context) ? $context["author"] : (function () { throw new RuntimeError('Variable "author" does not exist.', 97, $this->source); })()), "avatar", [], "any", false, false, false, 97))) {
// line 98
echo " <div class=\"article__author-avatar\"></div>
";
}
// line 100
echo " <span class=\"article__author-name\">";
ob_start();
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["contentAuthor"], "header", [], "any", false, false, false, 100), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["author"]) || array_key_exists("author", $context) ? $context["author"] : (function () { throw new RuntimeError('Variable "author" does not exist.', 100, $this->source); })()), "name", [], "any", false, false, false, 100), "html", null, true);
echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
echo "</span>
";
}
// line 102
echo " </div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['contentAuthor'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 104
echo " ";
}
// line 105
echo "
<!-- publication date -->
";
// line 108
echo " </div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
}
// line 112
public function block_articleComments($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "articleComments"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "articleComments"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "articleComments"));
// line 116
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
}
// line 122
public function block_related_articles($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "related_articles"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "related_articles"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "related_articles"));
// line 133
echo "
";
// line 137
echo "
";
// line 140
echo "
";
// line 145
echo "
";
// line 154
echo "
";
// line 168
echo "
";
// line 172
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
}
// line 174
public function block_contact($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "contact"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "contact"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "contact"));
// line 176
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
}
// line 180
public function block_meta($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta"));
// line 181
echo " ";
$this->displayParentBlock("meta", $context, $blocks);
echo "
";
// line 182
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["related"]) || array_key_exists("related", $context) ? $context["related"] : (function () { throw new RuntimeError('Variable "related" does not exist.', 182, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["entry"]) {
// line 183
echo " <meta property=\"og:see_also\" content=\"";
echo $this->extensions['Hitso\Bundle\RoutingBundle\Twig\RoutingExtension']->getAbsoluteDynamicUrl(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["entry"], "route", [], "any", false, false, false, 183), "id", [], "any", false, false, false, 183));
echo "\" />
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['entry'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
}
// line 187
public function block_footer_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer_javascripts"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer_javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer_javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
}
public function getTemplateName()
{
return "HitsoContentBundle:Front\\Article:show.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 759 => 187, 739 => 183, 735 => 182, 730 => 181, 717 => 180, 704 => 176, 691 => 174, 678 => 172, 675 => 168, 672 => 154, 669 => 145, 666 => 140, 663 => 137, 660 => 133, 647 => 122, 634 => 116, 621 => 112, 606 => 108, 602 => 105, 599 => 104, 592 => 102, 582 => 100, 578 => 98, 575 => 97, 573 => 96, 570 => 95, 563 => 94, 558 => 93, 556 => 92, 549 => 87, 546 => 86, 533 => 85, 519 => 82, 505 => 81, 502 => 80, 485 => 79, 482 => 78, 469 => 77, 452 => 72, 448 => 70, 435 => 69, 421 => 66, 418 => 65, 412 => 62, 409 => 61, 407 => 60, 400 => 58, 396 => 57, 392 => 56, 388 => 55, 385 => 54, 382 => 53, 379 => 52, 377 => 51, 374 => 50, 361 => 49, 344 => 44, 340 => 42, 337 => 41, 330 => 39, 320 => 37, 316 => 35, 313 => 34, 311 => 33, 308 => 32, 301 => 31, 296 => 30, 294 => 29, 286 => 24, 282 => 22, 279 => 21, 266 => 20, 242 => 18, 228 => 177, 226 => 174, 223 => 173, 221 => 122, 218 => 121, 208 => 118, 205 => 117, 203 => 112, 200 => 111, 198 => 85, 195 => 84, 193 => 77, 190 => 76, 188 => 69, 185 => 68, 183 => 49, 180 => 48, 178 => 20, 175 => 19, 173 => 18, 169 => 16, 163 => 15, 160 => 14, 147 => 13, 121 => 11, 106 => 8, 102 => 7, 98 => 6, 93 => 5, 80 => 4, 66 => 1, 64 => 2, 48 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'HitsoCommonBundle::layout.html.twig' %}
{% set related = related_articles(article, 4) %}
{% block stylesheets %}
{{ parent() }}
<link rel=\"stylesheet\" href=\"{{ asset('bundles/hitsocommon/hitsox-default-theme/source/css/article-critical.css') }}\">
<link rel=\"preload\" as=\"style\" href=\"{{ preload(asset('bundles/hitsocommon/hitsox-default-theme/source/css/article-critical.css')) }}\">
<link rel=\"preload\" href=\"{{ preload(asset('bundles/hitsocommon/hitsox-default-theme/source/css/article.css')) }}\" as=\"style\" onload=\"this.onload=null;this.rel='stylesheet'\">
{% endblock %}
{% block body_class %}{{ parent() }} page--article{% endblock %}
{% block content %}
<main class=\"main\">
{% cache cache_hash('article_main_' ~ article.version) {time: 3600} %}
<article class=\"article\">
{% block articleMeta %}{% endblock %}
{% block articleHeader %}
{% set dateRendered = article.publishedAt|localizeddate('none', 'none', sites.current.locale, null, \"d MMMM Y 'godz.' hh:mm\") %}
<div class=\"article__head\">
<h1 class=\"article__head-title\" itemprop=\"name headline\" id=\"article_title\">
{{ article.title }}
</h1>
<div class=\"article__meta\">
<!-- authors -->
{% if article.authors|length > 0 %}
{% for contentAuthor in article.authors %}
{% if contentAuthor.user is defined %}{% set author = contentAuthor.user %}{% else %}{% set author = contentAuthor.author %}{% endif %}
<div class=\"article__author\" itemscope itemprop=\"author\" itemtype=\"http://schema.org/Person\">
{% if author is not null %}
{% if author.avatar is not null %}
<div class=\"article__author-avatar\"></div>
{% endif %}
<span class=\"article__author-name\" itemprop=\"name\">{% spaceless %}{{ contentAuthor.header }} {{ author.name }}{% endspaceless %}</span>
{% endif %}
</div>
{% endfor %}
{% endif %}
<!-- publication date -->
<time class=\"article__meta-date\">{{ dateRendered }}</time>
</div>
</div>
{% endblock %}
{% block articleCover %}
<div class=\"article__photo\">
{% if article.photo is not empty %}
{% set imageUrl = article.photo|image_url('content_cover') %}
{% set altText = article.photoAlt|default %}
<picture class=\"article__photo-picture\">
<source media=\"(max-width: 360px)\" srcset=\"{{ article.photo|image_url('content_cover_small') }}\">
<source media=\"(max-width: 760px)\" srcset=\"{{ article.photo|image_url('content_cover_medium') }}\">
<source media=\"(max-width: 1024px)\" srcset=\"{{ article.photo|image_url('content_cover_large') }}\">
<img class=\"article__photo-img\" itemprop=\"image\" alt=\"{{ altText }}\" src=\"{{ imageUrl }}\"/>
</picture>
{% if article.photoCaption is not empty %}
<div class=\"article__photo-caption\">
{{ article.photoCaption }}
</div>
{% endif %}
{% endif %}
</div>
{% endblock %}
{% block articleLead %}
<div class=\"article__lead\">
<p>
{{ article.lead|raw }}
</p>
</div>
{% endblock %}
{% block articleContent %}
<div class=\"article__content\">
{% for element in article.elements %}
{% include \"HitsoContentBundle:Front/Article/Elements:#{element.typeName}.html.twig\" %}
{% endfor %}
</div>
{% endblock %}
{% block articleFooter %}
{% set dateRendered = article.publishedAt|localizeddate('none', 'none', sites.current.locale, null, \"d MMMM Y 'godz.' hh:mm\") %}
<!-- article footer -->
<div class=\"article__footer\">
<div class=\"article__meta\">
<!-- author -->
{% if article.authors|length > 0 %}
{% for contentAuthor in article.authors %}
{% if contentAuthor.user is defined %}{% set author = contentAuthor.user %}{% else %}{% set author = contentAuthor.author %}{% endif %}
<div class=\"article__author\">
{% if author is not null %}
{% if author.avatar is not null %}
<div class=\"article__author-avatar\"></div>
{% endif %}
<span class=\"article__author-name\">{% spaceless %}{{ contentAuthor.header }} {{ author.name }}{% endspaceless %}</span>
{% endif %}
</div>
{% endfor %}
{% endif %}
<!-- publication date -->
{# <time class=\"article__meta-date\">{{ dateRendered }}</time>#}
</div>
</div>
{% endblock %}
{% block articleComments %}
{# {% if article.commentAllowed %}#}
{# {% include 'HitsoContentBundle:Front/Article/Partials:comments.html.twig' %}#}
{# {% endif %}#}
{% endblock %}
{{ json_ld(article) }}
</article>
{% endcache %}
{% block related_articles %}
{# {% if related.count %}#}
{# <!-- hr -->#}
{# <div class=\"section-hr\"></div>#}
{# <!-- entries showcase -->#}
{# <section class=\"entries_showcase\">#}
{# <div class=\"entries_showcase__header\">#}
{# <div class=\"section section--center\">#}
{# <h2 class=\"section-title section-title--h1\">#}
{# Want to know more about us?#}
{# </h2>#}
{# <p class=\"section-lead\">#}
{# Visit our blog and learn more about technology and hitso#}
{# </p>#}
{# </div>#}
{# </div>#}
{# <div class=\"entries_showcase__grid entries\" itemscope itemtype=\"http://schema.org/ItemList\">#}
{# {% for entry in related %}#}
{# <div class=\"entry\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\">#}
{# <meta itemprop=\"position\" content=\"{{ loop.index }}\"/>#}
{# <a href=\"{{ dynamic_url(entry.route.id) }}\" class=\"entry__body\" itemprop=\"url\">#}
{# {% if entry.photo is not empty %}#}
{# {% set imageUrl = entry.photo|image_url('content_cover') %}#}
{# {% set altText = entry.photo.altText|default %}#}
{# <picture class=\"entry__photo\">#}
{# <img src=\"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-src=\"{{ imageUrl }}\" class=\"entry__photo-img lazyload\" alt=\"{{ entry.title }}\"/>#}
{# </picture>#}
{# {% endif %}#}
{# <div class=\"entry__content\">#}
{# <time class=\"entry__content-time\" datetime=\"{{ entry.publishedAt|date('Y-m-d') }}\">{{ entry.publishedAt|localizeddate('medium', 'none', app.request.locale) }}</time>#}
{# <strong class=\"entry__content-title\" itemprop=\"name\">#}
{# {{ entry.title }}#}
{# </strong>#}
{# <div class=\"entry__content-lead\">#}
{# {{ entry.lead|striptags }}#}
{# </div>#}
{# </div>#}
{# </a>#}
{# </div>#}
{# {% endfor %}#}
{# </div>#}
{# <a href=\"{{ dynamic_url(article.category.route.id) }}\" class=\"entries_showcase-cta btn btn--warning\">visit our blog</a>#}
{# </section>#}
{# {% endif %}#}
{% endblock %}
{% block contact %}
{# {% include 'HitsoContentBundle:Front/Article/Partials:contact.html.twig' %}#}
{% endblock %}
</main>
{% endblock %}
{% block meta %}
{{ parent() }}
{% for entry in related %}
<meta property=\"og:see_also\" content=\"{{ absolute_dynamic_url(entry.route.id) }}\" />
{% endfor %}
{% endblock %}
{% block footer_javascripts %}
{# <script src=\"{{ asset('bundles/hitsocommon/hitsox-default-theme/source/js/article.js') }}\"></script>#}
{% endblock %}
", "HitsoContentBundle:Front\\Article:show.html.twig", "/var/www/html/stage.hartmann-tresore.pl/releases/71/src/Hitso/Bundle/ContentBundle/Resources/views/Front/Article/show.html.twig");
}
}