Update DarkMode inclusion to use Blade syntax in view files

This commit is contained in:
Julian Prieber 2024-12-20 11:49:15 +01:00
parent 6b48bc2d18
commit bc65ee9cc6
5 changed files with 10 additions and 5 deletions

View File

@ -1,4 +1,3 @@
<?php include app_path("View/Includes/DarkMode.php"); ?>
<!doctype html> <!doctype html>
@include('layouts.lang') @include('layouts.lang')
<head> <head>
@ -10,6 +9,8 @@
@else @else
<title>{{ config('app.name') }}</title> <title>{{ config('app.name') }}</title>
@endif @endif
@php include app_path("View/Includes/DarkMode.php"); @endphp
<!--#### BEGIN Meta Tags social media preview images ####--> <!--#### BEGIN Meta Tags social media preview images ####-->
<!-- This shows a preview for title, description and avatar image of users profiles if shared on social media sites --> <!-- This shows a preview for title, description and avatar image of users profiles if shared on social media sites -->

View File

@ -1,4 +1,3 @@
<?php include app_path("View/Includes/DarkMode.php"); ?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head> <head>
@ -17,6 +16,8 @@
<title>{{ config('app.name') }}</title> <title>{{ config('app.name') }}</title>
@php include app_path("View/Includes/DarkMode.php"); @endphp
<!-- Fonts --> <!-- Fonts -->
@include('layouts.fonts') @include('layouts.fonts')

View File

@ -2,7 +2,6 @@
use SimpleSoftwareIO\QrCode\Facades\QrCode; use SimpleSoftwareIO\QrCode\Facades\QrCode;
use App\Models\User; use App\Models\User;
use App\Models\UserData; use App\Models\UserData;
include app_path("View/Includes/DarkMode.php");
$usrhandl = Auth::user()->littlelink_name; $usrhandl = Auth::user()->littlelink_name;
@ -20,6 +19,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>{{ env('APP_NAME') }}</title> <title>{{ env('APP_NAME') }}</title>
@php include app_path("View/Includes/DarkMode.php"); @endphp
@if($spa) @if($spa)
@livewireStyles @livewireStyles
@endif @endif

View File

@ -1,4 +1,3 @@
<?php include app_path("View/Includes/DarkMode.php"); ?>
<!doctype html> <!doctype html>
@include('layouts.lang') @include('layouts.lang')
<head> <head>
@ -10,6 +9,8 @@
@else @else
<title>{{ config('app.name') }}</title> <title>{{ config('app.name') }}</title>
@endif @endif
@php include app_path("View/Includes/DarkMode.php"); @endphp
<!-- Favicon --> <!-- Favicon -->
@if(file_exists(base_path("assets/linkstack/images/").findFile('favicon'))) @if(file_exists(base_path("assets/linkstack/images/").findFile('favicon')))

View File

@ -1,4 +1,3 @@
<?php include app_path("View/Includes/DarkMode.php"); ?>
<!doctype html> <!doctype html>
@include('layouts.lang') @include('layouts.lang')
<head> <head>
@ -11,6 +10,8 @@
<title>{{ config('app.name') }}</title> <title>{{ config('app.name') }}</title>
@endif @endif
@php include app_path("View/Includes/DarkMode.php"); @endphp
<!-- Favicon --> <!-- Favicon -->
@if(file_exists(base_path("assets/linkstack/images/").findFile('favicon'))) @if(file_exists(base_path("assets/linkstack/images/").findFile('favicon')))
<link rel="icon" type="image/png" href="{{ asset('assets/linkstack/images/'.findFile('favicon')) }}"> <link rel="icon" type="image/png" href="{{ asset('assets/linkstack/images/'.findFile('favicon')) }}">