Jelajahi Sumber

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

reliberate 9 tahun lalu
induk
melakukan
08e21c2778
2 mengubah file dengan 7 tambahan dan 4 penghapusan
  1. 2 2
      themes/default/app_defaults.php
  2. 5 2
      themes/default/template.php

+ 2 - 2
themes/default/app_defaults.php

@@ -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';

+ 5 - 2
themes/default/template.php

@@ -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 ******************************************************************/