From d9ac3b535e4b4b189caaec0db485079fab9697f6 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Mon, 25 Feb 2013 20:54:24 +0100 Subject: [PATCH] make the panel more customizable by letting the admin use a google-webfont for it Signed-off-by: Michael Kaufmann (d00p) --- actions/admin/settings/100.panel.php | 17 +++++++++++++++++ install/froxlor.sql | 2 ++ install/install.php | 4 ++++ install/updates/froxlor/0.9/update_0.9.inc.php | 5 +++++ lib/init.php | 1 + templates/Froxlor/assets/css/main.css | 4 ---- templates/Froxlor/header.tpl | 8 ++++++++ 7 files changed, 37 insertions(+), 4 deletions(-) diff --git a/actions/admin/settings/100.panel.php b/actions/admin/settings/100.panel.php index 6fd24518..291b523b 100644 --- a/actions/admin/settings/100.panel.php +++ b/actions/admin/settings/100.panel.php @@ -77,6 +77,23 @@ return array( 'option_options' => array('Manual' => $lng['serversettings']['manual'], 'Dropdown' => $lng['serversettings']['dropdown']), 'save_method' => 'storeSettingField', ), + 'use_webfonts' => array( + 'label' => 'Use a google-webfont for the panel', + 'settinggroup' => 'panel', + 'varname' => 'use_webfonts', + 'type' => 'bool', + 'default' => true, + 'save_method' => 'storeSettingField', + ), + 'webfont' => array( + 'label' => 'Use a google-webfont for the panel', + 'settinggroup' => 'panel', + 'varname' => 'webfont', + 'type' => 'string', + 'default' => 'Numans', + 'string_emptyallowed' => false, + 'save_method' => 'storeSettingField', + ), 'panel_adminmail' => array( 'label' => $lng['serversettings']['adminmail'], 'settinggroup' => 'panel', diff --git a/install/froxlor.sql b/install/froxlor.sql index f2fc8cc4..068b5272 100644 --- a/install/froxlor.sql +++ b/install/froxlor.sql @@ -532,6 +532,8 @@ INSERT INTO `panel_settings` (`settinggroup`, `varname`, `value`) VALUES ('panel', 'allow_preset', '1'), ('panel', 'allow_preset_admin', '0'), ('panel', 'password_regex', ''), + ('panel', 'use_webfonts', '1'), + ('panel', 'webfont', 'Numans'), ('panel', 'version', '0.9.28-svn6'); diff --git a/install/install.php b/install/install.php index 5974cf64..84e18284 100644 --- a/install/install.php +++ b/install/install.php @@ -102,6 +102,7 @@ function page_header() { + @@ -110,6 +111,9 @@ function page_header() { Froxlor Server Management Panel - Installation