<?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/gadgets.html.twig */
class __TwigTemplate_76499185bf93a9671cf1e0b3bbc7e78ecfcc0e00e2f9e85bc78e7f9d9baa6249 extends \Twig\Template
{
    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->blocks = [
            'stylesheets' => [$this, 'block_stylesheets'],
            'particle' => [$this, 'block_particle'],
            'javascript_footer' => [$this, 'block_javascript_footer'],
        ];
    }

    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 33
        $context["indentifier"] = twig_random($this->env);
        // line 35
        ob_start(function () { return ''; });
        // line 36
        echo "
        ";
        // line 37
        if ($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "display", []), "login", [])) {
            // line 38
            echo "        <div class=\"g-gadget-login\">               
            <a href=\"#modal-login\" data-uk-modal=\"{center:true}\" ";
            // line 39
            if ($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "login", []), "text", [])) {
                echo "data-uk-tooltip=\"{pos:'right'}\" title=\"";
                echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["particle"] ?? null), "login", []), "text", []));
                echo "\"";
            }
            echo " aria-label=\"";
            echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transKeyFilter("Login", "IT_ACCESS_LOGIN"), "html", null, true);
            echo "\">
                <i class=\"";
            // line 40
            echo twig_escape_filter($this->env, (($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "login", [], "any", false, true), "icon", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "login", [], "any", false, true), "icon", []), "fa fa-user")) : ("fa fa-user")));
            echo "\"></i>
            </a>
        </div>
        ";
        }
        // line 44
        echo "
        ";
        // line 45
        if ($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "display", []), "search", [])) {
            // line 46
            echo "        <div class=\"g-gadget-search\">               
            <a href=\"#modal-search\" data-uk-modal=\"{center:true}\" ";
            // line 47
            if ($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "search", []), "text", [])) {
                echo "data-uk-tooltip=\"{pos:'right'}\" title=\"";
                echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["particle"] ?? null), "search", []), "text", []));
                echo "\"";
            }
            echo " aria-label=\"";
            echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transKeyFilter("Search", "IT_ACCESS_SEARCH"), "html", null, true);
            echo "\">
                <i class=\"";
            // line 48
            echo twig_escape_filter($this->env, (($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "search", [], "any", false, true), "icon", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "search", [], "any", false, true), "icon", []), "fa fa-search")) : ("fa fa-search")));
            echo "\"></i>
            </a>
        </div>
        ";
        }
        // line 52
        echo "
        ";
        // line 53
        if ($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "display", []), "contact", [])) {
            // line 54
            echo "        <div class=\"g-gadget-contact\">               
            <a href=\"#g-touch\" data-uk-modal=\"{center:true}\"";
            // line 55
            if ($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "touch", []), "text", [])) {
                echo "data-uk-tooltip=\"{pos:'right'}\" title=\"";
                echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["particle"] ?? null), "touch", []), "text", []));
                echo "\"";
            }
            echo " aria-label=\"";
            echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transKeyFilter("Contact Details", "IT_ACCESS_CONTACTDETAILS"), "html", null, true);
            echo "\">
                <i class=\"";
            // line 56
            echo twig_escape_filter($this->env, (($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "touch", [], "any", false, true), "icon", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "touch", [], "any", false, true), "icon", []), "fa fa-map-o")) : ("fa fa-map-o")));
            echo "\"></i>
            </a>
        </div>
        ";
        }
        // line 60
        echo "
        ";
        // line 61
        if ($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "display", []), "offcanvas", [])) {
            // line 62
            echo "        <div class=\"g-gadget-offcanvas\">               
            <a class=\"offcanvas-toggle-particle\" data-offcanvas-toggle=\"\" ";
            // line 63
            if ($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "offcanvas", []), "text", [])) {
                echo "data-uk-tooltip=\"{pos:'right'}\" title=\"";
                echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["particle"] ?? null), "offcanvas", []), "text", []));
                echo "\"";
            }
            echo " aria-label=\"";
            echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transKeyFilter("Offcanvas", "IT_ACCESS_OFFCANVAS"), "html", null, true);
            echo "\">
              <i class=\"";
            // line 64
            echo twig_escape_filter($this->env, (($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "offcanvas", [], "any", false, true), "icon", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "offcanvas", [], "any", false, true), "icon", []), "fa fa-bars")) : ("fa fa-bars")));
            echo "\"></i>
            </a>
        </div>
        ";
        }
        // line 68
        echo "
