From c00d056fc2c9041fe769dfb22db002835da020fd Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sat, 16 Aug 2014 20:29:45 +0000 Subject: [PATCH] Add another default settings -> theme option --- themes/enhanced/app_defaults.php | 7 +++++++ themes/enhanced/template.php | 13 +++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/themes/enhanced/app_defaults.php b/themes/enhanced/app_defaults.php index d45787d280..80fc94c838 100644 --- a/themes/enhanced/app_defaults.php +++ b/themes/enhanced/app_defaults.php @@ -73,6 +73,13 @@ if ($domains_processed == 1) { $array[$x]['default_setting_enabled'] = 'true'; $array[$x]['default_setting_description'] = 'Set a background color (HTML compatible) for the login box.'; $x++; + $array[$x]['default_setting_category'] = 'theme'; + $array[$x]['default_setting_subcategory'] = 'footer'; + $array[$x]['default_setting_name'] = 'text'; + $array[$x]['default_setting_value'] = 'true'; + $array[$x]['default_setting_enabled'] = 'true'; + $array[$x]['default_setting_description'] = ''; + $x++; $orm = new orm; $orm->name('default_settings'); $orm->save($array[0]); diff --git a/themes/enhanced/template.php b/themes/enhanced/template.php index 29d98c084b..2acdb59143 100644 --- a/themes/enhanced/template.php +++ b/themes/enhanced/template.php @@ -134,7 +134,7 @@ DIV#default_login { ?> } -DIV#copyright { +DIV#footer { background-color: #000; bottom: 0; left: 0; @@ -152,7 +152,7 @@ DIV#copyright { padding-top: 8px; } -.copyright { +.footer { font-size: 11px; font-family: arial; color: #fff; @@ -1433,10 +1433,11 @@ eval(function(p,a,c,k,e,r){e=function(c){return(c fusionpbx.com. All rights reserved.\n"; - echo ""; + if ($_SESSION['theme']['footer']['text'] == "false"){ echo "\n"; } ?> - + \ No newline at end of file