init without trunk
This commit is contained in:
parent
ed24ac4994
commit
bb809e7233
14652 changed files with 177862 additions and 94817 deletions
244
var/cache/dev/twig/16/1688fbde2dcfb2a9d0de6db7bb5870f5462a8d4233fdd0862f1d381b586e47eb.php
vendored
Normal file
244
var/cache/dev/twig/16/1688fbde2dcfb2a9d0de6db7bb5870f5462a8d4233fdd0862f1d381b586e47eb.php
vendored
Normal file
|
|
@ -0,0 +1,244 @@
|
|||
<?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_js.html.twig */
|
||||
class __TwigTemplate_ab7ce006f9733f92ef0a03f2766c7a699e1169f3088f35184b0507d16063d63d 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_js.html.twig"));
|
||||
|
||||
// line 1
|
||||
echo "<div id=\"sfwdt";
|
||||
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.', 1, $this->source); })()), "html", null, true);
|
||||
echo "\" class=\"sf-toolbar\" style=\"display: none\"></div>
|
||||
";
|
||||
// line 2
|
||||
echo twig_include($this->env, $context, "@WebProfiler/Profiler/base_js.html.twig");
|
||||
echo "
|
||||
<script>/*<![CDATA[*/
|
||||
(function () {
|
||||
";
|
||||
// line 5
|
||||
if (("top" == (isset($context["position"]) || array_key_exists("position", $context) ? $context["position"] : (function () { throw new RuntimeError('Variable "position" does not exist.', 5, $this->source); })()))) {
|
||||
// line 6
|
||||
echo " var sfwdt = document.getElementById('sfwdt";
|
||||
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.', 6, $this->source); })()), "html", null, true);
|
||||
echo "');
|
||||
document.body.insertBefore(
|
||||
document.body.removeChild(sfwdt),
|
||||
document.body.firstChild
|
||||
);
|
||||
";
|
||||
}
|
||||
// line 12
|
||||
echo "
|
||||
Sfjs.load(
|
||||
'sfwdt";
|
||||
// line 14
|
||||
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.', 14, $this->source); })()), "html", null, true);
|
||||
echo "',
|
||||
'";
|
||||
// line 15
|
||||
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("_wdt", ["token" => (isset($context["token"]) || array_key_exists("token", $context) ? $context["token"] : (function () { throw new RuntimeError('Variable "token" does not exist.', 15, $this->source); })())]), "html", null, true);
|
||||
echo "',
|
||||
function(xhr, el) {
|
||||
el.style.display = -1 !== xhr.responseText.indexOf('sf-toolbarreset') ? 'block' : 'none';
|
||||
|
||||
if (el.style.display == 'none') {
|
||||
return;
|
||||
}
|
||||
|
||||
if (Sfjs.getPreference('toolbar/displayState') == 'none') {
|
||||
document.getElementById('sfToolbarMainContent-";
|
||||
// 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.display = 'none';
|
||||
document.getElementById('sfToolbarClearer-";
|
||||
// line 25
|
||||
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.', 25, $this->source); })()), "html", null, true);
|
||||
echo "').style.display = 'none';
|
||||
document.getElementById('sfMiniToolbar-";
|
||||
// line 26
|
||||
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.', 26, $this->source); })()), "html", null, true);
|
||||
echo "').style.display = 'block';
|
||||
} else {
|
||||
document.getElementById('sfToolbarMainContent-";
|
||||
// line 28
|
||||
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.', 28, $this->source); })()), "html", null, true);
|
||||
echo "').style.display = 'block';
|
||||
document.getElementById('sfToolbarClearer-";
|
||||
// line 29
|
||||
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.', 29, $this->source); })()), "html", null, true);
|
||||
echo "').style.display = 'block';
|
||||
document.getElementById('sfMiniToolbar-";
|
||||
// line 30
|
||||
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.', 30, $this->source); })()), "html", null, true);
|
||||
echo "').style.display = 'none';
|
||||
}
|
||||
|
||||
Sfjs.renderAjaxRequests();
|
||||
|
||||
/* Handle toolbar-info position */
|
||||
var toolbarBlocks = document.querySelectorAll('.sf-toolbar-block');
|
||||
for (var i = 0; i < toolbarBlocks.length; i += 1) {
|
||||
toolbarBlocks[i].onmouseover = function () {
|
||||
var toolbarInfo = this.querySelectorAll('.sf-toolbar-info')[0];
|
||||
var pageWidth = document.body.clientWidth;
|
||||
var elementWidth = toolbarInfo.offsetWidth;
|
||||
var leftValue = (elementWidth + this.offsetLeft) - pageWidth;
|
||||
var rightValue = (elementWidth + (pageWidth - this.offsetLeft)) - pageWidth;
|
||||
|
||||
/* Reset right and left value, useful on window resize */
|
||||
toolbarInfo.style.right = '';
|
||||
toolbarInfo.style.left = '';
|
||||
|
||||
if (elementWidth > pageWidth) {
|
||||
toolbarInfo.style.left = 0;
|
||||
}
|
||||
else if (leftValue > 0 && rightValue > 0) {
|
||||
toolbarInfo.style.right = (rightValue * -1) + 'px';
|
||||
} else if (leftValue < 0) {
|
||||
toolbarInfo.style.left = 0;
|
||||
} else {
|
||||
toolbarInfo.style.right = '0px';
|
||||
}
|
||||
};
|
||||
}
|
||||
},
|
||||
function(xhr) {
|
||||
if (xhr.status !== 0) {
|
||||
confirm('An error occurred while loading the web debug toolbar (' + xhr.status + ': ' + xhr.statusText + ').\\n\\nDo you want to open the profiler?') && (window.location = '";
|
||||
// line 64
|
||||
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("_profiler", ["token" => (isset($context["token"]) || array_key_exists("token", $context) ? $context["token"] : (function () { throw new RuntimeError('Variable "token" does not exist.', 64, $this->source); })())]), "html", null, true);
|
||||
echo "');
|
||||
}
|
||||
},
|
||||
{'maxTries': 5}
|
||||
);
|
||||
})();
|
||||
/*]]>*/</script>
|
||||
";
|
||||
|
||||
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
||||
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "@WebProfiler/Profiler/toolbar_js.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 141 => 64, 104 => 30, 100 => 29, 96 => 28, 91 => 26, 87 => 25, 83 => 24, 71 => 15, 67 => 14, 63 => 12, 53 => 6, 51 => 5, 45 => 2, 40 => 1,);
|
||||
}
|
||||
|
||||
public function getSourceContext()
|
||||
{
|
||||
return new Source("<div id=\"sfwdt{{ token }}\" class=\"sf-toolbar\" style=\"display: none\"></div>
|
||||
{{ include('@WebProfiler/Profiler/base_js.html.twig') }}
|
||||
<script>/*<![CDATA[*/
|
||||
(function () {
|
||||
{% if 'top' == position %}
|
||||
var sfwdt = document.getElementById('sfwdt{{ token }}');
|
||||
document.body.insertBefore(
|
||||
document.body.removeChild(sfwdt),
|
||||
document.body.firstChild
|
||||
);
|
||||
{% endif %}
|
||||
|
||||
Sfjs.load(
|
||||
'sfwdt{{ token }}',
|
||||
'{{ path(\"_wdt\", { \"token\": token }) }}',
|
||||
function(xhr, el) {
|
||||
el.style.display = -1 !== xhr.responseText.indexOf('sf-toolbarreset') ? 'block' : 'none';
|
||||
|
||||
if (el.style.display == 'none') {
|
||||
return;
|
||||
}
|
||||
|
||||
if (Sfjs.getPreference('toolbar/displayState') == 'none') {
|
||||
document.getElementById('sfToolbarMainContent-{{ token }}').style.display = 'none';
|
||||
document.getElementById('sfToolbarClearer-{{ token }}').style.display = 'none';
|
||||
document.getElementById('sfMiniToolbar-{{ token }}').style.display = 'block';
|
||||
} else {
|
||||
document.getElementById('sfToolbarMainContent-{{ token }}').style.display = 'block';
|
||||
document.getElementById('sfToolbarClearer-{{ token }}').style.display = 'block';
|
||||
document.getElementById('sfMiniToolbar-{{ token }}').style.display = 'none';
|
||||
}
|
||||
|
||||
Sfjs.renderAjaxRequests();
|
||||
|
||||
/* Handle toolbar-info position */
|
||||
var toolbarBlocks = document.querySelectorAll('.sf-toolbar-block');
|
||||
for (var i = 0; i < toolbarBlocks.length; i += 1) {
|
||||
toolbarBlocks[i].onmouseover = function () {
|
||||
var toolbarInfo = this.querySelectorAll('.sf-toolbar-info')[0];
|
||||
var pageWidth = document.body.clientWidth;
|
||||
var elementWidth = toolbarInfo.offsetWidth;
|
||||
var leftValue = (elementWidth + this.offsetLeft) - pageWidth;
|
||||
var rightValue = (elementWidth + (pageWidth - this.offsetLeft)) - pageWidth;
|
||||
|
||||
/* Reset right and left value, useful on window resize */
|
||||
toolbarInfo.style.right = '';
|
||||
toolbarInfo.style.left = '';
|
||||
|
||||
if (elementWidth > pageWidth) {
|
||||
toolbarInfo.style.left = 0;
|
||||
}
|
||||
else if (leftValue > 0 && rightValue > 0) {
|
||||
toolbarInfo.style.right = (rightValue * -1) + 'px';
|
||||
} else if (leftValue < 0) {
|
||||
toolbarInfo.style.left = 0;
|
||||
} else {
|
||||
toolbarInfo.style.right = '0px';
|
||||
}
|
||||
};
|
||||
}
|
||||
},
|
||||
function(xhr) {
|
||||
if (xhr.status !== 0) {
|
||||
confirm('An error occurred while loading the web debug toolbar (' + xhr.status + ': ' + xhr.statusText + ').\\n\\nDo you want to open the profiler?') && (window.location = '{{ path(\"_profiler\", { \"token\": token }) }}');
|
||||
}
|
||||
},
|
||||
{'maxTries': 5}
|
||||
);
|
||||
})();
|
||||
/*]]>*/</script>
|
||||
", "@WebProfiler/Profiler/toolbar_js.html.twig", "/Users/kadmin/Websites/sterntours-3/vendor/symfony/symfony/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar_js.html.twig");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue