templates/Frontend/Templates/default.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <title>{% block page_title %}{% endblock %}</title>
  5.     {% set canonical_url = app.request.uri %}
  6.     <link rel="canonical" href="{{ canonical_url }}" />
  7.     {% block metaData %}{% endblock %}
  8.     {% include 'Frontend/Templates/Partials/opengraph.html.twig' %}
  9.     {% include 'Frontend/Templates/Partials/head.html.twig' %}
  10. </head>
  11. <body id="page-body">
  12.     {{ config_helper.getValue('bodystart_extracode', '')|raw }}
  13.     <div id="page-content">
  14.         {% include 'Frontend/Templates/Partials/header.html.twig' %}
  15.         <div class="google-reviews-mobile flex-column justify-content-center align-items-center pt-2 pb-2">
  16.             <span>We're rated 5 stars on Google</span>
  17.             <div>
  18.                 <i class="fa fa-star" style="color: #ffdd33;"></i>
  19.                 <i class="fa fa-star" style="color: #ffdd33;"></i>
  20.                 <i class="fa fa-star" style="color: #ffdd33;"></i>
  21.                 <i class="fa fa-star" style="color: #ffdd33;"></i>
  22.                 <i class="fa fa-star" style="color: #ffdd33;"></i>
  23.             </div>
  24.         </div>
  25.         {% include 'Frontend/Templates/Partials/alerts.html.twig' %}
  26.         {# <div id="popup-container" class="popup">
  27.             <div class="popup-content">
  28.                 <img src="/assets/frontend/img/logo.png" style="width: 150px; height: auto;" class="logo mt-2 mb-4"/>
  29.                 <div>
  30.                     <h1 class="popup-items" style="text-align: center;">On time every time</h1>
  31.                     <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>
  32.                     <div id="mc_embed_shell">
  33.                         <div id="mc_embed_signup">
  34.                             <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;">
  35.                                 <div style="width: 80%" id="mc_embed_signup_scroll">
  36.                                     <div class="mc-field-group">
  37.                                         <input type="text" name="FNAME" class="mb-2 form-control text" id="mce-FNAME" placeholder="Your Name" value="">
  38.                                     </div>
  39.                                     <div class="mc-field-group">
  40.                                         <input type="email" name="EMAIL" class="mb-2 form-control required email" id="mce-EMAIL" required="" placeholder="Your Email" value="">
  41.                                     </div>
  42.                                 <div id="mce-responses" class="clear foot">
  43.                                     <div class="response" id="mce-error-response" style="display: none;"></div>
  44.                                     <div class="response" id="mce-success-response" style="display: none;"></div>
  45.                                 </div>
  46.                                 <div aria-hidden="true" style="position: absolute; left: -5000px;">
  47.                                 <input type="text" name="b_75e36ed151a876e426b7cf880_31d023ab48" tabindex="-1" value="">
  48.                                 </div>
  49.                                 <div class="d-flex justify-content-center optionalParent">
  50.                                     <div class="clear foot">
  51.                                         <input type="submit" name="subscribe" id="mc-embedded-subscribe" class="btn btn-primary button" value="Subscribe">
  52.                                         <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>
  53.                                     </div>
  54.                                 </div>
  55.                             </div>
  56.                             </form>
  57.                         </div>
  58.                     </div>
  59.                     <p style="font-size: 15px" class="text-center mt-4 popup-text">You can unsubscribe at any time</p>
  60.                     <button id="close-btn" class="btn" style="position: absolute; top: 10px; right: 10px; padding: 5px 10px; cursor: pointer;">X</button>
  61.                 </div>
  62.             </div>
  63.         </div> #}
  64.         <div id="block-content">
  65.             {% block content %}
  66.             {% endblock %}
  67.         </div>
  68.         {% include 'Frontend/Templates/Partials/footer.html.twig' %}
  69.         {% include 'Frontend/Templates/Partials/foot.html.twig' %}
  70.     </div>
  71.     <script>
  72.         $(document).ready(function(){
  73.             {% block javascript_onload %}{% endblock %}
  74.         });
  75.         document.addEventListener('DOMContentLoaded', function () {
  76.             // Check if the popup has been displayed in this session
  77.             const popupDisplayed = sessionStorage.getItem('popupDisplayed');
  78.             {# // If the popup hasn't been displayed, show it after 10 seconds
  79.             if (!popupDisplayed) {
  80.                 setTimeout(function () {
  81.                     document.getElementById('popup-container').style.display = 'block';
  82.                     sessionStorage.setItem('popupDisplayed', 'true');
  83.                 }, 10000);
  84.             } #}
  85.             {# document.getElementById('close-btn').addEventListener('click', function () {
  86.                 document.getElementById('popup-container').style.display = 'none';
  87.             }); #}
  88.             document.getElementById('subscribe-form').addEventListener('submit', function (event) {
  89.                 event.preventDefault();
  90.                 const name = this.elements.name.value;
  91.                 const email = this.elements.email.value;
  92.             });
  93.         });
  94.     </script>
  95.     {{ config_helper.getValue('bodyend_extracode', '')|raw }}
  96. </body>
  97. </html>