<?php

/* @particles/social-search.html.twig */
class __TwigTemplate_3a772ec8f532f4a82991eda845bdc2e4ccb32f9ee9d3dbcfd1d26a44daab079a extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        // line 1
        $this->parent = $this->loadTemplate("@nucleus/partials/particle.html.twig", "@particles/social-search.html.twig", 1);
        $this->blocks = array(
            'stylesheets' => array($this, 'block_stylesheets'),
            '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 1
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

    // line 12
    public function block_stylesheets($context, array $blocks = array())
    {
        // line 13
        echo "    ";
        if ($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "display", array()), "offcanvas", array())) {
            // line 14
            echo "        ";
            $this->displayParentBlock("stylesheets", $context, $blocks);
            echo "
        <style type=\"text/css\">
            @media (min-width: ";
            // line 16
            echo twig_escape_filter($this->env, (($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "config", array(), "any", false, true), "get", array(0 => "styles.breakpoints.mobile-menu-breakpoint"), "method", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "config", array(), "any", false, true), "get", array(0 => "styles.breakpoints.mobile-menu-breakpoint"), "method"), "85rem")) : ("85rem")), "html", null, true);
            echo ") {
                .g-offcanvas-toggle {
                    display: none !important;
                }
            }
        </style>
    ";
        }
    }

    // line 25
    public function block_particle($context, array $blocks = array())
    {
        // line 26
        echo "    <div class=\"g-social-search";
        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 ">
        ";
        // line 27
        if ($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "display", array()), "social", array())) {
            // line 28
            echo "            <span class=\"g-social-icons\">
                ";
            // line 29
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "social", array()), "items", array()));
            foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
                // line 30
                echo "                    <a 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 "\" href=\"";
                echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "link", array()));
                echo "\" ";
                if ($this->getAttribute($context["item"], "tooltip", array())) {
                    echo "data-uk-tooltip=\"{pos:'bottom'}\" title=\"";
                    echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "tooltip", array()));
                    echo "\"";
                }
                echo ">
                        <span class=\"";
                // line 31
                echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "icon", array()));
                echo "\"></span>
                    </a>
                ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 34
            echo "            </span>
        ";
        }
        // line 36
        echo "
        ";
        // line 37
        if (($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "display", array()), "search", array()) || $this->getAttribute($this->getAttribute(($context["particle"] ?? null), "display", array()), "offcanvas", array()))) {
            // line 38
            echo "            <span class=\"g-search-offcanvas";
            if ($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "display", array()), "social", array())) {
                echo " g-so-margin";
            }
            echo "\">

                ";
            // line 40
            if ($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "display", array()), "search", array())) {
                // line 41
                echo "                    <span class=\"g-search-icon";
                if (($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "display", array()), "search", array()) && $this->getAttribute($this->getAttribute(($context["particle"] ?? null), "display", array()), "offcanvas", array()))) {
                    echo " g-search-margin";
                }
                echo "\">
                        <a href=\"#modal-search\" data-uk-modal=\"{center:true}\" ";
                // line 42
                if ($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "search", array()), "text", array())) {
                    echo "data-uk-tooltip=\"{pos:'bottom'}\" title=\"";
                    echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["particle"] ?? null), "search", array()), "text", array()));
                    echo "\"";
                }
                echo ">
                            <i class=\"";
                // line 43
                echo twig_escape_filter($this->env, (($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "search", array(), "any", false, true), "icon", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "search", array(), "any", false, true), "icon", array()), "fa fa-search")) : ("fa fa-search")));
                echo "\"></i>
                        </a>
                    </span>

                    <div id=\"modal-search\" class=\"uk-modal\">
                        <a class=\"uk-modal-close uk-close\"></a>
                        <div class=\"uk-modal-dialog\">
                            ";
                // line 50
                if (($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", array()), "getName", array(), "method") == "joomla")) {
                    // line 51
                    echo "                                ";
                    echo $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->htmlFilter($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", array()), "filter", array(0 => "{loadposition modal-search}"), "method"));
                    echo "
                            ";
                }
                // line 53
                echo "
                            ";
                // line 54
                if (($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", array()), "getName", array(), "method") == "wordpress")) {
                    // line 55
                    echo "                                ";
                    echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", array()), "call", array(0 => "get_search_form"), "method"), "html", null, true);
                    echo "
                            ";
                }
                // line 57
                echo "                        </div>
                    </div>
                ";
            }
            // line 60
            echo "
                ";
            // line 61
            if ($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "display", array()), "offcanvas", array())) {
                // line 62
                echo "                    <span class=\"g-offcanvas-icon\">           
                        <a data-offcanvas-toggle=\"\" ";
                // line 63
                if ($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "offcanvas", array()), "text", array())) {
                    echo "data-uk-tooltip=\"{pos:'bottom'}\" title=\"";
                    echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["particle"] ?? null), "offcanvas", array()), "text", array()));
                    echo "\"";
                }
                echo ">
                          <i class=\"";
                // line 64
                echo twig_escape_filter($this->env, (($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "offcanvas", array(), "any", false, true), "icon", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "offcanvas", array(), "any", false, true), "icon", array()), "fa fa-bars")) : ("fa fa-bars")));
                echo "\"></i>
                        </a>
                    </span>
                ";
            }
            // line 68
            echo "
            </span>
        ";
        }
        // line 71
        echo "    </div>
";
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  219 => 71,  214 => 68,  207 => 64,  199 => 63,  196 => 62,  194 => 61,  191 => 60,  186 => 57,  180 => 55,  178 => 54,  175 => 53,  169 => 51,  167 => 50,  157 => 43,  149 => 42,  142 => 41,  140 => 40,  132 => 38,  130 => 37,  127 => 36,  123 => 34,  114 => 31,  101 => 30,  97 => 29,  94 => 28,  92 => 27,  80 => 26,  77 => 25,  65 => 16,  59 => 14,  56 => 13,  53 => 12,  49 => 1,  38 => 7,  34 => 6,  30 => 5,  28 => 4,  26 => 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/social-search.html.twig", "/home/isfmp/public_html/welthaus/templates/it_construction/particles/social-search.html.twig");
    }
}