";
        $context["gadgetbuttons"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 71
        ob_start(function () { return ''; });
        // line 72
        echo "    <div id=\"modal-login\" class=\"uk-modal\">
        <a class=\"uk-modal-close uk-close\" aria-label=\"";
        // line 73
        echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transKeyFilter("Close", "IT_ACCESS_CLOSE"), "html", null, true);
        echo "\"></a>
        <div class=\"uk-modal-dialog";
        // line 74
        if (((($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "login", [], "any", false, true), "links", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "login", [], "any", false, true), "links", []), "show")) : ("show")) == "hide")) {
            echo " hide-links";
        }
        echo "\">
            ";
        // line 75
        if (($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", []), "getName", [], "method") == "joomla")) {
            // line 76
            echo "                ";
            echo $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->htmlFilter($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", []), "filter", [0 => "{loadposition modal-login}"], "method"));
            echo "
            ";
        }
        // line 78
        echo "
            ";
        // line 79
        if (($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", []), "getName", [], "method") == "wordpress")) {
            // line 80
            echo "
                <div class=\"g-login-form\">

                    ";
            // line 83
            if ( !($context["is_user_logged_in"] ?? null)) {
                // line 84
                echo "
                        <form action=\"";
                // line 85
                echo $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", []), "call", [0 => "wp_login_url", 1 => $this->getAttribute($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "request", []), "server", []), "REQUEST_URI", [], "array")], "method");
                echo "\" method=\"post\" id=\"loginform\">

                            ";
                // line 87
                $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", []), "call", [0 => "wp_nonce_field", 1 => "log-in"], "method");
                // line 88
                echo "
                            <fieldset class=\"login-data\">
                                <p class=\"login-username\">
                                    <input id=\"user_login\" type=\"text\" name=\"log\" class=\"inputbox\" alt=\"username\" size=\"18\" value=\"\" placeholder=\"";
                // line 91
                echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transKeyFilter("Username", "G5_LOGIN_PARTICLE_USERNAME"), "html", null, true);
                echo "\" />
                                </p>
                                <p class=\"login-password\">
                                    <input id=\"user_pass\" type=\"password\" name=\"pwd\" class=\"inputbox\" size=\"18\" alt=\"password\" value=\"\" placeholder=\"";
                // line 94
                echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transKeyFilter("Password", "G5_LOGIN_PARTICLE_PASSWORD"), "html", null, true);
                echo "\" />
                                </p>
                                <p class=\"login-remember\">
                                    <input id=\"remember\" type=\"checkbox\" name=\"rememberme\" class=\"inputbox\" />
                                    <label for=\"remember\">";
                // line 98
                echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transKeyFilter("Remember me", "G5_LOGIN_PARTICLE_REMEMBER"), "html", null, true);
                echo "</label>
                                </p>
                                <p class=\"login-submit\">
                                    <input type=\"submit\" value=\"";
                // line 101
                echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transKeyFilter("Log In", "G5_LOGIN_PARTICLE_LOGIN"), "html", null, true);
                echo "\" class=\"button\" name=\"submit\" />
                                </p>
                            </fieldset>

                            <ul class=\"login-extra\">
                                ";
                // line 106
                if ($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", []), "call", [0 => "get_option", 1 => "users_can_register"], "method")) {
                    // line 107
                    echo "                                    <li>
                                        <a href=\"";
                    // line 108
                    echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", []), "call", [0 => "wp_registration_url"], "method"), "html", null, true);
                    echo "\"><i class=\"fa fa-question-circle\"></i>";
                    echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transKeyFilter("Register", "G5_LOGIN_PARTICLE_REGISTER"), "html", null, true);
                    echo "</a>
                                    </li>
                                ";
                }
                // line 111
                echo "                                <li>
                                    <a href=\"";
                // line 112
                echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", []), "call", [0 => "wp_lostpassword_url"], "method"), "html", null, true);
                echo "\"><i class=\"fa fa-question-circle\"></i>";
                echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transKeyFilter("Forgot your password?", "G5_LOGIN_PARTICLE_FORGOT_PASSWORD"), "html", null, true);
                echo "</a>
                                </li>
                            </ul>

                        </form>

                    ";
            } else {
                // line 119
                echo "
                        <form action=\"";
                // line 120
                echo $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", []), "call", [0 => "wp_logout_url", 1 => $this->getAttribute($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "request", []), "server", []), "REQUEST_URI", [], "array")], "method");
                echo "\" method=\"post\" id=\"loginform\">

                            ";
                // line 122
                $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", []), "call", [0 => "wp_nonce_field", 1 => "log-out"], "method");
                // line 123
                echo "
                            <div class=\"logout-button\">
                                <input type=\"submit\" name=\"submit\" class=\"button\" value=\"";
                // line 125
                echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transKeyFilter("Log Out", "G5_LOGIN_PARTICLE_LOGOUT"), "html", null, true);
                echo "\" />
                            </div>

                        </form>

                    ";
            }
            // line 131
            echo "
                </div>
            ";
        }
        // line 134
        echo "        </div>
    </div>
