<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;
/* navigation/main.twig */
class __TwigTemplate_3a4fc27064ab0bd6f6bd9d66ebb9b1ad extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $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 = []): iterable
{
$macros = $this->macros;
// line 1
if ( !($context["is_ajax"] ?? null)) {
// line 2
yield " <div id=\"pma_navigation\" class=\"d-print-none\" data-config-navigation-width=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["config_navigation_width"] ?? null), "html", null, true);
yield "\">
<div id=\"pma_navigation_resizer\"></div>
<div id=\"pma_navigation_collapser\"></div>
<div id=\"pma_navigation_content\">
<div id=\"pma_navigation_header\">
";
// line 8
if (CoreExtension::getAttribute($this->env, $this->source, ($context["logo"] ?? null), "is_displayed", [], "any", false, false, false, 8)) {
// line 9
yield " <div id=\"pmalogo\">
";
// line 10
if (CoreExtension::getAttribute($this->env, $this->source, ($context["logo"] ?? null), "has_link", [], "any", false, false, false, 10)) {
// line 11
yield " <a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["logo"] ?? null), "link", [], "any", true, true, false, 11)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["logo"] ?? null), "link", [], "any", false, false, false, 11), "#")) : ("#")), "html", null, true);
yield "\"";
yield CoreExtension::getAttribute($this->env, $this->source, ($context["logo"] ?? null), "attributes", [], "any", false, false, false, 11);
yield ">
";
}
// line 13
yield " ";
if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, ($context["logo"] ?? null), "source", [], "any", false, false, false, 13))) {
// line 14
yield " <img id=\"imgpmalogo\" src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["logo"] ?? null), "source", [], "any", false, false, false, 14), "html", null, true);
yield "\" alt=\"phpMyAdmin\">
";
} else {
// line 16
yield " <h1>phpMyAdmin</h1>
";
}
// line 18
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, ($context["logo"] ?? null), "has_link", [], "any", false, false, false, 18)) {
// line 19
yield " </a>
";
}
// line 21
yield " </div>
";
}
// line 23
yield "
<div id=\"navipanellinks\">
<a href=\"";
// line 25
yield PhpMyAdmin\Url::getFromRoute("/");
yield "\" title=\"";
yield _gettext("Home");
yield "\">";
// line 26
yield PhpMyAdmin\Html\Generator::getImage("b_home", _gettext("Home"));
// line 27
yield "</a>
";
// line 29
if ((($context["server"] ?? null) != 0)) {
// line 30
yield " <a class=\"logout disableAjax\" href=\"";
yield PhpMyAdmin\Url::getFromRoute("/logout");
yield "\" title=\"";
yield (((($context["auth_type"] ?? null) == "config")) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(_gettext("Empty session data"), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(_gettext("Log out"), "html", null, true)));
yield "\">";
// line 31
yield PhpMyAdmin\Html\Generator::getImage("s_loggoff", (((($context["auth_type"] ?? null) == "config")) ? (_gettext("Empty session data")) : (_gettext("Log out"))));
// line 32
yield "</a>
";
}
// line 34
yield "
<a href=\"";
// line 35
yield PhpMyAdmin\Html\MySQLDocumentation::getDocumentationLink("index");
yield "\" title=\"";
yield _gettext("phpMyAdmin documentation");
yield "\" target=\"_blank\" rel=\"noopener noreferrer\">";
// line 36
yield PhpMyAdmin\Html\Generator::getImage("b_docs", _gettext("phpMyAdmin documentation"));
// line 37
yield "</a>
<a href=\"";
// line 39
yield PhpMyAdmin\Util::getdocuURL(($context["is_mariadb"] ?? null));
yield "\" title=\"";
yield ((($context["is_mariadb"] ?? null)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(_gettext("MariaDB Documentation"), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(_gettext("MySQL Documentation"), "html", null, true)));
yield "\" target=\"_blank\" rel=\"noopener noreferrer\">";
// line 40
yield PhpMyAdmin\Html\Generator::getImage("b_sqlhelp", ((($context["is_mariadb"] ?? null)) ? (_gettext("MariaDB Documentation")) : (_gettext("MySQL Documentation"))));
// line 41
yield "</a>
<a id=\"pma_navigation_settings_icon\"";
// line 43
yield (( !($context["is_navigation_settings_enabled"] ?? null)) ? (" class=\"hide\"") : (""));
yield " href=\"#\" title=\"";
yield _gettext("Navigation panel settings");
yield "\">";
// line 44
yield PhpMyAdmin\Html\Generator::getImage("s_cog", _gettext("Navigation panel settings"));
// line 45
yield "</a>
<a id=\"pma_navigation_reload\" href=\"#\" title=\"";
yield _gettext("Reload navigation panel");
// line 47
yield "\">";
// line 48
yield PhpMyAdmin\Html\Generator::getImage("s_reload", _gettext("Reload navigation panel"));
// line 49
yield "</a>
</div>
";
// line 52
if ((($context["is_servers_displayed"] ?? null) && (Twig\Extension\CoreExtension::length($this->env->getCharset(), ($context["servers"] ?? null)) > 1))) {
// line 53
yield " <div id=\"serverChoice\">
";
// line 54
yield ($context["server_select"] ?? null);
yield "
</div>
";
}
// line 57
yield "
";
// line 58
yield PhpMyAdmin\Html\Generator::getImage("ajax_clock_small", _gettext("Loading…"), ["style" => "visibility: hidden; display:none", "class" => "throbber"]);
// line 61
yield "
</div>
<div id=\"pma_navigation_tree\" class=\"list_container";
// line 63
yield ((($context["is_synced"] ?? null)) ? (" synced") : (""));
yield ((($context["is_highlighted"] ?? null)) ? (" highlight") : (""));
yield ((($context["is_autoexpanded"] ?? null)) ? (" autoexpand") : (""));
yield "\">
";
}
// line 65
yield "
";
// line 66
if ( !($context["navigation_tree"] ?? null)) {
// line 67
yield " ";
yield $this->env->getFilter('error')->getCallable()(_gettext("An error has occurred while loading the navigation display"));
yield "
";
} else {
// line 69
yield " ";
yield ($context["navigation_tree"] ?? null);
yield "
";
}
// line 71
yield "
";
// line 72
if ( !($context["is_ajax"] ?? null)) {
// line 73
yield " </div>
<div id=\"pma_navi_settings_container\">
";
// line 76
if (($context["is_navigation_settings_enabled"] ?? null)) {
// line 77
yield " ";
yield ($context["navigation_settings"] ?? null);
yield "
";
}
// line 79
yield " </div>
</div>
";
// line 82
if (($context["is_drag_drop_import_enabled"] ?? null)) {
// line 83
yield " <div class=\"pma_drop_handler\">
";
yield _gettext("Drop files here");
// line 85
yield " </div>
<div class=\"pma_sql_import_status\">
<h2>
";
yield _gettext("SQL upload");
// line 89
yield " ( <span class=\"pma_import_count\">0</span> )
<span class=\"close\">x</span>
<span class=\"minimize\">-</span>
</h2>
<div></div>
</div>
";
}
// line 96
yield " </div>
";
// line 97
yield Twig\Extension\CoreExtension::include($this->env, $context, "modals/unhide_nav_item.twig");
yield "
";
// line 98
yield Twig\Extension\CoreExtension::include($this->env, $context, "modals/create_view.twig");
yield "
";
}
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "navigation/main.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 263 => 98, 259 => 97, 256 => 96, 247 => 89, 241 => 85, 237 => 83, 235 => 82, 230 => 79, 224 => 77, 222 => 76, 217 => 73, 215 => 72, 212 => 71, 206 => 69, 200 => 67, 198 => 66, 195 => 65, 188 => 63, 184 => 61, 182 => 58, 179 => 57, 173 => 54, 170 => 53, 168 => 52, 163 => 49, 161 => 48, 159 => 47, 154 => 45, 152 => 44, 147 => 43, 143 => 41, 141 => 40, 136 => 39, 132 => 37, 130 => 36, 125 => 35, 122 => 34, 118 => 32, 116 => 31, 110 => 30, 108 => 29, 104 => 27, 102 => 26, 97 => 25, 93 => 23, 89 => 21, 85 => 19, 82 => 18, 78 => 16, 72 => 14, 69 => 13, 61 => 11, 59 => 10, 56 => 9, 54 => 8, 44 => 2, 42 => 1,);
}
public function getSourceContext(): Source
{
return new Source("", "navigation/main.twig", "/usr/share/phpmyadmin/templates/navigation/main.twig");
}
}