Add another default settings -> theme option

This commit is contained in:
Mark Crane
2014-08-16 20:29:45 +00:00
parent 865e9668d3
commit c00d056fc2
2 changed files with 14 additions and 6 deletions

View File

@@ -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]);

View File

@@ -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<a?'':e(parseInt(c/a)))+((c=c%a
</div>
<?php
}
$copyright .= "&copy; Copyright 2008 - ".date("Y")." <a href='http://www.fusionpbx.com' class='copyright' target='_blank'>fusionpbx.com</a>. All rights reserved.\n";
echo "<div id='copyright' style='position: absolute; z-index; 10000;'><span class='copyright'>".$copyright."</span></div>";
if ($_SESSION['theme']['footer']['text'] == "false"){ echo "<!--\n"; }
$footer .= "&copy; Copyright 2008 - ".date("Y")." <a href='http://www.fusionpbx.com' class='footer' target='_blank'>fusionpbx.com</a>. All rights reserved.\n";
echo "<div id='footer' style='position: absolute; z-index; 10000;'><span class='footer'>".$footer."</span></div>\n";
if ($_SESSION['theme']['footer']['text'] == "false"){ echo "-->\n"; }
?>
</body>
</html>
</html>