Sindbad~EG File Manager
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
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;
/* layout/parts/context_links.html.twig */
class __TwigTemplate_ec9e8a859495f201fe3c7780249773c2 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 33
echo "
";
// line 34
$context["links"] = (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["menu"] ?? null), ($context["sector"] ?? null), [], "array", false, true, false, 34), "content", [], "array", false, true, false, 34), ($context["item"] ?? null), [], "array", false, true, false, 34), "options", [], "array", false, true, false, 34), ($context["option"] ?? null), [], "array", false, true, false, 34), "links", [], "array", true, true, false, 34) && !(null === (($__internal_compile_0 = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["menu"] ?? null), ($context["sector"] ?? null), [], "array", false, true, false, 34), "content", [], "array", false, true, false, 34), ($context["item"] ?? null), [], "array", false, true, false, 34), "options", [], "array", false, true, false, 34), ($context["option"] ?? null), [], "array", false, true, false, 34)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0["links"] ?? null) : null)))) ? ((($__internal_compile_1 = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["menu"] ?? null), ($context["sector"] ?? null), [], "array", false, true, false, 34), "content", [], "array", false, true, false, 34), ($context["item"] ?? null), [], "array", false, true, false, 34), "options", [], "array", false, true, false, 34), ($context["option"] ?? null), [], "array", false, true, false, 34)) && is_array($__internal_compile_1) || $__internal_compile_1 instanceof ArrayAccess ? ($__internal_compile_1["links"] ?? null) : null)) : ((($__internal_compile_2 = (($__internal_compile_3 = (($__internal_compile_4 = (($__internal_compile_5 = ($context["menu"] ?? null)) && is_array($__internal_compile_5) || $__internal_compile_5 instanceof ArrayAccess ? ($__internal_compile_5[($context["sector"] ?? null)] ?? null) : null)) && is_array($__internal_compile_4) || $__internal_compile_4 instanceof ArrayAccess ? ($__internal_compile_4["content"] ?? null) : null)) && is_array($__internal_compile_3) || $__internal_compile_3 instanceof ArrayAccess ? ($__internal_compile_3[($context["item"] ?? null)] ?? null) : null)) && is_array($__internal_compile_2) || $__internal_compile_2 instanceof ArrayAccess ? ($__internal_compile_2["links"] ?? null) : null)));
// line 35
echo "
";
// line 37
echo "<ul class=\"nav navbar-nav border-start border-left ps-1 ps-sm-2 flex-row\">
";
// line 39
if (twig_get_attribute($this->env, $this->source, ($context["links"] ?? null), "add", [], "array", true, true, false, 39)) {
// line 40
echo "<li class=\"nav-item\">
<a href=\"";
// line 41
echo twig_escape_filter($this->env, $this->extensions['Glpi\Application\View\Extension\RoutingExtension']->path((($__internal_compile_6 = ($context["links"] ?? null)) && is_array($__internal_compile_6) || $__internal_compile_6 instanceof ArrayAccess ? ($__internal_compile_6["add"] ?? null) : null)), "html", null, true);
echo "\" class=\"btn btn-icon btn-sm btn-secondary me-1 pe-2\" title=\"";
echo twig_escape_filter($this->env, __("Add"), "html", null, true);
echo "\">
<i class=\"ti ti-plus\"></i>
<span class=\"d-none d-xxl-block\">";
// line 43
echo twig_escape_filter($this->env, __("Add"), "html", null, true);
echo "</span>
</a>
</li>
";
}
// line 47
echo "
";
// line 48
if (twig_get_attribute($this->env, $this->source, ($context["links"] ?? null), "search", [], "array", true, true, false, 48)) {
// line 49
echo "<li class=\"nav-item\">
<a href=\"";
// line 50
echo twig_escape_filter($this->env, $this->extensions['Glpi\Application\View\Extension\RoutingExtension']->path((($__internal_compile_7 = ($context["links"] ?? null)) && is_array($__internal_compile_7) || $__internal_compile_7 instanceof ArrayAccess ? ($__internal_compile_7["search"] ?? null) : null)), "html", null, true);
echo "\" class=\"btn btn-icon btn-sm btn-outline-secondary me-1 pe-2\" title=\"";
echo twig_escape_filter($this->env, __("Search"), "html", null, true);
echo "\">
<i class=\"ti ti-search\"></i>
<span class=\"d-none d-xxl-block\">";
// line 52
echo twig_escape_filter($this->env, __("Search"), "html", null, true);
echo "</span>
</a>
</li>
";
}
// line 56
echo "
";
// line 57
if (twig_get_attribute($this->env, $this->source, ($context["links"] ?? null), "lists", [], "array", true, true, false, 57)) {
// line 58
echo "<li class=\"nav-item\">
<a href=\"#\" class=\"btn btn-icon btn-sm btn-outline-secondary me-1 pe-2 show-saved-searches\"
data-itemtype=\"";
// line 60
echo twig_escape_filter($this->env, ($context["item"] ?? null), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, __("Lists"), "html", null, true);
echo "\">
<i class=\"ti ti-star\"></i>
<span class=\"d-none d-xxl-block\">";
// line 62
echo twig_escape_filter($this->env, __("Lists"), "html", null, true);
echo "</span>
</a>
</li>
";
}
// line 66
echo "
";
// line 67
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["links"] ?? null));
foreach ($context['_seq'] as $context["type"] => $context["link"]) {
// line 68
echo " ";
if (((($context["type"] == "add") || ($context["type"] == "search")) || ($context["type"] == "lists"))) {
// line 69
echo " ";
} elseif (($context["type"] == "template")) {
// line 70
echo " <li class=\"nav-item\">
<a href=\"";
// line 71
echo twig_escape_filter($this->env, $this->extensions['Glpi\Application\View\Extension\RoutingExtension']->path($context["link"]), "html", null, true);
echo "\" class=\"btn btn-icon btn-sm btn-outline-secondary me-1 pe-2\" title=\"";
echo twig_escape_filter($this->env, __("Manage templates..."), "html", null, true);
echo "\">
<i class=\"ti ti-template\"></i>
<span class=\"d-none d-xxl-block\">";
// line 73
echo twig_escape_filter($this->env, __("Templates"), "html", null, true);
echo "</span>
</a>
</li>
";
} elseif (( // line 76
$context["type"] == "showall")) {
// line 77
echo " <li class=\"nav-item\">
<a href=\"";
// line 78
echo twig_escape_filter($this->env, $this->extensions['Glpi\Application\View\Extension\RoutingExtension']->path($context["link"]), "html", null, true);
echo "\" class=\"btn btn-icon btn-sm btn-outline-secondary me-1 pe-2\" title=\"";
echo twig_escape_filter($this->env, __("Show all"), "html", null, true);
echo "\">
<i class=\"ti ti-eye-check\"></i>
<span class=\"d-none d-xxl-block\">";
// line 80
echo twig_escape_filter($this->env, __("Show all"), "html", null, true);
echo "</span>
</a>
</li>
";
} elseif (( // line 83
$context["type"] == "summary")) {
// line 84
echo " <li class=\"nav-item\">
<a href=\"";
// line 85
echo twig_escape_filter($this->env, $this->extensions['Glpi\Application\View\Extension\RoutingExtension']->path($context["link"]), "html", null, true);
echo "\" class=\"btn btn-icon btn-sm btn-outline-secondary me-1 pe-2\" title=\"";
echo twig_escape_filter($this->env, __("Summary"), "html", null, true);
echo "\">
<i class=\"ti ti-notes\"></i>
<span class=\"d-none d-xxl-block\">";
// line 87
echo twig_escape_filter($this->env, __("Summary"), "html", null, true);
echo "</span>
</a>
</li>
";
} elseif (( // line 90
$context["type"] == "summary_kanban")) {
// line 91
echo " <li class=\"nav-item\">
<a href=\"";
// line 92
echo twig_escape_filter($this->env, $this->extensions['Glpi\Application\View\Extension\RoutingExtension']->path($context["link"]), "html", null, true);
echo "\" class=\"btn btn-icon btn-sm btn-outline-secondary me-1 pe-2\" title=\"";
echo twig_escape_filter($this->env, __("Global Kanban"), "html", null, true);
echo "\">
<i class=\"ti ti-layout-columns\"></i>
<span class=\"d-none d-xxl-block\">";
// line 94
echo twig_escape_filter($this->env, __("Global Kanban"), "html", null, true);
echo "</span>
</a>
</li>
";
} elseif (( // line 97
$context["type"] == "transfer_list")) {
// line 98
echo " <li class=\"nav-item\">
<a href=\"";
// line 99
echo twig_escape_filter($this->env, $this->extensions['Glpi\Application\View\Extension\RoutingExtension']->path($context["link"]), "html", null, true);
echo "\" class=\"btn btn-icon btn-sm btn-outline-secondary me-1 pe-2\" title=\"";
echo twig_escape_filter($this->env, __("Transfer list"), "html", null, true);
echo "\">
<i class=\"ti ti-list-check\"></i>
<span class=\"d-none d-xxl-block\">";
// line 101
echo twig_escape_filter($this->env, __("Transfer list"), "html", null, true);
echo "</span>
</a>
</li>
";
} elseif (( // line 104
$context["type"] == "config")) {
// line 105
echo " <li class=\"nav-item\">
<a href=\"";
// line 106
echo twig_escape_filter($this->env, $this->extensions['Glpi\Application\View\Extension\RoutingExtension']->path($context["link"]), "html", null, true);
echo "\" class=\"btn btn-icon btn-sm btn-outline-secondary me-1 pe-2\" title=\"";
echo twig_escape_filter($this->env, __("Setup"), "html", null, true);
echo "\">
<i class=\"ti ti-tool\"></i>
<span class=\"d-none d-xxl-block\">";
// line 108
echo twig_escape_filter($this->env, __("Setup"), "html", null, true);
echo "</span>
</a>
</li>
";
} else {
// line 112
echo " <li class=\"nav-item\">
<a href=\"";
// line 113
echo twig_escape_filter($this->env, $this->extensions['Glpi\Application\View\Extension\RoutingExtension']->path($context["link"]), "html", null, true);
echo "\" class=\"btn btn-icon btn-sm btn-outline-secondary me-1 pe-2\">
";
// line 114
echo $context["type"];
echo "
</a>
</li>
";
}
// line 118
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['type'], $context['link'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 120
echo "</ul>
";
}
public function getTemplateName()
{
return "layout/parts/context_links.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 254 => 120, 247 => 118, 240 => 114, 236 => 113, 233 => 112, 226 => 108, 219 => 106, 216 => 105, 214 => 104, 208 => 101, 201 => 99, 198 => 98, 196 => 97, 190 => 94, 183 => 92, 180 => 91, 178 => 90, 172 => 87, 165 => 85, 162 => 84, 160 => 83, 154 => 80, 147 => 78, 144 => 77, 142 => 76, 136 => 73, 129 => 71, 126 => 70, 123 => 69, 120 => 68, 116 => 67, 113 => 66, 106 => 62, 99 => 60, 95 => 58, 93 => 57, 90 => 56, 83 => 52, 76 => 50, 73 => 49, 71 => 48, 68 => 47, 61 => 43, 54 => 41, 51 => 40, 49 => 39, 45 => 37, 42 => 35, 40 => 34, 37 => 33,);
}
public function getSourceContext()
{
return new Source("{#
# ---------------------------------------------------------------------
#
# GLPI - Gestionnaire Libre de Parc Informatique
#
# http://glpi-project.org
#
# @copyright 2015-2022 Teclib' and contributors.
# @copyright 2003-2014 by the INDEPNET Development Team.
# @licence https://www.gnu.org/licenses/gpl-3.0.html
#
# ---------------------------------------------------------------------
#
# LICENSE
#
# This file is part of GLPI.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
# ---------------------------------------------------------------------
#}
{% set links = menu[sector]['content'][item]['options'][option]['links'] ?? menu[sector]['content'][item]['links'] %}
{# @TODO border-start is not implemented in current boostrap beta (remove border-left when done) #}
<ul class=\"nav navbar-nav border-start border-left ps-1 ps-sm-2 flex-row\">
{% if links['add'] is defined %}
<li class=\"nav-item\">
<a href=\"{{ path(links['add']) }}\" class=\"btn btn-icon btn-sm btn-secondary me-1 pe-2\" title=\"{{ __('Add') }}\">
<i class=\"ti ti-plus\"></i>
<span class=\"d-none d-xxl-block\">{{ __('Add') }}</span>
</a>
</li>
{% endif %}
{% if links['search'] is defined %}
<li class=\"nav-item\">
<a href=\"{{ path(links['search']) }}\" class=\"btn btn-icon btn-sm btn-outline-secondary me-1 pe-2\" title=\"{{ __('Search') }}\">
<i class=\"ti ti-search\"></i>
<span class=\"d-none d-xxl-block\">{{ __('Search') }}</span>
</a>
</li>
{% endif %}
{% if links['lists'] is defined %}
<li class=\"nav-item\">
<a href=\"#\" class=\"btn btn-icon btn-sm btn-outline-secondary me-1 pe-2 show-saved-searches\"
data-itemtype=\"{{ item }}\" title=\"{{ __('Lists') }}\">
<i class=\"ti ti-star\"></i>
<span class=\"d-none d-xxl-block\">{{ __('Lists') }}</span>
</a>
</li>
{% endif %}
{% for type, link in links %}
{% if type == 'add' or type == 'search' or type == 'lists' %}
{% elseif type == 'template' %}
<li class=\"nav-item\">
<a href=\"{{ path(link) }}\" class=\"btn btn-icon btn-sm btn-outline-secondary me-1 pe-2\" title=\"{{ __('Manage templates...') }}\">
<i class=\"ti ti-template\"></i>
<span class=\"d-none d-xxl-block\">{{ __('Templates') }}</span>
</a>
</li>
{% elseif type == 'showall' %}
<li class=\"nav-item\">
<a href=\"{{ path(link) }}\" class=\"btn btn-icon btn-sm btn-outline-secondary me-1 pe-2\" title=\"{{ __('Show all') }}\">
<i class=\"ti ti-eye-check\"></i>
<span class=\"d-none d-xxl-block\">{{ __('Show all') }}</span>
</a>
</li>
{% elseif type == 'summary' %}
<li class=\"nav-item\">
<a href=\"{{ path(link) }}\" class=\"btn btn-icon btn-sm btn-outline-secondary me-1 pe-2\" title=\"{{ __('Summary') }}\">
<i class=\"ti ti-notes\"></i>
<span class=\"d-none d-xxl-block\">{{ __('Summary') }}</span>
</a>
</li>
{% elseif type == 'summary_kanban' %}
<li class=\"nav-item\">
<a href=\"{{ path(link) }}\" class=\"btn btn-icon btn-sm btn-outline-secondary me-1 pe-2\" title=\"{{ __('Global Kanban') }}\">
<i class=\"ti ti-layout-columns\"></i>
<span class=\"d-none d-xxl-block\">{{ __('Global Kanban') }}</span>
</a>
</li>
{% elseif type == 'transfer_list' %}
<li class=\"nav-item\">
<a href=\"{{ path(link) }}\" class=\"btn btn-icon btn-sm btn-outline-secondary me-1 pe-2\" title=\"{{ __('Transfer list') }}\">
<i class=\"ti ti-list-check\"></i>
<span class=\"d-none d-xxl-block\">{{ __('Transfer list') }}</span>
</a>
</li>
{% elseif type == 'config' %}
<li class=\"nav-item\">
<a href=\"{{ path(link) }}\" class=\"btn btn-icon btn-sm btn-outline-secondary me-1 pe-2\" title=\"{{ __('Setup') }}\">
<i class=\"ti ti-tool\"></i>
<span class=\"d-none d-xxl-block\">{{ __('Setup') }}</span>
</a>
</li>
{% else %}
<li class=\"nav-item\">
<a href=\"{{ path(link) }}\" class=\"btn btn-icon btn-sm btn-outline-secondary me-1 pe-2\">
{{ type|raw }}
</a>
</li>
{% endif %}
{% endfor %}
</ul>
", "layout/parts/context_links.html.twig", "/home/escuelai/public_html/it/templates/layout/parts/context_links.html.twig");
}
}
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists