<?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;
/* sonata_admin/layout.html.twig */
class __TwigTemplate_f30f84e5197d8166ffa77f67627d8e1c extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'meta_tags' => [$this, 'block_meta_tags'],
'body_attributes' => [$this, 'block_body_attributes'],
'logo' => [$this, 'block_logo'],
'sonata_top_nav_menu' => [$this, 'block_sonata_top_nav_menu'],
'sonata_sidebar_search' => [$this, 'block_sonata_sidebar_search'],
'side_bar_before_nav' => [$this, 'block_side_bar_before_nav'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@SonataAdmin/standard_layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "sonata_admin/layout.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "sonata_admin/layout.html.twig"));
$this->parent = $this->loadTemplate("@SonataAdmin/standard_layout.html.twig", "sonata_admin/layout.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 4
public function block_meta_tags($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_tags"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_tags"));
// line 5
echo "\t<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
\t<meta charset=\"UTF-8\">
\t<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
\t
\t";
// line 9
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 9, $this->source); })()), "request", [], "any", false, false, false, 9), "query", [], "any", false, false, false, 9), "get", ["site"], "method", false, false, false, 9)) {
// line 10
echo "\t\t";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 10, $this->source); })()), "request", [], "any", false, false, false, 10), "cookies", [], "any", false, false, false, 10), "set", ["admin_view", twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 10, $this->source); })()), "request", [], "any", false, false, false, 10), "query", [], "any", false, false, false, 10), "get", ["site"], "method", false, false, false, 10)], "method", false, false, false, 10), "html", null, true);
echo "
\t\t<script>document.cookie = 'admin_view=' + ";
// line 11
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 11, $this->source); })()), "request", [], "any", false, false, false, 11), "query", [], "any", false, false, false, 11), "get", ["site"], "method", false, false, false, 11), "html", null, true);
echo " + ';path=/';</script>
\t";
}
// line 13
echo "\t
\t";
// line 15
echo "\t";
// line 28
echo "\t
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 31
public function block_body_attributes($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_attributes"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_attributes"));
// line 33
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 33, $this->source); })()), "request", [], "any", false, false, false, 33), "cookies", [], "any", false, false, false, 33), "get", ["admin_view"], "method", false, false, false, 33)) {
// line 34
echo "\t\t";
$context["current_site"] = twig_get_attribute($this->env, $this->source, twig_constant("App\\Entity\\SiteConfig::CONFIGS"), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 34, $this->source); })()), "request", [], "any", false, false, false, 34), "cookies", [], "any", false, false, false, 34), "get", ["admin_view"], "method", false, false, false, 34), [], "array", false, false, false, 34);
// line 35
echo "\t";
}
// line 36
echo "\t
\tclass=\"sonata-bc skin-black fixed ";
// line 37
((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 37, $this->source); })()), "request", [], "any", false, false, false, 37), "cookies", [], "any", false, false, false, 37), "get", ["admin_view"], "method", false, false, false, 37)) ? (print (twig_escape_filter($this->env, ("layout_" . twig_get_attribute($this->env, $this->source, (isset($context["current_site"]) || array_key_exists("current_site", $context) ? $context["current_site"] : (function () { throw new RuntimeError('Variable "current_site" does not exist.', 37, $this->source); })()), "site_code", [], "any", false, false, false, 37)), "html", null, true))) : (print ("layout_master")));
echo "
\t";
// line 38
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 38, $this->source); })()), "request", [], "any", false, false, false, 38), "cookies", [], "any", false, false, false, 38), "get", ["sonata_sidebar_hide"], "method", false, false, false, 38)) {
// line 39
echo "sidebar-collapse";
}
// line 40
echo "\"";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 43
public function block_logo($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "logo"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "logo"));
// line 44
echo "\t";
ob_start();
// line 45
echo "\t\t";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 45, $this->source); })()), "request", [], "any", false, false, false, 45), "cookies", [], "any", false, false, false, 45), "get", ["admin_view"], "method", false, false, false, 45) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_constant("App\\Entity\\SiteConfig::CONFIGS"), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 45, $this->source); })()), "request", [], "any", false, false, false, 45), "cookies", [], "any", false, false, false, 45), "get", ["admin_view"], "method", false, false, false, 45), [], "array", false, true, false, 45), "admin_img_tag", [], "any", true, true, false, 45))) {
// line 46
echo "\t\t\t<div id=\"admin-logo-home\">
\t\t\t\t<a href=\"/\" target=\"_blank\">
\t\t\t\t\t";
// line 48
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_constant("App\\Entity\\SiteConfig::CONFIGS"), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 48, $this->source); })()), "request", [], "any", false, false, false, 48), "cookies", [], "any", false, false, false, 48), "get", ["admin_view"], "method", false, false, false, 48), [], "array", false, false, false, 48), "admin_img_tag", [], "any", false, false, false, 48);
echo "
\t\t\t\t</a>
\t\t\t</div>
\t\t";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 51
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 51, $this->source); })()), "request", [], "any", false, false, false, 51), "cookies", [], "any", false, false, false, 51), "get", ["admin_view"], "method", false, false, false, 51) == twig_constant("App\\Entity\\Content::SITE_RCS"))) {
// line 52
echo "\t\t\t<div id=\"admin-logo-home\">
\t\t\t\t<a href=\"/\" target=\"_blank\">
\t\t\t\t\t<svg version=\"1.1\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" height=\"30px\" viewBox=\"0 0 593.145 375.382\" enable-background=\"new 0 0 593.145 375.382\" xml:space=\"preserve\">
\t\t\t\t\t\t<g>
\t\t\t\t\t\t\t<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M516.687,237.226c24.704,46.128,51.847,91.863,75.563,137.701
\t\t\t\t\t\t\tc-36.438,0-72.879,0-109.317,0c-21.821-41.213-42.32-83.745-63.289-125.811c-16.365,0-32.731,0-49.097,0
\t\t\t\t\t\t\tc-2.741,34.03,2.533,66.558-0.768,97.427c-1.524,14.258-11.529,26.705-27.233,28.384c-9.578,1.024-19.764,0-29.535,0
\t\t\t\t\t\t\tc-47.359,0-98.692,0-147.291,0c-20.458,0-33.572-4.438-41.042-17.644c-3.998-7.067-3.836-16.391-3.836-28.001
\t\t\t\t\t\t\tc0-5.77,1.028-12.268,0-17.261c-0.997-4.839-10.683-11.9-15.343-16.11c-16.685-15.071-36.065-26.507-51.782-41.425
\t\t\t\t\t\t\tc-20.521-19.479-41.08-42.832-49.864-74.797c-10.533-38.326,4.952-72.479,24.548-93.208c19.132-20.237,53.508-36.125,92.44-22.247
\t\t\t\t\t\t\tc0.255-15.727-0.511-32.475,0.384-47.563c5.148-5.983,14.126-7.248,22.247-8.822c25.462-4.938,56.237-5.523,85.919-6.904
\t\t\t\t\t\t\tc25.825-1.201,57.745-0.383,85.152-0.383c28.134,0,56.399,0,84.002,0c28.783,0,57.112-1.846,82.852,1.15
\t\t\t\t\t\t\tc49.234,5.732,81.889,30.771,98.961,69.043c8.587,19.249,13.314,44.398,9.974,72.495
\t\t\t\t\t\t\tC584.578,191.628,557.157,220.665,516.687,237.226z M348.683,364.188c11.394-3.942,11.507-14.068,11.507-30.687
\t\t\t\t\t\t\tc0-99.002,0-195.707,0-294.965c0-7.582,0.798-17.042-0.768-20.329c-2.731-5.737-16.506-7.213-25.699-8.438
\t\t\t\t\t\t\tc-40.47-5.396-84.971-5.451-128.112-3.836c-18.451,0.691-36.92,1.82-53.316,4.219c-7.955,1.165-17.337,1.799-21.48,7.288
\t\t\t\t\t\t\tc6.162,4.649,14.857,5.816,23.014,6.904c61.523,8.203,140.632,5.231,197.155-2.685c0,100.224,0,207.317,0,309.158
\t\t\t\t\t\t\tc0,7.011,1.1,15.466-0.384,20.329c-2.386,7.828-11.283,10.979-19.562,13.809C337.135,364.423,343.532,365.969,348.683,364.188z
\t\t\t\t\t\t\tM370.162,85.715c0,26.466,0,52.933,0,79.399c33.848-3.158,76.949,6.4,101.263-5.37c14.077-6.815,25.371-23.313,20.329-44.878
\t\t\t\t\t\t\tc-5.284-22.599-26.327-30.302-52.933-30.302c-21.179,0-45.771,0-68.275,0C370.099,84.629,370.129,85.17,370.162,85.715z
\t\t\t\t\t\t\tM87.087,98.756c-15.255,1.122-25.465,9.308-32.604,18.412c-7.602,9.694-14.215,20.766-14.192,36.822
\t\t\t\t\t\t\tc0.02,13.308,5.018,25.385,10.356,34.905c5.333,9.509,12.149,18.004,19.562,25.699c15.179,15.758,32.185,30.889,50.631,40.274
\t\t\t\t\t\t\tc0-49.48,0-98.961,0-148.441C110.67,102.674,101.193,97.719,87.087,98.756z\"/>
\t\t\t\t\t\t</g>
\t\t\t\t\t</svg>
\t\t\t\t</a>
\t\t\t</div>
\t\t";
}
// line 80
echo "\t\t<a class=\"logo\" href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sonata_admin_dashboard");
echo "\">
\t\t\t";
// line 87
echo "\t\t\t\t";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 87, $this->source); })()), "request", [], "any", false, false, false, 87), "cookies", [], "any", false, false, false, 87), "get", ["admin_view"], "method", false, false, false, 87)) {
// line 88
echo "\t\t\t\t\t<span>";
echo twig_escape_filter($this->env, twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_constant("App\\Entity\\SiteConfig::CONFIGS"), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 88, $this->source); })()), "request", [], "any", false, false, false, 88), "cookies", [], "any", false, false, false, 88), "get", ["admin_view"], "method", false, false, false, 88), [], "array", false, false, false, 88), "site_code", [], "any", false, false, false, 88)), "html", null, true);
echo " Admin</span>
\t\t\t\t";
} else {
// line 90
echo "\t\t\t\t\t<span>Master Admin</span>
\t\t\t\t";
}
// line 92
echo "\t\t\t";
// line 95
echo "\t\t</a>
\t";
$___internal_parse_0_ = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 44
echo twig_spaceless($___internal_parse_0_);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 99
public function block_sonata_top_nav_menu($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sonata_top_nav_menu"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sonata_top_nav_menu"));
// line 100
if (twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 100, $this->source); })()), "user", [], "any", false, false, false, 100)) {
// line 101
echo "\t<a href=\"/admin/app/user/";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 101, $this->source); })()), "user", [], "any", false, false, false, 101), "getId", [], "method", false, false, false, 101), "html", null, true);
echo "/edit\">
\t<i class=\"fa fa-user-circle\" title=\"Your Account\" style=\"float:right;margin-top: 10px;margin-right: 15px;font-size: 30px;color: white;\"></i>
\t</a>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 107
public function block_sonata_sidebar_search($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sonata_sidebar_search"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sonata_sidebar_search"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 110
public function block_side_bar_before_nav($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "side_bar_before_nav"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "side_bar_before_nav"));
// line 111
echo "\t<select id=\"rcs_admin_view\" name=\"rcs_admin_view\" class=\"\" style=\"width: 100%;margin-top: 15px;margin-bottom: 15px;\">
\t\t<option value=\"0\">Master View</option>
\t\t";
// line 113
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_constant("App\\Entity\\SiteConfig::CONFIGS"));
foreach ($context['_seq'] as $context["_key"] => $context["site"]) {
// line 114
echo "\t\t\t<option value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["site"], "id", [], "any", false, false, false, 114), "html", null, true);
echo "\" ";
echo (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 114, $this->source); })()), "request", [], "any", false, false, false, 114), "cookies", [], "any", false, false, false, 114), "get", ["admin_view"], "method", false, false, false, 114) == twig_get_attribute($this->env, $this->source, $context["site"], "id", [], "any", false, false, false, 114))) ? ("selected") : (""));
echo ">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["site"], "site_name", [], "any", false, false, false, 114), "html", null, true);
echo "</option>
\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['site'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 116
echo "\t</select>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "sonata_admin/layout.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 316 => 116, 303 => 114, 299 => 113, 295 => 111, 285 => 110, 267 => 107, 251 => 101, 249 => 100, 239 => 99, 229 => 44, 225 => 95, 223 => 92, 219 => 90, 213 => 88, 210 => 87, 205 => 80, 175 => 52, 173 => 51, 167 => 48, 163 => 46, 160 => 45, 157 => 44, 147 => 43, 137 => 40, 134 => 39, 132 => 38, 128 => 37, 125 => 36, 122 => 35, 119 => 34, 117 => 33, 107 => 31, 96 => 28, 94 => 15, 91 => 13, 86 => 11, 81 => 10, 79 => 9, 73 => 5, 63 => 4, 40 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends '@SonataAdmin/standard_layout.html.twig' %}
{# vender/sonata-project/admin-bundle/src/Resources/views/standard_layout.html.twig #}
{% block meta_tags %}
\t<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
\t<meta charset=\"UTF-8\">
\t<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
\t
\t{% if app.request.query.get(\"site\") %}
\t\t{{ app.request.cookies.set('admin_view', app.request.query.get(\"site\")) }}
\t\t<script>document.cookie = 'admin_view=' + {{app.request.query.get(\"site\")}} + ';path=/';</script>
\t{% endif %}
\t
\t{# Defaulting to the current site #}
\t{#
\t{% if not app.request.cookies.get('admin_view') %}
\t\t{% for site in constant(\"App\\\\Entity\\\\SiteConfig::CONFIGS\") %}
\t\t\t{% if site.base_url in app.request.getSchemeAndHttpHost() %}
\t\t\t\t{{ app.request.cookies.set('admin_view', app.request.query.get(\"site\")) }}
\t\t\t\t<script>document.cookie = 'admin_view=' + {{app.request.query.get(\"site\")}} + ';path=/';</script>
\t\t\t{% endif %}
\t\t{% endfor %}
\t
\t{% elseif app.request.cookies.get('admin_view') not in [1,2,3,4] %}
\t\t{{ app.request.cookies.set('admin_view', null) }}
\t{% endif %}
\t#}
\t
{% endblock %}
{% block body_attributes -%}
\t
\t{% if app.request.cookies.get('admin_view') %}
\t\t{% set current_site = constant(\"App\\\\Entity\\\\SiteConfig::CONFIGS\")[app.request.cookies.get('admin_view')] %}
\t{% endif %}
\t
\tclass=\"sonata-bc skin-black fixed {{ app.request.cookies.get('admin_view') ? 'layout_' ~ current_site.site_code : 'layout_master' }}
\t{% if app.request.cookies.get('sonata_sidebar_hide') -%}
\t\tsidebar-collapse
\t{%- endif -%}\"
{%- endblock -%}
{% block logo %}
\t{% apply spaceless %}
\t\t{% if app.request.cookies.get('admin_view') and constant(\"App\\\\Entity\\\\SiteConfig::CONFIGS\")[app.request.cookies.get('admin_view')].admin_img_tag is defined %}
\t\t\t<div id=\"admin-logo-home\">
\t\t\t\t<a href=\"/\" target=\"_blank\">
\t\t\t\t\t{{ constant(\"App\\\\Entity\\\\SiteConfig::CONFIGS\")[app.request.cookies.get('admin_view')].admin_img_tag | raw }}
\t\t\t\t</a>
\t\t\t</div>
\t\t{% elseif app.request.cookies.get('admin_view') == constant(\"App\\\\Entity\\\\Content::SITE_RCS\") %}
\t\t\t<div id=\"admin-logo-home\">
\t\t\t\t<a href=\"/\" target=\"_blank\">
\t\t\t\t\t<svg version=\"1.1\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" height=\"30px\" viewBox=\"0 0 593.145 375.382\" enable-background=\"new 0 0 593.145 375.382\" xml:space=\"preserve\">
\t\t\t\t\t\t<g>
\t\t\t\t\t\t\t<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M516.687,237.226c24.704,46.128,51.847,91.863,75.563,137.701
\t\t\t\t\t\t\tc-36.438,0-72.879,0-109.317,0c-21.821-41.213-42.32-83.745-63.289-125.811c-16.365,0-32.731,0-49.097,0
\t\t\t\t\t\t\tc-2.741,34.03,2.533,66.558-0.768,97.427c-1.524,14.258-11.529,26.705-27.233,28.384c-9.578,1.024-19.764,0-29.535,0
\t\t\t\t\t\t\tc-47.359,0-98.692,0-147.291,0c-20.458,0-33.572-4.438-41.042-17.644c-3.998-7.067-3.836-16.391-3.836-28.001
\t\t\t\t\t\t\tc0-5.77,1.028-12.268,0-17.261c-0.997-4.839-10.683-11.9-15.343-16.11c-16.685-15.071-36.065-26.507-51.782-41.425
\t\t\t\t\t\t\tc-20.521-19.479-41.08-42.832-49.864-74.797c-10.533-38.326,4.952-72.479,24.548-93.208c19.132-20.237,53.508-36.125,92.44-22.247
\t\t\t\t\t\t\tc0.255-15.727-0.511-32.475,0.384-47.563c5.148-5.983,14.126-7.248,22.247-8.822c25.462-4.938,56.237-5.523,85.919-6.904
\t\t\t\t\t\t\tc25.825-1.201,57.745-0.383,85.152-0.383c28.134,0,56.399,0,84.002,0c28.783,0,57.112-1.846,82.852,1.15
\t\t\t\t\t\t\tc49.234,5.732,81.889,30.771,98.961,69.043c8.587,19.249,13.314,44.398,9.974,72.495
\t\t\t\t\t\t\tC584.578,191.628,557.157,220.665,516.687,237.226z M348.683,364.188c11.394-3.942,11.507-14.068,11.507-30.687
\t\t\t\t\t\t\tc0-99.002,0-195.707,0-294.965c0-7.582,0.798-17.042-0.768-20.329c-2.731-5.737-16.506-7.213-25.699-8.438
\t\t\t\t\t\t\tc-40.47-5.396-84.971-5.451-128.112-3.836c-18.451,0.691-36.92,1.82-53.316,4.219c-7.955,1.165-17.337,1.799-21.48,7.288
\t\t\t\t\t\t\tc6.162,4.649,14.857,5.816,23.014,6.904c61.523,8.203,140.632,5.231,197.155-2.685c0,100.224,0,207.317,0,309.158
\t\t\t\t\t\t\tc0,7.011,1.1,15.466-0.384,20.329c-2.386,7.828-11.283,10.979-19.562,13.809C337.135,364.423,343.532,365.969,348.683,364.188z
\t\t\t\t\t\t\tM370.162,85.715c0,26.466,0,52.933,0,79.399c33.848-3.158,76.949,6.4,101.263-5.37c14.077-6.815,25.371-23.313,20.329-44.878
\t\t\t\t\t\t\tc-5.284-22.599-26.327-30.302-52.933-30.302c-21.179,0-45.771,0-68.275,0C370.099,84.629,370.129,85.17,370.162,85.715z
\t\t\t\t\t\t\tM87.087,98.756c-15.255,1.122-25.465,9.308-32.604,18.412c-7.602,9.694-14.215,20.766-14.192,36.822
\t\t\t\t\t\t\tc0.02,13.308,5.018,25.385,10.356,34.905c5.333,9.509,12.149,18.004,19.562,25.699c15.179,15.758,32.185,30.889,50.631,40.274
\t\t\t\t\t\t\tc0-49.48,0-98.961,0-148.441C110.67,102.674,101.193,97.719,87.087,98.756z\"/>
\t\t\t\t\t\t</g>
\t\t\t\t\t</svg>
\t\t\t\t</a>
\t\t\t</div>
\t\t{% endif %}
\t\t<a class=\"logo\" href=\"{{ path('sonata_admin_dashboard') }}\">
\t\t\t{#
\t\t\t{% if 'single_image' == sonata_admin.adminPool.getOption('title_mode') or 'both' == sonata_admin.adminPool.getOption('title_mode') %}
\t\t\t\t<img src=\"{{ asset(sonata_admin.adminPool.titlelogo) }}\" alt=\"{{ sonata_admin.adminPool.title }}\">
\t\t\t{% endif %}
\t\t\t{% if 'single_text' == sonata_admin.adminPool.getOption('title_mode') or 'both' == sonata_admin.adminPool.getOption('title_mode') %}
\t\t\t#}
\t\t\t\t{% if app.request.cookies.get('admin_view') %}
\t\t\t\t\t<span>{{ constant(\"App\\\\Entity\\\\SiteConfig::CONFIGS\")[app.request.cookies.get('admin_view')].site_code | upper }} Admin</span>
\t\t\t\t{% else %}
\t\t\t\t\t<span>Master Admin</span>
\t\t\t\t{% endif %}
\t\t\t{#
\t\t\t{% endif %}
\t\t\t#}
\t\t</a>
\t{% endapply %}
{% endblock %}
{% block sonata_top_nav_menu %}
{% if app.user %}
\t<a href=\"/admin/app/user/{{app.user.getId()}}/edit\">
\t<i class=\"fa fa-user-circle\" title=\"Your Account\" style=\"float:right;margin-top: 10px;margin-right: 15px;font-size: 30px;color: white;\"></i>
\t</a>
{% endif %}
{% endblock sonata_top_nav_menu %}
{% block sonata_sidebar_search %}
{% endblock sonata_sidebar_search %}
{% block side_bar_before_nav %}
\t<select id=\"rcs_admin_view\" name=\"rcs_admin_view\" class=\"\" style=\"width: 100%;margin-top: 15px;margin-bottom: 15px;\">
\t\t<option value=\"0\">Master View</option>
\t\t{% for site in constant(\"App\\\\Entity\\\\SiteConfig::CONFIGS\") %}
\t\t\t<option value=\"{{site.id}}\" {{ (app.request.cookies.get('admin_view') == site.id) ? 'selected' : '' }}>{{ site.site_name }}</option>
\t\t{% endfor %}
\t</select>
{% endblock %}
", "sonata_admin/layout.html.twig", "/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/templates/sonata_admin/layout.html.twig");
}
}