<?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;
/* Frontend/Templates/default.html.twig */
class __TwigTemplate_d9dda6c67f5c7036cf9df286b1a9effd 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 = [
'page_title' => [$this, 'block_page_title'],
'metaData' => [$this, 'block_metaData'],
'content' => [$this, 'block_content'],
'javascript_onload' => [$this, 'block_javascript_onload'],
];
}
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", "Frontend/Templates/default.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Frontend/Templates/default.html.twig"));
// line 1
yield "<!DOCTYPE html>
<html lang=\"en\">
<head>
\t<title>";
// line 6
yield from $this->unwrap()->yieldBlock('page_title', $context, $blocks);
yield "</title>
";
// line 7
$context["canonical_url"] = 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.', 7, $this->source); })()), "request", [], "any", false, false, false, 7), "uri", [], "any", false, false, false, 7);
// line 8
yield " <link rel=\"canonical\" href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["canonical_url"]) || array_key_exists("canonical_url", $context) ? $context["canonical_url"] : (function () { throw new RuntimeError('Variable "canonical_url" does not exist.', 8, $this->source); })()), "html", null, true);
yield "\" />
\t";
// line 9
yield from $this->unwrap()->yieldBlock('metaData', $context, $blocks);
// line 10
yield "
\t";
// line 11
yield from $this->load("Frontend/Templates/Partials/opengraph.html.twig", 11)->unwrap()->yield($context);
// line 12
yield "\t";
yield from $this->load("Frontend/Templates/Partials/head.html.twig", 12)->unwrap()->yield($context);
// line 13
yield "
</head>
<body id=\"page-body\">
\t";
// line 17
yield CoreExtension::getAttribute($this->env, $this->source, (isset($context["config_helper"]) || array_key_exists("config_helper", $context) ? $context["config_helper"] : (function () { throw new RuntimeError('Variable "config_helper" does not exist.', 17, $this->source); })()), "getValue", ["bodystart_extracode", ""], "method", false, false, false, 17);
yield "
<div id=\"page-content\">
\t\t";
// line 20
yield from $this->load("Frontend/Templates/Partials/header.html.twig", 20)->unwrap()->yield($context);
// line 21
yield "
\t\t<div class=\"google-reviews-mobile flex-column justify-content-center align-items-center pt-2 pb-2\">
\t\t\t<span>We're rated 5 stars on Google</span>
\t\t\t<div>
\t\t\t\t<i class=\"fa fa-star\" style=\"color: #ffdd33;\"></i>
\t\t\t\t<i class=\"fa fa-star\" style=\"color: #ffdd33;\"></i>
\t\t\t\t<i class=\"fa fa-star\" style=\"color: #ffdd33;\"></i>
\t\t\t\t<i class=\"fa fa-star\" style=\"color: #ffdd33;\"></i>
\t\t\t\t<i class=\"fa fa-star\" style=\"color: #ffdd33;\"></i>
\t\t\t</div>
\t\t</div>
\t\t";
// line 32
yield from $this->load("Frontend/Templates/Partials/alerts.html.twig", 32)->unwrap()->yield($context);
// line 33
yield "
\t\t";
// line 75
yield "
\t\t<div id=\"block-content\">
\t\t\t";
// line 77
yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
// line 79
yield "\t\t</div>
\t\t";
// line 81
yield from $this->load("Frontend/Templates/Partials/footer.html.twig", 81)->unwrap()->yield($context);
// line 82
yield "
\t\t";
// line 83
yield from $this->load("Frontend/Templates/Partials/foot.html.twig", 83)->unwrap()->yield($context);
// line 84
yield "
\t</div>
<script>
\t\t\$(document).ready(function(){
\t\t\t";
// line 91
yield from $this->unwrap()->yieldBlock('javascript_onload', $context, $blocks);
// line 92
yield "\t\t});
\t\tdocument.addEventListener('DOMContentLoaded', function () {
\t\t\t// Check if the popup has been displayed in this session
\t\t\tconst popupDisplayed = sessionStorage.getItem('popupDisplayed');
\t\t\t";
// line 105
yield "
\t\t\t";
// line 109
yield "
\t\t\tdocument.getElementById('subscribe-form').addEventListener('submit', function (event) {
\t\t\t\tevent.preventDefault();
\t\t\t\tconst name = this.elements.name.value;
\t\t\t\tconst email = this.elements.email.value;
\t\t\t});
\t\t});
\t</script>
\t";
// line 121
yield CoreExtension::getAttribute($this->env, $this->source, (isset($context["config_helper"]) || array_key_exists("config_helper", $context) ? $context["config_helper"] : (function () { throw new RuntimeError('Variable "config_helper" does not exist.', 121, $this->source); })()), "getValue", ["bodyend_extracode", ""], "method", false, false, false, 121);
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_page_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", "page_title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 9
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_metaData(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", "metaData"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaData"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 77
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(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", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 78
yield "\t\t\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 91
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_javascript_onload(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", "javascript_onload"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript_onload"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "Frontend/Templates/default.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 248 => 91, 237 => 78, 224 => 77, 202 => 9, 180 => 6, 165 => 121, 151 => 109, 148 => 105, 140 => 92, 138 => 91, 129 => 84, 127 => 83, 124 => 82, 122 => 81, 118 => 79, 116 => 77, 112 => 75, 109 => 33, 107 => 32, 94 => 21, 92 => 20, 86 => 17, 80 => 13, 77 => 12, 75 => 11, 72 => 10, 70 => 9, 65 => 8, 63 => 7, 59 => 6, 52 => 1,);
}
public function getSourceContext(): Source
{
return new Source("<!DOCTYPE html>
<html lang=\"en\">
<head>
\t<title>{% block page_title %}{% endblock %}</title>
{% set canonical_url = app.request.uri %}
<link rel=\"canonical\" href=\"{{ canonical_url }}\" />
\t{% block metaData %}{% endblock %}
\t{% include 'Frontend/Templates/Partials/opengraph.html.twig' %}
\t{% include 'Frontend/Templates/Partials/head.html.twig' %}
</head>
<body id=\"page-body\">
\t{{ config_helper.getValue('bodystart_extracode', '')|raw }}
<div id=\"page-content\">
\t\t{% include 'Frontend/Templates/Partials/header.html.twig' %}
\t\t<div class=\"google-reviews-mobile flex-column justify-content-center align-items-center pt-2 pb-2\">
\t\t\t<span>We're rated 5 stars on Google</span>
\t\t\t<div>
\t\t\t\t<i class=\"fa fa-star\" style=\"color: #ffdd33;\"></i>
\t\t\t\t<i class=\"fa fa-star\" style=\"color: #ffdd33;\"></i>
\t\t\t\t<i class=\"fa fa-star\" style=\"color: #ffdd33;\"></i>
\t\t\t\t<i class=\"fa fa-star\" style=\"color: #ffdd33;\"></i>
\t\t\t\t<i class=\"fa fa-star\" style=\"color: #ffdd33;\"></i>
\t\t\t</div>
\t\t</div>
\t\t{% include 'Frontend/Templates/Partials/alerts.html.twig' %}
\t\t{# <div id=\"popup-container\" class=\"popup\">
\t\t\t<div class=\"popup-content\">
\t\t\t\t<img src=\"/assets/frontend/img/logo.png\" style=\"width: 150px; height: auto;\" class=\"logo mt-2 mb-4\"/>
\t\t\t\t<div>
\t\t\t\t\t<h1 class=\"popup-items\" style=\"text-align: center;\">On time every time</h1>
\t\t\t\t\t<p style=\"text-align: center;\">Sign up to our newsletter to keep up to date with latest news and offers from Apollo Distribution Cardiff</p>
\t\t\t\t\t<div id=\"mc_embed_shell\">
\t\t\t\t\t\t<div id=\"mc_embed_signup\">
\t\t\t\t\t\t\t<form action=\"https://apollodistributioncardiff.us3.list-manage.com/subscribe/post?u=75e36ed151a876e426b7cf880&id=5f1055e0a9&f_id=00ec52e2f0\" method=\"post\" id=\"mc-embedded-subscribe-form\" name=\"mc-embedded-subscribe-form\" class=\"validate\" target=\"_self\" novalidate=\"\" style=\"display: flex; justify-content: center; align-items: center; flex-direction: column;\">
\t\t\t\t\t\t\t\t<div style=\"width: 80%\" id=\"mc_embed_signup_scroll\">
\t\t\t\t\t\t\t\t\t<div class=\"mc-field-group\">
\t\t\t\t\t\t\t\t\t\t<input type=\"text\" name=\"FNAME\" class=\"mb-2 form-control text\" id=\"mce-FNAME\" placeholder=\"Your Name\" value=\"\">
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t<div class=\"mc-field-group\">
\t\t\t\t\t\t\t\t\t\t<input type=\"email\" name=\"EMAIL\" class=\"mb-2 form-control required email\" id=\"mce-EMAIL\" required=\"\" placeholder=\"Your Email\" value=\"\">
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div id=\"mce-responses\" class=\"clear foot\">
\t\t\t\t\t\t\t\t\t<div class=\"response\" id=\"mce-error-response\" style=\"display: none;\"></div>
\t\t\t\t\t\t\t\t\t<div class=\"response\" id=\"mce-success-response\" style=\"display: none;\"></div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div aria-hidden=\"true\" style=\"position: absolute; left: -5000px;\">
\t\t\t\t\t\t\t\t<input type=\"text\" name=\"b_75e36ed151a876e426b7cf880_31d023ab48\" tabindex=\"-1\" value=\"\">
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"d-flex justify-content-center optionalParent\">
\t\t\t\t\t\t\t\t\t<div class=\"clear foot\">
\t\t\t\t\t\t\t\t\t\t<input type=\"submit\" name=\"subscribe\" id=\"mc-embedded-subscribe\" class=\"btn btn-primary button\" value=\"Subscribe\">
\t\t\t\t\t\t\t\t\t\t<p style=\"margin: 0px auto;\"><a href=\"http://eepurl.com/ikPvU5\" title=\"Mailchimp - email marketing made easy and fun\"><span style=\"display: inline-block; background-color: transparent; border-radius: 4px;\"></span></a></p>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</form>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<p style=\"font-size: 15px\" class=\"text-center mt-4 popup-text\">You can unsubscribe at any time</p>
\t\t\t\t\t<button id=\"close-btn\" class=\"btn\" style=\"position: absolute; top: 10px; right: 10px; padding: 5px 10px; cursor: pointer;\">X</button>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div> #}
\t\t<div id=\"block-content\">
\t\t\t{% block content %}
\t\t\t{% endblock %}
\t\t</div>
\t\t{% include 'Frontend/Templates/Partials/footer.html.twig' %}
\t\t{% include 'Frontend/Templates/Partials/foot.html.twig' %}
\t</div>
<script>
\t\t\$(document).ready(function(){
\t\t\t{% block javascript_onload %}{% endblock %}
\t\t});
\t\tdocument.addEventListener('DOMContentLoaded', function () {
\t\t\t// Check if the popup has been displayed in this session
\t\t\tconst popupDisplayed = sessionStorage.getItem('popupDisplayed');
\t\t\t{# // If the popup hasn't been displayed, show it after 10 seconds
\t\t\tif (!popupDisplayed) {
\t\t\t\tsetTimeout(function () {
\t\t\t\t\tdocument.getElementById('popup-container').style.display = 'block';
\t\t\t\t\tsessionStorage.setItem('popupDisplayed', 'true');
\t\t\t\t}, 10000);
\t\t\t} #}
\t\t\t{# document.getElementById('close-btn').addEventListener('click', function () {
\t\t\t\tdocument.getElementById('popup-container').style.display = 'none';
\t\t\t}); #}
\t\t\tdocument.getElementById('subscribe-form').addEventListener('submit', function (event) {
\t\t\t\tevent.preventDefault();
\t\t\t\tconst name = this.elements.name.value;
\t\t\t\tconst email = this.elements.email.value;
\t\t\t});
\t\t});
\t</script>
\t{{ config_helper.getValue('bodyend_extracode', '')|raw }}
</body>
</html>", "Frontend/Templates/default.html.twig", "/home/cwd-mm-apollo-website/htdocs/apollo-website.cwd-mm.com/templates/Frontend/Templates/default.html.twig");
}
}