<?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;
/* console/bookmark_content.twig */
class __TwigTemplate_8736fceaa485f528e5fb3e61eba99ccd 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 1
echo "<div class=\"message welcome\">
<span>";
// line 2
echo twig_escape_filter($this->env, ($context["welcome_message"] ?? null), "html", null, true);
echo "</span>
</div>
";
// line 4
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["bookmarks"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["bookmark"]) {
// line 5
echo " <div class=\"message collapsed bookmark\" bookmarkid=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["bookmark"], "getId", [], "method", false, false, false, 5), "html", null, true);
echo "\"
targetdb=\"";
// line 6
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["bookmark"], "getDatabase", [], "method", false, false, false, 6), "html", null, true);
echo "\">
";
// line 7
$this->loadTemplate("console/query_action.twig", "console/bookmark_content.twig", 7)->display(twig_to_array(["parent_div_classes" => "action_content", "content_array" => [["action collapse", _gettext("Collapse")], ["action expand", _gettext("Expand")], ["action requery", _gettext("Requery")], ["action edit_bookmark", _gettext("Edit")], ["action delete_bookmark", _gettext("Delete")], ["text targetdb", _gettext("Database"), "extraSpan" => twig_get_attribute($this->env, $this->source, // line 15
$context["bookmark"], "getDatabase", [], "method", false, false, false, 15)]]]));
// line 18
echo " <span class=\"bookmark_label";
echo ((twig_test_empty(twig_get_attribute($this->env, $this->source, $context["bookmark"], "getUser", [], "method", false, false, false, 18))) ? (" shared") : (""));
echo "\">
";
// line 19
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["bookmark"], "getLabel", [], "method", false, false, false, 19), "html", null, true);
echo "
</span>
<span class=\"query\">
";
// line 22
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["bookmark"], "getQuery", [], "method", false, false, false, 22), "html", null, true);
echo "
</span>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['bookmark'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "console/bookmark_content.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 72 => 22, 66 => 19, 61 => 18, 59 => 15, 58 => 7, 54 => 6, 49 => 5, 45 => 4, 40 => 2, 37 => 1,);
}
public function getSourceContext()
{
return new Source("", "console/bookmark_content.twig", "/usr/share/phpmyadmin/templates/console/bookmark_content.twig");
}
}
|