var/cache/dev/twig/ef/ef4d74d08722a873c2e14956e4a382ef2f1ec243b3bf66368b78ef6064be62d4.php line 109

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. /* HitsoCommonBundle:Front/HomePage:blog.html.twig */
  14. class __TwigTemplate_7bdb951158c0cab581a9f082d956ec52929f446a543c58ba2f37017cefaaa08e 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  30.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""HitsoCommonBundle:Front/HomePage:blog.html.twig"));
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""HitsoCommonBundle:Front/HomePage:blog.html.twig"));
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""HitsoCommonBundle:Front/HomePage:blog.html.twig"));
  35.         // line 1
  36.         $twigCacheStrategy9 $this->env->getExtension('Twig\CacheExtension\Extension')->getCacheStrategy();
  37.         $twigKey9 $twigCacheStrategy9->generateKey((("hitsox/" twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse1), "id", [], "any"falsefalsefalse1)) . "/home_page/blog"), ["time" => 300]        );
  38.         $twigCacheBody9 $twigCacheStrategy9->fetchBlock($twigKey9);
  39.         if ($twigCacheBody9 === false) {
  40.             ob_start();
  41.                 // line 2
  42.                 echo "
  43.     <!-- hr -->
  44.     <div class=\"section-hr\"></div>
  45.     <!-- entries showcase -->
  46.     <section class=\"entries_showcase\">
  47.         <div class=\"entries_showcase__header\">
  48.             <div class=\"section section--center\">
  49.                 <h2 class=\"section-title section-title--h1\">
  50.                     Want to know more about us?
  51.                 </h2>
  52.                 <p class=\"section-lead\">
  53.                     Visit our blog and learn more about technology and hitso
  54.                 </p>
  55.             </div>
  56.         </div>
  57.         <div class=\"entries_showcase__grid entries\" itemscope itemtype=\"http://schema.org/ItemList\">
  58.             ";
  59.                 // line 22
  60.                 $context['_parent'] = $context;
  61.                 $context['_seq'] = twig_ensure_traversable($this->extensions['Hitso\Bundle\ContentBundle\Twig\Extension\ContentExtension']->getPublishedArticles(4));
  62.                 $context['loop'] = [
  63.                   'parent' => $context['_parent'],
  64.                   'index0' => 0,
  65.                   'index'  => 1,
  66.                   'first'  => true,
  67.                 ];
  68.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  69.                     $length count($context['_seq']);
  70.                     $context['loop']['revindex0'] = $length 1;
  71.                     $context['loop']['revindex'] = $length;
  72.                     $context['loop']['length'] = $length;
  73.                     $context['loop']['last'] = === $length;
  74.                 }
  75.                 foreach ($context['_seq'] as $context["_key"] => $context["entry"]) {
  76.                     // line 23
  77.                     echo "                <div class=\"entry\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\">
  78.                     <meta itemprop=\"position\" content=\"";
  79.                     // line 24
  80.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse24), "html"nulltrue);
  81.                     echo "\"/>
  82.                     ";
  83.                     // line 26
  84.                     if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["entry"], "route", [], "any"falsetruefalse26), "id", [], "any"truetruefalse26)) {
  85.                         // line 27
  86.                         echo "                        <a href=\"";
  87.                         echo $this->extensions['Hitso\Bundle\RoutingBundle\Twig\RoutingExtension']->getDynamicUrl(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["entry"], "route", [], "any"falsefalsefalse27), "id", [], "any"falsefalsefalse27));
  88.                         echo "\" class=\"entry__body\" itemprop=\"url\">
  89.                             ";
  90.                         // line 28
  91.                         if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["entry"], "photo", [], "any"falsefalsefalse28))) {
  92.                             // line 29
  93.                             echo "                                ";
  94.                             $context["imageUrl"] = $this->extensions['Hitso\Bundle\CommonBundle\Twig\MediaUrlExtension']->imageUrl(twig_get_attribute($this->env$this->source$context["entry"], "photo", [], "any"falsefalsefalse29), "content_cover");
  95.                             // line 30
  96.                             echo "                                ";
  97.                             $context["altText"] = ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["entry"], "photo", [], "any"falsetruefalse30), "altText", [], "any"truetruefalse30)) ? (_twig_default_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["entry"], "photo", [], "any"falsetruefalse30), "altText", [], "any"falsefalsefalse30))) : (""));
  98.                             // line 31
  99.                             echo "                                <picture class=\"entry__photo\">
  100.                                     <img src=\"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\"
  101.                                          data-src=\"";
  102.                             // line 33
  103.                             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.'33$this->source); })()), "html"nulltrue);
  104.                             echo "\" class=\"entry__photo-img lazyload\" alt=\"";
  105.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["entry"], "title", [], "any"falsefalsefalse33), "html"nulltrue);
  106.                             echo "\"/>
  107.                                 </picture>
  108.                             ";
  109.                         }
  110.                         // line 36
  111.                         echo "
  112.                             <div class=\"entry__content\">
  113.                                 <strong class=\"entry__content-title\" itemprop=\"name\">
  114.                                     ";
  115.                         // line 39
  116.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["entry"], "title", [], "any"falsefalsefalse39), "html"nulltrue);
  117.                         echo "
  118.                                 </strong>
  119.                                 <div class=\"entry__content-lead\">
  120.                                     ";
  121.                         // line 42
  122.                         echo twig_escape_filter($this->envtwig_striptags(twig_get_attribute($this->env$this->source$context["entry"], "lead", [], "any"falsefalsefalse42)), "html"nulltrue);
  123.                         echo "
  124.                                 </div>
  125.                                 <span class=\"entry__content-cta\">
  126.                             Read more
  127.                         </span>
  128.                             </div>
  129.                         </a>
  130.                     ";
  131.                     }
  132.                     // line 50
  133.                     echo "                </div>
  134.             ";
  135.                     ++$context['loop']['index0'];
  136.                     ++$context['loop']['index'];
  137.                     $context['loop']['first'] = false;
  138.                     if (isset($context['loop']['length'])) {
  139.                         --$context['loop']['revindex0'];
  140.                         --$context['loop']['revindex'];
  141.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  142.                     }
  143.                 }
  144.                 $_parent $context['_parent'];
  145.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['entry'], $context['_parent'], $context['loop']);
  146.                 $context array_intersect_key($context$_parent) + $_parent;
  147.                 // line 52
  148.                 echo "        </div>
  149.         <a href=\"";
  150.                 // line 54
  151.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("article_category_index");
  152.                 echo "\" class=\"entries_showcase-cta btn btn--warning\">visit our blog</a>
  153.     </section>
  154. ";
  155.             
  156.             $twigCacheBody9 ob_get_clean();
  157.             $twigCacheStrategy9->saveBlock($twigKey9$twigCacheBody9);
  158.         }
  159.         echo $twigCacheBody9;
  160.         
  161.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
  162.         
  163.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  164.         
  165.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  166.     }
  167.     public function getTemplateName()
  168.     {
  169.         return "HitsoCommonBundle:Front/HomePage:blog.html.twig";
  170.     }
  171.     public function isTraitable()
  172.     {
  173.         return false;
  174.     }
  175.     public function getDebugInfo()
  176.     {
  177.         return array (  167 => 54,  163 => 52,  148 => 50,  137 => 42,  131 => 39,  126 => 36,  118 => 33,  114 => 31,  111 => 30,  108 => 29,  106 => 28,  101 => 27,  99 => 26,  94 => 24,  91 => 23,  74 => 22,  52 => 2,  46 => 1,);
  178.     }
  179.     public function getSourceContext()
  180.     {
  181.         return new Source("{% cache 'hitsox/' ~ sites.current.id ~ '/home_page/blog' {time: 300} %}
  182.     <!-- hr -->
  183.     <div class=\"section-hr\"></div>
  184.     <!-- entries showcase -->
  185.     <section class=\"entries_showcase\">
  186.         <div class=\"entries_showcase__header\">
  187.             <div class=\"section section--center\">
  188.                 <h2 class=\"section-title section-title--h1\">
  189.                     Want to know more about us?
  190.                 </h2>
  191.                 <p class=\"section-lead\">
  192.                     Visit our blog and learn more about technology and hitso
  193.                 </p>
  194.             </div>
  195.         </div>
  196.         <div class=\"entries_showcase__grid entries\" itemscope itemtype=\"http://schema.org/ItemList\">
  197.             {% for entry in published_articles(4) %}
  198.                 <div class=\"entry\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\">
  199.                     <meta itemprop=\"position\" content=\"{{ loop.index }}\"/>
  200.                     {% if entry.route.id is defined %}
  201.                         <a href=\"{{ dynamic_url(entry.route.id) }}\" class=\"entry__body\" itemprop=\"url\">
  202.                             {% if entry.photo is not empty %}
  203.                                 {% set imageUrl = entry.photo|image_url('content_cover') %}
  204.                                 {% set altText = entry.photo.altText|default %}
  205.                                 <picture class=\"entry__photo\">
  206.                                     <img src=\"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\"
  207.                                          data-src=\"{{ imageUrl }}\" class=\"entry__photo-img lazyload\" alt=\"{{ entry.title }}\"/>
  208.                                 </picture>
  209.                             {% endif %}
  210.                             <div class=\"entry__content\">
  211.                                 <strong class=\"entry__content-title\" itemprop=\"name\">
  212.                                     {{ entry.title }}
  213.                                 </strong>
  214.                                 <div class=\"entry__content-lead\">
  215.                                     {{ entry.lead|striptags }}
  216.                                 </div>
  217.                                 <span class=\"entry__content-cta\">
  218.                             Read more
  219.                         </span>
  220.                             </div>
  221.                         </a>
  222.                     {% endif %}
  223.                 </div>
  224.             {% endfor %}
  225.         </div>
  226.         <a href=\"{{ path('article_category_index') }}\" class=\"entries_showcase-cta btn btn--warning\">visit our blog</a>
  227.     </section>
  228. {% endcache %}""HitsoCommonBundle:Front/HomePage:blog.html.twig""/var/www/html/stage.hartmann-tresore.pl/releases/71/src/Hitso/Bundle/CommonBundle/Resources/views/Front/HomePage/blog.html.twig");
  229.     }
  230. }