Added option to apply theme to Home Page
This commit is contained in:
parent
2bb8f57c1d
commit
e4abf3ed18
|
@ -22,12 +22,9 @@
|
|||
|
||||
<!-- Custom icons font-awesome -->
|
||||
<script src="https://kit.fontawesome.com/c4a5e06183.js" crossorigin="anonymous"></script>
|
||||
<link rel="stylesheet" href="{{ asset('littlelink/css/animations.css') }}">
|
||||
|
||||
<link href="//fonts.googleapis.com/css?family=Open+Sans:400,600,800&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="{{ asset('littlelink/css/normalize.css') }}">
|
||||
<link rel="stylesheet" href="{{ asset('littlelink/css/brands.css') }}">
|
||||
<link rel="stylesheet" href="{{ asset('littlelink/css/hover-min.css') }}">
|
||||
<link rel="stylesheet" href="{{ asset('littlelink/css/animate.css') }}">
|
||||
@if(file_exists(base_path("littlelink/images/avatar.png" )))
|
||||
<link rel="icon" type="image/png" href="{{ asset('littlelink/images/avatar.png') }}">
|
||||
|
@ -35,9 +32,20 @@
|
|||
<link rel="icon" type="image/svg+xml" href="{{ asset('littlelink/images/logo.svg') }}">
|
||||
@endif
|
||||
|
||||
{{-- custom font for logo text --}}
|
||||
<style>@font-face{font-family:'ll';src:url({{ asset('littlelink/fonts/littlelink-custom.otf') }}) format("opentype")}</style>
|
||||
@if(Config::get('meta.home_theme') != '' and Config::get('meta.home_theme') != 'default')
|
||||
|
||||
<!-- LittleLink Custom Theme: "{{Config::get('meta.home_theme')}}" -->
|
||||
|
||||
<link rel="stylesheet" href="themes/{{Config::get('meta.home_theme')}}/brands.css">
|
||||
<link rel="stylesheet" href="themes/{{Config::get('meta.home_theme')}}/skeleton-auto.css">
|
||||
@if(file_exists(base_path('themes/' . Config::get('meta.home_theme') . '/animations.css')))
|
||||
<link rel="stylesheet" href="<?php echo asset('themes/' . Config::get('meta.home_theme') . '/animations.css') ?>">
|
||||
@else
|
||||
<link rel="stylesheet" href="{{ asset('littlelink/css/animations.css') }}">
|
||||
@endif
|
||||
|
||||
@else
|
||||
<link rel="stylesheet" href="{{ asset('littlelink/css/brands.css') }}">
|
||||
<?php // override dark/light mode if override cookie is set
|
||||
$color_scheme_override = isset($_COOKIE["color_scheme_override"]) ? $_COOKIE["color_scheme_override"] : false; ?>
|
||||
@if ($color_scheme_override == 'dark')
|
||||
|
@ -51,9 +59,35 @@
|
|||
@else
|
||||
<link rel="stylesheet" href="{{ asset('littlelink/css/skeleton-auto.css') }}">
|
||||
@endif
|
||||
@endif
|
||||
|
||||
{{-- custom font for logo text --}}
|
||||
<style>@font-face{font-family:'ll';src:url({{ asset('littlelink/fonts/littlelink-custom.otf') }}) format("opentype")}</style>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@if(Config::get('meta.home_theme') != '' and Config::get('meta.home_theme') != 'default')
|
||||
<!-- Enables parallax background animations -->
|
||||
<div class="background-container">
|
||||
<section class="parallax-background">
|
||||
<div id="object1" class="object1"></div>
|
||||
<div id="object2" class="object2"></div>
|
||||
<div id="object3" class="object3"></div>
|
||||
<div id="object4" class="object4"></div>
|
||||
<div id="object5" class="object5"></div>
|
||||
<div id="object6" class="object6"></div>
|
||||
<div id="object7" class="object7"></div>
|
||||
<div id="object8" class="object8"></div>
|
||||
<div id="object9" class="object9"></div>
|
||||
<div id="object10" class="object10"></div>
|
||||
<div id="object11" class="object11"></div>
|
||||
<div id="object12" class="object12"></div>
|
||||
</section>
|
||||
</div>
|
||||
<!-- End of parallax background animations -->
|
||||
@endif
|
||||
|
||||
<?php
|
||||
$pages = DB::table('pages')->get();
|
||||
foreach($pages as $page)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue