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

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

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

    protected function doDisplay(array $context, array $blocks = [])
    {
        $this->parent = $this->loadTemplate("@nucleus/partials/particle.html.twig", "@particles/logo-advanced.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

    // line 3
    public function block_stylesheets($context, array $blocks = [])
    {
        // line 4
        echo "\t";
        if ($this->getAttribute(($context["particle"] ?? null), "enabled", [])) {
            // line 5
            echo "\t\t";
            $this->displayParentBlock("stylesheets", $context, $blocks);
            echo "
\t\t<style type=\"text/css\">
\t\t\t.g-logo-info-panel {
\t\t\t\twidth: ";
            // line 8
            echo twig_escape_filter($this->env, (($this->getAttribute(($context["particle"] ?? null), "panelwidth", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["particle"] ?? null), "panelwidth", []), "400px")) : ("400px")), "html", null, true);
            echo ";
\t\t\t}
\t\t</style>
\t";
        }
    }

    // line 14
    public function block_particle($context, array $blocks = [])
    {
        // line 15
        echo "    ";
        $context["url"] = _twig_default_filter($this->env->getExtension('Gantry\Component\Twig\TwigExtension')->urlFunc($this->getAttribute(($context["particle"] ?? null), "url", [])), $this->getAttribute(($context["gantry"] ?? null), "siteUrl", [], "method"));
        // line 16
        echo "    ";
        if ((($context["url"] ?? null) == $this->getAttribute(($context["gantry"] ?? null), "siteUrl", [], "method"))) {
            $context["rel"] = "rel=\"home\"";
        }
        // line 17
        echo "
<div class=\"g-logo-advanced g-logo\">

\t<a href=\"";
        // line 20
        echo twig_escape_filter($this->env, ($context["url"] ?? null), "html", null, true);
        echo "\" title=\"";
        echo twig_escape_filter($this->env, $this->getAttribute(($context["particle"] ?? null), "text", []), "html", null, true);
        echo "\" ";
        echo ((array_key_exists("rel", $context)) ? (_twig_default_filter(($context["rel"] ?? null), "")) : (""));
        echo " class=\"";
        echo (($this->getAttribute(($context["particle"] ?? null), "class", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["particle"] ?? null), "class", []), "")) : (""));
        echo "\">
\t    ";
        // line 21
        $context["image"] = $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->urlFunc($this->getAttribute(($context["particle"] ?? null), "image", []));
        // line 22
        echo "\t    ";
        if (($context["image"] ?? null)) {
            // line 23
            echo "\t    <img 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 "\" alt=\"";
            echo twig_escape_filter($this->env, $this->getAttribute(($context["particle"] ?? null), "text", []), "html", null, true);
            echo "\" />
\t    ";
        } else {
            // line 25
            echo "\t    ";
            echo twig_escape_filter($this->env, (($this->getAttribute(($context["particle"] ?? null), "text", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["particle"] ?? null), "text", []), "Logo")) : ("Logo")), "html", null, true);
            echo "
\t    ";
        }
        // line 27
        echo "\t</a>

