From a83d00a62898c0169bec2b59684f6b052b4f6706 Mon Sep 17 00:00:00 2001
From: Julian Prieber <60265788+JulianPrieber@users.noreply.github.com>
Date: Thu, 9 Jun 2022 12:33:23 +0200
Subject: [PATCH] Added option to change footer links and texts
---
resources/views/home.blade.php | 11 ++++-
resources/views/layouts/footer.blade.php | 10 ++--
storage/templates/meta.php | 62 +++++++++++++++++++++---
3 files changed, 70 insertions(+), 13 deletions(-)
diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php
index e5f45bd..3177adb 100755
--- a/resources/views/home.blade.php
+++ b/resources/views/home.blade.php
@@ -137,8 +137,17 @@ foreach($pages as $page)
@endif
+
+ @if(Config::get('meta.home_footer') == 'custom')
+
$year)); ?>
+ @elseif(Config::get('meta.home_footer') == 'alt')
+
- Button combinations
+ @elseif(Config::get('meta.home_footer') == 'false')
+ @else
and {{ $countButton - 3 }} other buttons ...
-
+ @endif
+
+
updated pages
diff --git a/resources/views/layouts/footer.blade.php b/resources/views/layouts/footer.blade.php
index 1a0908a..688c348 100755
--- a/resources/views/layouts/footer.blade.php
+++ b/resources/views/layouts/footer.blade.php
@@ -1,10 +1,10 @@
@@ -20,4 +20,4 @@
@endif
-
+
\ No newline at end of file
diff --git a/storage/templates/meta.php b/storage/templates/meta.php
index ca2d5b7..8ce163c 100644
--- a/storage/templates/meta.php
+++ b/storage/templates/meta.php
@@ -23,8 +23,6 @@ $analytics =
EOD;;
-
-
return [
/*
@@ -33,8 +31,8 @@ return [
|--------------------------------------------------------------------------
|
| Will only be active if "CUSTOM_META_TAGS" is set to "true" in the config.
- | These tags will only be applied to the home page or if a LittleLink page is set as the homepage in the config
- | (For example: HOME_URL="@admin").
+ | These tags will only be applied to the home page or if a LittleLink page
+ | is set as the homepage in the config (for example: HOME_URL="@admin").
|
| Empty entries will be ignored.
|
@@ -49,6 +47,12 @@ return [
'twitter_creator' => '', // Twitter @username. For example: "@elonmusk".
'author' => '', // Your name.
+
+ /*
+ | All settings below are always active
+ |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+
/*
|--------------------------------------------------------------------------
| Additional settings
@@ -60,7 +64,7 @@ return [
// Overwrites default theme regardless of preference defined by the operating system, unless manually overwritten by user.
- 'theme' => '', // Either "dark" or "light".
+ 'theme' => '', // Either "dark" or "light".
// Overwrites default theme regardless of preference defined by the operating system, unless manually overwritten by user.
@@ -68,7 +72,7 @@ return [
// Example: "admin 🔗 LittleLink Custom"
// ⤌------------------⤍
// ⬑ What you can change with this setting.
- 'littlelink_title' => '',
+ 'littlelink_title' => '',
// Either "true", "false" or "auth".
@@ -77,9 +81,53 @@ return [
// Do not change here!
- 'analytics' => $analytics, // Set on top of page.
+ 'analytics' => $analytics, // Set on top of page.
+ /*
+ |--------------------------------------------------------------------------
+ | Footer links
+ |--------------------------------------------------------------------------
+ |
+ | Footer links are the links that are displayed on the bottom of your page, reading: "Home, Terms, Privacy, Contact".
+ | You can toggle each individual link on or off.
+ | You can also set a custom URL for the "Home" link.
+ |
+ */
+
+ // Either "true" or "false".
+ 'display_link_home' => 'true',
+ 'display_link_terms' => 'true',
+ 'display_link_privacy' => 'true',
+ 'display_link_contact' => 'true',
+
+ 'custom_link_home' => '', // Leave empty to use default value.
+
+ /*
+ |--------------------------------------------------------------------------
+ | Home Page settings
+ |--------------------------------------------------------------------------
+ |
+ | To change footer text on the Home Page, set the setting 'footer' to your preference.
+ |
+ | The footer text is the towards the bottom of the Home Page that reads: "and X other buttons ..."
+ |
+ | Depending on the amount of buttons on your Home Page, you might want to change this text.
+ |
+ | 'default' -> Uses default text.
+ | 'alt' -> Displays an alternative version based on the Button Editor.
+ | 'custom' -> Displays your custom text defined with 'custom_footer_text'.
+ | 'false' -> Removes the footer.
+ |
+ */
+
+ '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',
+
/*
|--------------------------------------------------------------------------
| Custom Buttons on Home Page