mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-04-15 18:57:20 +02:00
Added option to change footer links and texts
This commit is contained in:
parent
a3262e35ab
commit
a83d00a628
@ -137,7 +137,16 @@ foreach($pages as $page)
|
|||||||
@endif
|
@endif
|
||||||
</br></br>
|
</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>
|
<p>and {{ $countButton - 3 }} other buttons ...</p>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
|
||||||
<hr class="my-4" style="display:none">
|
<hr class="my-4" style="display:none">
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="footer fadein" style="margin:5% 0px 35px 0px;">
|
<div class="footer fadein" style="margin:5% 0px 35px 0px;">
|
||||||
@if(env('DISPLAY_FOOTER') === true)
|
@if(env('DISPLAY_FOOTER') === true)
|
||||||
<a class="footer-hover spacing" href="{{ url('') }}/">Home</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
|
||||||
<a class="footer-hover spacing" href="{{ url('') }}/pages/terms">Terms</a>
|
@if(Config::get('meta.display_link_terms') != 'false')<a class="footer-hover spacing" href="{{ url('') }}/pages/terms">Terms</a>@endif
|
||||||
<a class="footer-hover spacing" href="{{ url('') }}/pages/privacy">Privacy</a>
|
@if(Config::get('meta.display_link_privacy') != 'false')<a class="footer-hover spacing" href="{{ url('') }}/pages/privacy">Privacy</a>@endif
|
||||||
<a class="footer-hover spacing" href="{{ url('') }}/pages/contact">Contact</a>
|
@if(Config::get('meta.display_link_contact') != 'false')<a class="footer-hover spacing" href="{{ url('') }}/pages/contact">Contact</a>@endif
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -23,8 +23,6 @@ $analytics =
|
|||||||
<!--------------------------------------------------->
|
<!--------------------------------------------------->
|
||||||
EOD;;
|
EOD;;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -33,8 +31,8 @@ return [
|
|||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Will only be active if "CUSTOM_META_TAGS" is set to "true" in the config.
|
| 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
|
| These tags will only be applied to the home page or if a LittleLink page
|
||||||
| (For example: HOME_URL="@admin").
|
| is set as the homepage in the config (for example: HOME_URL="@admin").
|
||||||
|
|
|
|
||||||
| Empty entries will be ignored.
|
| Empty entries will be ignored.
|
||||||
|
|
|
|
||||||
@ -49,6 +47,12 @@ return [
|
|||||||
'twitter_creator' => '', // Twitter @username. For example: "@elonmusk".
|
'twitter_creator' => '', // Twitter @username. For example: "@elonmusk".
|
||||||
'author' => '', // Your name.
|
'author' => '', // Your name.
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
| All settings below are always active
|
||||||
|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Additional settings
|
| Additional settings
|
||||||
@ -60,7 +64,7 @@ return [
|
|||||||
|
|
||||||
|
|
||||||
// Overwrites default theme regardless of preference defined by the operating system, unless manually overwritten by user.
|
// 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.
|
// 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"
|
// Example: "admin 🔗 LittleLink Custom"
|
||||||
// ⤌------------------⤍
|
// ⤌------------------⤍
|
||||||
// ⬑ What you can change with this setting.
|
// ⬑ What you can change with this setting.
|
||||||
'littlelink_title' => '',
|
'littlelink_title' => '',
|
||||||
|
|
||||||
|
|
||||||
// Either "true", "false" or "auth".
|
// Either "true", "false" or "auth".
|
||||||
@ -77,9 +81,53 @@ return [
|
|||||||
|
|
||||||
|
|
||||||
// Do not change here!
|
// 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
|
| Custom Buttons on Home Page
|
||||||
|
Loading…
x
Reference in New Issue
Block a user