Theme: Add additional Settings to control the style of various elements, remove old css classes.

Default/Domain/User Settings: Add color previews in list view.
This commit is contained in:
reliberate
2016-03-28 22:29:15 -06:00
parent 347417011e
commit 7c5176cf41
17 changed files with 281 additions and 330 deletions

View File

@@ -240,12 +240,20 @@ if (sizeof($_REQUEST) > 1) {
( $category == "theme" && $subcategory == "menu_position" && $name == "text" ) ||
( $category == "theme" && $subcategory == "logo_align" && $name == "text" )
) {
echo " ".$text['label-'.$row['default_setting_value']];
echo " ".$text['label-'.$row['domain_setting_value']];
}
else if ($subcategory == 'password' || substr_count($subcategory, '_password') > 0 || $category == "login" && $subcategory == "password_reset_key" && $name == "text") {
echo " ".str_repeat('*', strlen($row['domain_setting_value']));
}
else {
if ($category == "theme" && substr_count($subcategory, "_color") > 0 && ($name == "text" || $name == 'array')) {
$border = (
substr_count(strtolower($row['domain_setting_value']), '#fff') > 0 ||
substr_count(strtolower($row['domain_setting_value']), '#ffffff') > 0 ||
substr_count(str_replace(' ','',strtolower($row['domain_setting_value'])), '255,255,255,') > 0
) ? "border: 1px solid #ccc; padding: -1px;" : null;
echo " <img src='data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7' style='background: ".$row['domain_setting_value']."; width: 15px; height: 15px; margin-right: 4px; vertical-align: middle; ".$border."'>";
}
echo " ".htmlspecialchars($row['domain_setting_value']);
}
echo " &nbsp;\n";