<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;

/* @particles/main-feature.html.twig */
class __TwigTemplate_0eb20839b06fbe6c5acdf1f71397aaed28da6cda997d883ccee9429814c4e143 extends \Twig\Template
{
    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->blocks = [
            'particle' => [$this, 'block_particle'],
        ];
    }

    protected function doGetParent(array $context)
    {
        // line 1
        return "@nucleus/partials/particle.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        // line 3
        $context["attr_extra"] = "";
        // line 4
        if ($this->getAttribute(($context["particle"] ?? null), "extra", [])) {
            // line 5
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["particle"] ?? null), "extra", []));
            foreach ($context['_seq'] as $context["_key"] => $context["attributes"]) {
                // line 6
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable($context["attributes"]);
                foreach ($context['_seq'] as $context["key"] => $context["value"]) {
                    // line 7
                    $context["attr_extra"] = (((((($context["attr_extra"] ?? null) . " ") . twig_escape_filter($this->env, $context["key"])) . "=\"") . twig_escape_filter($this->env, $context["value"], "html_attr")) . "\"");
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['key'], $context['value'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['attributes'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
        }
        // line 12
        $context["attr_extra_left"] = "";
        // line 13
        if ($this->getAttribute(($context["particle"] ?? null), "extra_left", [])) {
            // line 14
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["particle"] ?? null), "extra_left", []));
            foreach ($context['_seq'] as $context["_key"] => $context["attributes"]) {
                // line 15
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable($context["attributes"]);
                foreach ($context['_seq'] as $context["key"] => $context["value"]) {
                    // line 16
                    $context["attr_extra_left"] = (((((($context["attr_extra_left"] ?? null) . " ") . twig_escape_filter($this->env, $context["key"])) . "=\"") . twig_escape_filter($this->env, $context["value"], "html_attr")) . "\"");
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['key'], $context['value'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['attributes'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
        }
        // line 21
        $context["attr_extra_right"] = "";
        // line 22
        if ($this->getAttribute(($context["particle"] ?? null), "extra_right", [])) {
            // line 23
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["particle"] ?? null), "extra_right", []));
            foreach ($context['_seq'] as $context["_key"] => $context["attributes"]) {
                // line 24
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable($context["attributes"]);
                foreach ($context['_seq'] as $context["key"] => $context["value"]) {
                    // line 25
                    $context["attr_extra_right"] = (((((($context["attr_extra_right"] ?? null) . " ") . twig_escape_filter($this->env, $context["key"])) . "=\"") . twig_escape_filter($this->env, $context["value"], "html_attr")) . "\"");
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['key'], $context['value'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['attributes'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
        }
        // line 30
        ob_start(function () { return ''; });
        // line 31
        echo "    ";
        if ($this->getAttribute(($context["particle"] ?? null), "title", [])) {
            // line 32
            echo "        <h3 class=\"g-main-feature-title\">";
            // line 33
            echo $this->getAttribute(($context["particle"] ?? null), "title", []);
            // line 34
            echo "</h3>
    ";
        }
        // line 36
        echo "
    ";
        // line 37
        if ($this->getAttribute(($context["particle"] ?? null), "description", [])) {
            // line 38
            echo "        <p class=\"g-main-feature-desc\">";
            // line 39
            echo $this->getAttribute(($context["particle"] ?? null), "description", []);
            // line 40
            echo "</p>
    ";
        }
        // line 42
        echo "
    ";
        // line 43
        if (($this->getAttribute(($context["particle"] ?? null), "link", []) || $this->getAttribute(($context["particle"] ?? null), "link2", []))) {
            // line 44
            echo "        <div class=\"g-main-feature-buttons\">

            ";
            // line 46
            if ($this->getAttribute(($context["particle"] ?? null), "link", [])) {
                // line 47
                echo "                <a class=\"button g-main-feature-link\" href=\"";
                echo twig_escape_filter($this->env, $this->getAttribute(($context["particle"] ?? null), "link", []));
                echo "\" target=\"";
                echo twig_escape_filter($this->env, (($this->getAttribute(($context["particle"] ?? null), "target", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["particle"] ?? null), "target", []), "_blank")) : ("_blank")));
                echo "\">";
                // line 48
                if ($this->getAttribute(($context["particle"] ?? null), "buttonicon", [])) {
                    // line 49
                    echo "<i class=\"";
                    echo twig_escape_filter($this->env, $this->getAttribute(($context["particle"] ?? null), "buttonicon", []));
                    echo "\"></i>";
                }
                // line 51
                echo $this->getAttribute(($context["particle"] ?? null), "buttontext", []);
                // line 52
                echo "</a>
            ";
            }
            // line 54
            echo "
            ";
            // line 55
            if ($this->getAttribute(($context["particle"] ?? null), "link2", [])) {
                // line 56
                echo "                <a class=\"button g-main-feature-link g-button2\" href=\"";
                echo twig_escape_filter($this->env, $this->getAttribute(($context["particle"] ?? null), "link2", []));
                echo "\" target=\"";
                echo twig_escape_filter($this->env, (($this->getAttribute(($context["particle"] ?? null), "target2", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["particle"] ?? null), "target2", []), "_blank")) : ("_blank")));
                echo "\">";
                // line 57
                if ($this->getAttribute(($context["particle"] ?? null), "buttonicon2", [])) {
                    // line 58
                    echo "<i class=\"";
                    echo twig_escape_filter($this->env, $this->getAttribute(($context["particle"] ?? null), "buttonicon2", []));
                    echo "\"></i>";
                }
                // line 60
                echo $this->getAttribute(($context["particle"] ?? null), "buttontext2", []);
                // line 61
                echo "</a>
            ";
            }
            // line 63
            echo "
        </div>
    ";
        }
        $context["textcontent"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 68
        ob_start(function () { return ''; });
        // line 69
        echo "    ";
        if ($this->getAttribute(($context["particle"] ?? null), "image", [])) {
            // line 70
            echo "        <img class=\"g-main-feature-image";
            if ((twig_escape_filter($this->env, (($this->getAttribute(($context["particle"] ?? null), "imagebottom", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["particle"] ?? null), "imagebottom", []), "yes")) : ("yes"))) == "yes")) {
                echo " image-bottom";
            }
            echo "\" alt=\"";
            echo twig_escape_filter($this->env, $this->getAttribute(($context["particle"] ?? null), "alt", []));
            echo "\" src=\"";
            echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->urlFunc($this->getAttribute(($context["particle"] ?? null), "image", [])), "html", null, true);
            echo "\" ";
            echo $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->imageSize($this->getAttribute(($context["particle"] ?? null), "image", []));
            echo ">
    ";
        }
        $context["imagecontent"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 1
        $this->parent = $this->loadTemplate("@nucleus/partials/particle.html.twig", "@particles/main-feature.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

    // line 74
    public function block_particle($context, array $blocks = [])
    {
        // line 75
        echo "    <div class=\"g-main-feature";
        if ($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "css", []), "class", [])) {
            echo " ";
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["particle"] ?? null), "css", []), "class", []));
        }
        echo "\" ";
        if ($this->getAttribute(($context["particle"] ?? null), "extra", [])) {
            echo ($context["attr_extra"] ?? null);
        }
        echo ">
        <div class=\"g-grid\">
            <div class=\"g-block g-main-feature-left";
        // line 77
        if ($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "css", []), "left", [])) {
            echo " ";
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["particle"] ?? null), "css", []), "left", []));
        }
        if ((twig_escape_filter($this->env, (($this->getAttribute(($context["particle"] ?? null), "layout", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["particle"] ?? null), "layout", []), "right")) : ("right"))) == "left")) {
            echo " image-block size-";
            echo twig_escape_filter($this->env, (($this->getAttribute(($context["particle"] ?? null), "imagewidth", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["particle"] ?? null), "imagewidth", []), 50)) : (50)));
        }
        echo "\" ";
        if ($this->getAttribute(($context["particle"] ?? null), "extra_left", [])) {
            echo ($context["attr_extra_left"] ?? null);
        }
        echo ">
                <div class=\"g-content\">
                    ";
        // line 79
        if ((twig_escape_filter($this->env, (($this->getAttribute(($context["particle"] ?? null), "layout", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["particle"] ?? null), "layout", []), "right")) : ("right"))) == "right")) {
            echo twig_escape_filter($this->env, ($context["textcontent"] ?? null), "html", null, true);
        }
        // line 80
        echo "                    ";
        if ((twig_escape_filter($this->env, (($this->getAttribute(($context["particle"] ?? null), "layout", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["particle"] ?? null), "layout", []), "right")) : ("right"))) == "left")) {
            echo twig_escape_filter($this->env, ($context["imagecontent"] ?? null), "html", null, true);
        }
        // line 81
        echo "                </div>
            </div>

            <div class=\"g-block g-main-feature-right";
        // line 84
        if ($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "css", []), "right", [])) {
            echo " ";
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["particle"] ?? null), "css", []), "right", []));
        }
        if ((twig_escape_filter($this->env, (($this->getAttribute(($context["particle"] ?? null), "layout", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["particle"] ?? null), "layout", []), "right")) : ("right"))) == "right")) {
            echo " align-right image-block size-";
            echo twig_escape_filter($this->env, (($this->getAttribute(($context["particle"] ?? null), "imagewidth", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["particle"] ?? null), "imagewidth", []), 50)) : (50)));
        }
        echo "\" ";
        if ($this->getAttribute(($context["particle"] ?? null), "extra_right", [])) {
            echo ($context["attr_extra_right"] ?? null);
        }
        echo ">
                <div class=\"g-content\">
                    ";
        // line 86
        if ((twig_escape_filter($this->env, (($this->getAttribute(($context["particle"] ?? null), "layout", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["particle"] ?? null), "layout", []), "right")) : ("right"))) == "right")) {
            echo twig_escape_filter($this->env, ($context["imagecontent"] ?? null), "html", null, true);
        }
        // line 87
        echo "                    ";
        if ((twig_escape_filter($this->env, (($this->getAttribute(($context["particle"] ?? null), "layout", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["particle"] ?? null), "layout", []), "right")) : ("right"))) == "left")) {
            echo twig_escape_filter($this->env, ($context["textcontent"] ?? null), "html", null, true);
        }
        // line 88
        echo "                </div>
            </div>
        </div>
    </div>
