var/cache/website/dev/twig/a1/a1821fff396b196407876f6c06500727.php line 121

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. /* includes/blocks/homeNewsSection.html.twig */
  14. class __TwigTemplate_2e11110d11c18d11c92c9e71b0e8832a extends 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_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""includes/blocks/homeNewsSection.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""includes/blocks/homeNewsSection.html.twig"));
  33.         // line 1
  34.         $macros["macrosTypography"] = $this->macros["macrosTypography"] = $this->loadTemplate("./macros_typography.html.twig""includes/blocks/homeNewsSection.html.twig"1)->unwrap();
  35.         // line 2
  36.         $macros["macrosButton"] = $this->macros["macrosButton"] = $this->loadTemplate("./macros_button.html.twig""includes/blocks/homeNewsSection.html.twig"2)->unwrap();
  37.         // line 3
  38.         echo "
  39. <section class=\"news-section relative\"
  40.   section-shade=\"light\">
  41.   <div class=\"fixed-lines\">
  42.     <div class=\"hidden lg:block\"></div>
  43.     <div class=\"hidden lg:block\"></div>
  44.     <div class=\"hidden lg:block\"></div>
  45.   </div>
  46.   <div class=\"relative grid grid-cols-1 lg:grid-cols-[1fr_2fr] pt-12 pb-12 lg:pt-16 lg:pb-0\">
  47.     <div class=\"overflow-hidden px-8 xl:px-12 text-blue\">
  48.       <h2 class=\"h2\"
  49.         split-direction=\"top\"
  50.         split-trigger=\"scroll\">
  51.         ";
  52.         // line 18
  53.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, ($context["content"] ?? null), "AlpineTitle", [], "any"falsefalsefalse18), "html"nulltrue);
  54.         echo "
  55.       </h2>
  56.     </div>
  57.     <div class=\"hidden lg:block relative w-full h-[340px] ml-px z-10\"
  58.       fade
  59.       fade-trigger=\"scroll\">
  60.       <div class=\"img-clip h-full\">
  61.       ";
  62.         // line 26
  63.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, ($context["content"] ?? null), "AlpineMedia", [], "any"falsefalsefalse26)) > 0)) {
  64.             // line 27
  65.             echo "      ";
  66.             $context["image"] = (($__internal_compile_0 twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["content"] ?? null), "AlpineMedia", [], "any"falsefalsefalse27), "thumbnails", [], "any"falsefalsefalse27)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0["1400x400"] ?? null) : null);
  67.             // line 28
  68.             echo "        ";
  69.             // line 29
  70.             echo "        <img src=\"";
  71.             echo twig_escape_filter($this->env, ($context["image"] ?? null), "html"nulltrue);
  72.             echo "\"
  73.           alt=\"news main image\"
  74.           loading=\"lazy\">
  75.         ";
  76.             // line 33
  77.             echo "        <img src=\"";
  78.             echo twig_escape_filter($this->env, ($context["image"] ?? null), "html"nulltrue);
  79.             echo "\"
  80.           alt=\"news main image\"
  81.           loading=\"lazy\">
  82.       ";
  83.         }
  84.         // line 37
  85.         echo "      </div>
  86.     </div>
  87.   </div>
  88.   <div class=\"news-grid grid lg:grid-cols-3 divide-y lg:divide-none divide-gray border-t border-gray\">
  89.     ";
  90.         // line 44
  91.         $context['_parent'] = $context;
  92.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, ($context["content"] ?? null), "similarNews", [], "any"falsefalsefalse44));
  93.         foreach ($context['_seq'] as $context["_key"] => $context["news"]) {
  94.             // line 45
  95.             echo "
  96.     ";
  97.             // line 46
  98.             $context["item"] = $this->env->getFunction('sulu_content_load')->getCallable()(twig_get_attribute($this->env$this->source$context["news"], "singleNews", [], "any"falsefalsefalse46), ["title" => "title""url" => "url""date" => "date"]);
  99.             // line 47
  100.             echo "
  101.     <div
  102.       class=\"news-item relative flex flex-col justify-between px-8 py-6 lg:p-8 xl:p-12 xl:pr-44 text-blue group duration-500 ease-basic-ease hover:text-white hover:bg-blue\">
  103.       <a class=\"absolute inset-0 text-[0px] z-10\"
  104.         href=\"";
  105.             // line 51
  106.             echo twig_escape_filter($this->env$this->extensions['Sulu\Bundle\WebsiteBundle\Twig\Content\ContentPathTwigExtension']->getContentPath(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["item"] ?? null), "content", [], "any"falsefalsefalse51), "url", [], "any"falsefalsefalse51)), "html"nulltrue);
  107.             echo "\">";
  108.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["item"] ?? null), "content", [], "any"falsefalsefalse51), "title", [], "any"falsefalsefalse51), "html"nulltrue);
  109.             echo "</a>
  110.       <time class=\"news-item__time block text-sm mb-4 lg:mb-16\"
  111.         split-direction=\"bottom\"
  112.         split-trigger=\"none\">
  113.         ";
  114.             // line 56
  115.             echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["item"] ?? null), "content", [], "any"falsefalsefalse56), "date", [], "any"falsefalsefalse56), "d M, Y"), "html"nulltrue);
  116.             echo "
  117.       </time>
  118.  
  119.       <div class=\"mt-auto\">
  120.         <h3 class=\"news-item__title h4 pr-7\"
  121.           fade
  122.           fade-trigger=\"none\">";
  123.             // line 62
  124.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["item"] ?? null), "content", [], "any"falsefalsefalse62), "title", [], "any"falsefalsefalse62), "html"nulltrue);
  125.             echo "</h3>
  126.         ";
  127.             // line 64
  128.             echo twig_call_macro($macros["macrosButton"], "macro_miniArrow", [["class" => "news-item__arrow ml-auto lg:ml-0 mt-9""trigger" => "none"]], 64$context$this->getSourceContext());
  129.             // line 67
  130.             echo "
  131.       </div>
  132.     </div>
  133.     ";
  134.         }
  135.         $_parent $context['_parent'];
  136.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['news'], $context['_parent'], $context['loop']);
  137.         $context array_intersect_key($context$_parent) + $_parent;
  138.         // line 73
  139.         echo "  </div>
  140. </section>";
  141.         
  142.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  143.         
  144.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  145.     }
  146.     public function getTemplateName()
  147.     {
  148.         return "includes/blocks/homeNewsSection.html.twig";
  149.     }
  150.     public function isTraitable()
  151.     {
  152.         return false;
  153.     }
  154.     public function getDebugInfo()
  155.     {
  156.         return array (  158 => 73,  147 => 67,  145 => 64,  140 => 62,  131 => 56,  121 => 51,  115 => 47,  113 => 46,  110 => 45,  106 => 44,  97 => 37,  89 => 33,  82 => 29,  80 => 28,  77 => 27,  75 => 26,  64 => 18,  47 => 3,  45 => 2,  43 => 1,);
  157.     }
  158.     public function getSourceContext()
  159.     {
  160.         return new Source("{% import \"./macros_typography.html.twig\" as macrosTypography %}
  161. {% import \"./macros_button.html.twig\" as macrosButton %}
  162. <section class=\"news-section relative\"
  163.   section-shade=\"light\">
  164.   <div class=\"fixed-lines\">
  165.     <div class=\"hidden lg:block\"></div>
  166.     <div class=\"hidden lg:block\"></div>
  167.     <div class=\"hidden lg:block\"></div>
  168.   </div>
  169.   <div class=\"relative grid grid-cols-1 lg:grid-cols-[1fr_2fr] pt-12 pb-12 lg:pt-16 lg:pb-0\">
  170.     <div class=\"overflow-hidden px-8 xl:px-12 text-blue\">
  171.       <h2 class=\"h2\"
  172.         split-direction=\"top\"
  173.         split-trigger=\"scroll\">
  174.         {{ content.AlpineTitle }}
  175.       </h2>
  176.     </div>
  177.     <div class=\"hidden lg:block relative w-full h-[340px] ml-px z-10\"
  178.       fade
  179.       fade-trigger=\"scroll\">
  180.       <div class=\"img-clip h-full\">
  181.       {% if content.AlpineMedia|length > 0 %}
  182.       {% set image = content.AlpineMedia.thumbnails['1400x400'] %}
  183.         {# Image size 1400*400 #}
  184.         <img src=\"{{ image }}\"
  185.           alt=\"news main image\"
  186.           loading=\"lazy\">
  187.         {# Image size 1400*400 #}
  188.         <img src=\"{{ image }}\"
  189.           alt=\"news main image\"
  190.           loading=\"lazy\">
  191.       {% endif %}
  192.       </div>
  193.     </div>
  194.   </div>
  195.   <div class=\"news-grid grid lg:grid-cols-3 divide-y lg:divide-none divide-gray border-t border-gray\">
  196.     {% for news in content.similarNews %}
  197.     {% set item = sulu_content_load(news.singleNews, {'title': 'title', 'url': 'url', 'date': 'date'}) %}
  198.     <div
  199.       class=\"news-item relative flex flex-col justify-between px-8 py-6 lg:p-8 xl:p-12 xl:pr-44 text-blue group duration-500 ease-basic-ease hover:text-white hover:bg-blue\">
  200.       <a class=\"absolute inset-0 text-[0px] z-10\"
  201.         href=\"{{ sulu_content_path(item.content.url) }}\">{{ item.content.title }}</a>
  202.       <time class=\"news-item__time block text-sm mb-4 lg:mb-16\"
  203.         split-direction=\"bottom\"
  204.         split-trigger=\"none\">
  205.         {{ item.content.date|date('d M, Y') }}
  206.       </time>
  207.  
  208.       <div class=\"mt-auto\">
  209.         <h3 class=\"news-item__title h4 pr-7\"
  210.           fade
  211.           fade-trigger=\"none\">{{ item.content.title }}</h3>
  212.         {{macrosButton.miniArrow({
  213.         'class': 'news-item__arrow ml-auto lg:ml-0 mt-9',
  214.         'trigger': 'none'
  215.         })}}
  216.       </div>
  217.     </div>
  218.     {% endfor %}
  219.   </div>
  220. </section>""includes/blocks/homeNewsSection.html.twig""/home/clients/27e4eb6afe64c67f100a17cbd6809e7c/var/www/oakas-lane/templates/includes/blocks/homeNewsSection.html.twig");
  221.     }
  222. }