{{-- * LaraClassifier - Classified Ads Web Application * Copyright (c) BeDigit. All Rights Reserved * * Website: https://laraclassifier.com * Author: Mayeul Akpovi (BeDigit - https://bedigit.com) * * LICENSE * ------- * This software is furnished under a license and may be used and copied * only in accordance with the terms of such license and with the inclusion * of the above copyright notice. If you Purchased from CodeCanyon, * Please read the full License from here - https://codecanyon.net/licenses/standard --}} @php $htmlLang = getLangTag(config('app.locale')); $htmlDir = (config('lang.direction') == 'rtl') ? ' dir="rtl"' : ''; $htmlTheme = isDarkModeEnabledForCurrentUser() ? ' theme="dark"' : ''; $plugins = array_keys((array)config('plugins')); @endphp @includeFirst([config('larapen.core.customizedViewPath') . 'common.meta-robots', 'common.meta-robots']) {!! MetaTag::get('title') !!} {!! MetaTag::tag('description') !!}{!! MetaTag::tag('keywords') !!} {{-- Specify a default target for all hyperlinks and forms on the page --}} @if (isset($post)) @if (isVerifiedPost($post)) @if (config('services.facebook.client_id')) @endif {!! $og->renderTags() !!} {!! MetaTag::twitterCard() !!} @endif @else @if (config('services.facebook.client_id')) @endif {!! $og->renderTags() !!} {!! MetaTag::twitterCard() !!} @endif @include('feed::links') {!! seoSiteVerification() !!} @if (file_exists(public_path('manifest.json'))) @endif @stack('before_styles_stack') @yield('before_styles') @if (config('lang.direction') == 'rtl') @else @endif @if (config('plugins.detectadsblocker.installed')) @endif @php $skinQs = (request()->filled('skin')) ? '?skin=' . request()->query('skin') : null; if (request()->filled('display')) { $skinQs .= (!empty($skinQs)) ? '&' : '?'; $skinQs .= 'display=' . request()->query('display'); } // style.css $styleCssUrl = url('common/css/style.css') . $skinQs . getPictureVersion(!empty($skinQs)); @endphp @php $homeStyle = ''; if (isset($searchFormOptions) && is_array($searchFormOptions)) { $homeStyle = view('common.css.homepage', ['searchFormOptions', $searchFormOptions])->render(); } @endphp {!! $homeStyle !!} @stack('after_styles_stack') @yield('after_styles') @if (!empty($plugins)) @foreach($plugins as $plugin) @yield($plugin . '_styles') @endforeach @endif @if (config('settings.style.custom_css')) {!! printCss(config('settings.style.custom_css')) . "\n" !!} @endif @if (config('settings.other.js_code')) {!! printJs(config('settings.other.js_code')) . "\n" !!} @endif @include('common.js.document') @yield('captcha_head') @section('recaptcha_head') @php $captcha = config('settings.security.captcha'); $reCaptchaVersion = config('recaptcha.version', 'v2'); $isReCaptchaEnabled = ( $captcha == 'recaptcha' && !empty(config('recaptcha.site_key')) && !empty(config('recaptcha.secret_key')) && in_array($reCaptchaVersion, ['v2', 'v3']) ); @endphp @if ($isReCaptchaEnabled) @if ($reCaptchaVersion == 'v3') {!! recaptchaApiV3JsScriptTag([ 'action' => request()->path(), 'custom_validation' => 'myCustomValidation' ]) !!} @else {!! recaptchaApiJsScriptTag() !!} @endif @endif @show
@section('header') @includeFirst([config('larapen.core.customizedViewPath') . 'layouts.inc.header', 'layouts.inc.header']) @show @section('search') @show @section('wizard') @show @if (isset($siteCountryInfo))
{!! $siteCountryInfo !!}
@endif @yield('content') @section('info') @show @includeFirst([config('larapen.core.customizedViewPath') . 'layouts.inc.advertising.auto', 'layouts.inc.advertising.auto']) @section('footer') @includeFirst([config('larapen.core.customizedViewPath') . 'layouts.inc.footer', 'layouts.inc.footer']) @show
@section('modal_location') @show @section('modal_abuse') @show @section('modal_message') @show @includeWhen(!auth()->check(), 'auth.login.inc.modal') @includeFirst([config('larapen.core.customizedViewPath') . 'layouts.inc.modal.change-country', 'layouts.inc.modal.change-country']) @includeFirst([config('larapen.core.customizedViewPath') . 'layouts.inc.modal.error', 'layouts.inc.modal.error']) @include('cookie-consent::index') @if (config('plugins.detectadsblocker.installed')) @if (view()->exists('detectadsblocker::modal')) @include('detectadsblocker::modal') @endif @endif @include('common.js.init') @stack('before_scripts_stack') @yield('before_scripts') @if (config('settings.optimization.lazy_loading_activation') == 1) @endif @php $select2LangFilePath = 'assets/plugins/select2/js/i18n/' . config('app.locale') . '.js'; @endphp @if (file_exists(public_path($select2LangFilePath))) @endif @if (config('plugins.detectadsblocker.installed')) @endif @stack('after_scripts_stack') @yield('after_scripts') @yield('captcha_footer') @if (!empty($plugins)) @foreach($plugins as $plugin) @yield($plugin . '_scripts') @endforeach @endif @if (config('settings.footer.tracking_code')) {!! printJs(config('settings.footer.tracking_code')) . "\n" !!} @endif