Moved $themes array to config

main
Igor Scheller 8 years ago
parent b7ebb05b8e
commit 7d5d905fcf

@ -29,9 +29,18 @@ return [
// From address of all emails
'no_reply_email' => 'noreply@engelsystem.de',
// Default theme of the start page, 1=style1.css
// Default theme, 1=style1.css
'theme' => 1,
// Available themes
'available_themes' => [
'4' => 'Engelsystem 33c3 (2016)',
'3' => 'Engelsystem 32c3 (2015)',
'2' => 'Engelsystem cccamp15',
'0' => 'Engelsystem light',
'1' => 'Engelsystem dark'
],
// Number of News shown on one site
'display_news' => 6,

@ -198,8 +198,9 @@ function user_settings_locale($user_source, $locales)
*/
function user_settings()
{
global $themes, $user;
global $user;
$request = request();
$themes = config('available_themes');
$enable_tshirt_size = config('enable_tshirt_size');
$tshirt_sizes = config('tshirt_sizes');

@ -1,16 +1,5 @@
<?php
/**
* Liste der verfügbaren Themes
*/
$themes = [
'4' => 'Engelsystem 33c3 (2016)',
'3' => 'Engelsystem 32c3 (2015)',
'2' => 'Engelsystem cccamp15',
'0' => 'Engelsystem light',
'1' => 'Engelsystem dark'
];
/**
* Display muted (grey) text.
*

Loading…
Cancel
Save