261 lines
14 KiB
PHP
261 lines
14 KiB
PHP
<?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;
|
|
|
|
/* @WebProfiler/Profiler/toolbar.html.twig */
|
|
class __TwigTemplate_fe268d14277849b8a6a79347298571c300001d8ca7289c34c24674cf9845a55e extends \Twig\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;
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@WebProfiler/Profiler/toolbar.html.twig"));
|
|
|
|
// line 1
|
|
echo "<!-- START of Symfony Web Debug Toolbar -->
|
|
";
|
|
// line 2
|
|
if (("normal" != (isset($context["position"]) || array_key_exists("position", $context) ? $context["position"] : (function () { throw new RuntimeError('Variable "position" does not exist.', 2, $this->source); })()))) {
|
|
// line 3
|
|
echo " <div id=\"sfMiniToolbar-";
|
|
echo twig_escape_filter($this->env, (isset($context["token"]) || array_key_exists("token", $context) ? $context["token"] : (function () { throw new RuntimeError('Variable "token" does not exist.', 3, $this->source); })()), "html", null, true);
|
|
echo "\" class=\"sf-minitoolbar\" data-no-turbolink>
|
|
<a href=\"javascript:void(0);\" title=\"Show Symfony toolbar\" tabindex=\"-1\" accesskey=\"D\" onclick=\"
|
|
var elem = this.parentNode;
|
|
if (elem.style.display == 'none') {
|
|
document.getElementById('sfToolbarMainContent-";
|
|
// line 7
|
|
echo twig_escape_filter($this->env, (isset($context["token"]) || array_key_exists("token", $context) ? $context["token"] : (function () { throw new RuntimeError('Variable "token" does not exist.', 7, $this->source); })()), "html", null, true);
|
|
echo "').style.display = 'none';
|
|
document.getElementById('sfToolbarClearer-";
|
|
// line 8
|
|
echo twig_escape_filter($this->env, (isset($context["token"]) || array_key_exists("token", $context) ? $context["token"] : (function () { throw new RuntimeError('Variable "token" does not exist.', 8, $this->source); })()), "html", null, true);
|
|
echo "').style.display = 'none';
|
|
elem.style.display = 'block';
|
|
} else {
|
|
document.getElementById('sfToolbarMainContent-";
|
|
// line 11
|
|
echo twig_escape_filter($this->env, (isset($context["token"]) || array_key_exists("token", $context) ? $context["token"] : (function () { throw new RuntimeError('Variable "token" does not exist.', 11, $this->source); })()), "html", null, true);
|
|
echo "').style.display = 'block';
|
|
document.getElementById('sfToolbarClearer-";
|
|
// line 12
|
|
echo twig_escape_filter($this->env, (isset($context["token"]) || array_key_exists("token", $context) ? $context["token"] : (function () { throw new RuntimeError('Variable "token" does not exist.', 12, $this->source); })()), "html", null, true);
|
|
echo "').style.display = 'block';
|
|
elem.style.display = 'none'
|
|
}
|
|
|
|
Sfjs.setPreference('toolbar/displayState', 'block');
|
|
\">
|
|
";
|
|
// line 18
|
|
echo twig_include($this->env, $context, "@WebProfiler/Icon/symfony.svg");
|
|
echo "
|
|
</a>
|
|
</div>
|
|
<style>
|
|
";
|
|
// line 22
|
|
echo twig_include($this->env, $context, "@WebProfiler/Profiler/toolbar.css.twig", ["position" => (isset($context["position"]) || array_key_exists("position", $context) ? $context["position"] : (function () { throw new RuntimeError('Variable "position" does not exist.', 22, $this->source); })()), "floatable" => true]);
|
|
echo "
|
|
</style>
|
|
<div id=\"sfToolbarClearer-";
|
|
// line 24
|
|
echo twig_escape_filter($this->env, (isset($context["token"]) || array_key_exists("token", $context) ? $context["token"] : (function () { throw new RuntimeError('Variable "token" does not exist.', 24, $this->source); })()), "html", null, true);
|
|
echo "\" style=\"clear: both; height: 36px;\"></div>
|
|
";
|
|
}
|
|
// line 26
|
|
echo "
|
|
<div id=\"sfToolbarMainContent-";
|
|
// line 27
|
|
echo twig_escape_filter($this->env, (isset($context["token"]) || array_key_exists("token", $context) ? $context["token"] : (function () { throw new RuntimeError('Variable "token" does not exist.', 27, $this->source); })()), "html", null, true);
|
|
echo "\" class=\"sf-toolbarreset clear-fix\" data-no-turbolink>
|
|
";
|
|
// line 28
|
|
$context['_parent'] = $context;
|
|
$context['_seq'] = twig_ensure_traversable((isset($context["templates"]) || array_key_exists("templates", $context) ? $context["templates"] : (function () { throw new RuntimeError('Variable "templates" does not exist.', 28, $this->source); })()));
|
|
$context['loop'] = [
|
|
'parent' => $context['_parent'],
|
|
'index0' => 0,
|
|
'index' => 1,
|
|
'first' => true,
|
|
];
|
|
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
|
|
$length = count($context['_seq']);
|
|
$context['loop']['revindex0'] = $length - 1;
|
|
$context['loop']['revindex'] = $length;
|
|
$context['loop']['length'] = $length;
|
|
$context['loop']['last'] = 1 === $length;
|
|
}
|
|
foreach ($context['_seq'] as $context["name"] => $context["template"]) {
|
|
// line 29
|
|
echo " ";
|
|
if ( $this->loadTemplate($context["template"], "@WebProfiler/Profiler/toolbar.html.twig", 29)->hasBlock("toolbar", $context)) {
|
|
// line 30
|
|
echo " ";
|
|
$__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 = ["collector" => twig_get_attribute($this->env, $this->source, // line 31
|
|
(isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 31, $this->source); })()), "getcollector", [0 => $context["name"]], "method", false, false, false, 31), "profiler_url" => // line 32
|
|
(isset($context["profiler_url"]) || array_key_exists("profiler_url", $context) ? $context["profiler_url"] : (function () { throw new RuntimeError('Variable "profiler_url" does not exist.', 32, $this->source); })()), "token" => twig_get_attribute($this->env, $this->source, // line 33
|
|
(isset($context["profile"]) || array_key_exists("profile", $context) ? $context["profile"] : (function () { throw new RuntimeError('Variable "profile" does not exist.', 33, $this->source); })()), "token", [], "any", false, false, false, 33), "name" => // line 34
|
|
$context["name"], "profiler_markup_version" => // line 35
|
|
(isset($context["profiler_markup_version"]) || array_key_exists("profiler_markup_version", $context) ? $context["profiler_markup_version"] : (function () { throw new RuntimeError('Variable "profiler_markup_version" does not exist.', 35, $this->source); })())];
|
|
if (!twig_test_iterable($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4)) {
|
|
throw new RuntimeError('Variables passed to the "with" tag must be a hash.', 31, $this->getSourceContext());
|
|
}
|
|
$__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 = twig_to_array($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4);
|
|
$context['_parent'] = $context;
|
|
$context = $this->env->mergeGlobals(array_merge($context, $__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4));
|
|
// line 37
|
|
echo " ";
|
|
$this->loadTemplate($context["template"], "@WebProfiler/Profiler/toolbar.html.twig", 37)->displayBlock("toolbar", $context);
|
|
echo "
|
|
";
|
|
$context = $context['_parent'];
|
|
// line 39
|
|
echo " ";
|
|
}
|
|
// line 40
|
|
echo " ";
|
|
++$context['loop']['index0'];
|
|
++$context['loop']['index'];
|
|
$context['loop']['first'] = false;
|
|
if (isset($context['loop']['length'])) {
|
|
--$context['loop']['revindex0'];
|
|
--$context['loop']['revindex'];
|
|
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
|
|
}
|
|
}
|
|
$_parent = $context['_parent'];
|
|
unset($context['_seq'], $context['_iterated'], $context['name'], $context['template'], $context['_parent'], $context['loop']);
|
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
|
// line 41
|
|
echo "
|
|
";
|
|
// line 42
|
|
if (("normal" != (isset($context["position"]) || array_key_exists("position", $context) ? $context["position"] : (function () { throw new RuntimeError('Variable "position" does not exist.', 42, $this->source); })()))) {
|
|
// line 43
|
|
echo " <a class=\"hide-button\" title=\"Close Toolbar\" tabindex=\"-1\" accesskey=\"D\" onclick=\"
|
|
var p = this.parentNode;
|
|
p.style.display = 'none';
|
|
(p.previousElementSibling || p.previousSibling).style.display = 'none';
|
|
document.getElementById('sfMiniToolbar-";
|
|
// line 47
|
|
echo twig_escape_filter($this->env, (isset($context["token"]) || array_key_exists("token", $context) ? $context["token"] : (function () { throw new RuntimeError('Variable "token" does not exist.', 47, $this->source); })()), "html", null, true);
|
|
echo "').style.display = 'block';
|
|
Sfjs.setPreference('toolbar/displayState', 'none');
|
|
\">
|
|
";
|
|
// line 50
|
|
echo twig_include($this->env, $context, "@WebProfiler/Icon/close.svg");
|
|
echo "
|
|
</a>
|
|
";
|
|
}
|
|
// line 53
|
|
echo "</div>
|
|
<!-- END of Symfony Web Debug Toolbar -->
|
|
";
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
|
|
|
}
|
|
|
|
public function getTemplateName()
|
|
{
|
|
return "@WebProfiler/Profiler/toolbar.html.twig";
|
|
}
|
|
|
|
public function isTraitable()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public function getDebugInfo()
|
|
{
|
|
return array ( 180 => 53, 174 => 50, 168 => 47, 162 => 43, 160 => 42, 157 => 41, 143 => 40, 140 => 39, 134 => 37, 126 => 35, 125 => 34, 124 => 33, 123 => 32, 122 => 31, 120 => 30, 117 => 29, 100 => 28, 96 => 27, 93 => 26, 88 => 24, 83 => 22, 76 => 18, 67 => 12, 63 => 11, 57 => 8, 53 => 7, 45 => 3, 43 => 2, 40 => 1,);
|
|
}
|
|
|
|
public function getSourceContext()
|
|
{
|
|
return new Source("<!-- START of Symfony Web Debug Toolbar -->
|
|
{% if 'normal' != position %}
|
|
<div id=\"sfMiniToolbar-{{ token }}\" class=\"sf-minitoolbar\" data-no-turbolink>
|
|
<a href=\"javascript:void(0);\" title=\"Show Symfony toolbar\" tabindex=\"-1\" accesskey=\"D\" onclick=\"
|
|
var elem = this.parentNode;
|
|
if (elem.style.display == 'none') {
|
|
document.getElementById('sfToolbarMainContent-{{ token }}').style.display = 'none';
|
|
document.getElementById('sfToolbarClearer-{{ token }}').style.display = 'none';
|
|
elem.style.display = 'block';
|
|
} else {
|
|
document.getElementById('sfToolbarMainContent-{{ token }}').style.display = 'block';
|
|
document.getElementById('sfToolbarClearer-{{ token }}').style.display = 'block';
|
|
elem.style.display = 'none'
|
|
}
|
|
|
|
Sfjs.setPreference('toolbar/displayState', 'block');
|
|
\">
|
|
{{ include('@WebProfiler/Icon/symfony.svg') }}
|
|
</a>
|
|
</div>
|
|
<style>
|
|
{{ include('@WebProfiler/Profiler/toolbar.css.twig', { 'position': position, 'floatable': true }) }}
|
|
</style>
|
|
<div id=\"sfToolbarClearer-{{ token }}\" style=\"clear: both; height: 36px;\"></div>
|
|
{% endif %}
|
|
|
|
<div id=\"sfToolbarMainContent-{{ token }}\" class=\"sf-toolbarreset clear-fix\" data-no-turbolink>
|
|
{% for name, template in templates %}
|
|
{% if block('toolbar', template) is defined %}
|
|
{% with {
|
|
collector: profile.getcollector(name),
|
|
profiler_url: profiler_url,
|
|
token: profile.token,
|
|
name: name,
|
|
profiler_markup_version: profiler_markup_version
|
|
} %}
|
|
{{ block('toolbar', template) }}
|
|
{% endwith %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
{% if 'normal' != position %}
|
|
<a class=\"hide-button\" title=\"Close Toolbar\" tabindex=\"-1\" accesskey=\"D\" onclick=\"
|
|
var p = this.parentNode;
|
|
p.style.display = 'none';
|
|
(p.previousElementSibling || p.previousSibling).style.display = 'none';
|
|
document.getElementById('sfMiniToolbar-{{ token }}').style.display = 'block';
|
|
Sfjs.setPreference('toolbar/displayState', 'none');
|
|
\">
|
|
{{ include('@WebProfiler/Icon/close.svg') }}
|
|
</a>
|
|
{% endif %}
|
|
</div>
|
|
<!-- END of Symfony Web Debug Toolbar -->
|
|
", "@WebProfiler/Profiler/toolbar.html.twig", "/Users/kadmin/Websites/sterntours-3/vendor/symfony/symfony/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar.html.twig");
|
|
}
|
|
}
|