<?php

/* @gantry-admin/pages/configurations/page/atoms.html.twig */
class __TwigTemplate_55a4995347e83b2e5e49486cb733ba28bc971aca5f2e8f9d47f9bb04851a106d extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        echo "<h2 class=\"page-title\">
    <span class=\"title\">";
        // line 2
        echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_PLATFORM_ATOMS"), "html", null, true);
        echo "</span>
</h2>

<div id=\"atoms\"";
        // line 5
        echo (((isset($context["overrideable"]) ? $context["overrideable"] : null)) ? (" class=\"atoms-override\"") : (""));
        echo ">
    <ul class=\"atoms-picker\">";
        // line 7
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["atoms"]) ? $context["atoms"] : null));
        foreach ($context['_seq'] as $context["atom"] => $context["label"]) {
            // line 8
            echo "<li data-atom-type=\"";
            echo twig_escape_filter($this->env, $context["atom"], "html", null, true);
            echo "\"
            data-atom-picked=\"";
            // line 9
            echo twig_escape_filter($this->env, twig_jsonencode_filter(array("title" => $context["label"], "type" => $context["atom"], "attributes" => $this->getAttribute($this->getAttribute((isset($context["gantry"]) ? $context["gantry"] : null), "config", array()), "get", array(0 => ("particles." . $context["atom"])), "method"))), "html_attr");
            echo "\"
        >
            <i class=\"fa fa-fw fa-hand-stop-o drag-indicator\"></i>
            <span class=\"atom-title\">";
            // line 12
            echo twig_escape_filter($this->env, $context["label"], "html", null, true);
            echo "</span>
            <a href=\"";
            // line 13
            echo twig_escape_filter($this->env, $this->getAttribute((isset($context["gantry"]) ? $context["gantry"] : null), "route", array(0 => "configurations", 1 => (isset($context["page_id"]) ? $context["page_id"] : null), 2 => "page", 3 => "atoms", 4 => $context["atom"]), "method"));
            echo "\" class=\"atom-settings config-cog\">
                <i aria-label=\"";
            // line 14
            echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_PLATFORM_ATOMS_CONFIGURE_SETTINGS"), "html", null, true);
            echo "\" class=\"fa fa-cog\"></i>
            </a>
        </li>";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['atom'], $context['label'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 18
        echo "</ul>

    <div class=\"card settings-block\">
        ";
        // line 21
        $context["list"] = ((($this->getAttribute((isset($context["data"]) ? $context["data"] : null), "get", array(0 => "page.head.atoms"), "method", true, true) &&  !(null === $this->getAttribute((isset($context["data"]) ? $context["data"] : null), "get", array(0 => "page.head.atoms"), "method")))) ? ($this->getAttribute((isset($context["data"]) ? $context["data"] : null), "get", array(0 => "page.head.atoms"), "method")) : ($this->getAttribute((isset($context["defaults"]) ? $context["defaults"] : null), "get", array(0 => "page.head.atoms"), "method")));
        // line 22
        echo "        ";
        if ((isset($context["list"]) ? $context["list"] : null)) {
            // line 23
            echo "                <ul class=\"atoms-list\">";
            // line 24
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["list"]) ? $context["list"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["atom"]) {
                // line 25
                $context["classes"] = ((($this->getAttribute($this->getAttribute($context["atom"], "attributes", array()), "enabled", array())) ? ("") : ("atom-disabled")) . (($this->getAttribute($this->getAttribute($context["atom"], "inherit", array()), "outline", array())) ? (" g-inheriting") : ("")));
                // line 26
                echo "                    ";
                $context["inheriting"] = (($this->getAttribute($this->getAttribute($context["atom"], "inherit", array()), "outline", array())) ? (((((((" g-inheriting=\"\" data-tip=\"" . $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_PLATFORM_INHERITING_FROM_X", (("<strong>" . $this->getAttribute($this->getAttribute(                // line 27
(isset($context["gantry"]) ? $context["gantry"] : null), "outlines", array()), "title", array(0 => $this->getAttribute($this->getAttribute($context["atom"], "inherit", array()), "outline", array())), "method")) . "</strong>"))) . "<br />ID: ") . $this->getAttribute($this->getAttribute($context["atom"], "inherit", array()), "atom", array())) . "<br />Replace: ") . twig_join_filter($this->getAttribute($this->getAttribute($context["atom"], "inherit", array()), "include", array()), ", ")) . "\"")) : (""));
                // line 28
                echo "                    ";
                $context["title"] = (($this->getAttribute($this->getAttribute($context["atom"], "attributes", array()), "enabled", array())) ? ("") : (((" title=\"" . $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_PLATFORM_ATOMS_DISABLED_DESC")) . "\"")));
                // line 29
                echo "                    <li data-atom-picked=\"";
                echo twig_escape_filter($this->env, twig_jsonencode_filter($context["atom"]), "html_attr");
                echo "\"";
                echo (((isset($context["classes"]) ? $context["classes"] : null)) ? (((" class=\"" . trim((isset($context["classes"]) ? $context["classes"] : null))) . "\"")) : (""));
                echo (isset($context["inheriting"]) ? $context["inheriting"] : null);
                echo (isset($context["title"]) ? $context["title"] : null);
                echo " data-atom-type=\"";
                echo twig_escape_filter($this->env, $this->getAttribute($context["atom"], "type", array()), "html", null, true);
                echo "\">
                        <i class=\"fa fa-fw fa-hand-stop-o drag-indicator\"></i>
                        <span class=\"atom-title\">";
                // line 31
                echo twig_escape_filter($this->env, $this->getAttribute($context["atom"], "title", array()), "html", null, true);
                echo "</span>
                        <a href=\"";
                // line 32
                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["gantry"]) ? $context["gantry"] : null), "route", array(0 => "configurations", 1 => (isset($context["page_id"]) ? $context["page_id"] : null), 2 => "page", 3 => "atoms", 4 => $this->getAttribute($context["atom"], "type", array())), "method"), "html", null, true);
                echo "\" class=\"atom-settings config-cog\">
                            <i aria-label=\"Configure Atom Settings\" class=\"fa fa-cog\"></i>
                        </a>
                    </li>";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['atom'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 37
            echo "</ul>
        ";
        } else {
            // line 39
            echo "            <ul class=\"atoms-list\"></ul>
        ";
        }
        // line 41
        echo "
        ";
        // line 42
        if ((isset($context["overrideable"]) ? $context["overrideable"] : null)) {
            // line 43
            echo "            ";
            $context["prefix"] = "page.head.";
            // line 44
            echo "            ";
            $this->loadTemplate("forms/override.html.twig", "@gantry-admin/pages/configurations/page/atoms.html.twig", 44)->display(array_merge($context, array("scope" => (isset($context["prefix"]) ? $context["prefix"] : null), "name" => "atoms", "has_value" =>  !(null === $this->getAttribute((isset($context["data"]) ? $context["data"] : null), "get", array(0 => ((isset($context["prefix"]) ? $context["prefix"] : null) . "atoms")), "method")), "field" => array("label" => "Enabled of the field Atoms"))));
            // line 45
            echo "        ";
        }
        // line 46
        echo "    </div>

    ";
        // line 49
        echo "    ";
        if ((( !(null === (isset($context["atoms_deprecated"]) ? $context["atoms_deprecated"] : null)) && twig_length_filter($this->env, (isset($context["atoms_deprecated"]) ? $context["atoms_deprecated"] : null))) && $this->getAttribute((isset($context["data"]) ? $context["data"] : null), "get", array(0 => "page.head.atoms"), "method"))) {
            // line 50
            echo "        <p class=\"alert alert-notice\">";
            echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_PLATFORM_ATOMS_DEPRECATED_MESSAGE"), "html", null, true);
            echo "</p>
    ";
        }
        // line 52
        echo "
    <div id=\"trash\" data-atoms-erase=\"\"><div class=\"trash-zone\">&times;</div><span>";
        // line 53
        echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_PLATFORM_DROP_DELETE"), "html", null, true);
        echo "</span></div>
    ";
        // line 55
        echo "</div>";
    }

    public function getTemplateName()
    {
        return "@gantry-admin/pages/configurations/page/atoms.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  157 => 55,  153 => 53,  150 => 52,  144 => 50,  141 => 49,  137 => 46,  134 => 45,  131 => 44,  128 => 43,  126 => 42,  123 => 41,  119 => 39,  115 => 37,  105 => 32,  101 => 31,  89 => 29,  86 => 28,  84 => 27,  82 => 26,  80 => 25,  76 => 24,  74 => 23,  71 => 22,  69 => 21,  64 => 18,  55 => 14,  51 => 13,  47 => 12,  41 => 9,  36 => 8,  32 => 7,  28 => 5,  22 => 2,  19 => 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("", "@gantry-admin/pages/configurations/page/atoms.html.twig", "/web/httpd/users/hlozek/public_html/wp-content/plugins/gantry5/admin/templates/pages/configurations/page/atoms.html.twig");
    }
}
