A lot of things
This commit is contained in:
@@ -25,6 +25,15 @@ if( !function_exists( 'section_must_not_be' ) ){
|
||||
|
||||
}
|
||||
|
||||
if( !function_exists('userTheme' ) ){
|
||||
function userTheme(): string {
|
||||
if( !\Auth::guest() ){
|
||||
return \Auth::user()->style_variation ?? 'default';
|
||||
}
|
||||
return \Illuminate\Support\Facades\Cookie::get('xf_style_variation', 'default');
|
||||
}
|
||||
}
|
||||
|
||||
if( !function_exists( 'databaseRoute' ) ){
|
||||
|
||||
function databaseRoute( array $params = [] ): string
|
||||
|
||||
Reference in New Issue
Block a user