";
        $context["modallogin"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 138
        ob_start(function () { return ''; });
        // line 139
        echo "    <div id=\"modal-search\" class=\"uk-modal\">
        <a class=\"uk-modal-close uk-close\" aria-label=\"";
        // line 140
        echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transKeyFilter("Close", "IT_ACCESS_CLOSE"), "html", null, true);
        echo "\"></a>
        <div class=\"uk-modal-dialog\">
            ";
        // line 142
        if (($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", []), "getName", [], "method") == "joomla")) {
            // line 143
            echo "                ";
            echo $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->htmlFilter($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", []), "filter", [0 => "{loadposition modal-search}"], "method"));
            echo "
            ";
        }
        // line 145
        echo "
            ";
        // line 146
        if (($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", []), "getName", [], "method") == "wordpress")) {
            // line 147
            echo "                ";
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", []), "call", [0 => "get_search_form"], "method"), "html", null, true);
            echo "
            ";
        }
        // line 149
        echo "        </div>
    </div>
";
        $context["modalsearch"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 153
        ob_start(function () { return ''; });
        // line 154
        echo "    <div id=\"g-touch\" class=\"uk-modal\">
        <a class=\"uk-modal-close uk-close\"></a>
        <div class=\"uk-modal-dialog\" style=\"width: ";
        // line 156
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["particle"] ?? null), "touch", []), "width", []));
        echo ";\">
            <div class=\"g-touch-contacts\">
                <div class=\"g-grid\">
                    ";
        // line 159
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "touch", []), "items", []));
        foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
            // line 160
            echo "                        ";
            $context["attr_extra_item"] = "";
            // line 161
            echo "                        ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["item"], "extra", []));
            foreach ($context['_seq'] as $context["_key"] => $context["extra"]) {
                // line 162
                echo "                            ";
                $context["attr_extra_item"] = (((((($context["attr_extra_item"] ?? null) . " ") . twig_escape_filter($this->env, twig_first($this->env, twig_get_array_keys_filter($context["extra"])))) . "=\"") . twig_escape_filter($this->env, twig_first($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->valuesFilter($context["extra"])), "html_attr")) . "\"");
                // line 163
                echo "                        ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['extra'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 164
            echo "                        <div class=\"g-block";
            if ($this->getAttribute($context["item"], "class", [])) {
                echo " ";
                echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "class", []));
            }
            echo "\" ";
            if ($this->getAttribute($context["item"], "extra", [])) {
                echo ($context["attr_extra_item"] ?? null);
            }
            echo ">
                            <div class=\"g-touch-item\">
                                ";
            // line 166
            if ($this->getAttribute($context["item"], "link", [])) {
                // line 167
                echo "                                    <a target=\"";
                echo twig_escape_filter($this->env, (($this->getAttribute($context["item"], "target", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute($context["item"], "target", []), "_parent")) : ("_parent")));
                echo "\" href=\"";
                echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "link", []));
                echo "\">
                                ";
            }
            // line 169
            echo "                                ";
            if ($this->getAttribute($context["item"], "icon", [])) {
                // line 170
                echo "                                    <span class=\"g-touch-item-icon ";
                echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "icon", []));
                echo "\"></span>
                                ";
            }
            // line 172
            echo "                                ";
            if ($this->getAttribute($context["item"], "value", [])) {
                // line 173
                echo "                                    <span class=\"g-touch-item-value\">";
                echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "value", []));
                echo "</span>
                                ";
            }
            // line 175
            echo "                                ";
            if ($this->getAttribute($context["item"], "link", [])) {
                // line 176
                echo "                                    </a>
                                ";
            }
            // line 178
            echo "                            </div>
                        </div>
                    ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 181
        echo "                </div>
            </div>
            <div class=\"g-googlemap\">
                <div id=\"g-map-";
        // line 184
        echo twig_escape_filter($this->env, ($context["indentifier"] ?? null));
        echo "\" style=\"width: ";
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["particle"] ?? null), "touch", []), "width", []));
        echo "; height: ";
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["particle"] ?? null), "touch", []), "height", []));
        echo ";\">
                </div>
            </div>
        </div>
    </div>
