Moved $themes array to config

This commit is contained in:
Igor Scheller 2017-07-20 01:14:28 +02:00
parent b7ebb05b8e
commit 7d5d905fcf
3 changed files with 12 additions and 13 deletions

View File

@ -29,9 +29,18 @@ return [
// From address of all emails // From address of all emails
'no_reply_email' => 'noreply@engelsystem.de', 'no_reply_email' => 'noreply@engelsystem.de',
// Default theme of the start page, 1=style1.css // Default theme, 1=style1.css
'theme' => 1, '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 // Number of News shown on one site
'display_news' => 6, 'display_news' => 6,

View File

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

View File

@ -1,16 +1,5 @@
<?php <?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. * Display muted (grey) text.
* *