<?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;

/* @gantry-admin/pages/configurations/layouts/edit.html.twig */
class __TwigTemplate_5a78f1ff2890d3a817c2d69a9da05d925bed7a38ffae3fcb5ed2c05660b21c63 extends \Twig\Template
{
    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->blocks = [
            'gantry' => [$this, 'block_gantry'],
        ];
    }

    protected function doGetParent(array $context)
    {
        // line 1
        return $this->loadTemplate((((($context["ajax"] ?? null) - ($context["suffix"] ?? null))) ? ("@gantry-admin/partials/ajax.html.twig") : ("@gantry-admin/partials/base.html.twig")), "@gantry-admin/pages/configurations/layouts/edit.html.twig", 1);
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
    }

    // line 3
    public function block_gantry($context, array $blocks = [])
    {
        // line 4
        if (((($context["configuration"] ?? null) == "default") && $this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "platform", []), "no_base_layout", []))) {
            // line 5
            echo "
<h2 class=\"page-title\">";
            // line 6
            echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_PLATFORM_LAYOUT"), "html", null, true);
            echo "</h2>
<p>";
            // line 7
            echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_PLATFORM_BASE_LAYOUT_DESC"), "html", null, true);
            echo "</p>

";
        } else {
            // line 10
            echo "
<div class=\"g-grid\" data-lm-container=\"\">
    <div class=\"g-block sidebar-block particles-sidebar-block\">
        <h2 class=\"page-title\">
            <span class=\"title\">";
            // line 14
            echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_PLATFORM_PARTICLES"), "html", null, true);
            echo "</span>
        </h2>
        <div class=\"g5-lm-particles-picker\">
            <div class=\"search settings-block\">
                <input type=\"text\" placeholder=\"";
            // line 18
            echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_PLATFORM_FILTER_ELI"), "html", null, true);
            echo "\" aria-label=\"";
            echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_PLATFORM_FILTER_ELI"), "html", null, true);
            echo "\" role=\"search\"/>
                <i class=\"fa fa-fw fa-search\" aria-hidden=\"true\"></i>
            </div>
            <div class=\"particles-container\">
                ";
            // line 22
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(($context["particles"] ?? null));
            foreach ($context['_seq'] as $context["key"] => $context["list"]) {
                // line 23
                echo "                    ";
                echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $context["key"]), "html", null, true);
                echo "
                    <ul>
                    ";
                // line 25
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable($context["list"]);
                foreach ($context['_seq'] as $context["type"] => $context["particle"]) {
                    // line 26
                    echo "                        ";
                    $context['_parent'] = $context;
                    $context['_seq'] = twig_ensure_traversable($context["particle"]);
                    foreach ($context['_seq'] as $context["item_key"] => $context["item"]) {
                        // line 27
                        echo "                            ";
                        $context["isDisabled"] =  !$this->getAttribute($this->getAttribute(($context["gantry"] ?? null), "config", []), "get", [0 => (("particles." . $context["item_key"]) . ".enabled"), 1 => true], "method");
                        // line 28
                        echo "                            <li class=\"g5-lm-particle-";
                        echo twig_escape_filter($this->env, $context["type"], "html", null, true);
                        echo "\"
                                data-lm-blocktype=\"";
                        // line 29
                        echo twig_escape_filter($this->env, $context["type"], "html", null, true);
                        echo "\"
                                data-lm-subtype=\"";
                        // line 30
                        echo twig_escape_filter($this->env, $context["item_key"], "html", null, true);
                        echo "\"
                                data-lm-icon=\"";
                        // line 31
                        echo twig_escape_filter($this->env, (($this->getAttribute($context["item"], "icon", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute($context["item"], "icon", []), "fa-cube")) : ("fa-cube")), "html", null, true);
                        echo "\"
                                ";
                        // line 32
                        if (($context["isDisabled"] ?? null)) {
                            // line 33
                            echo "                                data-lm-disabled=\"\"
                                data-lm-nodrag=\"\"
                                title=\"";
                            // line 35
                            echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_PLATFORM_PARTICLE_DISABLED"), "html", null, true);
                            echo "\"
                                ";
                        }
                        // line 37
                        echo "                            >
                                <span class=\"particle-icon\" ";
                        // line 38
                        echo ((($context["isDisabled"] ?? null)) ? ("data-lm-disabled data-lm-nodrag") : (""));
                        echo ">
                                    <i class=\"fa fa-fw ";
                        // line 39
                        echo twig_escape_filter($this->env, (($this->getAttribute($context["item"], "icon", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute($context["item"], "icon", []), "fa-cube")) : ("fa-cube")), "html", null, true);
                        echo "\" aria-hidden=\"true\" ";
                        echo ((($context["isDisabled"] ?? null)) ? ("data-lm-disabled data-lm-nodrag") : (""));
                        echo "></i>
                                </span>
                                <span class=\"particle-title\" ";
                        // line 41
                        echo ((($context["isDisabled"] ?? null)) ? ("data-lm-disabled data-lm-nodrag") : (""));
                        echo ">";
                        echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "name", []), "html", null, true);
                        echo "</span>
                            </li>
                        ";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['item_key'], $context['item'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 44
                    echo "                    ";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['type'], $context['particle'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 45
                echo "                    </ul>
                ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['key'], $context['list'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 47
            echo "            </div>
        </div>
    </div>
    <div class=\"g-block main-block\">
        <span class=\"float-right\">
            ";
            // line 54
            echo "            <button href=\"#\"
                    class=\"button\"
                    role=\"button\"
                    data-lm-switcher=\"";
            // line 57
            echo twig_escape_filter($this->env, $this->getAttribute(($context["gantry"] ?? null), "route", [0 => ($context["switcher_url"] ?? null)], "method"), "html", null, true);
            echo "\"
                    aria-label=\"";
            // line 58
            echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_PLATFORM_LM_LOAD_PRESET"), "html", null, true);
            echo "\">
                <i class=\"fa fa-fw fa-code-fork\" aria-hidden=\"true\"></i> <span>";
            // line 59
            echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_PLATFORM_LOAD"), "html", null, true);
            echo "</span>
            </button>
            <div class=\"button\" data-g-popover aria-haspopup=\"true\" aria-expanded=\"false\" role=\"presentation\">
                <span><i class=\"fa fa-fw fa-trash-o\" aria-hidden=\"true\"></i> ";
            // line 62
            echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_PLATFORM_CLEAR"), "html", null, true);
            echo " <i class=\"small fa fa-fw fa-chevron-down\" aria-hidden=\"true\"></i></span>
                <ul data-popover-content class=\"hidden\" tabindex=\"0\">
                    <li data-g-popover-follow>
                        <a tabindex=\"0\"
                           href=\"#\"
                           data-lm-clear=\"full\"
                           aria-label=\"";
            // line 68
            echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_PLATFORM_LM_CLEAR_LAYOUT"), "html", null, true);
            echo "\"
                        ><i class=\"fa fa-fw fa-trash\" aria-hidden=\"true\"></i> ";
            // line 69
            echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_PLATFORM_LM_CLEAR_FULL"), "html", null, true);
            echo "
                        </a>
                    </li>
                    <li data-g-popover-follow>
                        <a tabindex=\"0\"
                           href=\"#\"
                           data-lm-clear=\"keep-inheritance\"
                           aria-label=\"";
            // line 76
            echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_PLATFORM_LM_CLEAR_LAYOUT"), "html", null, true);
            echo "\"
                        ><i class=\"fa fa-fw fa-trash-o\" aria-hidden=\"true\"></i> ";
            // line 77
            echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_PLATFORM_LM_CLEAR_KEEP_INHERITANCE"), "html", null, true);
            echo "
                        </a>
                    </li>
                </ul>
            </div>
            <button href=\"#\"
                    class=\"button button-primary button-save\"
                    role=\"button\"
                    data-save=\"Layout\"
                    aria-label=\"";
            // line 86
            echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_PLATFORM_SAVE_LAYOUT"), "html", null, true);
            echo "\"
            >
                <i class=\"fa fa-fw fa-check\" aria-hidden=\"true\"></i> <span>";
            // line 88
            echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_PLATFORM_SAVE_LAYOUT"), "html", null, true);
            echo "</span>
            </button>
        </span>
        <h2 class=\"page-title layout-title\">
            <span class=\"title\">";
            // line 92
            echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_PLATFORM_LAYOUT"), "html", null, true);
            echo " <small>(";
            echo twig_escape_filter($this->env, (((isset($context["preset_title"]) || array_key_exists("preset_title", $context))) ? (_twig_default_filter(($context["preset_title"] ?? null), $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_PLATFORM_LM_PRESET_UNKNOWN"))) : ($this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_PLATFORM_LM_PRESET_UNKNOWN"))), "html", null, true);
            echo ")</small></span>
        </h2>

        <div class=\"lm-newblocks clearfix\" data-lm-blocktypes=\"\">
            ";
            // line 97
            echo "            <span class=\"float-right\">
                <button data-lm-back=\"\" href=\"#\" class=\"button disabled\"><i class=\"fa fa-fw fa-arrow-left\" aria-hidden=\"true\"></i> ";
            // line 98
            echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_PLATFORM_UNDO"), "html", null, true);
            echo "</button>
                ";
            // line 100
            echo "                <button data-lm-forward=\"\" href=\"#\" class=\"button disabled\">";
            echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_PLATFORM_REDO"), "html", null, true);
            echo " <i class=\"fa fa-fw fa-arrow-right\" aria-hidden=\"true\"></i></button>
            </span>
        </div>
        <div id=\"page\">
            <div class=\"lm-blocks\"
                 data-lm-page=\"";
            // line 105
            echo twig_escape_filter($this->env, ($context["page_id"] ?? null), "html", null, true);
            echo "\"
                 data-lm-preset=\"";
            // line 106
            echo twig_escape_filter($this->env, twig_jsonencode_filter(($context["preset"] ?? null)), "html_attr");
            echo "\"
                 data-lm-root=\"";
            // line 107
            echo twig_escape_filter($this->env, twig_jsonencode_filter(($context["layout"] ?? null)), "html_attr");
            echo "\"
            >
            </div>
            ";
            // line 110
            if (twig_test_empty(($context["layout"] ?? null))) {
                // line 111
                echo "            <div id=\"lm-no-layout\">
                <div class=\"card full-width\">
                    <h4>";
                // line 113
                echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_PLATFORM_NO_LAYOUT"), "html", null, true);
                echo "</h4>
                    <div class=\"inner-params\">
                        ";
                // line 115
                echo $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_PLATFORM_NO_LAYOUT_DESC");
                echo "
                    </div>
                </div>
            </div>
            ";
            }
            // line 120
            echo "
            <div class=\"g-footer-actions\">
            <span class=\"float-right\">
                <a href=\"#\" class=\"button\" data-lm-switcher=\"";
            // line 123
            echo twig_escape_filter($this->env, $this->getAttribute(($context["gantry"] ?? null), "route", [0 => ($context["switcher_url"] ?? null)], "method"), "html", null, true);
            echo "\">
                    <i class=\"fa fa-fw fa-code-fork\" aria-hidden=\"true\"></i> <span>";
            // line 124
            echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_PLATFORM_LOAD"), "html", null, true);
            echo "</span>
                </a>
                <div data-g-popover class=\"button\" aria-haspopup=\"true\" aria-expanded=\"false\" role=\"presentation\">
                <span><i class=\"fa fa-fw fa-trash-o\" aria-hidden=\"true\"></i> ";
            // line 127
            echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_PLATFORM_CLEAR"), "html", null, true);
            echo " <i class=\"fa fa-fw fa-chevron-down small\" aria-hidden=\"true\"></i></span>
                <ul data-popover-content class=\"hidden\" tabindex=\"0\">
                    <li data-g-popover-follow>
                        <a tabindex=\"0\"
                           href=\"#\"
                           data-lm-clear=\"full\"
                           aria-label=\"";
            // line 133
            echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_PLATFORM_LM_CLEAR_LAYOUT"), "html", null, true);
            echo "\"
                        ><i class=\"fa fa-fw fa-trash\" aria-hidden=\"true\"></i> ";
            // line 134
            echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_PLATFORM_LM_CLEAR_FULL"), "html", null, true);
            echo "
                        </a>
                    </li>
                    <li data-g-popover-follow>
                        <a tabindex=\"0\"
                           href=\"#\"
                           data-lm-clear=\"keep-inheritance\"
                           aria-label=\"";
            // line 141
            echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_PLATFORM_LM_CLEAR_LAYOUT"), "html", null, true);
            echo "\"
                        ><i class=\"fa fa-fw fa-trash-o\" aria-hidden=\"true\"></i> ";
            // line 142
            echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_PLATFORM_LM_CLEAR_KEEP_INHERITANCE"), "html", null, true);
            echo "
                        </a>
                    </li>
                </ul>
            </div>
                <a href=\"#\" class=\"button button-primary button-save\" data-save=\"Layout\">
                    <i class=\"fa fa-fw fa-check\" aria-hidden=\"true\"></i> <span>";
            // line 148
            echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_PLATFORM_SAVE_LAYOUT"), "html", null, true);
            echo "</span>
                </a>
            </span>
            </div>
        </div>
    </div>

    <div id=\"trash\" data-lm-eraseblock=\"\"><div class=\"trash-zone\">&times;</div><span>";
            // line 155
            echo twig_escape_filter($this->env, $this->env->getExtension('Gantry\Component\Twig\TwigExtension')->transFilter("GANTRY5_PLATFORM_DROP_DELETE"), "html", null, true);
            echo "</span></div>
</div>
";
        }
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  362 => 155,  352 => 148,  343 => 142,  339 => 141,  329 => 134,  325 => 133,  316 => 127,  310 => 124,  306 => 123,  301 => 120,  293 => 115,  288 => 113,  284 => 111,  282 => 110,  276 => 107,  272 => 106,  268 => 105,  259 => 100,  255 => 98,  252 => 97,  243 => 92,  236 => 88,  231 => 86,  219 => 77,  215 => 76,  205 => 69,  201 => 68,  192 => 62,  186 => 59,  182 => 58,  178 => 57,  173 => 54,  166 => 47,  159 => 45,  153 => 44,  142 => 41,  135 => 39,  131 => 38,  128 => 37,  123 => 35,  119 => 33,  117 => 32,  113 => 31,  109 => 30,  105 => 29,  100 => 28,  97 => 27,  92 => 26,  88 => 25,  82 => 23,  78 => 22,  69 => 18,  62 => 14,  56 => 10,  50 => 7,  46 => 6,  43 => 5,  41 => 4,  38 => 3,  29 => 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("", "@gantry-admin/pages/configurations/layouts/edit.html.twig", "/home/lmsyaran/public_html/administrator/components/com_gantry5/templates/pages/configurations/layouts/edit.html.twig");
    }
}