\t";
        // line 29
        if ($this->getAttribute(($context["particle"] ?? null), "infopanel", [])) {
            // line 30
            echo "\t\t<div class=\"g-logo-info-panel\">
\t\t\t";
            // line 31
            if (($this->getAttribute(($context["particle"] ?? null), "title", []) || $this->getAttribute(($context["particle"] ?? null), "description", []))) {
                // line 32
                echo "\t\t\t\t<div class=\"g-logo-text\">
\t\t\t\t    ";
                // line 33
                if ($this->getAttribute(($context["particle"] ?? null), "title", [])) {
                    // line 34
                    echo "\t\t\t\t    \t<h4 class=\"g-logo-text-title\">";
                    // line 35
                    echo $this->getAttribute(($context["particle"] ?? null), "title", []);
                    // line 36
                    echo "</h4>
\t\t\t\t    ";
                }
                // line 38
                echo "
\t\t\t\t    ";
                // line 39
                if ($this->getAttribute(($context["particle"] ?? null), "description", [])) {
                    // line 40
                    echo "\t\t\t\t    \t<div class=\"g-logo-text-desc\">";
                    // line 41
                    echo $this->getAttribute(($context["particle"] ?? null), "description", []);
                    // line 42
                    echo "</div>
\t\t\t\t    ";
                }
                // line 44
                echo "\t\t    \t</div>
\t\t    \t<div class=\"g-logo-social\">
\t\t    \t\t";
                // line 46
                if ($this->getAttribute(($context["particle"] ?? null), "socialtext", [])) {
                    // line 47
                    echo "\t\t\t    \t\t<div class=\"g-logo-social-text\">";
                    // line 48
                    echo (($this->getAttribute(($context["particle"] ?? null), "socialtext", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["particle"] ?? null), "socialtext", []), "Follow us:")) : ("Follow us:"));
                    // line 49
                    echo "</div>

\t\t\t    \t\t<div class=\"g-logo-social-icons\">
\t\t\t\t\t        ";
                    // line 52
                    $context['_parent'] = $context;
                    $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["particle"] ?? null), "socialitems", []));
                    foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
                        // line 53
                        echo "\t\t\t\t\t            ";
                        $context["attr_extra_item"] = "";
                        // line 54
                        echo "\t\t\t\t\t            ";
                        $context['_parent'] = $context;
                        $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["item"], "extra", []));
                        foreach ($context['_seq'] as $context["_key"] => $context["extra"]) {
                            // line 55
                            echo "\t\t\t\t\t                ";
                            $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 56
                            echo "\t\t\t\t\t            ";
                        }
                        $_parent = $context['_parent'];
                        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['extra'], $context['_parent'], $context['loop']);
                        $context = array_intersect_key($context, $_parent) + $_parent;
                        // line 57
                        echo "\t\t\t\t\t            <a target=\"";
                        echo twig_escape_filter($this->env, (($this->getAttribute(($context["particle"] ?? null), "socialtarget", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["particle"] ?? null), "socialtarget", []), "_blank")) : ("_blank")));
                        echo "\" href=\"";
                        echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "link", []));
                        echo "\" title=\"";
                        echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "text", []));
                        echo "\" ";
                        if ($this->getAttribute($context["item"], "class", [])) {
                            echo "class=\"";
                            echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "class", []));
                            echo "\"";
                        }
                        echo " ";
                        if ($this->getAttribute($context["item"], "extra", [])) {
                            echo ($context["attr_extra_item"] ?? null);
                        }
                        echo " aria-label=\"";
                        echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "text", []));
                        echo "\">
\t\t\t\t\t                <span class=\"";
                        // line 58
                        echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "icon", []));
                        echo "\"></span>
\t\t\t\t\t            </a>
\t\t\t\t\t        ";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 61
                    echo "\t\t\t    \t\t</div>
\t\t    \t\t";
                }
                // line 63
                echo "\t\t    \t</div>
\t\t    ";
            }
            // line 65
            echo "\t\t</div>
\t";
        }
        // line 67
        echo "
</div>
";
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  222 => 67,  218 => 65,  214 => 63,  210 => 61,  201 => 58,  180 => 57,  174 => 56,  171 => 55,  166 => 54,  163 => 53,  159 => 52,  154 => 49,  152 => 48,  150 => 47,  148 => 46,  144 => 44,  140 => 42,  138 => 41,  136 => 40,  134 => 39,  131 => 38,  127 => 36,  125 => 35,  123 => 34,  121 => 33,  118 => 32,  116 => 31,  113 => 30,  111 => 29,  107 => 27,  101 => 25,  93 => 23,  90 => 22,  88 => 21,  78 => 20,  73 => 17,  68 => 16,  65 => 15,  62 => 14,  53 => 8,  46 => 5,  43 => 4,  40 => 3,  30 => 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/logo-advanced.html.twig", "/home/webdevpb/public_html/iss/templates/it_insightfx/particles/logo-advanced.html.twig");
    }
}