";
        $context["getintouch"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 1
        $this->parent = $this->loadTemplate("@nucleus/partials/particle.html.twig", "@particles/gadgets.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

    // line 12
    public function block_stylesheets($context, array $blocks = [])
    {
        // line 13
        echo "    ";
        if ($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "display", []), "offcanvas", [])) {
            // 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", [], "any", false, true), "get", [0 => "styles.breakpoints.mobile-menu-breakpoint"], "method", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "config", [], "any", false, true), "get", [0 => "styles.breakpoints.mobile-menu-breakpoint"], "method"), "48rem")) : ("48rem")), "html", null, true);
            echo ") {
                .g-offcanvas-toggle {
                    display: none;
                }
            }
        </style>
    ";
        }
        // line 23
        echo "    ";
        if ($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "display", []), "login", [])) {
            // line 24
            echo "        ";
            $this->displayParentBlock("stylesheets", $context, $blocks);
            echo "
        <style type=\"text/css\">
            .g-gadgets #modal-login .uk-modal-dialog {
                width: ";
            // line 27
            echo twig_escape_filter($this->env, (($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "login", [], "any", false, true), "width", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "login", [], "any", false, true), "width", []), "350px")) : ("350px")));
            echo ";
            }
        </style>
    ";
        }
    }

    // line 191
    public function block_particle($context, array $blocks = [])
    {
        // line 192
        echo "    <div class=\"g-gadgets";
        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-gadget-buttons\">
            ";
        // line 194
        echo twig_escape_filter($this->env, ($context["gadgetbuttons"] ?? null), "html", null, true);
        echo "
        </div>

        ";
        // line 197
        if ($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "display", []), "login", [])) {
            // line 198
            echo "            ";
            echo twig_escape_filter($this->env, ($context["modallogin"] ?? null), "html", null, true);
            echo "
        ";
        }
        // line 200
        echo "
        ";
        // line 201
        if ($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "display", []), "search", [])) {
            // line 202
            echo "            ";
            echo twig_escape_filter($this->env, ($context["modalsearch"] ?? null), "html", null, true);
            echo "
        ";
        }
        // line 204
        echo "
        ";
        // line 205
        if ($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "display", []), "contact", [])) {
            // line 206
            echo "            ";
            echo twig_escape_filter($this->env, ($context["getintouch"] ?? null), "html", null, true);
            echo "
        ";
        }
        // line 208
        echo "    </div>
