File size: 5,652 Bytes
5f32fbd | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 | @php
$google_fonts_string = '';
$theme_google_fonts = Theme::getSetting('landingPage.googleFonts');
$app_js_path = 'resources/views/' . get_theme() . '/js/app.js';
$i = 0;
foreach ($theme_google_fonts as $font_name => $weights) {
$font_string = 'family=' . str_replace(' ', '+', $font_name);
if (!empty($weights)) {
$font_string .= ':wght@' . implode(';', $weights);
}
$google_fonts_string .= $font_string . ($i === count($theme_google_fonts) - 1 ? '' : '&');
$i++;
}
@endphp
<!DOCTYPE html>
<html
class="max-sm:overflow-x-hidden"
lang="{{ LaravelLocalization::getCurrentLocale() }}"
dir="{{ LaravelLocalization::getCurrentLocaleDirection() }}"
>
<head>
<meta charset="UTF-8" />
<meta
http-equiv="X-UA-Compatible"
content="IE=edge"
/>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
/>
<meta
name="description"
content="{{ getMetaDesc($setting) }}"
>
@if (isset($setting->meta_keywords))
<meta
name="keywords"
content="{{ $setting->meta_keywords }}"
>
@endif
<link
rel="icon"
href="{{ custom_theme_url($setting->favicon_path ?? 'assets/favicon.ico') }}"
>
<title>
{{ getMetaTitle($setting) }}
</title>
@if (filled($google_fonts_string))
<link
rel="preconnect"
href="https://fonts.googleapis.com"
>
<link
rel="preconnect"
href="https://fonts.gstatic.com"
crossorigin
>
<link
href="https://fonts.googleapis.com/css2?{{ $google_fonts_string }}&display=swap"
rel="stylesheet"
>
@endif
<link
rel="stylesheet"
href="{{ custom_theme_url('assets/css/frontend/flickity.min.css') }}"
>
<link
href="{{ custom_theme_url('assets/libs/toastr/toastr.min.css') }}"
rel="stylesheet"
/>
@php
$link = 'resources/views/' . get_theme() . '/scss/landing-page.scss';
@endphp
@vite($link)
@if ($setting->frontend_custom_css != null)
<link
rel="stylesheet"
href="{{ $setting->frontend_custom_css }}"
/>
@endif
@if ($setting->frontend_code_before_head != null)
{!! $setting->frontend_code_before_head !!}
@endif
<script>
window.liquid = {
isLandingPage: true
};
</script>
<style>
.google-ads-728 {
width: 100%;
max-width: 728px;
height: auto;
}
</style>
<!--Google AdSense-->
{!! adsense_header() !!}
<!--Google AdSense End-->
{{-- Rewordfull start --}}
{{-- <script>(function(w,r){w._rwq=r;w[r]=w[r]||function(){(w[r].q=w[r].q||[]).push(arguments)}})(window,'rewardful');</script> --}}
{{-- <script async src='https://r.wdfl.co/rw.js' data-rewardful='API_KEY'></script> --}}
{{-- Rewordfull end --}}
@vite($app_js_path)
@stack('css')
@if (setting('additional_custom_css') != null)
{!! setting('additional_custom_css') !!}
@endif
@livewireStyles
</head>
<body class="group/body bg-background font-body text-foreground">
<div
class="pointer-events-none invisible fixed left-0 right-0 top-0 z-[99] opacity-0 transition-opacity"
id="app-loading-indicator"
x-data
:class="{ 'opacity-0': !$store.appLoadingIndicator.showing, 'invisible': !$store.appLoadingIndicator.showing }"
>
<div class="lqd-progress relative h-[3px] w-full bg-foreground/10">
<div class="lqd-progress-bar lqd-progress-bar-indeterminate lqd-app-loading-indicator-progress-bar absolute inset-0 bg-primary dark:bg-heading-foreground">
</div>
</div>
</div>
@include('layout.header')
@yield('content')
@include('layout.footer')
@if ($setting->frontend_custom_js != null)
<script src="{{ $setting->frontend_custom_js }}"></script>
@endif
@if ($setting->frontend_code_before_body != null)
{!! $setting->frontend_code_before_body !!}
@endif
<script src="{{ custom_theme_url('assets/libs/jquery/jquery.min.js') }}"></script>
@if (in_array($settings_two->chatbot_status, ['frontend', 'both']))
<script src="{{ custom_theme_url('assets/js/panel/openai_chatbot.js') }}"></script>
@endif
<script src="{{ custom_theme_url('assets/libs/vanillajs-scrollspy.min.js') }}"></script>
<script src="{{ custom_theme_url('assets/libs/flickity.pkgd.min.js') }}"></script>
<script src="{{ custom_theme_url('assets/js/frontend.js') }}"></script>
<script src="{{ custom_theme_url('assets/js/frontend/frontend-animations.js') }}"></script>
<script src="{{ custom_theme_url('assets/libs/vanillajs-scrollspy.min.js') }}"></script>
<script src="{{ custom_theme_url('assets/libs/flickity.pkgd.min.js') }}"></script>
<script src="{{ custom_theme_url('assets/js/frontend/frontend-animations.js') }}"></script>
@if ($setting->gdpr_status == 1)
<script src="{{ custom_theme_url('assets/js/gdpr.js') }}"></script>
@endif
<script src="{{ custom_theme_url('assets/libs/fslightbox/fslightbox.js') }}"></script>
<script src="{{ custom_theme_url('assets/libs/toastr/toastr.min.js') }}"></script>
@if (\Session::has('message'))
<script>
toastr.{{ \Session::get('type') }}('{{ \Session::get('message') }}')
</script>
@endif
@livewireScriptConfig()
@stack('script')
</body>
</html>
|