Renamed meta.php to config.php
This commit is contained in:
parent
4996976975
commit
6e9bad6751
|
@ -5,8 +5,8 @@
|
|||
|
||||
@include('layouts.analytics')
|
||||
|
||||
@if(env('CUSTOM_META_TAGS') == 'true' and Config::get('meta.title') != '')
|
||||
<title>{{ Config::get('meta.title') }}</title>
|
||||
@if(env('CUSTOM_META_TAGS') == 'true' and config('meta.title') != '')
|
||||
<title>{{ config('meta.title') }}</title>
|
||||
@else
|
||||
<title>{{ config('app.name') }}</title>
|
||||
@endif
|
||||
|
@ -32,14 +32,14 @@
|
|||
<link rel="icon" type="image/svg+xml" href="{{ asset('littlelink/images/logo.svg') }}">
|
||||
@endif
|
||||
|
||||
@if(Config::get('meta.home_theme') != '' and Config::get('meta.home_theme') != 'default')
|
||||
@if(config('meta.home_theme') != '' and config('meta.home_theme') != 'default')
|
||||
|
||||
<!-- LittleLink Custom Theme: "{{Config::get('meta.home_theme')}}" -->
|
||||
<!-- LittleLink Custom Theme: "{{config('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') ?>">
|
||||
<link rel="stylesheet" href="themes/{{config('meta.home_theme')}}/brands.css">
|
||||
<link rel="stylesheet" href="themes/{{config('meta.home_theme')}}/skeleton-auto.css">
|
||||
@if(file_exists(base_path('themes/' . config('meta.home_theme') . '/animations.css')))
|
||||
<link rel="stylesheet" href="<?php echo asset('themes/' . config('meta.home_theme') . '/animations.css') ?>">
|
||||
@else
|
||||
<link rel="stylesheet" href="{{ asset('littlelink/css/animations.css') }}">
|
||||
@endif
|
||||
|
@ -53,9 +53,9 @@
|
|||
<link rel="stylesheet" href="{{ asset('littlelink/css/skeleton-dark.css') }}">
|
||||
@elseif ($color_scheme_override == 'light')
|
||||
<link rel="stylesheet" href="{{ asset('littlelink/css/skeleton-light.css') }}">
|
||||
@elseif (Config::get('meta.theme') == 'dark')
|
||||
@elseif (config('meta.theme') == 'dark')
|
||||
<link rel="stylesheet" href="{{ asset('littlelink/css/skeleton-dark.css') }}">
|
||||
@elseif (Config::get('meta.theme') == 'light')
|
||||
@elseif (config('meta.theme') == 'light')
|
||||
<link rel="stylesheet" href="{{ asset('littlelink/css/skeleton-light.css') }}">
|
||||
@else
|
||||
<link rel="stylesheet" href="{{ asset('littlelink/css/skeleton-auto.css') }}">
|
||||
|
@ -68,7 +68,7 @@
|
|||
</head>
|
||||
<body>
|
||||
|
||||
@if(Config::get('meta.home_theme') != '' and Config::get('meta.home_theme') != 'default')
|
||||
@if(config('meta.home_theme') != '' and config('meta.home_theme') != 'default')
|
||||
<!-- Enables parallax background animations -->
|
||||
<div class="background-container">
|
||||
<section class="parallax-background">
|
||||
|
@ -136,8 +136,8 @@ foreach($pages as $page)
|
|||
|
||||
<!-- Buttons -->
|
||||
<?php $initial=1; // <-- Effectively sets the initial loading time of the buttons. This value should be left at 1. ?>
|
||||
@if(Config::get('meta.use_custom_buttons') == 'true')
|
||||
<?php $array = Config::get('meta.buttons'); ?>
|
||||
@if(config('meta.use_custom_buttons') == 'true')
|
||||
<?php $array = config('meta.buttons'); ?>
|
||||
@foreach($array as $button)
|
||||
@php $linkName = str_replace('default ','',$button['button']) @endphp
|
||||
@if($button['button'] === "custom" and $button['custom_css'] === "" or $button['custom_css'] === "NULL")
|
||||
|
@ -173,11 +173,11 @@ foreach($pages as $page)
|
|||
</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')
|
||||
@if(config('meta.home_footer') == 'custom')
|
||||
<p><?php $year = date("Y"); echo strtr(config('meta.custom_home_footer_text'), array('{year}' => $year)); ?></p>
|
||||
@elseif(config('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')
|
||||
@elseif(config('meta.home_footer') == 'false')
|
||||
@else
|
||||
<p>and {{ $countButton - 3 }} other buttons ...</p>
|
||||
@endif
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
$analyticsHTML = Config::get('meta.analytics');
|
||||
$analyticsHTML = config('meta.analytics');
|
||||
$analyticsHTML = preg_replace("~<!--(.*?)-->~s", "", $analyticsHTML);
|
||||
$analyticsHTML = trim($analyticsHTML);
|
||||
?>
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<div class="container">
|
||||
<div class="footer fadein" style="margin:5% 0px 35px 0px;">
|
||||
@if(env('DISPLAY_FOOTER') === true)
|
||||
@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> @if(Config::get('meta.custom_text_home') != ''){{Config::get('meta.custom_text_home')}}@else Home @endif</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
|
||||
@if(config('meta.display_link_home') != 'false')<a class="footer-hover spacing" @if(config('meta.custom_link_home') != '')href="{{ config('meta.custom_link_home') }}"@else href="{{ url('') }}/"@endif> @if(config('meta.custom_text_home') != ''){{config('meta.custom_text_home')}}@else Home @endif</a>@endif
|
||||
@if(config('meta.display_link_terms') != 'false')<a class="footer-hover spacing" href="{{ url('') }}/pages/terms">Terms</a>@endif
|
||||
@if(config('meta.display_link_privacy') != 'false')<a class="footer-hover spacing" href="{{ url('') }}/pages/privacy">Privacy</a>@endif
|
||||
@if(config('meta.display_link_contact') != 'false')<a class="footer-hover spacing" href="{{ url('') }}/pages/contact">Contact</a>@endif
|
||||
@endif
|
||||
</div>
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
<?php // loads dark mode CSS if dark mode detected
|
||||
$color_scheme = isset($_COOKIE["color_scheme"]) ? $_COOKIE["color_scheme"] : false;
|
||||
$color_scheme_override = isset($_COOKIE["color_scheme_override"]) ? $_COOKIE["color_scheme_override"] : false; ?>
|
||||
@if ($color_scheme == 'dark' and Config::get('meta.theme') != 'light' and $color_scheme_override != 'light' or $color_scheme_override == 'dark' or Config::get('meta.theme') == 'dark')
|
||||
@if ($color_scheme == 'dark' and config('meta.theme') != 'light' and $color_scheme_override != 'light' or $color_scheme_override == 'dark' or config('meta.theme') == 'dark')
|
||||
<link rel="stylesheet" href="{{ asset('css/app-dark.css') }}">
|
||||
@endif
|
||||
<!-- end dark mode detection -->
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
@if(env('CUSTOM_META_TAGS') == 'true' and Config::get('meta.lang') != '')
|
||||
<html lang="{{ Config::get('meta.lang') }}">
|
||||
@if(env('CUSTOM_META_TAGS') == 'true' and config('meta.lang') != '')
|
||||
<html lang="{{ config('meta.lang') }}">
|
||||
@else
|
||||
<html lang="en">
|
||||
@endif
|
|
@ -1,15 +1,15 @@
|
|||
@if(Config::get('meta.description') != '')<meta name="description" content="{{ Config::get('meta.description') }}">
|
||||
@if(config('meta.description') != '')<meta name="description" content="{{ config('meta.description') }}">
|
||||
@elseif(Route::currentRouteName() != 'home')<meta name="description" content="{{ $userinfo->littlelink_description }}">
|
||||
@else<meta name="description" content="{{ $cleaner_input }}">@endif
|
||||
|
||||
@if(Config::get('meta.author') != '')<meta name="author" content="{{ Config::get('meta.author') }}">
|
||||
@if(config('meta.author') != '')<meta name="author" content="{{ config('meta.author') }}">
|
||||
@elseif(Route::currentRouteName() != 'home')<meta name="author" content="{{ $userinfo->name }}">@endif
|
||||
|
||||
@if(Config::get('meta.viewport') != '')<meta name="viewport" content="{{ Config::get('meta.viewport') }}"/>
|
||||
@if(config('meta.viewport') != '')<meta name="viewport" content="{{ config('meta.viewport') }}"/>
|
||||
@else<meta name="viewport" content="width=device-width, initial-scale=1">@endif
|
||||
|
||||
@if(Config::get('meta.robots') != '')<meta name="robots" content="{{ Config::get('meta.robots') }}">@endif
|
||||
@if(config('meta.robots') != '')<meta name="robots" content="{{ config('meta.robots') }}">@endif
|
||||
|
||||
@if(Config::get('meta.canonical_url') != '')<link rel="canonical" href="{{ Config::get('meta.canonical_url') }}">@endif
|
||||
@if(config('meta.canonical_url') != '')<link rel="canonical" href="{{ config('meta.canonical_url') }}">@endif
|
||||
|
||||
@if(Config::get('meta.twitter_creator') != '')<meta name="twitter:creator" content="{{ Config::get('meta.twitter_creator') }}">@endif
|
||||
@if(config('meta.twitter_creator') != '')<meta name="twitter:creator" content="{{ config('meta.twitter_creator') }}">@endif
|
||||
|
|
|
@ -40,11 +40,11 @@
|
|||
<?php // loads dark mode CSS if dark mode detected
|
||||
$color_scheme = isset($_COOKIE["color_scheme"]) ? $_COOKIE["color_scheme"] : false;
|
||||
$color_scheme_override = isset($_COOKIE["color_scheme_override"]) ? $_COOKIE["color_scheme_override"] : false; ?>
|
||||
@if ($color_scheme == 'dark' and Config::get('meta.theme') != 'light' and $color_scheme_override != 'light' or $color_scheme_override == 'dark')
|
||||
@if ($color_scheme == 'dark' and config('meta.theme') != 'light' and $color_scheme_override != 'light' or $color_scheme_override == 'dark')
|
||||
<!-- switch the two <link> Tags below to default to dark mode if cookie detection fails -->
|
||||
<link rel="stylesheet" href="{{ asset('/studio/css/bootstrap.min-dark.css') }}">
|
||||
<link rel="stylesheet" href="{{ asset('/studio/css/style-dashboard-dark.css') }}">
|
||||
@elseif(Config::get('meta.theme') == 'dark')
|
||||
@elseif(config('meta.theme') == 'dark')
|
||||
<link rel="stylesheet" href="{{ asset('/studio/css/bootstrap.min-dark.css') }}">
|
||||
<link rel="stylesheet" href="{{ asset('/studio/css/style-dashboard-dark.css') }}">
|
||||
@else
|
||||
|
@ -160,11 +160,11 @@ if ($url1sb->successful() or $url2sb->successful()) {
|
|||
@if(env('DISPLAY_FOOTER') === true)
|
||||
<p>
|
||||
Copyright © @php echo date('Y'); @endphp {{ config('app.name') }}<i class="icon-heart" aria-hidden="true"></i> </br>
|
||||
@php if(Config::get('meta.display_link_home') != 'false' and Config::get('meta.display_link_terms') != 'false' and Config::get('meta.display_link_privacy') != 'false' and Config::get('meta.display_link_contact') != 'false'){$dot=" . "; } else {$dot=" ";} @endphp
|
||||
@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> @if(Config::get('meta.custom_text_home') != ''){{Config::get('meta.custom_text_home')}}@else Home @endif</a>{!!$dot!!}@endif
|
||||
@if(Config::get('meta.display_link_terms') != 'false')<a class="footer-hover spacing" href="{{ url('') }}/pages/terms">Terms</a>{!!$dot!!}@endif
|
||||
@if(Config::get('meta.display_link_privacy') != 'false')<a class="footer-hover spacing" href="{{ url('') }}/pages/privacy">Privacy</a>{!!$dot!!}@endif
|
||||
@if(Config::get('meta.display_link_contact') != 'false')<a class="footer-hover spacing" href="{{ url('') }}/pages/contact">Contact</a>@endif
|
||||
@php if(config('meta.display_link_home') != 'false' and config('meta.display_link_terms') != 'false' and config('meta.display_link_privacy') != 'false' and config('meta.display_link_contact') != 'false'){$dot=" . "; } else {$dot=" ";} @endphp
|
||||
@if(config('meta.display_link_home') != 'false')<a class="footer-hover spacing" @if(config('meta.custom_link_home') != '')href="{{ config('meta.custom_link_home') }}"@else href="{{ url('') }}/"@endif> @if(config('meta.custom_text_home') != ''){{config('meta.custom_text_home')}}@else Home @endif</a>{!!$dot!!}@endif
|
||||
@if(config('meta.display_link_terms') != 'false')<a class="footer-hover spacing" href="{{ url('') }}/pages/terms">Terms</a>{!!$dot!!}@endif
|
||||
@if(config('meta.display_link_privacy') != 'false')<a class="footer-hover spacing" href="{{ url('') }}/pages/privacy">Privacy</a>{!!$dot!!}@endif
|
||||
@if(config('meta.display_link_contact') != 'false')<a class="footer-hover spacing" href="{{ url('') }}/pages/contact">Contact</a>@endif
|
||||
</p>
|
||||
@endif
|
||||
@if(env('DISPLAY_CREDIT') === true)
|
||||
|
@ -262,7 +262,7 @@ if ($url1sb->successful() or $url2sb->successful()) {
|
|||
<a style="color:tomato;" class="nav-link" href="{{ url('update') }}">You are in BETA mode! <img src="https://img.shields.io/static/v1?label=installed:&message=<?php if(file_exists(base_path("vbeta.json"))) {echo file_get_contents(base_path("vbeta.json"));} else {echo "none";} ?>&color=FFFFFF"> <img src="https://img.shields.io/static/v1?label=server:&message=<?php echo file_get_contents("https://update.littlelink-custom.com/beta/vbeta.json"); ?>&color=FFFFFF"></a>
|
||||
@endif
|
||||
|
||||
@if (Config::get('meta.theme') == 'light' and $color_scheme_override != 'dark')
|
||||
@if (config('meta.theme') == 'light' and $color_scheme_override != 'dark')
|
||||
<div id="myBtn" class="toggle"><span>🌙</span><input type="checkbox" id="toggle-switch" checked/><label for="toggle-switch"></label><span>☀️</span></div>
|
||||
<script>function ColorOverrride(){document.cookie="color_scheme_override=dark; path=/",location.reload()}var btn=document.getElementById("myBtn");btn.addEventListener("click",ColorOverrride);</script>
|
||||
@elseif ($color_scheme_override == 'dark' or ($color_scheme == 'dark' and $color_scheme_override != 'dark' and $color_scheme_override != 'light'))
|
||||
|
|
|
@ -32,9 +32,9 @@
|
|||
<link rel="stylesheet" href="{{ asset('littlelink/css/skeleton-dark.css') }}">
|
||||
@elseif ($color_scheme_override == 'light')
|
||||
<link rel="stylesheet" href="{{ asset('littlelink/css/skeleton-light.css') }}">
|
||||
@elseif (Config::get('meta.theme') == 'dark')
|
||||
@elseif (config('meta.theme') == 'dark')
|
||||
<link rel="stylesheet" href="{{ asset('littlelink/css/skeleton-dark.css') }}">
|
||||
@elseif (Config::get('meta.theme') == 'light')
|
||||
@elseif (config('meta.theme') == 'light')
|
||||
<link rel="stylesheet" href="{{ asset('littlelink/css/skeleton-light.css') }}">
|
||||
@else
|
||||
<link rel="stylesheet" href="{{ asset('littlelink/css/skeleton-auto.css') }}">
|
||||
|
|
|
@ -5,10 +5,10 @@
|
|||
|
||||
@include('layouts.analytics')
|
||||
|
||||
@if(Config::get('meta.littlelink_title') != '' and env('HOME_URL') === '')
|
||||
<title>{{ $userinfo->name }} {{ Config::get('meta.littlelink_title') }}</title>
|
||||
@elseif(env('CUSTOM_META_TAGS') == 'true' and Config::get('meta.title') != '')
|
||||
<title>{{ Config::get('meta.title') }}</title>
|
||||
@if(config('meta.littlelink_title') != '' and env('HOME_URL') === '')
|
||||
<title>{{ $userinfo->name }} {{ config('meta.littlelink_title') }}</title>
|
||||
@elseif(env('CUSTOM_META_TAGS') == 'true' and config('meta.title') != '')
|
||||
<title>{{ config('meta.title') }}</title>
|
||||
@elseif(env('HOME_URL') != '')
|
||||
<title>{{ $userinfo->name }}</title>
|
||||
@else
|
||||
|
@ -90,9 +90,9 @@
|
|||
<link rel="stylesheet" href="{{ asset('littlelink/css/skeleton-dark.css') }}">
|
||||
@elseif ($color_scheme_override == 'light')
|
||||
<link rel="stylesheet" href="{{ asset('littlelink/css/skeleton-light.css') }}">
|
||||
@elseif (Config::get('meta.theme') == 'dark')
|
||||
@elseif (config('meta.theme') == 'dark')
|
||||
<link rel="stylesheet" href="{{ asset('littlelink/css/skeleton-dark.css') }}">
|
||||
@elseif (Config::get('meta.theme') == 'light')
|
||||
@elseif (config('meta.theme') == 'light')
|
||||
<link rel="stylesheet" href="{{ asset('littlelink/css/skeleton-light.css') }}">
|
||||
@else
|
||||
<link rel="stylesheet" href="{{ asset('littlelink/css/skeleton-auto.css') }}">
|
||||
|
@ -124,11 +124,11 @@
|
|||
|
||||
<?php ////begin share button//// ?>
|
||||
|
||||
@if(Config::get('meta.display_share_button') != '')
|
||||
@if(config('meta.display_share_button') != '')
|
||||
|
||||
@if(Config::get('meta.display_share_button') == 'false')
|
||||
@if(config('meta.display_share_button') == 'false')
|
||||
<?php $ShowShrBtn = 'false'; ?>
|
||||
@elseif(Config::get('meta.display_share_button') == 'user')
|
||||
@elseif(config('meta.display_share_button') == 'user')
|
||||
@if($littlelink_names = Auth::user()->littlelink_name)
|
||||
<?php $ShowShrBtn = 'true'; ?>
|
||||
@else
|
||||
|
|
|
@ -47,12 +47,12 @@
|
|||
<?php // loads dark mode CSS if dark mode detected
|
||||
$color_scheme = isset($_COOKIE["color_scheme"]) ? $_COOKIE["color_scheme"] : false;
|
||||
$color_scheme_override = isset($_COOKIE["color_scheme_override"]) ? $_COOKIE["color_scheme_override"] : false; ?>
|
||||
@if ($color_scheme == 'dark' and Config::get('meta.theme') != 'light' and $color_scheme_override != 'light' or $color_scheme_override == 'dark')
|
||||
@if ($color_scheme == 'dark' and config('meta.theme') != 'light' and $color_scheme_override != 'light' or $color_scheme_override == 'dark')
|
||||
<!-- switch the two <link> Tags below to default to dark mode if cookie detection fails -->
|
||||
<link rel="stylesheet" href="{{ asset('littlelink/css/skeleton-dark.css') }}">
|
||||
@elseif (Config::get('meta.theme') == 'dark')
|
||||
@elseif (config('meta.theme') == 'dark')
|
||||
<link rel="stylesheet" href="{{ asset('littlelink/css/skeleton-dark.css') }}">
|
||||
@elseif (Config::get('meta.theme') == 'light')
|
||||
@elseif (config('meta.theme') == 'light')
|
||||
<link rel="stylesheet" href="{{ asset('littlelink/css/skeleton-light.css') }}">
|
||||
@else
|
||||
<link rel="stylesheet" href="{{ asset('littlelink/css/skeleton-light.css') }}">
|
||||
|
|
|
@ -10,20 +10,20 @@ use App\Http\Controllers\Auth\RegisteredUserController;
|
|||
use App\Http\Controllers\Auth\VerifyEmailController;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
if(Config::get('meta.register_url') != '') {
|
||||
$register = Config::get('meta.register_url');
|
||||
if(config('meta.register_url') != '') {
|
||||
$register = config('meta.register_url');
|
||||
} else {
|
||||
$register = "/register";
|
||||
}
|
||||
|
||||
if(Config::get('meta.login_url') != '') {
|
||||
$login = Config::get('meta.login_url');
|
||||
if(config('meta.login_url') != '') {
|
||||
$login = config('meta.login_url');
|
||||
} else {
|
||||
$login = "/login";
|
||||
}
|
||||
|
||||
if(Config::get('meta.forgot_password_url') != '') {
|
||||
$forgot_password = Config::get('meta.forgot_password_url');
|
||||
if(config('meta.forgot_password_url') != '') {
|
||||
$forgot_password = config('meta.forgot_password_url');
|
||||
} else {
|
||||
$forgot_password = "/forgot-password";
|
||||
}
|
||||
|
|
|
@ -21,24 +21,24 @@ use App\Http\Controllers\UserController;
|
|||
if(EnvEditor::getKey('APP_KEY')==''){Artisan::call('key:generate');}
|
||||
|
||||
// copies template meta config if none is present
|
||||
if(!file_exists(base_path("config/meta.php"))){copy(base_path('storage/templates/meta.php'), base_path('config/meta.php'));}
|
||||
if(!file_exists(base_path("config/config.php"))){copy(base_path('storage/templates/config.php'), base_path('config/config.php'));}
|
||||
|
||||
//Changes the homepage to a LittleLink Custom profile if set in the config
|
||||
if(Config::get('meta.custom_home_url') != '') {
|
||||
$custom_home_page_url = Config::get('meta.custom_home_url');
|
||||
if(config('config.custom_home_url') != '') {
|
||||
$custom_home_page_url = config('config.custom_home_url');
|
||||
} else {
|
||||
$custom_home_page_url = "/home";
|
||||
}
|
||||
if(env('HOME_URL') != '') {
|
||||
Route::get('/', [UserController::class, 'littlelinkhome'])->name('littlelink');
|
||||
if(Config::get('meta.disable_home_page') == 'redirect') {
|
||||
Route::get($custom_home_page_url, function () {return redirect(Config::get('meta.redirect_home_page'));});
|
||||
}elseif(Config::get('meta.disable_home_page') != 'true') {
|
||||
if(config('config.disable_home_page') == 'redirect') {
|
||||
Route::get($custom_home_page_url, function () {return redirect(config('config.redirect_home_page'));});
|
||||
}elseif(config('config.disable_home_page') != 'true') {
|
||||
Route::get( $custom_home_page_url, [App\Http\Controllers\HomeController::class, 'home'])->name('home');}
|
||||
} else {
|
||||
if(Config::get('meta.disable_home_page') == 'redirect') {
|
||||
Route::get('/', function () {return redirect(Config::get('meta.redirect_home_page'));});
|
||||
}elseif(Config::get('meta.disable_home_page') != 'true') {
|
||||
if(config('config.disable_home_page') == 'redirect') {
|
||||
Route::get('/', function () {return redirect(config('config.redirect_home_page'));});
|
||||
}elseif(config('config.disable_home_page') != 'true') {
|
||||
Route::get('/', [App\Http\Controllers\HomeController::class, 'home'])->name('home');}
|
||||
}
|
||||
|
||||
|
@ -53,7 +53,7 @@ Route::get('/panel/diagnose', function () {
|
|||
});
|
||||
|
||||
//Public route
|
||||
$custom_prefix = Config::get('meta.custom_url_prefix');
|
||||
$custom_prefix = config('config.custom_url_prefix');
|
||||
Route::get('/going/{id?}/{link?}', [UserController::class, 'clickNumber'])->where('link', '.*')->name('clickNumber');
|
||||
Route::get('/' . $custom_prefix . '{littlelink}', [UserController::class, 'littlelink'])->name('littlelink');
|
||||
Route::get('/@{littlelink}', [UserController::class, 'littlelink'])->name('littlelink');
|
||||
|
|
Loading…
Reference in New Issue