";
    }

    // line 211
    public function block_javascript_footer($context, array $blocks = [])
    {
        // line 212
        echo "    ";
        $this->displayParentBlock("javascript_footer", $context, $blocks);
        echo "
    ";
        // line 213
        if ($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "display", []), "contact", [])) {
            // line 214
            echo "        <script type=\"text/javascript\" src=\"https://maps.googleapis.com/maps/api/js";
            if ($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "touch", []), "apikey", [])) {
                echo "?key=";
                echo twig_escape_filter($this->env, twig_trim_filter(twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["particle"] ?? null), "touch", []), "apikey", []))), "html", null, true);
            }
            echo "\"></script>
        <script type=\"text/javascript\">
            function initialize";
            // line 216
            echo twig_escape_filter($this->env, ($context["indentifier"] ?? null));
            echo "() {

                var latlng = new google.maps.LatLng(";
            // line 218
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["particle"] ?? null), "touch", []), "latitude", []));
            echo ",";
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["particle"] ?? null), "touch", []), "longitude", []));
            echo ");

                ";
            // line 220
            if (((($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "touch", [], "any", false, true), "dragging", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "touch", [], "any", false, true), "dragging", []), "enabled")) : ("enabled")) == "enabled")) {
                // line 221
                echo "                    var isDraggable = 1;
                ";
            } elseif (((($this->getAttribute($this->getAttribute(            // line 222
($context["particle"] ?? null), "touch", [], "any", false, true), "dragging", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "touch", [], "any", false, true), "dragging", []), "enabled")) : ("enabled")) == "disabledmobile")) {
                // line 223
                echo "                    ";
                $this->getAttribute(($context["gantry"] ?? null), "load", [0 => "jquery"], "method");
                // line 224
                echo "                    var isDraggable = jQuery(document).width() > 767 ? true : 0;
                ";
            } else {
                // line 226
                echo "                    var isDraggable = 0;
                ";
            }
            // line 228
            echo "
                var myOptions =
                {
                    zoom: ";
            // line 231
            echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["particle"] ?? null), "touch", []), "zoom", []));
            echo ",
                    center: latlng,
                    mapTypeId: google.maps.MapTypeId.";
            // line 233
            echo twig_escape_filter($this->env, (($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "touch", [], "any", false, true), "maptype", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "touch", [], "any", false, true), "maptype", []), "ROADMAP")) : ("ROADMAP")));
            echo ",

                    ";
            // line 235
            if ($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "touch", []), "snazzymaps", [])) {
                // line 236
                echo "                        styles: ";
                echo $this->getAttribute($this->getAttribute(($context["particle"] ?? null), "touch", []), "snazzymaps", []);
                echo ",
                    ";
            }
            // line 238
            echo "
                    scrollwheel: ";
            // line 239
            echo twig_escape_filter($this->env, (($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "touch", [], "any", false, true), "scrollwheel", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "touch", [], "any", false, true), "scrollwheel", []), 0)) : (0)));
            echo ",
                    draggable: isDraggable
                };

                var map = new google.maps.Map(document.getElementById(\"g-map-";
            // line 243
            echo twig_escape_filter($this->env, ($context["indentifier"] ?? null));
            echo "\"), myOptions);

                ";
            // line 245
            if (((($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "touch", [], "any", false, true), "defaultmarker", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "touch", [], "any", false, true), "defaultmarker", []), "show")) : ("show")) == "show")) {
                // line 246
                echo "                    var myMarker = new google.maps.Marker(
                    {
                        position: latlng,
                        map: map,
                    });

                    var contentString = '";
                // line 252
                echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["particle"] ?? null), "touch", []), "markertext", []), "js"), "html", null, true);
                echo "';

                    var infowindow = new google.maps.InfoWindow({
                        content: contentString
                    });

                    ";
                // line 258
                if ($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "touch", []), "markertext", [])) {
                    // line 259
                    echo "                        myMarker.addListener('click', function() {
                            infowindow.open(map, myMarker);
                        });

                        ";
                    // line 263
                    if ((($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "touch", [], "any", false, true), "markerstate", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "touch", [], "any", false, true), "markerstate", []), 1)) : (1))) {
                        // line 264
                        echo "                            infowindow.open(map, myMarker);
                        ";
                    }
                    // line 266
                    echo "                    ";
                }
                // line 267
                echo "                ";
            }
            // line 268
            echo "
                ";
            // line 269
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(($context["particle"] ?? null), "touch", []), "markers", []));
            foreach ($context['_seq'] as $context["_key"] => $context["marker"]) {
                // line 270
                echo "                    ";
                $context["marker_id"] = twig_random($this->env);
                // line 271
                echo "
                    var myMarker";
                // line 272
                echo twig_escape_filter($this->env, ($context["marker_id"] ?? null));
                echo " = new google.maps.Marker(
                    {
                        position: {lat: ";
                // line 274
                echo twig_escape_filter($this->env, $this->getAttribute($context["marker"], "latitude", []));
                echo ", lng: ";
                echo twig_escape_filter($this->env, $this->getAttribute($context["marker"], "longitude", []));
                echo "},
                        map: map,
                    });

                    var contentString";
                // line 278
                echo twig_escape_filter($this->env, ($context["marker_id"] ?? null));
                echo " = '";
                echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->getAttribute($context["marker"], "markertext", []), "js"), "html", null, true);
                echo "';

                    var infowindow";
                // line 280
                echo twig_escape_filter($this->env, ($context["marker_id"] ?? null));
                echo " = new google.maps.InfoWindow({
                        content: contentString";
                // line 281
                echo twig_escape_filter($this->env, ($context["marker_id"] ?? null));
                echo "
                    });

                    ";
                // line 284
                if ($this->getAttribute($context["marker"], "markertext", [])) {
                    // line 285
                    echo "                    myMarker";
                    echo twig_escape_filter($this->env, ($context["marker_id"] ?? null));
                    echo ".addListener('click', function() {
                        infowindow";
                    // line 286
                    echo twig_escape_filter($this->env, ($context["marker_id"] ?? null));
                    echo ".open(map, myMarker";
                    echo twig_escape_filter($this->env, ($context["marker_id"] ?? null));
                    echo ");
                    });

                        ";
                    // line 289
                    if ((($this->getAttribute($context["marker"], "markerstate", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute($context["marker"], "markerstate", []), 1)) : (1))) {
                        // line 290
                        echo "                            infowindow";
                        echo twig_escape_filter($this->env, ($context["marker_id"] ?? null));
                        echo ".open(map, myMarker";
                        echo twig_escape_filter($this->env, ($context["marker_id"] ?? null));
                        echo ");
                        ";
                    }
                    // line 292
                    echo "                    ";
                }
                // line 293
                echo "
                ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['marker'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 295
            echo "
                // Resize stuff...
                var currCenter = map.getCenter();

                // Fix for reloading the map in a modal
                jQuery('.uk-modal').on({
                    'show.uk.modal': function(){
                        google.maps.event.trigger(map, \"resize\");
                        map.setCenter(currCenter);  
                    }
                });

            }
            google.maps.event.addDomListener(window, 'load', initialize";
            // line 308
            echo twig_escape_filter($this->env, ($context["indentifier"] ?? null));
            echo ");

        </script>
    ";
        }
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  770 => 308,  755 => 295,  748 => 293,  745 => 292,  737 => 290,  735 => 289,  727 => 286,  722 => 285,  720 => 284,  714 => 281,  710 => 280,  703 => 278,  694 => 274,  689 => 272,  686 => 271,  683 => 270,  679 => 269,  676 => 268,  673 => 267,  670 => 266,  666 => 264,  664 => 263,  658 => 259,  656 => 258,  647 => 252,  639 => 246,  637 => 245,  632 => 243,  625 => 239,  622 => 238,  616 => 236,  614 => 235,  609 => 233,  604 => 231,  599 => 228,  595 => 226,  591 => 224,  588 => 223,  586 => 222,  583 => 221,  581 => 220,  574 => 218,  569 => 216,  560 => 214,  558 => 213,  553 => 212,  550 => 211,  545 => 208,  539 => 206,  537 => 205,  534 => 204,  528 => 202,  526 => 201,  523 => 200,  517 => 198,  515 => 197,  509 => 194,  496 => 192,  493 => 191,  484 => 27,  477 => 24,  474 => 23,  464 => 16,  458 => 14,  455 => 13,  452 => 12,  447 => 1,  434 => 184,  429 => 181,  421 => 178,  417 => 176,  414 => 175,  408 => 173,  405 => 172,  399 => 170,  396 => 169,  388 => 167,  386 => 166,  373 => 164,  367 => 163,  364 => 162,  359 => 161,  356 => 160,  352 => 159,  346 => 156,  342 => 154,  340 => 153,  335 => 149,  329 => 147,  327 => 146,  324 => 145,  318 => 143,  316 => 142,  311 => 140,  308 => 139,  306 => 138,  301 => 134,  296 => 131,  287 => 125,  283 => 123,  281 => 122,  276 => 120,  273 => 119,  261 => 112,  258 => 111,  250 => 108,  247 => 107,  245 => 106,  237 => 101,  231 => 98,  224 => 94,  218 => 91,  213 => 88,  211 => 87,  206 => 85,  203 => 84,  201 => 83,  196 => 80,  194 => 79,  191 => 78,  185 => 76,  183 => 75,  177 => 74,  173 => 73,  170 => 72,  168 => 71,  164 => 68,  157 => 64,  147 => 63,  144 => 62,  142 => 61,  139 => 60,  132 => 56,  122 => 55,  119 => 54,  117 => 53,  114 => 52,  107 => 48,  97 => 47,  94 => 46,  92 => 45,  89 => 44,  82 => 40,  72 => 39,  69 => 38,  67 => 37,  64 => 36,  62 => 35,  60 => 33,  49 => 7,  45 => 6,  41 => 5,  39 => 4,  37 => 3,  31 => 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/gadgets.html.twig", "/home/webdevpb/public_html/iss/templates/it_insightfx/particles/gadgets.html.twig");
    }
}
