@php // Theme Config if (!function_exists('theme')) { function theme($key){ $key = trim($key); $file = base_path('themes/' . $GLOBALS['themeName'] . '/config.php'); if (file_exists($file)) { $config = include $file; if (isset($config[$key])) { return $config[$key]; }} return null;} } // Theme Custom Asset if (!function_exists('themeAsset')) { function themeAsset($path){ $path = url('themes/' . $GLOBALS['themeName'] . '/extra/custom-assets/' . $path); return $path;} } $customBackgroundExists = false; @endphp @foreach($information as $info) @php $GLOBALS['themeName'] = $info->theme; @endphp @endforeach @if(theme('allow_custom_background') != "false") @php $customBackgroundFile = findBackground($userinfo->id); $customBackgroundPath = base_path('assets/img/background-img/'.$customBackgroundFile); $customBackgroundURL = url('assets/img/background-img/'.$customBackgroundFile); $customBackgroundExists = file_exists($customBackgroundPath) @endphp @if($customBackgroundExists == true) @endif @endif @push('linkstack-head-end') @if(theme('enable_custom_code') == "true" and theme('enable_custom_head') == "true" and env('ALLOW_CUSTOM_CODE_IN_THEMES') == 'true')@include($GLOBALS['themeName'] . '.extra.custom-head')@endif @if($info->theme != '' and $info->theme != 'default') @if(theme('use_default_buttons') == "true") @else @endif @if(file_exists(base_path('themes/' . $info->theme . '/animations.css'))) @else @endif @else @endif @endpush @push('linkstack-body-start') @if(theme('enable_custom_code') == "true" and theme('enable_custom_body') == "true" and env('ALLOW_CUSTOM_CODE_IN_THEMES') == 'true')@include($GLOBALS['themeName'] . '.extra.custom-body')@endif @if($info->theme != '' and $info->theme != 'default')
@endif @endpush @push('linkstack-body-end') @if(theme('enable_custom_code') == "true" and theme('enable_custom_body_end') == "true" and env('ALLOW_CUSTOM_CODE_IN_THEMES') == 'true')@include($GLOBALS['themeName'] . '.extra.custom-body-end')@endif @endpush @include('linkstack.modules.dynamic-contrast')