<?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;
/* HitsoCommonBundle:Front/HomePage:blog.html.twig */
class __TwigTemplate_9b0e65723d334272777d411da8c3980b4bf4ad6c44348c6347df588afd280e83 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
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", "HitsoCommonBundle:Front/HomePage:blog.html.twig"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "HitsoCommonBundle:Front/HomePage:blog.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "HitsoCommonBundle:Front/HomePage:blog.html.twig"));
// line 1
$twigCacheStrategy12 = $this->env->getExtension('Twig\CacheExtension\Extension')->getCacheStrategy();
$twigKey12 = $twigCacheStrategy12->generateKey((("hitsox/" . 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.', 1, $this->source); })()), "current", [], "any", false, false, false, 1), "id", [], "any", false, false, false, 1)) . "/home_page/blog"), ["time" => 300] );
$twigCacheBody12 = $twigCacheStrategy12->fetchBlock($twigKey12);
if ($twigCacheBody12 === false) {
ob_start();
// line 2
echo "
<!-- 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\">
";
// line 22
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->extensions['Hitso\Bundle\ContentBundle\Twig\Extension\ContentExtension']->getPublishedArticles(4));
$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["entry"]) {
// line 23
echo " <div class=\"entry\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\">
<meta itemprop=\"position\" content=\"";
// line 24
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 24), "html", null, true);
echo "\"/>
";
// line 26
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["entry"], "route", [], "any", false, true, false, 26), "id", [], "any", true, true, false, 26)) {
// line 27
echo " <a href=\"";
echo $this->extensions['Hitso\Bundle\RoutingBundle\Twig\RoutingExtension']->getDynamicUrl(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["entry"], "route", [], "any", false, false, false, 27), "id", [], "any", false, false, false, 27));
echo "\" class=\"entry__body\" itemprop=\"url\">
";
// line 28
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["entry"], "photo", [], "any", false, false, false, 28))) {
// line 29
echo " ";
$context["imageUrl"] = $this->extensions['Hitso\Bundle\CommonBundle\Twig\MediaUrlExtension']->imageUrl(twig_get_attribute($this->env, $this->source, $context["entry"], "photo", [], "any", false, false, false, 29), "content_cover");
// line 30
echo " ";
$context["altText"] = ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["entry"], "photo", [], "any", false, true, false, 30), "altText", [], "any", true, true, false, 30)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["entry"], "photo", [], "any", false, true, false, 30), "altText", [], "any", false, false, false, 30))) : (""));
// line 31
echo " <picture class=\"entry__photo\">
<img src=\"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-src=\"";
// line 32
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.', 32, $this->source); })()), "html", null, true);
echo "\" class=\"entry__photo-img lazyload\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["entry"], "title", [], "any", false, false, false, 32), "html", null, true);
echo "\"/>
</picture>
";
}
// line 35
echo "
<div class=\"entry__content\">
<strong class=\"entry__content-title\" itemprop=\"name\">
";
// line 38
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["entry"], "title", [], "any", false, false, false, 38), "html", null, true);
echo "
</strong>
<div class=\"entry__content-lead\">
";
// line 41
echo twig_escape_filter($this->env, twig_striptags(twig_get_attribute($this->env, $this->source, $context["entry"], "lead", [], "any", false, false, false, 41)), "html", null, true);
echo "
</div>
<span class=\"entry__content-cta\">
Read more
</span>
</div>
</a>
";
}
// line 49
echo " </div>
";
++$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['entry'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 51
echo " </div>
<a href=\"";
// line 53
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("article_category_index");
echo "\" class=\"entries_showcase-cta btn btn--warning\">visit our blog</a>
</section>
";
$twigCacheBody12 = ob_get_clean();
$twigCacheStrategy12->saveBlock($twigKey12, $twigCacheBody12);
}
echo $twigCacheBody12;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "HitsoCommonBundle:Front/HomePage:blog.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 166 => 53, 162 => 51, 147 => 49, 136 => 41, 130 => 38, 125 => 35, 117 => 32, 114 => 31, 111 => 30, 108 => 29, 106 => 28, 101 => 27, 99 => 26, 94 => 24, 91 => 23, 74 => 22, 52 => 2, 46 => 1,);
}
public function getSourceContext()
{
return new Source("{% cache 'hitsox/' ~ sites.current.id ~ '/home_page/blog' {time: 300} %}
<!-- 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 published_articles(4) %}
<div class=\"entry\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\">
<meta itemprop=\"position\" content=\"{{ loop.index }}\"/>
{% if entry.route.id is defined %}
<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\">
<strong class=\"entry__content-title\" itemprop=\"name\">
{{ entry.title }}
</strong>
<div class=\"entry__content-lead\">
{{ entry.lead|striptags }}
</div>
<span class=\"entry__content-cta\">
Read more
</span>
</div>
</a>
{% endif %}
</div>
{% endfor %}
</div>
<a href=\"{{ path('article_category_index') }}\" class=\"entries_showcase-cta btn btn--warning\">visit our blog</a>
</section>
{% endcache %}", "HitsoCommonBundle:Front/HomePage:blog.html.twig", "/var/www/stage.jukieurope.com/releases/77/templates/juki/HitsoCommonBundle/Front/HomePage/blog.html.twig");
}
}