<?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/image-text.twig */
class __TwigTemplate_016bceecc51c83b1ac3318353691a531 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-image-text\">
    <div class=\"o-wrapper\">
        <div class=\"c-image-text__body\">
            <div class=\"c-image-text__image has_swirl\">
                <img class=\"left_swirl lazyload\" data-src=\"";
        // line 5
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["fn"] ?? null), "get_template_directory_uri", [], "method", false, false, false, 5), "html", null, true);
        echo "/dist/images/Bottom.png\" />
                <div>
                    ";
        // line 7
        echo twig_get_attribute($this->env, $this->source, ($context["fn"] ?? null), "wp_get_attachment_image", [($context["image"] ?? null), "large", false, ["class" => "u-responsive-image"]], "method", false, false, false, 7);
        echo "
                    ";
        // line 8
        $context["caption"] = twig_get_attribute($this->env, $this->source, ($context["fn"] ?? null), "wp_get_attachment_caption", [($context["image"] ?? null)], "method", false, false, false, 8);
        // line 9
        echo "                    ";
        if (($context["caption"] ?? null)) {
            echo "<p class=\"u-image-caption\">";
            echo ($context["caption"] ?? null);
            echo "</p>";
        }
        // line 10
        echo "                </div>
                <img class=\"right_swirl lazyload\" data-src=\"";
        // line 11
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["fn"] ?? null), "get_template_directory_uri", [], "method", false, false, false, 11), "html", null, true);
        echo "/dist/images/Top.png\" />
            </div>
            <div class=\"c-image-text__text\">
                <h2>";
        // line 14
        echo ($context["heading"] ?? null);
        echo "</h2>
                <p class=\"u-body-sml\">";
        // line 15
        echo ($context["content"] ?? null);
        echo "</p>
                ";
        // line 16
        if (twig_get_attribute($this->env, $this->source, ($context["cta"] ?? null), "title", [], "any", false, false, false, 16)) {
            echo "<p><a href=\"";
            echo twig_get_attribute($this->env, $this->source, ($context["cta"] ?? null), "url", [], "any", false, false, false, 16);
            echo "\" class=\"c-btn\" title=\"";
            echo twig_get_attribute($this->env, $this->source, ($context["cta"] ?? null), "title", [], "any", false, false, false, 16);
            echo "\">";
            echo twig_get_attribute($this->env, $this->source, ($context["cta"] ?? null), "title", [], "any", false, false, false, 16);
            echo "</a></p>";
        }
        // line 17
        echo "            </div>
        </div>
    </div>
</section>";
    }

    public function getTemplateName()
    {
        return "parts/image-text.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  88 => 17,  78 => 16,  74 => 15,  70 => 14,  64 => 11,  61 => 10,  54 => 9,  52 => 8,  48 => 7,  43 => 5,  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("<section class=\"c-image-text\">
    <div class=\"o-wrapper\">
        <div class=\"c-image-text__body\">
            <div class=\"c-image-text__image has_swirl\">
                <img class=\"left_swirl lazyload\" data-src=\"{{ fn.get_template_directory_uri() }}/dist/images/Bottom.png\" />
                <div>
                    {{ fn.wp_get_attachment_image(image, 'large', false, {'class': 'u-responsive-image'}) | raw }}
                    {% set caption = fn.wp_get_attachment_caption(image) %}
                    {% if caption %}<p class=\"u-image-caption\">{{ caption|raw }}</p>{% endif %}
                </div>
                <img class=\"right_swirl lazyload\" data-src=\"{{ fn.get_template_directory_uri() }}/dist/images/Top.png\" />
            </div>
            <div class=\"c-image-text__text\">
                <h2>{{ heading|raw }}</h2>
                <p class=\"u-body-sml\">{{ content|raw }}</p>
                {% if cta.title %}<p><a href=\"{{ cta.url|raw }}\" class=\"c-btn\" title=\"{{ cta.title|raw }}\">{{ cta.title|raw }}</a></p>{% endif %}
            </div>
        </div>
    </div>
</section>", "parts/image-text.twig", "/var/www/htdocs/content/themes/speck/views/parts/image-text.twig");
    }
}
