templates/site_body.html.twig line 1

Open in your IDE?
  1. <!doctype html>
  2. <html lang="en">
  3.   <head>
  4.     <meta charset="utf-8">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1">
  6.     {{ sonata_seo_metadatas() }}
  7.     <title>{{ pageTitle|default('Titlle not set') ~' | '~ setting('app_name')}}</title>
  8.     <link href="{{ asset('themes/castine/assets/css/bootstrap.min.css') }}" rel="stylesheet">
  9.     <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css" rel="stylesheet">
  10.     <link href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.min.css" rel="stylesheet">
  11.     <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
  12.     <link href="{{ asset('themes/castine/assets/css/style.css') }}" rel="stylesheet">
  13.     {{ encore_entry_link_tags('main') }}
  14.   </head>
  15.   <body data-base-url="{{ app.request.schemeAndHttpHost ~ app.request.baseUrl }}">
  16.     <div class="search-overlay" data-controller="search" data-search-target="overlay">
  17.         <!-- Backdrop -->
  18.         <div class="backdrop" data-search-target="backdrop"></div>
  19.         <div class="wrapper">
  20.             <!-- Search bar container -->
  21.             <div class="search-bar-container">
  22.                 <!-- Close button inside the search bar controlled by Stimulus -->
  23.                 <button class="btn-close-search" data-action="click->search#closeSearchBar">x</button>
  24.                 <div class="search-bar" data-search-target="bar" style="width: 70%;max-width:800px;margin:0px auto">
  25.                     
  26.                     <form class="search-form d-flex">
  27.                         <input type="text" data-action="input->search#onInput" data-search-target="input" placeholder="Search...">
  28.                         <button class="btn btn-search"><i class="ri-search-line"></i></button>
  29.                     </form>
  30.                     <!-- Search results will be shown here -->
  31.                     <div data-search-target="results"></div>
  32.                 </div>
  33.             </div>
  34.         </div>
  35.     </div>
  36.     <!-- Header -->
  37.     <header class="header">
  38.         <nav class="navbar navbar-expand-lg fast-header fixed-top">
  39.             <div class="container">
  40.                 <a class="navbar-brand" href="{{ path('home_page') }}">
  41.                     <img src="{{ asset('build/images/logo.png') }}" class="img-fluid logo" alt="Fast Burner">
  42.                 </a>
  43.                 <div class="mobile-top-menu">
  44.                     <ul class="navbar-nav ms-auto mb-lg-0 login-menu d-flex align-items-center" style="gap:20px">
  45.                         <li class="nav-item">
  46.                             <a class="nav-link" href="#" id="search-toggle-btn">
  47.                                 <i class="ri-search-line"></i>
  48.                             </a>
  49.                         </li>
  50.                         <li class="nav-item">
  51.                             <a class="nav-link" href="{{ path('app.login') }}">
  52.                                 <i class="ri-user-line"></i>
  53.                             </a>
  54.                         </li>
  55.                         <li class="nav-item" data-controller="cart-counter" data-action="add-to-cart@window->cart-counter#handleAddToCart">
  56.                             <a class="nav-link fast-cart {% if app.request.get('_route') !='shopping_cart' %}btn-open-cartxx {% endif %}" href="{{ path('shopping_cart') }}">
  57.                                 <i class="ri-shopping-cart-line"></i>
  58.                                 <span class="cart-count d-flex align-items-center justify-content-center" data-cart-counter-target="cartCount">
  59.                                     {{ shopping_cart_counter()|length }}
  60.                                 </span>
  61.                             </a>
  62.                         </li>
  63.                     </ul>
  64.                 </div>
  65.                 <div class="fast-burger-menu-wrapper">
  66.                     <div class="navbar-toggler fast-burger-menu btn-primary-fast" data-bs-toggle="offcanvas" data-bs-target="#offcanvasRight" aria-controls="offcanvasRight">
  67.                         <div class="d-flex align-items-center justify-content-center burger-menu">
  68.                             <div>
  69.                                 <span></span>
  70.                                 <span></span>
  71.                                 <span></span>
  72.                             </div>
  73.                         </div>
  74.                     </div>
  75.                 </div>
  76.                 <div class="collapse navbar-collapse">
  77.                     
  78.                     {{ front_menu_render(0, 'menu/front_menu.html.twig') }}
  79.                     <ul class="navbar-nav ms-auto mb-2 mb-lg-0 login-menu d-flex align-items-center " style="gap:20px">
  80.                         <li class="nav-item">
  81.                             <a class="nav-link" href="#" id="search-toggle-btn">
  82.                                 <i class="ri-search-line"></i>
  83.                             </a>
  84.                         </li>
  85.                         <li class="nav-item">
  86.                             <a class="nav-link" href="{{ path('app.login') }}">
  87.                                 <i class="ri-user-line"></i>
  88.                             </a>
  89.                         </li>
  90.                         <li class="nav-item" data-controller="cart-counter" data-action="add-to-cart@window->cart-counter#handleAddToCart">
  91.                             <a class="nav-link fast-cart {% if app.request.get('_route') !='shopping_cart' %}btn-open-cart {% endif %}" href="{% if app.request.get('_route') =='shopping_cart' %} {{ path('shopping_cart') }} {% endif %}">
  92.                                 <i class="ri-shopping-cart-line"></i>
  93.                                 <span class="cart-count d-flex align-items-center justify-content-center" data-cart-counter-target="cartCount">
  94.                                     {{ shopping_cart_counter()|length }}
  95.                                 </span>
  96.                             </a>
  97.                         </li>
  98.                     </ul>
  99.                     
  100.                 </div>
  101.             </div>
  102.         </nav>
  103.         <!-- Right side overlay menu -->
  104.         <div class="offcanvas offcanvas-end fast-offcanvas" tabindex="-1" id="offcanvasRight">
  105.             <div class="offcanvas-header d-flex justify-content-end">
  106.               <button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
  107.             </div>
  108.             <div class="offcanvas-body">
  109.                  {{ front_menu_render(0, 'menu/menu_mobile.html.twig') }}
  110.             </div>
  111.         </div>
  112.         <!-- Right side overlay menu -->
  113.     </header>
  114.     <!-- Header -->
  115.     {% block page_container %} {% endblock %}
  116.     <!-- Footer -->
  117.     <footer class="fast-footer">
  118.         <div class="container">
  119.             <div class="row footer-second justify-content-center">
  120.                 <div class="col-lg-3">
  121.                     <h2 class="fast-footer-title">About us</h2>
  122.                     <div class="fast-contact-wrapper">
  123.                         <p>{{ setting('app_description') }}</p>
  124.                         <ul class="list-inline fast-social-icon-wrapper">
  125.                             <li class="list-inline-item">
  126.                                 <a href="#"><i class="icon icon-fb"></i></a>
  127.                             </li>
  128.                             <li class="list-inline-item">
  129.                                 <a href="#"><i class="icon icon-twitter"></i></a>
  130.                             </li>
  131.                             <li class="list-inline-item">
  132.                                 <a href="#"><i class="icon icon-pinterest"></i></a>
  133.                             </li>
  134.                             <li class="list-inline-item">
  135.                                 <a href="#"><i class="icon icon-youtube"></i></a>
  136.                             </li>
  137.                             <li class="list-inline-item">
  138.                                 <a href="#"><i class="icon icon-insta"></i></a>
  139.                             </li>
  140.                         </ul>
  141.                     </div>
  142.                 </div>
  143.                 <div class="col-lg-3">
  144.                     <h2 class="fast-footer-title">Contact Info</h2>
  145.                     <div class="fast-contact-wrapper">
  146.                         <div class="d-flex align-items-center justify-content-start mb-2">
  147.                             <div class="fast-contact-icon">
  148.                                 <i class="icon icon-geo"></i>
  149.                             </div>
  150.                             <div class="fast-contact-address">{{ setting('app_address') }}</div>
  151.                         </div>
  152.                         <div class="d-flex align-items-center justify-content-start">
  153.                             <div class="fast-contact-icon">
  154.                                 <i class="bi bi-telephone-x"></i>
  155.                             </div>
  156.                             <div class="fast-contact-address">{{ setting('primary_number') }}</div>
  157.                         </div>
  158.                         <div class="d-flex align-items-center justify-content-start">
  159.                             <div class="fast-contact-icon">
  160.                                <i class="bi bi-envelope"></i>
  161.                             </div>
  162.                             <div class="fast-contact-address">{{ setting('app_email') }}</div>
  163.                         </div>
  164.                     </div>
  165.                 </div>
  166.                 <div class="col-lg-3">
  167.                     <h2 class="fast-footer-title">Quick Links</h2>
  168.                     <div class="fast-contact-wrapper">
  169.                         <ul class="fast-footer-menu">
  170.                             <li><a href="{{ path('route_208') }}">Shipping</a></li>
  171.                             <li><a href="{{ path('route_207') }}">Return</a></li>
  172.                             <li><a href="{{ path('route_205') }}">Terms & Conditions</a></li>
  173.                             <li><a href="{{ path('route_152') }}">Privacy & Policy</a></li>
  174.                         </ul>
  175.                     </div>
  176.                 </div>
  177.             </div>
  178.         </div>
  179.     </footer>
  180.       <!-- Footer -->
  181.     <div class="modal fade" id="newletter-modal" tabindex="-1" aria-labelledby="subscriptionModalLabel" aria-hidden="true">
  182.         <div class="modal-dialog">
  183.             <div class="modal-content">
  184.                 <button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
  185.                     <span aria-hidden="true">&times;</span>
  186.                 </button>
  187.                 <div class="modal-body">
  188.                     {{ render(controller('App\\Controller\\SubscriptionController::signup',{'request':app.request})) }}
  189.                 </div>
  190.             </div>
  191.         </div>
  192.     </div>
  193.     {{ sonata_block_render({'type':'boab_cms.block.shopping_cart'},{
  194.         'template':'product/cart_drawers.html.twig'
  195.     })}}
  196.     
  197.     <script src="{{ asset('themes/castine/assets/js/respond.min.js') }}"></script>
  198.     <script src="{{ asset('themes/castine/assets/js/jquery.min.js') }}"></script>
  199.     <script src="{{ asset('themes/castine/assets/js/popper.min.js') }}"></script>
  200.     <script src="{{ asset('themes/castine/assets/js/bootstrap.min.js') }}"></script>
  201.     <script src="{{ asset('themes/castine/assets/js/owl.carousel.min.js') }}"></script>
  202.     <script src="{{ asset('themes/castine/assets/js/custom.js') }}"></script>
  203.     {{ encore_entry_script_tags('main') }}
  204.         <!--Start of Tawk.to Script
  205.         <script type="text/javascript">
  206.         var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
  207.         (function(){
  208.         var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
  209.         s1.async=true;
  210.         s1.src='https://embed.tawk.to/66e191cf50c10f7a00a7d989/1i7gi355s';
  211.         s1.charset='UTF-8';
  212.         s1.setAttribute('crossorigin','*');
  213.         s0.parentNode.insertBefore(s1,s0);
  214.         })();
  215.         </script>
  216.         End of Tawk.to Script-->
  217.     <script>
  218.         $(document).ready(function(){
  219.             $('#newletter-modalxx').modal('show');
  220.             
  221.             /*
  222.             if (!getCookie('newsletterModalShown')) {
  223.                 $('#newletter-modal').modal('show');
  224.                 setCookie('newsletterModalShown', 'true', 1); // Set cookie to expire in 1 day
  225.             }
  226.             $('#newletter-modal button.close').click(function(){
  227.                 // Manually close the modal
  228.                 $('#newletter-modal').modal('hide');
  229.             });
  230.             */
  231.         });
  232.         function setCookie(name, value, days) {
  233.             var expires = "";
  234.             if (days) {
  235.                 var date = new Date();
  236.                 date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
  237.                 expires = "; expires=" + date.toUTCString();
  238.             }
  239.             document.cookie = name + "=" + (value || "") + expires + "; path=/";
  240.         }
  241.         function getCookie(name) {
  242.             var nameEQ = name + "=";
  243.             var ca = document.cookie.split(';');
  244.             for (var i = 0; i < ca.length; i++) {
  245.                 var c = ca[i];
  246.                 while (c.charAt(0) == ' ') c = c.substring(1, c.length);
  247.                 if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
  248.             }
  249.             return null;
  250.         }
  251.         function eraseCookie(name) {
  252.             document.cookie = name + '=; Max-Age=-99999999;';
  253.         }
  254.         
  255.     </script>
  256.   </body>
  257. </html>