mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
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:
@@ -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 " \n";
|
||||
|
||||
Reference in New Issue
Block a user