<?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;
/* JamelCmsBundle:bundles/KunstmaanAdminBundle/Default:layout.html.twig */
class __TwigTemplate_424924ab7f1fe9940f188b4d5d01ae3dabacb4bd92ee2df9e4b5f70408c9480b extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'footer' => [$this, 'block_footer'],
'extracss' => [$this, 'block_extracss'],
'extrajavascript' => [$this, 'block_extrajavascript'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@!KunstmaanAdmin/Default/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "JamelCmsBundle:bundles/KunstmaanAdminBundle/Default:layout.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "JamelCmsBundle:bundles/KunstmaanAdminBundle/Default:layout.html.twig"));
$this->parent = $this->loadTemplate("@!KunstmaanAdmin/Default/layout.html.twig", "JamelCmsBundle:bundles/KunstmaanAdminBundle/Default:layout.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 2
public function block_footer($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
// line 3
echo " <footer role=\"contentinfo\" class=\"app__footer container-fluid\">
<a target=\"_blank\" rel=\"noopener\" href=\"https://jamel.pl\" class=\"pull-right\">
<img src=\"";
// line 5
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/bundles/jamelcms/img/jamel_logo.svg"), "html", null, true);
echo "\" alt=\"Logo Jamel\" />
</a>
</footer>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 10
public function block_extracss($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "extracss"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "extracss"));
// line 11
echo " ";
$this->displayParentBlock("extracss", $context, $blocks);
echo "
";
// line 12
$this->loadTemplate("JamelCmsBundle::extraCss.html.twig", "JamelCmsBundle:bundles/KunstmaanAdminBundle/Default:layout.html.twig", 12)->display($context);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 15
public function block_extrajavascript($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "extrajavascript"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "extrajavascript"));
// line 16
echo " ";
$context["cmsAdminPath"] = "bundles/jamelcms/js/cms-bundle.min.js";
// line 17
echo " ";
$context["cropperAdminPath"] = "bundles/jamelcropper/js/cropper-bundle.min.js";
// line 18
echo "
<script>
var scripts = [
";
// line 21
if ($this->extensions['Kunstmaan\NodeBundle\Twig\NodeTwigExtension']->fileExists((isset($context["cmsAdminPath"]) || array_key_exists("cmsAdminPath", $context) ? $context["cmsAdminPath"] : (function () { throw new RuntimeError('Variable "cmsAdminPath" does not exist.', 21, $this->source); })()))) {
echo "'";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["cmsAdminPath"]) || array_key_exists("cmsAdminPath", $context) ? $context["cmsAdminPath"] : (function () { throw new RuntimeError('Variable "cmsAdminPath" does not exist.', 21, $this->source); })())), "html", null, true);
echo "',";
}
// line 22
echo " ";
if ($this->extensions['Kunstmaan\NodeBundle\Twig\NodeTwigExtension']->fileExists((isset($context["cropperAdminPath"]) || array_key_exists("cropperAdminPath", $context) ? $context["cropperAdminPath"] : (function () { throw new RuntimeError('Variable "cropperAdminPath" does not exist.', 22, $this->source); })()))) {
echo "'";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["cropperAdminPath"]) || array_key_exists("cropperAdminPath", $context) ? $context["cropperAdminPath"] : (function () { throw new RuntimeError('Variable "cropperAdminPath" does not exist.', 22, $this->source); })())), "html", null, true);
echo "',";
}
// line 23
echo " ];
scripts.forEach(function(src) {
var scriptEl = document.createElement('script');
scriptEl.src = src;
scriptEl.async = false;
document.head.appendChild(scriptEl);
});
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "JamelCmsBundle:bundles/KunstmaanAdminBundle/Default:layout.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 147 => 23, 140 => 22, 134 => 21, 129 => 18, 126 => 17, 123 => 16, 113 => 15, 103 => 12, 98 => 11, 88 => 10, 74 => 5, 70 => 3, 60 => 2, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"@!KunstmaanAdmin/Default/layout.html.twig\" %}
{% block footer %}
<footer role=\"contentinfo\" class=\"app__footer container-fluid\">
<a target=\"_blank\" rel=\"noopener\" href=\"https://jamel.pl\" class=\"pull-right\">
<img src=\"{{ asset('/bundles/jamelcms/img/jamel_logo.svg') }}\" alt=\"Logo Jamel\" />
</a>
</footer>
{% endblock %}
{% block extracss %}
{{ parent() }}
{% include 'JamelCmsBundle::extraCss.html.twig' %}
{% endblock %}
{% block extrajavascript %}
{% set cmsAdminPath = 'bundles/jamelcms/js/cms-bundle.min.js' %}
{% set cropperAdminPath = 'bundles/jamelcropper/js/cropper-bundle.min.js' %}
<script>
var scripts = [
{% if file_exists(cmsAdminPath) %}'{{ asset(cmsAdminPath) }}',{% endif %}
{% if file_exists(cropperAdminPath) %}'{{ asset(cropperAdminPath) }}',{% endif %}
];
scripts.forEach(function(src) {
var scriptEl = document.createElement('script');
scriptEl.src = src;
scriptEl.async = false;
document.head.appendChild(scriptEl);
});
</script>
{% endblock %}
", "JamelCmsBundle:bundles/KunstmaanAdminBundle/Default:layout.html.twig", "/var/www/gcs/html/dev/vendor/jamel/cms-bundle/Resources/views/bundles/KunstmaanAdminBundle/Default/layout.html.twig");
}
}