<?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/cta-banner.twig */
class __TwigTemplate_47b0fe0bcaa6d9841c6d146d3c6ee98b 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-cta\">
    <div class=\"c-cta__img\">
        <img src=\"";
        // line 3
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["fn"] ?? null), "get_template_directory_uri", [], "method", false, false, false, 3), "html", null, true);
        echo "/dist/images/cta.png\" alt=\"background image\" />
    </div>
    <div class=\"c-cta__body\">
        <div class=\"c-cta__body-heading\">
            ";
        // line 7
        echo ($context["heading"] ?? null);
        echo "
        </div>
        ";
        // line 9
        if (twig_get_attribute($this->env, $this->source, ($context["cta"] ?? null), "title", [], "any", false, false, false, 9)) {
            echo "<p><a href=\"";
            echo twig_get_attribute($this->env, $this->source, ($context["cta"] ?? null), "url", [], "any", false, false, false, 9);
            echo "\" class=\"c-btn\" title=\"";
            echo twig_get_attribute($this->env, $this->source, ($context["cta"] ?? null), "title", [], "any", false, false, false, 9);
            echo "\">";
            echo twig_get_attribute($this->env, $this->source, ($context["cta"] ?? null), "title", [], "any", false, false, false, 9);
            echo "</a></p>";
        }
        // line 10
        echo "    </div>
</section>";
    }

    public function getTemplateName()
    {
        return "parts/cta-banner.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  63 => 10,  53 => 9,  48 => 7,  41 => 3,  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("<section class=\"c-cta\">
    <div class=\"c-cta__img\">
        <img src=\"{{ fn.get_template_directory_uri() }}/dist/images/cta.png\" alt=\"background image\" />
    </div>
    <div class=\"c-cta__body\">
        <div class=\"c-cta__body-heading\">
            {{ heading|raw }}
        </div>
        {% if cta.title %}<p><a href=\"{{ cta.url|raw }}\" class=\"c-btn\" title=\"{{ cta.title|raw }}\">{{ cta.title|raw }}</a></p>{% endif %}
    </div>
</section>", "parts/cta-banner.twig", "/var/www/htdocs/content/themes/coburg-industries/views/parts/cta-banner.twig");
    }
}
