Bridges: Misc updates, integrate Button class.

This commit is contained in:
Nate
2019-10-12 01:12:59 -06:00
parent 04eb2ca1f3
commit 7929f2e0b7
11 changed files with 458 additions and 59 deletions

View File

@@ -121,6 +121,86 @@ $text['option-voicemail_file_attach']['ru-ru'] = "Прикрепление ау
$text['option-voicemail_file_attach']['sv-se'] = "Ljudfil Bifogad";
$text['option-voicemail_file_attach']['uk-ua'] = "Приєднати аудіофайл";
$text['option-button_icons_auto']['en-us'] = "Automatic";
$text['option-button_icons_auto']['ar-eg'] = "Automatic";
$text['option-button_icons_auto']['de-at'] = "Automatic";
$text['option-button_icons_auto']['de-ch'] = "Automatic";
$text['option-button_icons_auto']['de-de'] = "Automatic";
$text['option-button_icons_auto']['es-cl'] = "Automatic";
$text['option-button_icons_auto']['es-mx'] = "Automatic";
$text['option-button_icons_auto']['fr-ca'] = "Automatic";
$text['option-button_icons_auto']['fr-fr'] = "Automatic";
$text['option-button_icons_auto']['he-il'] = "Automatic";
$text['option-button_icons_auto']['it-it'] = "Automatic";
$text['option-button_icons_auto']['nl-nl'] = "Automatic";
$text['option-button_icons_auto']['pl-pl'] = "Automatic";
$text['option-button_icons_auto']['pt-br'] = "Automatic";
$text['option-button_icons_auto']['pt-pt'] = "Automatic";
$text['option-button_icons_auto']['ro-ro'] = "Automatic";
$text['option-button_icons_auto']['ru-ru'] = "Automatic";
$text['option-button_icons_auto']['sv-se'] = "Automatic";
$text['option-button_icons_auto']['uk-ua'] = "Automatic";
$text['option-button_icons_only']['en-us'] = "Only";
$text['option-button_icons_only']['ar-eg'] = "Only";
$text['option-button_icons_only']['de-at'] = "Only";
$text['option-button_icons_only']['de-ch'] = "Only";
$text['option-button_icons_only']['de-de'] = "Only";
$text['option-button_icons_only']['es-cl'] = "Only";
$text['option-button_icons_only']['es-mx'] = "Only";
$text['option-button_icons_only']['fr-ca'] = "Only";
$text['option-button_icons_only']['fr-fr'] = "Only";
$text['option-button_icons_only']['he-il'] = "Only";
$text['option-button_icons_only']['it-it'] = "Only";
$text['option-button_icons_only']['nl-nl'] = "Only";
$text['option-button_icons_only']['pl-pl'] = "Only";
$text['option-button_icons_only']['pt-br'] = "Only";
$text['option-button_icons_only']['pt-pt'] = "Only";
$text['option-button_icons_only']['ro-ro'] = "Only";
$text['option-button_icons_only']['ru-ru'] = "Only";
$text['option-button_icons_only']['sv-se'] = "Only";
$text['option-button_icons_only']['uk-ua'] = "Only";
$text['option-button_icons_always']['en-us'] = "Always";
$text['option-button_icons_always']['ar-eg'] = "Always";
$text['option-button_icons_always']['de-at'] = "Always";
$text['option-button_icons_always']['de-ch'] = "Always";
$text['option-button_icons_always']['de-de'] = "Always";
$text['option-button_icons_always']['es-cl'] = "Always";
$text['option-button_icons_always']['es-mx'] = "Always";
$text['option-button_icons_always']['fr-ca'] = "Always";
$text['option-button_icons_always']['fr-fr'] = "Always";
$text['option-button_icons_always']['he-il'] = "Always";
$text['option-button_icons_always']['it-it'] = "Always";
$text['option-button_icons_always']['nl-nl'] = "Always";
$text['option-button_icons_always']['pl-pl'] = "Always";
$text['option-button_icons_always']['pt-br'] = "Always";
$text['option-button_icons_always']['pt-pt'] = "Always";
$text['option-button_icons_always']['ro-ro'] = "Always";
$text['option-button_icons_always']['ru-ru'] = "Always";
$text['option-button_icons_always']['sv-se'] = "Always";
$text['option-button_icons_always']['uk-ua'] = "Always";
$text['option-button_icons_never']['en-us'] = "Never";
$text['option-button_icons_never']['ar-eg'] = "Never";
$text['option-button_icons_never']['de-at'] = "Never";
$text['option-button_icons_never']['de-ch'] = "Never";
$text['option-button_icons_never']['de-de'] = "Never";
$text['option-button_icons_never']['es-cl'] = "Never";
$text['option-button_icons_never']['es-mx'] = "Never";
$text['option-button_icons_never']['fr-ca'] = "Never";
$text['option-button_icons_never']['fr-fr'] = "Never";
$text['option-button_icons_never']['he-il'] = "Never";
$text['option-button_icons_never']['it-it'] = "Never";
$text['option-button_icons_never']['nl-nl'] = "Never";
$text['option-button_icons_never']['pl-pl'] = "Never";
$text['option-button_icons_never']['pt-br'] = "Never";
$text['option-button_icons_never']['pt-pt'] = "Never";
$text['option-button_icons_never']['ro-ro'] = "Never";
$text['option-button_icons_never']['ru-ru'] = "Never";
$text['option-button_icons_never']['sv-se'] = "Never";
$text['option-button_icons_never']['uk-ua'] = "Never";
$text['message-toggled']['en-us'] = "Toggle Completed";
$text['message-toggled']['ar-eg'] = "الانتهاء من تبديل";
$text['message-toggled']['de-at'] = "Toggle Completed"; //copied from de-de

