Theme: Added defaults (in the code) for the footer/copyright if missing in Settings.

This commit is contained in:
reliberate 2016-03-27 02:33:27 -06:00
parent c4362576f9
commit a8faf347e0
2 changed files with 7 additions and 4 deletions

View File

@ -103,14 +103,14 @@ if ($domains_processed == 1) {
$array[$x]['default_setting_subcategory'] = 'footer_background_color';
$array[$x]['default_setting_name'] = 'text';
$array[$x]['default_setting_value'] = '#000000';
$array[$x]['default_setting_enabled'] = 'true';
$array[$x]['default_setting_enabled'] = 'false';
$array[$x]['default_setting_description'] = 'Set the background color (and opacity) for the footer bar.';
$x++;
$array[$x]['default_setting_category'] = 'theme';
$array[$x]['default_setting_subcategory'] = 'footer_color';
$array[$x]['default_setting_name'] = 'text';
$array[$x]['default_setting_value'] = '#ffffff';
$array[$x]['default_setting_enabled'] = 'true';
$array[$x]['default_setting_enabled'] = 'false';
$array[$x]['default_setting_description'] = 'Set the text color (and opacity) for the footer bar.';
$x++;
$array[$x]['default_setting_category'] = 'theme';

View File

@ -180,7 +180,7 @@
}
div#footer {
background: <?php echo $_SESSION['theme']['footer_background_color']['text']; ?>;
background: <?php echo ($_SESSION['theme']['footer_background_color']['text'] != '') ? $_SESSION['theme']['footer_background_color']['text'] : 'rgba(0,0,0,0.2)'; ?>;
text-align: center;
vertical-align: middle;
padding: 8px;
@ -193,10 +193,13 @@
font-size: 11px;
font-family: arial;
line-height: 14px;
color: <?php echo $_SESSION['theme']['footer_color']['text']; ?>;
color: <?php echo ($_SESSION['theme']['footer_color']['text'] != '') ? $_SESSION['theme']['footer_color']['text'] : 'rgba(255,255,255,0.3)'; ?>;
white-space: nowrap;
}
.footer > a:hover {
color: <?php echo ($_SESSION['theme']['footer_color']['text'] != '') ? $_SESSION['theme']['footer_color']['text'] : 'rgba(255,255,255,0.3)'; ?>;
}
/* BOOTSTRAP MENU: BEGIN ******************************************************************/