From e4abf3ed186dd72bc07506755d4a25c4cd81059c Mon Sep 17 00:00:00 2001 From: Julian Prieber <60265788+JulianPrieber@users.noreply.github.com> Date: Thu, 9 Jun 2022 14:41:26 +0200 Subject: [PATCH] Added option to apply theme to Home Page --- resources/views/home.blade.php | 44 ++++++++++++++++++++++++++++++---- storage/templates/meta.php | 8 ++++++- 2 files changed, 46 insertions(+), 6 deletions(-) diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php index 3177adb..1be4cc6 100755 --- a/resources/views/home.blade.php +++ b/resources/views/home.blade.php @@ -22,12 +22,9 @@ - - - @if(file_exists(base_path("littlelink/images/avatar.png" ))) @@ -35,9 +32,20 @@ @endif - {{-- custom font for logo text --}} - +@if(Config::get('meta.home_theme') != '' and Config::get('meta.home_theme') != 'default') + + + + +@if(file_exists(base_path('themes/' . Config::get('meta.home_theme') . '/animations.css'))) + +@else + +@endif + +@else + @if ($color_scheme_override == 'dark') @@ -51,9 +59,35 @@ @else @endif +@endif + + {{-- custom font for logo text --}} + + +@if(Config::get('meta.home_theme') != '' and Config::get('meta.home_theme') != 'default') + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +@endif + get(); foreach($pages as $page) diff --git a/storage/templates/meta.php b/storage/templates/meta.php index 3f137e8..e9f5561 100644 --- a/storage/templates/meta.php +++ b/storage/templates/meta.php @@ -121,13 +121,19 @@ return [ | */ - 'home_footer' => 'default', // Either 'default', 'alt', 'custom' or 'false' + 'home_footer' => 'default', // Either 'default', 'alt', 'custom' or 'false'. // You can enter plain text or HTML into this field. // You can use "{year}" as a placeholder for the current year. // So "©{year}" would output "©2033" (or whatever the current year is). 'custom_home_footer_text' => '© Copyright {year} - All Rights Reserved', + + // Apply a theme to your Home Page. + // Some themes are not compatible with the Home Page. Use at your own discretion. + // Enter the name of a theme located in your "themes" folder (for example, 'galaxy'). + 'home_theme' => 'default', // Leave empty or enter 'default' to use the default theme. + /* |-------------------------------------------------------------------------- | Custom Buttons on Home Page