var/cache/dev/twig/a1/a1a113443ed5a88a5845a1943eb2614f.php line 43

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* sonata_admin/layout.html.twig */
  14. class __TwigTemplate_f30f84e5197d8166ffa77f67627d8e1c extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'meta_tags' => [$this'block_meta_tags'],
  24.             'body_attributes' => [$this'block_body_attributes'],
  25.             'logo' => [$this'block_logo'],
  26.             'sonata_top_nav_menu' => [$this'block_sonata_top_nav_menu'],
  27.             'sonata_sidebar_search' => [$this'block_sonata_sidebar_search'],
  28.             'side_bar_before_nav' => [$this'block_side_bar_before_nav'],
  29.         ];
  30.     }
  31.     protected function doGetParent(array $context)
  32.     {
  33.         // line 1
  34.         return "@SonataAdmin/standard_layout.html.twig";
  35.     }
  36.     protected function doDisplay(array $context, array $blocks = [])
  37.     {
  38.         $macros $this->macros;
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""sonata_admin/layout.html.twig"));
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""sonata_admin/layout.html.twig"));
  43.         $this->parent $this->loadTemplate("@SonataAdmin/standard_layout.html.twig""sonata_admin/layout.html.twig"1);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47.         
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49.     }
  50.     // line 4
  51.     public function block_meta_tags($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta_tags"));
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""meta_tags"));
  58.         // line 5
  59.         echo "\t<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  60. \t<meta charset=\"UTF-8\">
  61. \t<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
  62. \t
  63. \t";
  64.         // line 9
  65.         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse9), "query", [], "any"falsefalsefalse9), "get", ["site"], "method"falsefalsefalse9)) {
  66.             // line 10
  67.             echo "\t\t";
  68.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse10), "cookies", [], "any"falsefalsefalse10), "set", ["admin_view"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse10), "query", [], "any"falsefalsefalse10), "get", ["site"], "method"falsefalsefalse10)], "method"falsefalsefalse10), "html"nulltrue);
  69.             echo "
  70. \t\t<script>document.cookie = 'admin_view=' + ";
  71.             // line 11
  72.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse11), "query", [], "any"falsefalsefalse11), "get", ["site"], "method"falsefalsefalse11), "html"nulltrue);
  73.             echo " + ';path=/';</script>
  74. \t";
  75.         }
  76.         // line 13
  77.         echo "\t
  78. \t";
  79.         // line 15
  80.         echo "\t";
  81.         // line 28
  82.         echo "\t
  83. ";
  84.         
  85.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  86.         
  87.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  88.     }
  89.     // line 31
  90.     public function block_body_attributes($context, array $blocks = [])
  91.     {
  92.         $macros $this->macros;
  93.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  94.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body_attributes"));
  95.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  96.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body_attributes"));
  97.         // line 33
  98.         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse33), "cookies", [], "any"falsefalsefalse33), "get", ["admin_view"], "method"falsefalsefalse33)) {
  99.             // line 34
  100.             echo "\t\t";
  101.             $context["current_site"] = twig_get_attribute($this->env$this->sourcetwig_constant("App\\Entity\\SiteConfig::CONFIGS"), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse34), "cookies", [], "any"falsefalsefalse34), "get", ["admin_view"], "method"falsefalsefalse34), [], "array"falsefalsefalse34);
  102.             // line 35
  103.             echo "\t";
  104.         }
  105.         // line 36
  106.         echo "\t
  107. \tclass=\"sonata-bc skin-black fixed  ";
  108.         // line 37
  109.         ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse37), "cookies", [], "any"falsefalsefalse37), "get", ["admin_view"], "method"falsefalsefalse37)) ? (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"falsefalsefalse37)), "html"nulltrue))) : (print ("layout_master")));
  110.         echo "
  111. \t";
  112.         // line 38
  113.         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse38), "cookies", [], "any"falsefalsefalse38), "get", ["sonata_sidebar_hide"], "method"falsefalsefalse38)) {
  114.             // line 39
  115.             echo "sidebar-collapse";
  116.         }
  117.         // line 40
  118.         echo "\"";
  119.         
  120.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  121.         
  122.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  123.     }
  124.     // line 43
  125.     public function block_logo($context, array $blocks = [])
  126.     {
  127.         $macros $this->macros;
  128.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  129.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""logo"));
  130.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  131.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""logo"));
  132.         // line 44
  133.         echo "\t";
  134.         ob_start();
  135.         // line 45
  136.         echo "\t\t";
  137.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse45), "cookies", [], "any"falsefalsefalse45), "get", ["admin_view"], "method"falsefalsefalse45) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_constant("App\\Entity\\SiteConfig::CONFIGS"), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse45), "cookies", [], "any"falsefalsefalse45), "get", ["admin_view"], "method"falsefalsefalse45), [], "array"falsetruefalse45), "admin_img_tag", [], "any"truetruefalse45))) {
  138.             // line 46
  139.             echo "\t\t\t<div id=\"admin-logo-home\">
  140. \t\t\t\t<a href=\"/\" target=\"_blank\">
  141. \t\t\t\t\t";
  142.             // line 48
  143.             echo twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_constant("App\\Entity\\SiteConfig::CONFIGS"), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse48), "cookies", [], "any"falsefalsefalse48), "get", ["admin_view"], "method"falsefalsefalse48), [], "array"falsefalsefalse48), "admin_img_tag", [], "any"falsefalsefalse48);
  144.             echo "
  145. \t\t\t\t</a>
  146. \t\t\t</div>
  147. \t\t";
  148.         } elseif ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 51
  149. (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'51$this->source); })()), "request", [], "any"falsefalsefalse51), "cookies", [], "any"falsefalsefalse51), "get", ["admin_view"], "method"falsefalsefalse51) == twig_constant("App\\Entity\\Content::SITE_RCS"))) {
  150.             // line 52
  151.             echo "\t\t\t<div id=\"admin-logo-home\">
  152. \t\t\t\t<a href=\"/\" target=\"_blank\">
  153. \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\">
  154. \t\t\t\t\t\t<g>
  155. \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
  156. \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
  157. \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
  158. \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
  159. \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
  160. \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
  161. \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
  162. \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
  163. \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
  164. \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
  165. \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
  166. \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
  167. \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
  168. \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
  169. \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
  170. \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
  171. \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
  172. \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
  173. \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\"/>
  174. \t\t\t\t\t\t</g>
  175. \t\t\t\t\t</svg>
  176. \t\t\t\t</a>
  177. \t\t\t</div>
  178. \t\t";
  179.         }
  180.         // line 80
  181.         echo "\t\t<a class=\"logo\" href=\"";
  182.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sonata_admin_dashboard");
  183.         echo "\">
  184. \t\t\t";
  185.         // line 87
  186.         echo "\t\t\t\t";
  187.         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse87), "cookies", [], "any"falsefalsefalse87), "get", ["admin_view"], "method"falsefalsefalse87)) {
  188.             // line 88
  189.             echo "\t\t\t\t\t<span>";
  190.             echo twig_escape_filter($this->envtwig_upper_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_constant("App\\Entity\\SiteConfig::CONFIGS"), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse88), "cookies", [], "any"falsefalsefalse88), "get", ["admin_view"], "method"falsefalsefalse88), [], "array"falsefalsefalse88), "site_code", [], "any"falsefalsefalse88)), "html"nulltrue);
  191.             echo " Admin</span>
  192. \t\t\t\t";
  193.         } else {
  194.             // line 90
  195.             echo "\t\t\t\t\t<span>Master Admin</span>
  196. \t\t\t\t";
  197.         }
  198.         // line 92
  199.         echo "\t\t\t";
  200.         // line 95
  201.         echo "\t\t</a>
  202. \t";
  203.         $___internal_parse_0_ = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  204.         // line 44
  205.         echo twig_spaceless($___internal_parse_0_);
  206.         
  207.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  208.         
  209.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  210.     }
  211.     // line 99
  212.     public function block_sonata_top_nav_menu($context, array $blocks = [])
  213.     {
  214.         $macros $this->macros;
  215.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  216.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_top_nav_menu"));
  217.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  218.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_top_nav_menu"));
  219.         // line 100
  220.         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"falsefalsefalse100)) {
  221.             // line 101
  222.             echo "\t<a href=\"/admin/app/user/";
  223.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse101), "getId", [], "method"falsefalsefalse101), "html"nulltrue);
  224.             echo "/edit\">
  225. \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>
  226. \t</a>
  227. ";
  228.         }
  229.         
  230.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  231.         
  232.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  233.     }
  234.     // line 107
  235.     public function block_sonata_sidebar_search($context, array $blocks = [])
  236.     {
  237.         $macros $this->macros;
  238.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  239.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_sidebar_search"));
  240.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  241.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sonata_sidebar_search"));
  242.         
  243.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  244.         
  245.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  246.     }
  247.     // line 110
  248.     public function block_side_bar_before_nav($context, array $blocks = [])
  249.     {
  250.         $macros $this->macros;
  251.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  252.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""side_bar_before_nav"));
  253.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  254.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""side_bar_before_nav"));
  255.         // line 111
  256.         echo "\t<select id=\"rcs_admin_view\" name=\"rcs_admin_view\" class=\"\" style=\"width: 100%;margin-top: 15px;margin-bottom: 15px;\">
  257. \t\t<option value=\"0\">Master View</option>
  258. \t\t";
  259.         // line 113
  260.         $context['_parent'] = $context;
  261.         $context['_seq'] = twig_ensure_traversable(twig_constant("App\\Entity\\SiteConfig::CONFIGS"));
  262.         foreach ($context['_seq'] as $context["_key"] => $context["site"]) {
  263.             // line 114
  264.             echo "\t\t\t<option value=\"";
  265.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["site"], "id", [], "any"falsefalsefalse114), "html"nulltrue);
  266.             echo "\" ";
  267.             echo (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse114), "cookies", [], "any"falsefalsefalse114), "get", ["admin_view"], "method"falsefalsefalse114) == twig_get_attribute($this->env$this->source$context["site"], "id", [], "any"falsefalsefalse114))) ? ("selected") : (""));
  268.             echo ">";
  269.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["site"], "site_name", [], "any"falsefalsefalse114), "html"nulltrue);
  270.             echo "</option>
  271. \t\t";
  272.         }
  273.         $_parent $context['_parent'];
  274.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['site'], $context['_parent'], $context['loop']);
  275.         $context array_intersect_key($context$_parent) + $_parent;
  276.         // line 116
  277.         echo "\t</select>
  278. ";
  279.         
  280.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  281.         
  282.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  283.     }
  284.     public function getTemplateName()
  285.     {
  286.         return "sonata_admin/layout.html.twig";
  287.     }
  288.     public function isTraitable()
  289.     {
  290.         return false;
  291.     }
  292.     public function getDebugInfo()
  293.     {
  294.         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,);
  295.     }
  296.     public function getSourceContext()
  297.     {
  298.         return new Source("{% extends '@SonataAdmin/standard_layout.html.twig' %}
  299. {# vender/sonata-project/admin-bundle/src/Resources/views/standard_layout.html.twig #}
  300. {% block meta_tags %}
  301. \t<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  302. \t<meta charset=\"UTF-8\">
  303. \t<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
  304. \t
  305. \t{% if app.request.query.get(\"site\") %}
  306. \t\t{{ app.request.cookies.set('admin_view', app.request.query.get(\"site\")) }}
  307. \t\t<script>document.cookie = 'admin_view=' + {{app.request.query.get(\"site\")}} + ';path=/';</script>
  308. \t{% endif %}
  309. \t
  310. \t{# Defaulting to the current site #}
  311. \t{#
  312. \t{% if not app.request.cookies.get('admin_view') %}
  313. \t\t{% for site in constant(\"App\\\\Entity\\\\SiteConfig::CONFIGS\") %}
  314. \t\t\t{% if site.base_url in app.request.getSchemeAndHttpHost()  %}
  315. \t\t\t\t{{ app.request.cookies.set('admin_view', app.request.query.get(\"site\")) }}
  316. \t\t\t\t<script>document.cookie = 'admin_view=' + {{app.request.query.get(\"site\")}} + ';path=/';</script>
  317. \t\t\t{% endif %}
  318. \t\t{% endfor %}
  319. \t
  320. \t{% elseif app.request.cookies.get('admin_view') not in [1,2,3,4] %}
  321. \t\t{{ app.request.cookies.set('admin_view', null) }}
  322. \t{% endif %}
  323. \t#}
  324. \t
  325. {% endblock %}
  326. {% block body_attributes -%}
  327. \t
  328. \t{% if app.request.cookies.get('admin_view') %}
  329. \t\t{% set current_site = constant(\"App\\\\Entity\\\\SiteConfig::CONFIGS\")[app.request.cookies.get('admin_view')] %}
  330. \t{% endif %}
  331. \t
  332. \tclass=\"sonata-bc skin-black fixed  {{ app.request.cookies.get('admin_view') ? 'layout_' ~ current_site.site_code : 'layout_master' }}
  333. \t{% if app.request.cookies.get('sonata_sidebar_hide') -%}
  334. \t\tsidebar-collapse
  335. \t{%- endif -%}\"
  336. {%- endblock -%}
  337. {% block logo %}
  338. \t{% apply spaceless %}
  339. \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  %}
  340. \t\t\t<div id=\"admin-logo-home\">
  341. \t\t\t\t<a href=\"/\" target=\"_blank\">
  342. \t\t\t\t\t{{ constant(\"App\\\\Entity\\\\SiteConfig::CONFIGS\")[app.request.cookies.get('admin_view')].admin_img_tag | raw }}
  343. \t\t\t\t</a>
  344. \t\t\t</div>
  345. \t\t{% elseif app.request.cookies.get('admin_view') == constant(\"App\\\\Entity\\\\Content::SITE_RCS\") %}
  346. \t\t\t<div id=\"admin-logo-home\">
  347. \t\t\t\t<a href=\"/\" target=\"_blank\">
  348. \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\">
  349. \t\t\t\t\t\t<g>
  350. \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
  351. \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
  352. \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
  353. \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
  354. \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
  355. \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
  356. \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
  357. \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
  358. \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
  359. \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
  360. \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
  361. \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
  362. \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
  363. \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
  364. \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
  365. \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
  366. \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
  367. \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
  368. \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\"/>
  369. \t\t\t\t\t\t</g>
  370. \t\t\t\t\t</svg>
  371. \t\t\t\t</a>
  372. \t\t\t</div>
  373. \t\t{% endif %}
  374. \t\t<a class=\"logo\" href=\"{{ path('sonata_admin_dashboard') }}\">
  375. \t\t\t{#
  376. \t\t\t{% if 'single_image' == sonata_admin.adminPool.getOption('title_mode') or 'both' == sonata_admin.adminPool.getOption('title_mode') %}
  377. \t\t\t\t<img src=\"{{ asset(sonata_admin.adminPool.titlelogo) }}\" alt=\"{{ sonata_admin.adminPool.title }}\">
  378. \t\t\t{% endif %}
  379. \t\t\t{% if 'single_text' == sonata_admin.adminPool.getOption('title_mode') or 'both' == sonata_admin.adminPool.getOption('title_mode') %}
  380. \t\t\t#}
  381. \t\t\t\t{% if app.request.cookies.get('admin_view')  %}
  382. \t\t\t\t\t<span>{{ constant(\"App\\\\Entity\\\\SiteConfig::CONFIGS\")[app.request.cookies.get('admin_view')].site_code | upper }} Admin</span>
  383. \t\t\t\t{% else %}
  384. \t\t\t\t\t<span>Master Admin</span>
  385. \t\t\t\t{% endif %}
  386. \t\t\t{#
  387. \t\t\t{% endif %}
  388. \t\t\t#}
  389. \t\t</a>
  390. \t{% endapply %}
  391. {% endblock %}
  392. {% block sonata_top_nav_menu %}
  393. {% if app.user %}
  394. \t<a href=\"/admin/app/user/{{app.user.getId()}}/edit\">
  395. \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>
  396. \t</a>
  397. {% endif %}
  398. {% endblock sonata_top_nav_menu %}
  399. {% block sonata_sidebar_search %}
  400. {% endblock sonata_sidebar_search %}
  401. {% block side_bar_before_nav %}
  402. \t<select id=\"rcs_admin_view\" name=\"rcs_admin_view\" class=\"\" style=\"width: 100%;margin-top: 15px;margin-bottom: 15px;\">
  403. \t\t<option value=\"0\">Master View</option>
  404. \t\t{% for site in constant(\"App\\\\Entity\\\\SiteConfig::CONFIGS\") %}
  405. \t\t\t<option value=\"{{site.id}}\" {{ (app.request.cookies.get('admin_view') == site.id) ? 'selected' : '' }}>{{ site.site_name }}</option>
  406. \t\t{% endfor %}
  407. \t</select>
  408. {% endblock %}
  409. ""sonata_admin/layout.html.twig""/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/templates/sonata_admin/layout.html.twig");
  410.     }
  411. }