var/cache/dev/twig/fa/fa7b323df5c71dfcf17ae5dd03deaba7.php line 106

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. /* layout/base.html.twig */
  16. class __TwigTemplate_e7017fd084221e5d07d21b3a3f870855 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. 'stylesheets' => [$this, 'block_stylesheets'],
  31. 'javascripts' => [$this, 'block_javascripts'],
  32. 'body' => [$this, 'block_body'],
  33. ];
  34. }
  35. protected function doDisplay(array $context, array $blocks = []): iterable
  36. {
  37. $macros = $this->macros;
  38. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layout/base.html.twig"));
  40. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layout/base.html.twig"));
  42. // line 1
  43. yield "<!DOCTYPE html>
  44. <html>
  45. <head>
  46. <meta charset=\"UTF-8\">
  47. <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
  48. <title>Jewelry Rewards :: ";
  49. // line 6
  50. yield from $this->unwrap()->yieldBlock('title', $context, $blocks);
  51. yield "</title>
  52. <link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"";
  53. // line 8
  54. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/favicon/apple-touch-icon.png"), "html", null, true);
  55. yield "\">
  56. <link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"";
  57. // line 9
  58. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/favicon/favicon-32x32.png"), "html", null, true);
  59. yield "\">
  60. <link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"";
  61. // line 10
  62. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/favicon/favicon-16x16.png"), "html", null, true);
  63. yield "\">
  64. <link rel=\"manifest\" href=\"";
  65. // line 11
  66. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/favicon/site.webmanifest"), "html", null, true);
  67. yield "\">
  68. <link rel=\"mask-icon\" href=\"";
  69. // line 12
  70. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/favicon/safari-pinned-tab.svg"), "html", null, true);
  71. yield "\" color=\"#5bbad5\">
  72. <link rel=\"shortcut icon\" href=\"";
  73. // line 13
  74. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/favicon/favicon.ico"), "html", null, true);
  75. yield "\">
  76. <meta name=\"msapplication-TileColor\" content=\"#da532c\">
  77. <meta name=\"msapplication-config\" content=\"";
  78. // line 15
  79. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/favicon/browserconfig.xml"), "html", null, true);
  80. yield "\">
  81. <meta name=\"theme-color\" content=\"#ffffff\">
  82. ";
  83. // line 18
  84. yield from $this->unwrap()->yieldBlock('stylesheets', $context, $blocks);
  85. // line 21
  86. yield "
  87. ";
  88. // line 22
  89. yield from $this->unwrap()->yieldBlock('javascripts', $context, $blocks);
  90. // line 25
  91. yield "</head>
  92. <body>
  93. ";
  94. // line 27
  95. yield from $this->load("layout/header.html.twig", 27)->unwrap()->yield($context);
  96. // line 28
  97. yield "
  98. ";
  99. // line 29
  100. $context["flashMessages"] = [];
  101. // line 30
  102. $context['_parent'] = $context;
  103. $context['_seq'] = CoreExtension::ensureTraversable(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.', 30, $this->source); })()), "flashes", [["success", "danger", "warning"]], "method", false, false, false, 30));
  104. foreach ($context['_seq'] as $context["type"] => $context["messages"]) {
  105. // line 31
  106. yield " ";
  107. $context['_parent'] = $context;
  108. $context['_seq'] = CoreExtension::ensureTraversable($context["messages"]);
  109. foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  110. // line 32
  111. yield " ";
  112. $context["flashMessages"] = Twig\Extension\CoreExtension::merge((isset($context["flashMessages"]) || array_key_exists("flashMessages", $context) ? $context["flashMessages"] : (function () { throw new RuntimeError('Variable "flashMessages" does not exist.', 32, $this->source); })()), [["type" => $context["type"], "message" => $context["message"]]]);
  113. // line 33
  114. yield " ";
  115. }
  116. $_parent = $context['_parent'];
  117. unset($context['_seq'], $context['_key'], $context['message'], $context['_parent']);
  118. $context = array_intersect_key($context, $_parent) + $_parent;
  119. }
  120. $_parent = $context['_parent'];
  121. unset($context['_seq'], $context['type'], $context['messages'], $context['_parent']);
  122. $context = array_intersect_key($context, $_parent) + $_parent;
  123. // line 35
  124. yield "
  125. ";
  126. // line 36
  127. if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["flashMessages"]) || array_key_exists("flashMessages", $context) ? $context["flashMessages"] : (function () { throw new RuntimeError('Variable "flashMessages" does not exist.', 36, $this->source); })())) > 0)) {
  128. // line 37
  129. yield " <div class=\"container mt-3\">
  130. <div class=\"row flash-messages\">
  131. <div class=\"col-12\">
  132. ";
  133. // line 40
  134. $context['_parent'] = $context;
  135. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["flashMessages"]) || array_key_exists("flashMessages", $context) ? $context["flashMessages"] : (function () { throw new RuntimeError('Variable "flashMessages" does not exist.', 40, $this->source); })()));
  136. foreach ($context['_seq'] as $context["_key"] => $context["flashItem"]) {
  137. // line 41
  138. yield " <div class=\"alert alert-";
  139. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["flashItem"], "type", [], "any", false, false, false, 41), "html", null, true);
  140. yield "\">
  141. ";
  142. // line 42
  143. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["flashItem"], "message", [], "any", false, false, false, 42), "html", null, true);
  144. yield "
  145. </div>
  146. ";
  147. }
  148. $_parent = $context['_parent'];
  149. unset($context['_seq'], $context['_key'], $context['flashItem'], $context['_parent']);
  150. $context = array_intersect_key($context, $_parent) + $_parent;
  151. // line 45
  152. yield " </div>
  153. </div>
  154. </div>
  155. ";
  156. }
  157. // line 49
  158. yield "
  159. ";
  160. // line 50
  161. if ((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.', 50, $this->source); })()), "request", [], "any", false, false, false, 50), "get", ["_route"], "method", false, false, false, 50) == "homepage")) {
  162. // line 51
  163. yield " ";
  164. yield from $this->load("layout/hero.html.twig", 51)->unwrap()->yield(CoreExtension::merge($context, ["hero" => $this->unwrap()->renderBlock("hero", $context, $blocks)]));
  165. }
  166. // line 53
  167. yield "
  168. <main class=\"";
  169. // line 54
  170. if ((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.', 54, $this->source); })()), "request", [], "any", false, false, false, 54), "get", ["_route"], "method", false, false, false, 54) != "homepage")) {
  171. yield "inner-page";
  172. }
  173. yield "\">
  174. <div class=\"container\">
  175. ";
  176. // line 57
  177. yield from $this->unwrap()->yieldBlock('body', $context, $blocks);
  178. // line 58
  179. yield " </div>
  180. </main>
  181. ";
  182. // line 60
  183. yield from $this->load("layout/footer.html.twig", 60)->unwrap()->yield($context);
  184. // line 61
  185. yield "
  186. </body>
  187. </html>
  188. ";
  189. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  190. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  191. yield from [];
  192. }
  193. // line 6
  194. /**
  195. * @return iterable<null|scalar|\Stringable>
  196. */
  197. public function block_title(array $context, array $blocks = []): iterable
  198. {
  199. $macros = $this->macros;
  200. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  201. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  202. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  203. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  204. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  205. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  206. yield from [];
  207. }
  208. // line 18
  209. /**
  210. * @return iterable<null|scalar|\Stringable>
  211. */
  212. public function block_stylesheets(array $context, array $blocks = []): iterable
  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", "stylesheets"));
  217. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  218. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  219. // line 19
  220. yield " ";
  221. yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("app");
  222. yield "
  223. ";
  224. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  225. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  226. yield from [];
  227. }
  228. // line 22
  229. /**
  230. * @return iterable<null|scalar|\Stringable>
  231. */
  232. public function block_javascripts(array $context, array $blocks = []): iterable
  233. {
  234. $macros = $this->macros;
  235. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  236. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  237. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  238. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  239. // line 23
  240. yield " ";
  241. yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("app");
  242. yield "
  243. ";
  244. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  245. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  246. yield from [];
  247. }
  248. // line 57
  249. /**
  250. * @return iterable<null|scalar|\Stringable>
  251. */
  252. public function block_body(array $context, array $blocks = []): iterable
  253. {
  254. $macros = $this->macros;
  255. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  256. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  257. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  258. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  259. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  260. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  261. yield from [];
  262. }
  263. /**
  264. * @codeCoverageIgnore
  265. */
  266. public function getTemplateName(): string
  267. {
  268. return "layout/base.html.twig";
  269. }
  270. /**
  271. * @codeCoverageIgnore
  272. */
  273. public function isTraitable(): bool
  274. {
  275. return false;
  276. }
  277. /**
  278. * @codeCoverageIgnore
  279. */
  280. public function getDebugInfo(): array
  281. {
  282. return array ( 289 => 57, 275 => 23, 262 => 22, 248 => 19, 235 => 18, 213 => 6, 197 => 61, 195 => 60, 191 => 58, 189 => 57, 181 => 54, 178 => 53, 174 => 51, 172 => 50, 169 => 49, 163 => 45, 154 => 42, 149 => 41, 145 => 40, 140 => 37, 138 => 36, 135 => 35, 125 => 33, 122 => 32, 117 => 31, 113 => 30, 111 => 29, 108 => 28, 106 => 27, 102 => 25, 100 => 22, 97 => 21, 95 => 18, 89 => 15, 84 => 13, 80 => 12, 76 => 11, 72 => 10, 68 => 9, 64 => 8, 59 => 6, 52 => 1,);
  283. }
  284. public function getSourceContext(): Source
  285. {
  286. return new Source("<!DOCTYPE html>
  287. <html>
  288. <head>
  289. <meta charset=\"UTF-8\">
  290. <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
  291. <title>Jewelry Rewards :: {% block title %}{% endblock %}</title>
  292. <link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"{{ asset('build/images/favicon/apple-touch-icon.png') }}\">
  293. <link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"{{ asset('build/images/favicon/favicon-32x32.png') }}\">
  294. <link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"{{ asset('build/images/favicon/favicon-16x16.png') }}\">
  295. <link rel=\"manifest\" href=\"{{ asset('build/images/favicon/site.webmanifest') }}\">
  296. <link rel=\"mask-icon\" href=\"{{ asset('build/images/favicon/safari-pinned-tab.svg') }}\" color=\"#5bbad5\">
  297. <link rel=\"shortcut icon\" href=\"{{ asset('build/images/favicon/favicon.ico') }}\">
  298. <meta name=\"msapplication-TileColor\" content=\"#da532c\">
  299. <meta name=\"msapplication-config\" content=\"{{ asset('build/images/favicon/browserconfig.xml') }}\">
  300. <meta name=\"theme-color\" content=\"#ffffff\">
  301. {% block stylesheets %}
  302. {{ encore_entry_link_tags('app') }}
  303. {% endblock %}
  304. {% block javascripts %}
  305. {{ encore_entry_script_tags('app') }}
  306. {% endblock %}
  307. </head>
  308. <body>
  309. {% include('layout/header.html.twig') %}
  310. {% set flashMessages = [] %}
  311. {% for type, messages in app.flashes(['success', 'danger', 'warning']) %}
  312. {% for message in messages %}
  313. {% set flashMessages = flashMessages|merge([{type, message}]) %}
  314. {% endfor %}
  315. {% endfor %}
  316. {% if flashMessages|length > 0 %}
  317. <div class=\"container mt-3\">
  318. <div class=\"row flash-messages\">
  319. <div class=\"col-12\">
  320. {% for flashItem in flashMessages %}
  321. <div class=\"alert alert-{{ flashItem.type }}\">
  322. {{ flashItem.message }}
  323. </div>
  324. {% endfor %}
  325. </div>
  326. </div>
  327. </div>
  328. {% endif %}
  329. {% if app.request.get('_route') == 'homepage' %}
  330. {% include \"layout/hero.html.twig\" with {'hero': block(\"hero\")} %}
  331. {% endif %}
  332. <main class=\"{% if app.request.get('_route') != 'homepage' %}inner-page{% endif %}\">
  333. <div class=\"container\">
  334. {% block body %}{% endblock %}
  335. </div>
  336. </main>
  337. {% include('layout/footer.html.twig') %}
  338. </body>
  339. </html>
  340. ", "layout/base.html.twig", "/home/jewelryrewards/staging/templates/layout/base.html.twig");
  341. }
  342. }