<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;
/* layout/base.html.twig */
class __TwigTemplate_e7017fd084221e5d07d21b3a3f870855 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'title' => [$this, 'block_title'],
'stylesheets' => [$this, 'block_stylesheets'],
'javascripts' => [$this, 'block_javascripts'],
'body' => [$this, 'block_body'],
];
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$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", "layout/base.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layout/base.html.twig"));
// line 1
yield "<!DOCTYPE html>
<html>
<head>
<meta charset=\"UTF-8\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
<title>Jewelry Rewards :: ";
// line 6
yield from $this->unwrap()->yieldBlock('title', $context, $blocks);
yield "</title>
<link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"";
// line 8
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);
yield "\">
<link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"";
// line 9
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);
yield "\">
<link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"";
// line 10
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);
yield "\">
<link rel=\"manifest\" href=\"";
// line 11
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/favicon/site.webmanifest"), "html", null, true);
yield "\">
<link rel=\"mask-icon\" href=\"";
// line 12
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);
yield "\" color=\"#5bbad5\">
<link rel=\"shortcut icon\" href=\"";
// line 13
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/favicon/favicon.ico"), "html", null, true);
yield "\">
<meta name=\"msapplication-TileColor\" content=\"#da532c\">
<meta name=\"msapplication-config\" content=\"";
// line 15
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/favicon/browserconfig.xml"), "html", null, true);
yield "\">
<meta name=\"theme-color\" content=\"#ffffff\">
";
// line 18
yield from $this->unwrap()->yieldBlock('stylesheets', $context, $blocks);
// line 21
yield "
";
// line 22
yield from $this->unwrap()->yieldBlock('javascripts', $context, $blocks);
// line 25
yield "</head>
<body>
";
// line 27
yield from $this->load("layout/header.html.twig", 27)->unwrap()->yield($context);
// line 28
yield "
";
// line 29
$context["flashMessages"] = [];
// line 30
$context['_parent'] = $context;
$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));
foreach ($context['_seq'] as $context["type"] => $context["messages"]) {
// line 31
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable($context["messages"]);
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 32
yield " ";
$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"]]]);
// line 33
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['message'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['type'], $context['messages'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 35
yield "
";
// line 36
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)) {
// line 37
yield " <div class=\"container mt-3\">
<div class=\"row flash-messages\">
<div class=\"col-12\">
";
// line 40
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["flashItem"]) {
// line 41
yield " <div class=\"alert alert-";
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);
yield "\">
";
// line 42
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);
yield "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['flashItem'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 45
yield " </div>
</div>
</div>
";
}
// line 49
yield "
";
// line 50
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")) {
// line 51
yield " ";
yield from $this->load("layout/hero.html.twig", 51)->unwrap()->yield(CoreExtension::merge($context, ["hero" => $this->unwrap()->renderBlock("hero", $context, $blocks)]));
}
// line 53
yield "
<main class=\"";
// line 54
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")) {
yield "inner-page";
}
yield "\">
<div class=\"container\">
";
// line 57
yield from $this->unwrap()->yieldBlock('body', $context, $blocks);
// line 58
yield " </div>
</main>
";
// line 60
yield from $this->load("layout/footer.html.twig", 60)->unwrap()->yield($context);
// line 61
yield "
</body>
</html>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
// line 6
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_title(array $context, array $blocks = []): iterable
{
$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", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 18
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_stylesheets(array $context, array $blocks = []): iterable
{
$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", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 19
yield " ";
yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("app");
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 22
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_javascripts(array $context, array $blocks = []): iterable
{
$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", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 23
yield " ";
yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("app");
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 57
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_body(array $context, array $blocks = []): iterable
{
$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"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "layout/base.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
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,);
}
public function getSourceContext(): Source
{
return new Source("<!DOCTYPE html>
<html>
<head>
<meta charset=\"UTF-8\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
<title>Jewelry Rewards :: {% block title %}{% endblock %}</title>
<link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"{{ asset('build/images/favicon/apple-touch-icon.png') }}\">
<link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"{{ asset('build/images/favicon/favicon-32x32.png') }}\">
<link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"{{ asset('build/images/favicon/favicon-16x16.png') }}\">
<link rel=\"manifest\" href=\"{{ asset('build/images/favicon/site.webmanifest') }}\">
<link rel=\"mask-icon\" href=\"{{ asset('build/images/favicon/safari-pinned-tab.svg') }}\" color=\"#5bbad5\">
<link rel=\"shortcut icon\" href=\"{{ asset('build/images/favicon/favicon.ico') }}\">
<meta name=\"msapplication-TileColor\" content=\"#da532c\">
<meta name=\"msapplication-config\" content=\"{{ asset('build/images/favicon/browserconfig.xml') }}\">
<meta name=\"theme-color\" content=\"#ffffff\">
{% block stylesheets %}
{{ encore_entry_link_tags('app') }}
{% endblock %}
{% block javascripts %}
{{ encore_entry_script_tags('app') }}
{% endblock %}
</head>
<body>
{% include('layout/header.html.twig') %}
{% set flashMessages = [] %}
{% for type, messages in app.flashes(['success', 'danger', 'warning']) %}
{% for message in messages %}
{% set flashMessages = flashMessages|merge([{type, message}]) %}
{% endfor %}
{% endfor %}
{% if flashMessages|length > 0 %}
<div class=\"container mt-3\">
<div class=\"row flash-messages\">
<div class=\"col-12\">
{% for flashItem in flashMessages %}
<div class=\"alert alert-{{ flashItem.type }}\">
{{ flashItem.message }}
</div>
{% endfor %}
</div>
</div>
</div>
{% endif %}
{% if app.request.get('_route') == 'homepage' %}
{% include \"layout/hero.html.twig\" with {'hero': block(\"hero\")} %}
{% endif %}
<main class=\"{% if app.request.get('_route') != 'homepage' %}inner-page{% endif %}\">
<div class=\"container\">
{% block body %}{% endblock %}
</div>
</main>
{% include('layout/footer.html.twig') %}
</body>
</html>
", "layout/base.html.twig", "/home/jewelryrewards/staging/templates/layout/base.html.twig");
}
}