Added option to change footer links and texts

This commit is contained in:
Julian Prieber 2022-06-09 12:33:23 +02:00
parent a3262e35ab
commit a83d00a628
3 changed files with 70 additions and 13 deletions

View File

@ -137,8 +137,17 @@ foreach($pages as $page)
@endif
</br></br>
<div class="fadein">
@if(Config::get('meta.home_footer') == 'custom')
<p><?php $year = date("Y"); echo strtr(Config::get('meta.custom_home_footer_text'), array('{year}' => $year)); ?></p>
@elseif(Config::get('meta.home_footer') == 'alt')
<p><i style="position:relative;top:1px;" class="fa-solid fa-infinity"></i> - Button combinations</p>
@elseif(Config::get('meta.home_footer') == 'false')
@else
<p>and {{ $countButton - 3 }} other buttons ...</p>
@endif
</div>
<hr class="my-4" style="display:none">
<p style="display:none">updated pages</p>

View File

@ -1,10 +1,10 @@
<div class="container">
<div class="footer fadein" style="margin:5% 0px 35px 0px;">
@if(env('DISPLAY_FOOTER') === true)
<a class="footer-hover spacing" href="{{ url('') }}/">Home</a>
<a class="footer-hover spacing" href="{{ url('') }}/pages/terms">Terms</a>
<a class="footer-hover spacing" href="{{ url('') }}/pages/privacy">Privacy</a>
<a class="footer-hover spacing" href="{{ url('') }}/pages/contact">Contact</a>
@if(Config::get('meta.display_link_home') != 'false')<a class="footer-hover spacing" @if(Config::get('meta.custom_link_home') != '')href="{{ Config::get('meta.custom_link_home') }}"@else href="{{ url('') }}/"@endif>Home</a>@endif
@if(Config::get('meta.display_link_terms') != 'false')<a class="footer-hover spacing" href="{{ url('') }}/pages/terms">Terms</a>@endif
@if(Config::get('meta.display_link_privacy') != 'false')<a class="footer-hover spacing" href="{{ url('') }}/pages/privacy">Privacy</a>@endif
@if(Config::get('meta.display_link_contact') != 'false')<a class="footer-hover spacing" href="{{ url('') }}/pages/contact">Contact</a>@endif
@endif
</div>
@ -20,4 +20,4 @@
</section>
</a></div><br><br><br>
@endif
</div>
</div>

View File

@ -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