";
    }

    public function getTemplateName()
    {
        return "@particles/main-feature.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  286 => 88,  281 => 87,  277 => 86,  261 => 84,  256 => 81,  251 => 80,  247 => 79,  231 => 77,  218 => 75,  215 => 74,  210 => 1,  195 => 70,  192 => 69,  190 => 68,  184 => 63,  180 => 61,  178 => 60,  173 => 58,  171 => 57,  165 => 56,  163 => 55,  160 => 54,  156 => 52,  154 => 51,  149 => 49,  147 => 48,  141 => 47,  139 => 46,  135 => 44,  133 => 43,  130 => 42,  126 => 40,  124 => 39,  122 => 38,  120 => 37,  117 => 36,  113 => 34,  111 => 33,  109 => 32,  106 => 31,  104 => 30,  93 => 25,  89 => 24,  85 => 23,  83 => 22,  81 => 21,  70 => 16,  66 => 15,  62 => 14,  60 => 13,  58 => 12,  47 => 7,  43 => 6,  39 => 5,  37 => 4,  35 => 3,  29 => 1,);
    }

    /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
    public function getSource()
    {
        @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);

        return $this->getSourceContext()->getCode();
    }

    public function getSourceContext()
    {
        return new Source("", "@particles/main-feature.html.twig", "/home/webdevpb/public_html/iss/templates/it_insightfx/particles/main-feature.html.twig");
    }
}
