<?php

/* @particles/main-feature.html.twig */
class __TwigTemplate_682001cc40bedecbfa7b01b35f10b6aa48d56fc81ceddb25533066e34440bf65 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        // line 1
        $this->parent = $this->loadTemplate("@nucleus/partials/particle.html.twig", "@particles/main-feature.html.twig", 1);
        $this->blocks = array(
            'particle' => array($this, 'block_particle'),
        );
    }

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

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 3
        $context["attr_extra"] = "";
        // line 4
        if ($this->getAttribute(($context["particle"] ?? null), "extra", array())) {
            // line 5
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["particle"] ?? null), "extra", array()));
            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", array())) {
            // line 14
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["particle"] ?? null), "extra_left", array()));
            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", array())) {
            // line 23
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["particle"] ?? null), "extra_right", array()));
            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();
        // line 31
        echo "    ";
        if ($this->getAttribute(($context["particle"] ?? null), "title", array())) {
            // line 32
            echo "        <h3 class=\"g-main-feature-title\">";
            // line 33
            echo $this->getAttribute(($context["particle"] ?? null), "title", array());
            // line 34
            echo "</h3>
    ";
        }
        // line 36
        echo "
    ";
        // line 37
        if ($this->getAttribute(($context["particle"] ?? null), "description", array())) {
            // line 38
            echo "        <p class=\"g-main-feature-desc\">";
            // line 39
            echo $this->getAttribute(($context["particle"] ?? null), "description", array());
            // line 40
            echo "</p>
    ";
        }
        // line 42
        echo "
    ";
        // line 43
        if (($this->getAttribute(($context["particle"] ?? null), "link", array()) || $this->getAttribute(($context["particle"] ?? null), "link2", array()))) {
            // line 44
            echo "        <div class=\"g-main-feature-buttons\">

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

    // line 74
    public function block_particle($context, array $blocks = array())
    {
        // line 75
        echo "    <div class=\"g-main-feature";
        if ($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "css", array()), "class", array())) {
            echo " ";
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["particle"] ?? null), "css", array()), "class", array()));
        }
        echo "\" ";
        if ($this->getAttribute(($context["particle"] ?? null), "extra", array())) {
            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", array()), "left", array())) {
            echo " ";
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["particle"] ?? null), "css", array()), "left", array()));
        }
        if ((twig_escape_filter($this->env, (($this->getAttribute(($context["particle"] ?? null), "layout", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["particle"] ?? null), "layout", array()), "right")) : ("right"))) == "left")) {
            echo " image-block size-";
            echo twig_escape_filter($this->env, (($this->getAttribute(($context["particle"] ?? null), "imagewidth", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["particle"] ?? null), "imagewidth", array()), 50)) : (50)));
        }
        echo "\" ";
        if ($this->getAttribute(($context["particle"] ?? null), "extra_left", array())) {
            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", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["particle"] ?? null), "layout", array()), "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", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["particle"] ?? null), "layout", array()), "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", array()), "right", array())) {
            echo " ";
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["particle"] ?? null), "css", array()), "right", array()));
        }
        if ((twig_escape_filter($this->env, (($this->getAttribute(($context["particle"] ?? null), "layout", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["particle"] ?? null), "layout", array()), "right")) : ("right"))) == "right")) {
            echo " align-right image-block size-";
            echo twig_escape_filter($this->env, (($this->getAttribute(($context["particle"] ?? null), "imagewidth", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["particle"] ?? null), "imagewidth", array()), 50)) : (50)));
        }
        echo "\" ";
        if ($this->getAttribute(($context["particle"] ?? null), "extra_right", array())) {
            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", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["particle"] ?? null), "layout", array()), "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", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["particle"] ?? null), "layout", array()), "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 (  275 => 88,  270 => 87,  266 => 86,  250 => 84,  245 => 81,  240 => 80,  236 => 79,  220 => 77,  207 => 75,  204 => 74,  200 => 1,  185 => 70,  182 => 69,  180 => 68,  174 => 63,  170 => 61,  168 => 60,  163 => 58,  161 => 57,  155 => 56,  153 => 55,  150 => 54,  146 => 52,  144 => 51,  139 => 49,  137 => 48,  131 => 47,  129 => 46,  125 => 44,  123 => 43,  120 => 42,  116 => 40,  114 => 39,  112 => 38,  110 => 37,  107 => 36,  103 => 34,  101 => 33,  99 => 32,  96 => 31,  94 => 30,  83 => 25,  79 => 24,  75 => 23,  73 => 22,  71 => 21,  60 => 16,  56 => 15,  52 => 14,  50 => 13,  48 => 12,  37 => 7,  33 => 6,  29 => 5,  27 => 4,  25 => 3,  11 => 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 Twig_Source("", "@particles/main-feature.html.twig", "/home/isfmp/public_html/welthaus/templates/it_construction/particles/main-feature.html.twig");
    }
}
