var/cache/dev/twig/9b/9bee11ad1136bf0733a4291031b02e40.php line 55

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* fe/base.html.twig */
  16. class __TwigTemplate_e8b66d1f02d76cbf833324c29314d872 extends Template
  17. {
  18. private Source $source;
  19. /**
  20. * @var array<string, Template>
  21. */
  22. private array $macros = [];
  23. public function __construct(Environment $env)
  24. {
  25. parent::__construct($env);
  26. $this->source = $this->getSourceContext();
  27. $this->parent = false;
  28. $this->blocks = [
  29. 'title' => [$this, 'block_title'],
  30. 'criticalCSS' => [$this, 'block_criticalCSS'],
  31. 'stylesheets' => [$this, 'block_stylesheets'],
  32. 'metaTag' => [$this, 'block_metaTag'],
  33. 'content' => [$this, 'block_content'],
  34. 'modals' => [$this, 'block_modals'],
  35. 'javascripts' => [$this, 'block_javascripts'],
  36. ];
  37. }
  38. protected function doDisplay(array $context, array $blocks = []): iterable
  39. {
  40. $macros = $this->macros;
  41. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  42. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "fe/base.html.twig"));
  43. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  44. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "fe/base.html.twig"));
  45. // line 1
  46. $_v0 = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
  47. // line 2
  48. yield " ";
  49. $context["cr"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 2, $this->source); })()), "request", [], "any", false, false, false, 2), "attributes", [], "any", false, false, false, 2), "get", ["_route"], "method", false, false, false, 2);
  50. // line 3
  51. yield " ";
  52. $context["locale"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 3, $this->source); })()), "request", [], "any", false, false, false, 3), "get", ["_locale"], "method", false, false, false, 3);
  53. // line 4
  54. yield "
  55. <!doctype html>
  56. <html lang=\"";
  57. // line 6
  58. if (((isset($context["locale"]) || array_key_exists("locale", $context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.', 6, $this->source); })()) == "")) {
  59. yield "en";
  60. } else {
  61. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 6, $this->source); })()), "request", [], "any", false, false, false, 6), "get", ["_locale"], "method", false, false, false, 6), "html", null, true);
  62. }
  63. yield "\"
  64. dir=\"";
  65. // line 7
  66. yield ((((isset($context["locale"]) || array_key_exists("locale", $context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.', 7, $this->source); })()) == "ar")) ? ("rtl") : ("ltr"));
  67. yield "\">
  68. <head>
  69. <title>
  70. ";
  71. // line 10
  72. yield from $this->unwrap()->yieldBlock('title', $context, $blocks);
  73. yield " | ";
  74. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('App\CMSBundle\Twig\SiteSettingVarsRuntime')->getSiteSetting("website-title"), "html", null, true);
  75. yield "
  76. </title>
  77. ";
  78. // line 13
  79. yield from $this->unwrap()->yieldBlock('criticalCSS', $context, $blocks);
  80. // line 14
  81. yield " <style>
  82. ";
  83. // line 15
  84. $context["primaryColor"] = $this->env->getRuntime('App\CMSBundle\Twig\SiteSettingVarsRuntime')->getSiteSetting("website-primary-color");
  85. // line 16
  86. yield " ";
  87. $context["headerColor"] = $this->env->getRuntime('App\CMSBundle\Twig\SiteSettingVarsRuntime')->getSiteSetting("website-header-color");
  88. // line 17
  89. yield " ";
  90. $context["headerTextColor"] = $this->env->getRuntime('App\CMSBundle\Twig\SiteSettingVarsRuntime')->getSiteSetting("website-header-text-color");
  91. // line 18
  92. yield " ";
  93. $context["footerColor"] = $this->env->getRuntime('App\CMSBundle\Twig\SiteSettingVarsRuntime')->getSiteSetting("website-footer-color");
  94. // line 19
  95. yield " ";
  96. $context["footerTextColor"] = $this->env->getRuntime('App\CMSBundle\Twig\SiteSettingVarsRuntime')->getSiteSetting("website-footer-text-color");
  97. // line 20
  98. yield " :root {
  99. --primary-color: ";
  100. // line 21
  101. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["primaryColor"]) || array_key_exists("primaryColor", $context) ? $context["primaryColor"] : (function () { throw new RuntimeError('Variable "primaryColor" does not exist.', 21, $this->source); })()), "html", null, true);
  102. yield " !important;
  103. --primary-color-rgb: ";
  104. // line 22
  105. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('PN\ServiceBundle\Twig\VarsRuntime')->convertHex2RGB((isset($context["primaryColor"]) || array_key_exists("primaryColor", $context) ? $context["primaryColor"] : (function () { throw new RuntimeError('Variable "primaryColor" does not exist.', 22, $this->source); })())), "html", null, true);
  106. yield ";
  107. --text-on-primary-color: #ffffff !important;
  108. --header-color: ";
  109. // line 24
  110. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["headerColor"]) || array_key_exists("headerColor", $context) ? $context["headerColor"] : (function () { throw new RuntimeError('Variable "headerColor" does not exist.', 24, $this->source); })()), "html", null, true);
  111. yield ";
  112. --header-text-color: ";
  113. // line 25
  114. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["headerTextColor"]) || array_key_exists("headerTextColor", $context) ? $context["headerTextColor"] : (function () { throw new RuntimeError('Variable "headerTextColor" does not exist.', 25, $this->source); })()), "html", null, true);
  115. yield ";
  116. --footer-color: ";
  117. // line 26
  118. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["footerColor"]) || array_key_exists("footerColor", $context) ? $context["footerColor"] : (function () { throw new RuntimeError('Variable "footerColor" does not exist.', 26, $this->source); })()), "html", null, true);
  119. yield ";
  120. --footer-text-color: ";
  121. // line 27
  122. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["footerTextColor"]) || array_key_exists("footerTextColor", $context) ? $context["footerTextColor"] : (function () { throw new RuntimeError('Variable "footerTextColor" does not exist.', 27, $this->source); })()), "html", null, true);
  123. yield ";
  124. }
  125. .m-header-topbar-logo{
  126. width: 220px !important;
  127. }
  128. .m-header-topbar-delivery{
  129. justify-content: end !important;
  130. }
  131. .m-header-topbar-logo a svg{
  132. max-width: 100%;
  133. }
  134. .m-header{
  135. background-color: var(--header-color) !important;
  136. }
  137. .m-footer{
  138. background-color: var(--footer-color) !important;
  139. }
  140. .m-header-topbar-icon svg path{
  141. fill: var(--header-text-color) !important;
  142. }
  143. .m-header-topbar-delivery-dropdown-button {
  144. color: var(--header-text-color) !important;
  145. }
  146. .m-footer-widget-title,
  147. .m-footer-widget-content,
  148. .m-footer-widget-content a{
  149. color: var(--footer-text-color) !important;
  150. }
  151. .m-footer-widget-content-social-icons svg path{
  152. fill: var(--footer-text-color) !important;
  153. }
  154. </style>
  155. <meta name=\"viewport\" content=\"width=device-width,initial-scale=1.0\"/>
  156. <meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\"/>
  157. <meta property=\"og:site_name\"
  158. content=\"";
  159. // line 63
  160. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('App\CMSBundle\Twig\SiteSettingVarsRuntime')->getSiteSetting("website-title"), "html", null, true);
  161. yield "\"/>
  162. ";
  163. // line 64
  164. yield from $this->unwrap()->yieldBlock('stylesheets', $context, $blocks);
  165. // line 65
  166. yield "
  167. ";
  168. // line 66
  169. yield from $this->load("fe/_favicon.html.twig", 66)->unwrap()->yield($context);
  170. // line 67
  171. yield " ";
  172. yield from $this->unwrap()->yieldBlock('metaTag', $context, $blocks);
  173. // line 68
  174. yield "
  175. ";
  176. // line 70
  177. yield " ";
  178. if (!CoreExtension::inFilter("Google", CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 70, $this->source); })()), "request", [], "any", false, false, false, 70), "headers", [], "any", false, false, false, 70), "get", ["User-Agent"], "method", false, false, false, 70))) {
  179. // line 71
  180. yield " ";
  181. yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\CMSBundle\\Controller\\FrontEnd\\SiteSettingController::siteSettingHead"));
  182. yield "
  183. ";
  184. }
  185. // line 73
  186. yield " ";
  187. // line 74
  188. yield " </head>
  189. <body>
  190. ";
  191. // line 77
  192. if (!CoreExtension::inFilter("Google", CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 77, $this->source); })()), "request", [], "any", false, false, false, 77), "headers", [], "any", false, false, false, 77), "get", ["User-Agent"], "method", false, false, false, 77))) {
  193. // line 78
  194. yield " ";
  195. yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\CMSBundle\\Controller\\FrontEnd\\SiteSettingController::siteSettingBody"));
  196. yield "
  197. ";
  198. }
  199. // line 80
  200. yield "
  201. ";
  202. // line 81
  203. yield from $this->load("fe/_header.html.twig", 81)->unwrap()->yield($context);
  204. // line 82
  205. yield "
  206. <div class=\"m-body\">
  207. <div class=\"l-backdrop ui-backdrop\" data-m-body-backdrop=\"true\"></div>
  208. ";
  209. // line 85
  210. yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
  211. // line 86
  212. yield " </div>
  213. ";
  214. // line 87
  215. yield from $this->unwrap()->yieldBlock('modals', $context, $blocks);
  216. // line 88
  217. yield "
  218. ";
  219. // line 89
  220. yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\HomeBundle\\Controller\\HeaderFooterController::footer"));
  221. yield "
  222. ";
  223. // line 90
  224. yield from $this->load("fe/_modals.html.twig", 90)->unwrap()->yield($context);
  225. // line 91
  226. yield " <div class=\"l-toasts\" data-toasts=\"true\"></div>
  227. ";
  228. // line 93
  229. yield from $this->load("fe/_global_variables.html.twig", 93)->unwrap()->yield($context);
  230. // line 94
  231. yield " ";
  232. yield from $this->unwrap()->yieldBlock('javascripts', $context, $blocks);
  233. // line 96
  234. yield " </body>
  235. </html>
  236. ";
  237. yield from [];
  238. })())) ? '' : new Markup($tmp, $this->env->getCharset());
  239. // line 1
  240. yield Twig\Extension\CoreExtension::spaceless($_v0);
  241. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  242. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  243. yield from [];
  244. }
  245. // line 10
  246. /**
  247. * @return iterable<null|scalar|\Stringable>
  248. */
  249. public function block_title(array $context, array $blocks = []): iterable
  250. {
  251. $macros = $this->macros;
  252. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  253. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  254. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  255. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  256. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  257. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  258. yield from [];
  259. }
  260. // line 13
  261. /**
  262. * @return iterable<null|scalar|\Stringable>
  263. */
  264. public function block_criticalCSS(array $context, array $blocks = []): iterable
  265. {
  266. $macros = $this->macros;
  267. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  268. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "criticalCSS"));
  269. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  270. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "criticalCSS"));
  271. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  272. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  273. yield from [];
  274. }
  275. // line 64
  276. /**
  277. * @return iterable<null|scalar|\Stringable>
  278. */
  279. public function block_stylesheets(array $context, array $blocks = []): iterable
  280. {
  281. $macros = $this->macros;
  282. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  283. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  284. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  285. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  286. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  287. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  288. yield from [];
  289. }
  290. // line 67
  291. /**
  292. * @return iterable<null|scalar|\Stringable>
  293. */
  294. public function block_metaTag(array $context, array $blocks = []): iterable
  295. {
  296. $macros = $this->macros;
  297. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  298. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaTag"));
  299. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  300. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaTag"));
  301. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  302. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  303. yield from [];
  304. }
  305. // line 85
  306. /**
  307. * @return iterable<null|scalar|\Stringable>
  308. */
  309. public function block_content(array $context, array $blocks = []): iterable
  310. {
  311. $macros = $this->macros;
  312. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  313. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  314. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  315. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  316. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  317. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  318. yield from [];
  319. }
  320. // line 87
  321. /**
  322. * @return iterable<null|scalar|\Stringable>
  323. */
  324. public function block_modals(array $context, array $blocks = []): iterable
  325. {
  326. $macros = $this->macros;
  327. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  328. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "modals"));
  329. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  330. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "modals"));
  331. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  332. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  333. yield from [];
  334. }
  335. // line 94
  336. /**
  337. * @return iterable<null|scalar|\Stringable>
  338. */
  339. public function block_javascripts(array $context, array $blocks = []): iterable
  340. {
  341. $macros = $this->macros;
  342. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  343. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  344. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  345. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  346. // line 95
  347. yield " ";
  348. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  349. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  350. yield from [];
  351. }
  352. /**
  353. * @codeCoverageIgnore
  354. */
  355. public function getTemplateName(): string
  356. {
  357. return "fe/base.html.twig";
  358. }
  359. /**
  360. * @codeCoverageIgnore
  361. */
  362. public function isTraitable(): bool
  363. {
  364. return false;
  365. }
  366. /**
  367. * @codeCoverageIgnore
  368. */
  369. public function getDebugInfo(): array
  370. {
  371. return array ( 409 => 95, 396 => 94, 374 => 87, 352 => 85, 330 => 67, 308 => 64, 286 => 13, 264 => 10, 253 => 1, 247 => 96, 244 => 94, 242 => 93, 238 => 91, 236 => 90, 232 => 89, 229 => 88, 227 => 87, 224 => 86, 222 => 85, 217 => 82, 215 => 81, 212 => 80, 206 => 78, 204 => 77, 199 => 74, 197 => 73, 191 => 71, 188 => 70, 185 => 68, 182 => 67, 180 => 66, 177 => 65, 175 => 64, 171 => 63, 132 => 27, 128 => 26, 124 => 25, 120 => 24, 115 => 22, 111 => 21, 108 => 20, 105 => 19, 102 => 18, 99 => 17, 96 => 16, 94 => 15, 91 => 14, 89 => 13, 81 => 10, 75 => 7, 67 => 6, 63 => 4, 60 => 3, 57 => 2, 55 => 1,);
  372. }
  373. public function getSourceContext(): Source
  374. {
  375. return new Source("{% apply spaceless %}
  376. {% set cr = app.request.attributes.get('_route') %}
  377. {% set locale = app.request.get('_locale') %}
  378. <!doctype html>
  379. <html lang=\"{% if locale == '' %}en{% else %}{{ app.request.get('_locale') }}{% endif %}\"
  380. dir=\"{{ locale == \"ar\" ? 'rtl': \"ltr\" }}\">
  381. <head>
  382. <title>
  383. {% block title %}{% endblock %} | {{ getSiteSetting(\"website-title\") }}
  384. </title>
  385. {% block criticalCSS %}{% endblock %}
  386. <style>
  387. {% set primaryColor = getSiteSetting(\"website-primary-color\") %}
  388. {% set headerColor = getSiteSetting(\"website-header-color\") %}
  389. {% set headerTextColor = getSiteSetting(\"website-header-text-color\") %}
  390. {% set footerColor = getSiteSetting(\"website-footer-color\") %}
  391. {% set footerTextColor = getSiteSetting(\"website-footer-text-color\") %}
  392. :root {
  393. --primary-color: {{ primaryColor }} !important;
  394. --primary-color-rgb: {{ convertHexToRgb(primaryColor) }};
  395. --text-on-primary-color: #ffffff !important;
  396. --header-color: {{ headerColor }};
  397. --header-text-color: {{ headerTextColor }};
  398. --footer-color: {{ footerColor }};
  399. --footer-text-color: {{ footerTextColor }};
  400. }
  401. .m-header-topbar-logo{
  402. width: 220px !important;
  403. }
  404. .m-header-topbar-delivery{
  405. justify-content: end !important;
  406. }
  407. .m-header-topbar-logo a svg{
  408. max-width: 100%;
  409. }
  410. .m-header{
  411. background-color: var(--header-color) !important;
  412. }
  413. .m-footer{
  414. background-color: var(--footer-color) !important;
  415. }
  416. .m-header-topbar-icon svg path{
  417. fill: var(--header-text-color) !important;
  418. }
  419. .m-header-topbar-delivery-dropdown-button {
  420. color: var(--header-text-color) !important;
  421. }
  422. .m-footer-widget-title,
  423. .m-footer-widget-content,
  424. .m-footer-widget-content a{
  425. color: var(--footer-text-color) !important;
  426. }
  427. .m-footer-widget-content-social-icons svg path{
  428. fill: var(--footer-text-color) !important;
  429. }
  430. </style>
  431. <meta name=\"viewport\" content=\"width=device-width,initial-scale=1.0\"/>
  432. <meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\"/>
  433. <meta property=\"og:site_name\"
  434. content=\"{{ getSiteSetting(\"website-title\") }}\"/>
  435. {% block stylesheets %}{% endblock %}
  436. {% include \"fe/_favicon.html.twig\" %}
  437. {% block metaTag %}{% endblock %}
  438. {# SITE SETTINGS #}
  439. {% if 'Google' not in app.request.headers.get('User-Agent') %}
  440. {{ render(controller(\"App\\\\CMSBundle\\\\Controller\\\\FrontEnd\\\\SiteSettingController::siteSettingHead\") ) }}
  441. {% endif %}
  442. {# END SITE SETTINGS #}
  443. </head>
  444. <body>
  445. {% if 'Google' not in app.request.headers.get('User-Agent') %}
  446. {{ render(controller(\"App\\\\CMSBundle\\\\Controller\\\\FrontEnd\\\\SiteSettingController::siteSettingBody\") ) }}
  447. {% endif %}
  448. {% include 'fe/_header.html.twig' %}
  449. <div class=\"m-body\">
  450. <div class=\"l-backdrop ui-backdrop\" data-m-body-backdrop=\"true\"></div>
  451. {% block content %}{% endblock %}
  452. </div>
  453. {% block modals %}{% endblock %}
  454. {{ render(controller('App\\\\HomeBundle\\\\Controller\\\\HeaderFooterController::footer')) }}
  455. {% include 'fe/_modals.html.twig' %}
  456. <div class=\"l-toasts\" data-toasts=\"true\"></div>
  457. {% include 'fe/_global_variables.html.twig' %}
  458. {% block javascripts %}
  459. {% endblock %}
  460. </body>
  461. </html>
  462. {% endapply %}", "fe/base.html.twig", "/var/www/esorus-shop/templates/fe/base.html.twig");
  463. }
  464. }