var/cache/dev/twig/f9/f9ed98431a7f0bcd09dbbc14986d6e96ea551a1e774fc50c17b9750fe2bbd50c.php line 75

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_9b0e65723d334272777d411da8c3980b4bf4ad6c44348c6347df588afd280e83 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.         $twigCacheStrategy12 $this->env->getExtension('Twig\CacheExtension\Extension')->getCacheStrategy();
  37.         $twigKey12 $twigCacheStrategy12->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.         $twigCacheBody12 $twigCacheStrategy12->fetchBlock($twigKey12);
  39.         if ($twigCacheBody12 === 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==\" data-src=\"";
  101.                             // line 32
  102.                             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"nulltrue);
  103.                             echo "\" class=\"entry__photo-img lazyload\" alt=\"";
  104.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["entry"], "title", [], "any"falsefalsefalse32), "html"nulltrue);
  105.                             echo "\"/>
  106.                         </picture>
  107.                     ";
  108.                         }
  109.                         // line 35
  110.                         echo "
  111.                     <div class=\"entry__content\">
  112.                         <strong class=\"entry__content-title\" itemprop=\"name\">
  113.                             ";
  114.                         // line 38
  115.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["entry"], "title", [], "any"falsefalsefalse38), "html"nulltrue);
  116.                         echo "
  117.                         </strong>
  118.                         <div class=\"entry__content-lead\">
  119.                             ";
  120.                         // line 41
  121.                         echo twig_escape_filter($this->envtwig_striptags(twig_get_attribute($this->env$this->source$context["entry"], "lead", [], "any"falsefalsefalse41)), "html"nulltrue);
  122.                         echo "
  123.                         </div>
  124.                         <span class=\"entry__content-cta\">
  125.                             Read more
  126.                         </span>
  127.                     </div>
  128.                 </a>
  129.                 ";
  130.                     }
  131.                     // line 49
  132.                     echo "            </div>
  133.         ";
  134.                     ++$context['loop']['index0'];
  135.                     ++$context['loop']['index'];
  136.                     $context['loop']['first'] = false;
  137.                     if (isset($context['loop']['length'])) {
  138.                         --$context['loop']['revindex0'];
  139.                         --$context['loop']['revindex'];
  140.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  141.                     }
  142.                 }
  143.                 $_parent $context['_parent'];
  144.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['entry'], $context['_parent'], $context['loop']);
  145.                 $context array_intersect_key($context$_parent) + $_parent;
  146.                 // line 51
  147.                 echo "    </div>
  148.     <a href=\"";
  149.                 // line 53
  150.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("article_category_index");
  151.                 echo "\" class=\"entries_showcase-cta btn btn--warning\">visit our blog</a>
  152. </section>
  153. ";
  154.             
  155.             $twigCacheBody12 ob_get_clean();
  156.             $twigCacheStrategy12->saveBlock($twigKey12$twigCacheBody12);
  157.         }
  158.         echo $twigCacheBody12;
  159.         
  160.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
  161.         
  162.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  163.         
  164.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  165.     }
  166.     public function getTemplateName()
  167.     {
  168.         return "HitsoCommonBundle:Front/HomePage:blog.html.twig";
  169.     }
  170.     public function isTraitable()
  171.     {
  172.         return false;
  173.     }
  174.     public function getDebugInfo()
  175.     {
  176.         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,);
  177.     }
  178.     public function getSourceContext()
  179.     {
  180.         return new Source("{% cache 'hitsox/' ~ sites.current.id ~ '/home_page/blog' {time: 300} %}
  181. <!-- hr -->
  182. <div class=\"section-hr\"></div>
  183. <!-- entries showcase -->
  184. <section class=\"entries_showcase\">
  185.     <div class=\"entries_showcase__header\">
  186.         <div class=\"section section--center\">
  187.             <h2 class=\"section-title section-title--h1\">
  188.                 Want to know more about us?
  189.             </h2>
  190.             <p class=\"section-lead\">
  191.                 Visit our blog and learn more about technology and hitso
  192.             </p>
  193.         </div>
  194.     </div>
  195.     <div class=\"entries_showcase__grid entries\" itemscope itemtype=\"http://schema.org/ItemList\">
  196.         {% for entry in published_articles(4) %}
  197.             <div class=\"entry\" itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\">
  198.                 <meta itemprop=\"position\" content=\"{{ loop.index }}\"/>
  199.                 {% if entry.route.id is defined %}
  200.                 <a href=\"{{ dynamic_url(entry.route.id) }}\" class=\"entry__body\" itemprop=\"url\">
  201.                     {% if entry.photo is not empty %}
  202.                         {% set imageUrl = entry.photo|image_url('content_cover') %}
  203.                         {% set altText = entry.photo.altText|default %}
  204.                         <picture class=\"entry__photo\">
  205.                             <img src=\"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" data-src=\"{{ imageUrl }}\" class=\"entry__photo-img lazyload\" alt=\"{{ entry.title }}\"/>
  206.                         </picture>
  207.                     {% endif %}
  208.                     <div class=\"entry__content\">
  209.                         <strong class=\"entry__content-title\" itemprop=\"name\">
  210.                             {{ entry.title }}
  211.                         </strong>
  212.                         <div class=\"entry__content-lead\">
  213.                             {{ entry.lead|striptags }}
  214.                         </div>
  215.                         <span class=\"entry__content-cta\">
  216.                             Read more
  217.                         </span>
  218.                     </div>
  219.                 </a>
  220.                 {% endif %}
  221.             </div>
  222.         {% endfor %}
  223.     </div>
  224.     <a href=\"{{ path('article_category_index') }}\" class=\"entries_showcase-cta btn btn--warning\">visit our blog</a>
  225. </section>
  226. {% endcache %}""HitsoCommonBundle:Front/HomePage:blog.html.twig""/var/www/stage.jukieurope.com/releases/77/templates/juki/HitsoCommonBundle/Front/HomePage/blog.html.twig");
  227.     }
  228. }