<?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;

/* parts/home-hero.twig */
class __TwigTemplate_89248d231bbf77fb1656bd1c702945ce extends 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;
        // line 1
        echo "<section class=\"c-hero\">
    <div class=\"o-wrapper\">
        <div class=\"c-hero__body\">        
            <div class=\"c-hero__logo\"  data-aos=\"fade-up\">
                ";
        // line 5
        $context["logo"] = twig_get_attribute($this->env, $this->source, ($context["fn"] ?? null), "get_attached_file", [($context["logo"] ?? null)], "method", false, false, false, 5);
        // line 6
        echo "                ";
        echo twig_get_attribute($this->env, $this->source, ($context["fn"] ?? null), "file_get_contents", [($context["logo"] ?? null)], "method", false, false, false, 6);
        echo "
            </div>
            <div class=\"c-hero__poster\">
                <div>
                    ";
        // line 10
        echo twig_get_attribute($this->env, $this->source, ($context["fn"] ?? null), "wp_get_attachment_image", [($context["image"] ?? null), "full", false, ["class" => "c-hero__poster-img u-responsive-image u-hide-mobile", "data-lazyload" => false, "data-aos" => "fade-up", "data-aos-delay" => "200"]], "method", false, false, false, 10);
        echo "
                    ";
        // line 11
        if (($context["image_mobile"] ?? null)) {
            // line 12
            echo "                        ";
            echo twig_get_attribute($this->env, $this->source, ($context["fn"] ?? null), "wp_get_attachment_image", [($context["image_mobile"] ?? null), "hero_mobile", false, ["class" => "c-hero__poster-img u-responsive-image u-hide-tablet", "data-lazyload" => false, "data-aos" => "fade-up", "data-aos-delay" => "200"]], "method", false, false, false, 12);
            echo "
                    ";
        } else {
            // line 14
            echo "                        ";
            echo twig_get_attribute($this->env, $this->source, ($context["fn"] ?? null), "wp_get_attachment_image", [($context["image"] ?? null), "hero_mobile", false, ["class" => "c-hero__poster-img u-responsive-image u-hide-tablet", "data-lazyload" => false, "data-aos" => "fade-up", "data-aos-delay" => "200"]], "method", false, false, false, 14);
            echo "
                    ";
        }
        // line 16
        echo "                </div>
                <svg width=\"48\" height=\"48\" viewBox=\"0 0 48 48\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"> <path d=\"M24 36L12 24L14.8 21.2L22 28.4V10H26V28.4L33.2 21.2L36 24L24 36Z\" fill=\"white\"/> </svg>
            </div>


            <div class=\"c-hero__sponsor\" data-aos=\"fade-up\" data-aos-delay=\"200\">
                ";
        // line 22
        echo twig_escape_filter($this->env, ($context["sponsor_text"] ?? null), "html", null, true);
        echo "
                ";
        // line 23
        $context["sponsor_logo"] = twig_get_attribute($this->env, $this->source, ($context["fn"] ?? null), "get_attached_file", [($context["sponsor_logo"] ?? null)], "method", false, false, false, 23);
        // line 24
        echo "                ";
        echo twig_get_attribute($this->env, $this->source, ($context["fn"] ?? null), "file_get_contents", [($context["sponsor_logo"] ?? null)], "method", false, false, false, 24);
        echo "
            </div>
        </div>
    </div>
</section>";
    }

    public function getTemplateName()
    {
        return "parts/home-hero.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  85 => 24,  83 => 23,  79 => 22,  71 => 16,  65 => 14,  59 => 12,  57 => 11,  53 => 10,  45 => 6,  43 => 5,  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("<section class=\"c-hero\">
    <div class=\"o-wrapper\">
        <div class=\"c-hero__body\">        
            <div class=\"c-hero__logo\"  data-aos=\"fade-up\">
                {% set logo = fn.get_attached_file(logo) %}
                {{ fn.file_get_contents(logo)|raw }}
            </div>
            <div class=\"c-hero__poster\">
                <div>
                    {{ fn.wp_get_attachment_image(image, 'full', false, {'class': 'c-hero__poster-img u-responsive-image u-hide-mobile', 'data-lazyload': false, 'data-aos':'fade-up', 'data-aos-delay':'200'}) | raw }}
                    {% if image_mobile %}
                        {{ fn.wp_get_attachment_image(image_mobile, 'hero_mobile', false, {'class': 'c-hero__poster-img u-responsive-image u-hide-tablet', 'data-lazyload': false, 'data-aos':'fade-up', 'data-aos-delay':'200'}) | raw }}
                    {% else %}
                        {{ fn.wp_get_attachment_image(image, 'hero_mobile', false, {'class': 'c-hero__poster-img u-responsive-image u-hide-tablet', 'data-lazyload': false, 'data-aos':'fade-up', 'data-aos-delay':'200'}) | raw }}
                    {% endif %}
                </div>
                <svg width=\"48\" height=\"48\" viewBox=\"0 0 48 48\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"> <path d=\"M24 36L12 24L14.8 21.2L22 28.4V10H26V28.4L33.2 21.2L36 24L24 36Z\" fill=\"white\"/> </svg>
            </div>


            <div class=\"c-hero__sponsor\" data-aos=\"fade-up\" data-aos-delay=\"200\">
                {{ sponsor_text }}
                {% set sponsor_logo = fn.get_attached_file(sponsor_logo) %}
                {{ fn.file_get_contents(sponsor_logo)|raw }}
            </div>
        </div>
    </div>
</section>", "parts/home-hero.twig", "/var/www/htdocs/content/themes/coburg-industries/views/parts/home-hero.twig");
    }
}