View File

@@ -570,6 +570,14 @@
elseif ($category == "theme" && $subcategory == "custom_css_code" && $name == "text" ) {
echo " <textarea class='formfld' style='min-width: 100%; height: 300px; font-family: courier, monospace; overflow: auto; resize: vertical' id='default_setting_value' name='default_setting_value' wrap='off'>".$default_setting_value."</textarea>\n";
}
elseif ($category == "theme" && $subcategory == "button_icons" && $name == "text" ) {
echo " <select class='formfld' id='default_setting_value' name='default_setting_value'>\n";
echo " <option value='auto'>".$text['option-button_icons_auto']."</option>\n";
echo " <option value='only' ".($default_setting_value == "only" ? "selected='selected'" : null).">".$text['option-button_icons_only']."</option>\n";
echo " <option value='always' ".($default_setting_value == "always" ? "selected='selected'" : null).">".$text['option-button_icons_always']."</option>\n";
echo " <option value='never' ".($default_setting_value == "never" ? "selected='selected'" : null).">".$text['option-button_icons_never']."</option>\n";
echo " </select>\n";
}
elseif ($category == "voicemail" && $subcategory == "voicemail_file" && $name == "text" ) {
echo " <select class='formfld' id='default_setting_value' name='default_setting_value'>\n";
echo " <option value='listen' ".(($default_setting_value == "listen") ? "selected='selected'" : null).">".$text['option-voicemail_file_listen']."</option>\n";

View File

@@ -414,6 +414,9 @@
else if ($subcategory == 'password' || substr_count($subcategory, '_password') > 0 || $category == "login" && $subcategory == "password_reset_key" && $name == "text" || substr_count($subcategory, '_secret') > 0) {
echo " ".str_repeat('*', strlen($row['default_setting_value']));
}
else if ($category == 'theme' && $subcategory == 'button_icons' && $name == 'text') {
echo " ".$text['option-button_icons_'.$row['default_setting_value']]."\n";
}
else {
if ($category == "theme" && substr_count($subcategory, "_color") > 0 && ($name == "text" || $name == 'array')) {
echo " ".(img_spacer('15px', '15px', 'background: '.escape($row['default_setting_value']).'; margin-right: 4px; vertical-align: middle; border: 1px solid '.(color_adjust($row['default_setting_value'], -0.18)).'; padding: -1px;'));

View File

@@ -654,6 +654,17 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
echo " <option value='right' ".(($row['domain_setting_value'] == "right") ? "selected='selected'" : null).">".$text['label-right']."</option>\n";
echo " </select>\n";
}
elseif ($category == "theme" && $subcategory == "custom_css_code" && $name == "text" ) {
echo " <textarea class='formfld' style='min-width: 100%; height: 300px; font-family: courier, monospace; overflow: auto; resize: vertical' id='domain_setting_value' name='domain_setting_value' wrap='off'>".$row['domain_setting_value']."</textarea>\n";
}
elseif ($category == "theme" && $subcategory == "button_icons" && $name == "text" ) {
echo " <select class='formfld' id='domain_setting_value' name='domain_setting_value'>\n";
echo " <option value='auto'>".$text['option-button_icons_auto']."</option>\n";
echo " <option value='only' ".($row['domain_setting_value'] == "only" ? "selected='selected'" : null).">".$text['option-button_icons_only']."</option>\n";
echo " <option value='always' ".($row['domain_setting_value'] == "always" ? "selected='selected'" : null).">".$text['option-button_icons_always']."</option>\n";
echo " <option value='never' ".($row['domain_setting_value'] == "never" ? "selected='selected'" : null).">".$text['option-button_icons_never']."</option>\n";
echo " </select>\n";
}
else {
echo " <input class='formfld' type='text' id='domain_setting_value' name='domain_setting_value' value=\"".escape($row['domain_setting_value'])."\">\n";
}

View File

@@ -416,6 +416,9 @@
else if ($subcategory == 'password' || substr_count($subcategory, '_password') > 0 || $category == "login" && $subcategory == "password_reset_key" && $name == "text") {
echo " ".str_repeat('*', strlen(escape($row['domain_setting_value'])));
}
else if ($category == 'theme' && $subcategory == 'button_icons' && $name == 'text') {
echo " ".$text['option-button_icons_'.$row['domain_setting_value']]."\n";
}
else {
if ($category == "theme" && substr_count($subcategory, "_color") > 0 && ($name == "text" || $name == 'array')) {
echo " ".(img_spacer('15px', '15px', 'background: '.escape($row['domain_setting_value']).'; margin-right: 4px; vertical-align: middle; border: 1px solid '.(color_adjust($row['domain_setting_value'], -0.18)).'; padding: -1px;'));

View File

@@ -101,6 +101,87 @@ $text['title-domain-add']['ru-ru'] = "Добавить домен";
$text['title-domain-add']['sv-se'] = "Lägg Till Domän";
$text['title-domain-add']['uk-ua'] = "Новий домен";
$text['option-button_icons_auto']['en-us'] = "Automatic";
$text['option-button_icons_auto']['ar-eg'] = "Automatic";
$text['option-button_icons_auto']['de-at'] = "Automatic";
$text['option-button_icons_auto']['de-ch'] = "Automatic";
$text['option-button_icons_auto']['de-de'] = "Automatic";
$text['option-button_icons_auto']['es-cl'] = "Automatic";
$text['option-button_icons_auto']['es-mx'] = "Automatic";
$text['option-button_icons_auto']['fr-ca'] = "Automatic";
$text['option-button_icons_auto']['fr-fr'] = "Automatic";
$text['option-button_icons_auto']['he-il'] = "Automatic";
$text['option-button_icons_auto']['it-it'] = "Automatic";
$text['option-button_icons_auto']['nl-nl'] = "Automatic";
$text['option-button_icons_auto']['pl-pl'] = "Automatic";
$text['option-button_icons_auto']['pt-br'] = "Automatic";
$text['option-button_icons_auto']['pt-pt'] = "Automatic";
$text['option-button_icons_auto']['ro-ro'] = "Automatic";
$text['option-button_icons_auto']['ru-ru'] = "Automatic";
$text['option-button_icons_auto']['sv-se'] = "Automatic";
$text['option-button_icons_auto']['uk-ua'] = "Automatic";
$text['option-button_icons_only']['en-us'] = "Only";
$text['option-button_icons_only']['ar-eg'] = "Only";
$text['option-button_icons_only']['de-at'] = "Only";
$text['option-button_icons_only']['de-ch'] = "Only";
$text['option-button_icons_only']['de-de'] = "Only";
$text['option-button_icons_only']['es-cl'] = "Only";
$text['option-button_icons_only']['es-mx'] = "Only";
$text['option-button_icons_only']['fr-ca'] = "Only";
$text['option-button_icons_only']['fr-fr'] = "Only";
$text['option-button_icons_only']['he-il'] = "Only";
$text['option-button_icons_only']['it-it'] = "Only";
$text['option-button_icons_only']['nl-nl'] = "Only";
$text['option-button_icons_only']['pl-pl'] = "Only";
$text['option-button_icons_only']['pt-br'] = "Only";
$text['option-button_icons_only']['pt-pt'] = "Only";
$text['option-button_icons_only']['ro-ro'] = "Only";
$text['option-button_icons_only']['ru-ru'] = "Only";
$text['option-button_icons_only']['sv-se'] = "Only";
$text['option-button_icons_only']['uk-ua'] = "Only";
$text['option-button_icons_always']['en-us'] = "Always";
$text['option-button_icons_always']['ar-eg'] = "Always";
$text['option-button_icons_always']['de-at'] = "Always";
$text['option-button_icons_always']['de-ch'] = "Always";
$text['option-button_icons_always']['de-de'] = "Always";
$text['option-button_icons_always']['es-cl'] = "Always";
$text['option-button_icons_always']['es-mx'] = "Always";
$text['option-button_icons_always']['fr-ca'] = "Always";
$text['option-button_icons_always']['fr-fr'] = "Always";
$text['option-button_icons_always']['he-il'] = "Always";
$text['option-button_icons_always']['it-it'] = "Always";
$text['option-button_icons_always']['nl-nl'] = "Always";
$text['option-button_icons_always']['pl-pl'] = "Always";
$text['option-button_icons_always']['pt-br'] = "Always";
$text['option-button_icons_always']['pt-pt'] = "Always";
$text['option-button_icons_always']['ro-ro'] = "Always";
$text['option-button_icons_always']['ru-ru'] = "Always";
$text['option-button_icons_always']['sv-se'] = "Always";
$text['option-button_icons_always']['uk-ua'] = "Always";
$text['option-button_icons_never']['en-us'] = "Never";
$text['option-button_icons_never']['ar-eg'] = "Never";
$text['option-button_icons_never']['de-at'] = "Never";
$text['option-button_icons_never']['de-ch'] = "Never";
$text['option-button_icons_never']['de-de'] = "Never";
$text['option-button_icons_never']['es-cl'] = "Never";
$text['option-button_icons_never']['es-mx'] = "Never";
$text['option-button_icons_never']['fr-ca'] = "Never";
$text['option-button_icons_never']['fr-fr'] = "Never";
$text['option-button_icons_never']['he-il'] = "Never";
$text['option-button_icons_never']['it-it'] = "Never";
$text['option-button_icons_never']['nl-nl'] = "Never";
$text['option-button_icons_never']['pl-pl'] = "Never";
$text['option-button_icons_never']['pt-br'] = "Never";
$text['option-button_icons_never']['pt-pt'] = "Never";
$text['option-button_icons_never']['ro-ro'] = "Never";
$text['option-button_icons_never']['ru-ru'] = "Never";
$text['option-button_icons_never']['sv-se'] = "Never";
$text['option-button_icons_never']['uk-ua'] = "Never";
$text['message-delete_failed']['en-us'] = "No Settings Checked";
$text['message-delete_failed']['ar-eg'] = "";
$text['message-delete_failed']['de-at'] = "Keine Einstellungen ausgewählt"; //copied from de-de