var/cache/dev/twig/16/1635579569bf233dc454e1596a5ca5a8.php line 116

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. /* Frontend/Templates/default.html.twig */
  16. class __TwigTemplate_d9dda6c67f5c7036cf9df286b1a9effd 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.             'page_title' => [$this'block_page_title'],
  30.             'metaData' => [$this'block_metaData'],
  31.             'content' => [$this'block_content'],
  32.             'javascript_onload' => [$this'block_javascript_onload'],
  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""Frontend/Templates/default.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""Frontend/Templates/default.html.twig"));
  42.         // line 1
  43.         yield "<!DOCTYPE html>
  44. <html lang=\"en\">
  45. <head>
  46. \t<title>";
  47.         // line 6
  48.         yield from $this->unwrap()->yieldBlock('page_title'$context$blocks);
  49.         yield "</title>
  50.     ";
  51.         // line 7
  52.         $context["canonical_url"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse7), "uri", [], "any"falsefalsefalse7);
  53.         // line 8
  54.         yield "    <link rel=\"canonical\" href=\"";
  55.         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"nulltrue);
  56.         yield "\" />
  57. \t";
  58.         // line 9
  59.         yield from $this->unwrap()->yieldBlock('metaData'$context$blocks);
  60.         // line 10
  61.         yield "
  62. \t";
  63.         // line 11
  64.         yield from $this->load("Frontend/Templates/Partials/opengraph.html.twig"11)->unwrap()->yield($context);
  65.         // line 12
  66.         yield "\t";
  67.         yield from $this->load("Frontend/Templates/Partials/head.html.twig"12)->unwrap()->yield($context);
  68.         // line 13
  69.         yield "
  70. </head>
  71. <body id=\"page-body\">
  72. \t";
  73.         // line 17
  74.         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"falsefalsefalse17);
  75.         yield "
  76.     <div id=\"page-content\">
  77. \t\t";
  78.         // line 20
  79.         yield from $this->load("Frontend/Templates/Partials/header.html.twig"20)->unwrap()->yield($context);
  80.         // line 21
  81.         yield "
  82. \t\t<div class=\"google-reviews-mobile flex-column justify-content-center align-items-center pt-2 pb-2\">
  83. \t\t\t<span>We're rated 5 stars on Google</span>
  84. \t\t\t<div>
  85. \t\t\t\t<i class=\"fa fa-star\" style=\"color: #ffdd33;\"></i>
  86. \t\t\t\t<i class=\"fa fa-star\" style=\"color: #ffdd33;\"></i>
  87. \t\t\t\t<i class=\"fa fa-star\" style=\"color: #ffdd33;\"></i>
  88. \t\t\t\t<i class=\"fa fa-star\" style=\"color: #ffdd33;\"></i>
  89. \t\t\t\t<i class=\"fa fa-star\" style=\"color: #ffdd33;\"></i>
  90. \t\t\t</div>
  91. \t\t</div>
  92. \t\t";
  93.         // line 32
  94.         yield from $this->load("Frontend/Templates/Partials/alerts.html.twig"32)->unwrap()->yield($context);
  95.         // line 33
  96.         yield "
  97. \t\t";
  98.         // line 75
  99.         yield "
  100. \t\t<div id=\"block-content\">
  101. \t\t\t";
  102.         // line 77
  103.         yield from $this->unwrap()->yieldBlock('content'$context$blocks);
  104.         // line 79
  105.         yield "\t\t</div>
  106. \t\t";
  107.         // line 81
  108.         yield from $this->load("Frontend/Templates/Partials/footer.html.twig"81)->unwrap()->yield($context);
  109.         // line 82
  110.         yield "
  111. \t\t";
  112.         // line 83
  113.         yield from $this->load("Frontend/Templates/Partials/foot.html.twig"83)->unwrap()->yield($context);
  114.         // line 84
  115.         yield "
  116. \t</div>
  117.     <script>
  118. \t\t\$(document).ready(function(){
  119. \t\t\t";
  120.         // line 91
  121.         yield from $this->unwrap()->yieldBlock('javascript_onload'$context$blocks);
  122.         // line 92
  123.         yield "\t\t});
  124. \t\tdocument.addEventListener('DOMContentLoaded', function () {
  125. \t\t\t// Check if the popup has been displayed in this session
  126. \t\t\tconst popupDisplayed = sessionStorage.getItem('popupDisplayed');
  127. \t\t\t";
  128.         // line 105
  129.         yield "
  130. \t\t\t";
  131.         // line 109
  132.         yield "
  133. \t\t\tdocument.getElementById('subscribe-form').addEventListener('submit', function (event) {
  134. \t\t\t\tevent.preventDefault();
  135. \t\t\t\tconst name = this.elements.name.value;
  136. \t\t\t\tconst email = this.elements.email.value;
  137. \t\t\t});
  138. \t\t});
  139. \t</script>
  140. \t";
  141.         // line 121
  142.         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"falsefalsefalse121);
  143.         yield "
  144. </body>
  145. </html>";
  146.         
  147.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  148.         
  149.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  150.         yield from [];
  151.     }
  152.     // line 6
  153.     /**
  154.      * @return iterable<null|scalar|\Stringable>
  155.      */
  156.     public function block_page_title(array $context, array $blocks = []): iterable
  157.     {
  158.         $macros $this->macros;
  159.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  160.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_title"));
  161.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  162.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_title"));
  163.         
  164.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  165.         
  166.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  167.         yield from [];
  168.     }
  169.     // line 9
  170.     /**
  171.      * @return iterable<null|scalar|\Stringable>
  172.      */
  173.     public function block_metaData(array $context, array $blocks = []): iterable
  174.     {
  175.         $macros $this->macros;
  176.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  177.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaData"));
  178.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  179.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaData"));
  180.         
  181.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  182.         
  183.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  184.         yield from [];
  185.     }
  186.     // line 77
  187.     /**
  188.      * @return iterable<null|scalar|\Stringable>
  189.      */
  190.     public function block_content(array $context, array $blocks = []): iterable
  191.     {
  192.         $macros $this->macros;
  193.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  194.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  195.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  196.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  197.         // line 78
  198.         yield "\t\t\t";
  199.         
  200.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  201.         
  202.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  203.         yield from [];
  204.     }
  205.     // line 91
  206.     /**
  207.      * @return iterable<null|scalar|\Stringable>
  208.      */
  209.     public function block_javascript_onload(array $context, array $blocks = []): iterable
  210.     {
  211.         $macros $this->macros;
  212.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  213.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript_onload"));
  214.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  215.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript_onload"));
  216.         
  217.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  218.         
  219.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  220.         yield from [];
  221.     }
  222.     /**
  223.      * @codeCoverageIgnore
  224.      */
  225.     public function getTemplateName(): string
  226.     {
  227.         return "Frontend/Templates/default.html.twig";
  228.     }
  229.     /**
  230.      * @codeCoverageIgnore
  231.      */
  232.     public function isTraitable(): bool
  233.     {
  234.         return false;
  235.     }
  236.     /**
  237.      * @codeCoverageIgnore
  238.      */
  239.     public function getDebugInfo(): array
  240.     {
  241.         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,);
  242.     }
  243.     public function getSourceContext(): Source
  244.     {
  245.         return new Source("<!DOCTYPE html>
  246. <html lang=\"en\">
  247. <head>
  248. \t<title>{% block page_title %}{% endblock %}</title>
  249.     {% set canonical_url = app.request.uri %}
  250.     <link rel=\"canonical\" href=\"{{ canonical_url }}\" />
  251. \t{% block metaData %}{% endblock %}
  252. \t{% include 'Frontend/Templates/Partials/opengraph.html.twig' %}
  253. \t{% include 'Frontend/Templates/Partials/head.html.twig' %}
  254. </head>
  255. <body id=\"page-body\">
  256. \t{{ config_helper.getValue('bodystart_extracode', '')|raw }}
  257.     <div id=\"page-content\">
  258. \t\t{% include 'Frontend/Templates/Partials/header.html.twig' %}
  259. \t\t<div class=\"google-reviews-mobile flex-column justify-content-center align-items-center pt-2 pb-2\">
  260. \t\t\t<span>We're rated 5 stars on Google</span>
  261. \t\t\t<div>
  262. \t\t\t\t<i class=\"fa fa-star\" style=\"color: #ffdd33;\"></i>
  263. \t\t\t\t<i class=\"fa fa-star\" style=\"color: #ffdd33;\"></i>
  264. \t\t\t\t<i class=\"fa fa-star\" style=\"color: #ffdd33;\"></i>
  265. \t\t\t\t<i class=\"fa fa-star\" style=\"color: #ffdd33;\"></i>
  266. \t\t\t\t<i class=\"fa fa-star\" style=\"color: #ffdd33;\"></i>
  267. \t\t\t</div>
  268. \t\t</div>
  269. \t\t{% include 'Frontend/Templates/Partials/alerts.html.twig' %}
  270. \t\t{# <div id=\"popup-container\" class=\"popup\">
  271. \t\t\t<div class=\"popup-content\">
  272. \t\t\t\t<img src=\"/assets/frontend/img/logo.png\" style=\"width: 150px; height: auto;\" class=\"logo mt-2 mb-4\"/>
  273. \t\t\t\t<div>
  274. \t\t\t\t\t<h1 class=\"popup-items\" style=\"text-align: center;\">On time every time</h1>
  275. \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>
  276. \t\t\t\t\t<div id=\"mc_embed_shell\">
  277. \t\t\t\t\t\t<div id=\"mc_embed_signup\">
  278. \t\t\t\t\t\t\t<form action=\"https://apollodistributioncardiff.us3.list-manage.com/subscribe/post?u=75e36ed151a876e426b7cf880&amp;id=5f1055e0a9&amp;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;\">
  279. \t\t\t\t\t\t\t\t<div style=\"width: 80%\" id=\"mc_embed_signup_scroll\">
  280. \t\t\t\t\t\t\t\t\t<div class=\"mc-field-group\">
  281. \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=\"\">
  282. \t\t\t\t\t\t\t\t\t</div>
  283. \t\t\t\t\t\t\t\t\t<div class=\"mc-field-group\">
  284. \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=\"\">
  285. \t\t\t\t\t\t\t\t\t</div>
  286. \t\t\t\t\t\t\t\t<div id=\"mce-responses\" class=\"clear foot\">
  287. \t\t\t\t\t\t\t\t\t<div class=\"response\" id=\"mce-error-response\" style=\"display: none;\"></div>
  288. \t\t\t\t\t\t\t\t\t<div class=\"response\" id=\"mce-success-response\" style=\"display: none;\"></div>
  289. \t\t\t\t\t\t\t\t</div>
  290. \t\t\t\t\t\t\t\t<div aria-hidden=\"true\" style=\"position: absolute; left: -5000px;\">
  291. \t\t\t\t\t\t\t\t<input type=\"text\" name=\"b_75e36ed151a876e426b7cf880_31d023ab48\" tabindex=\"-1\" value=\"\">
  292. \t\t\t\t\t\t\t\t</div>
  293. \t\t\t\t\t\t\t\t<div class=\"d-flex justify-content-center optionalParent\">
  294. \t\t\t\t\t\t\t\t\t<div class=\"clear foot\">
  295. \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\">
  296. \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>
  297. \t\t\t\t\t\t\t\t\t</div>
  298. \t\t\t\t\t\t\t\t</div>
  299. \t\t\t\t\t\t\t</div>
  300. \t\t\t\t\t\t\t</form>
  301. \t\t\t\t\t\t</div>
  302. \t\t\t\t\t</div>
  303. \t\t\t\t\t<p style=\"font-size: 15px\" class=\"text-center mt-4 popup-text\">You can unsubscribe at any time</p>
  304. \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>
  305. \t\t\t\t</div>
  306. \t\t\t</div>
  307. \t\t</div> #}
  308. \t\t<div id=\"block-content\">
  309. \t\t\t{% block content %}
  310. \t\t\t{% endblock %}
  311. \t\t</div>
  312. \t\t{% include 'Frontend/Templates/Partials/footer.html.twig' %}
  313. \t\t{% include 'Frontend/Templates/Partials/foot.html.twig' %}
  314. \t</div>
  315.     <script>
  316. \t\t\$(document).ready(function(){
  317. \t\t\t{% block javascript_onload %}{% endblock %}
  318. \t\t});
  319. \t\tdocument.addEventListener('DOMContentLoaded', function () {
  320. \t\t\t// Check if the popup has been displayed in this session
  321. \t\t\tconst popupDisplayed = sessionStorage.getItem('popupDisplayed');
  322. \t\t\t{# // If the popup hasn't been displayed, show it after 10 seconds
  323. \t\t\tif (!popupDisplayed) {
  324. \t\t\t\tsetTimeout(function () {
  325. \t\t\t\t\tdocument.getElementById('popup-container').style.display = 'block';
  326. \t\t\t\t\tsessionStorage.setItem('popupDisplayed', 'true');
  327. \t\t\t\t}, 10000);
  328. \t\t\t} #}
  329. \t\t\t{# document.getElementById('close-btn').addEventListener('click', function () {
  330. \t\t\t\tdocument.getElementById('popup-container').style.display = 'none';
  331. \t\t\t}); #}
  332. \t\t\tdocument.getElementById('subscribe-form').addEventListener('submit', function (event) {
  333. \t\t\t\tevent.preventDefault();
  334. \t\t\t\tconst name = this.elements.name.value;
  335. \t\t\t\tconst email = this.elements.email.value;
  336. \t\t\t});
  337. \t\t});
  338. \t</script>
  339. \t{{ config_helper.getValue('bodyend_extracode', '')|raw }}
  340. </body>
  341. </html>""Frontend/Templates/default.html.twig""/home/cwd-mm-apollo-website/htdocs/apollo-website.cwd-mm.com/templates/Frontend/Templates/default.html.twig");
  342.     }
  343. }