Default/Domain/User Settings: Implement select field for input_toggle_style options.
This commit is contained in:
@@ -211,6 +211,75 @@ $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['option-select']['en-us'] = "Select";
|
||||
$text['option-select']['en-gb'] = "Select";
|
||||
$text['option-select']['ar-eg'] = "";
|
||||
$text['option-select']['de-at'] = "Auswählen"; //copied from de-de
|
||||
$text['option-select']['de-ch'] = "Auswählen"; //copied from de-de
|
||||
$text['option-select']['de-de'] = "Auswählen";
|
||||
$text['option-select']['el-gr'] = "Επιλέξτε";
|
||||
$text['option-select']['es-cl'] = "Seleccionar";
|
||||
$text['option-select']['es-mx'] = "Seleccionar"; //copied from es-cl
|
||||
$text['option-select']['fr-ca'] = "Sélectionner"; //copied from fr-fr
|
||||
$text['option-select']['fr-fr'] = "Sélectionner";
|
||||
$text['option-select']['he-il'] = "";
|
||||
$text['option-select']['it-it'] = "Selezionare";
|
||||
$text['option-select']['nl-nl'] = "";
|
||||
$text['option-select']['pl-pl'] = "Wybierz";
|
||||
$text['option-select']['pt-br'] = "Selecionar"; //copied from pt-pt
|
||||
$text['option-select']['pt-pt'] = "Selecionar";
|
||||
$text['option-select']['ro-ro'] = "";
|
||||
$text['option-select']['ru-ru'] = "Выбрать";
|
||||
$text['option-select']['sv-se'] = "Välj";
|
||||
$text['option-select']['uk-ua'] = "";
|
||||
$text['option-select']['tr-tr'] = "Seç";
|
||||
|
||||
$text['option-switch_round']['en-us'] = "Round Switch";
|
||||
$text['option-switch_round']['en-gb'] = "Round Switch";
|
||||
$text['option-switch_round']['ar-eg'] = "Round Switch";
|
||||
$text['option-switch_round']['de-at'] = "Round Switch";
|
||||
$text['option-switch_round']['de-ch'] = "Round Switch";
|
||||
$text['option-switch_round']['de-de'] = "Round Switch";
|
||||
$text['option-switch_round']['el-gr'] = "Round Switch";
|
||||
$text['option-switch_round']['es-cl'] = "Round Switch";
|
||||
$text['option-switch_round']['es-mx'] = "Round Switch";
|
||||
$text['option-switch_round']['fr-ca'] = "Round Switch";
|
||||
$text['option-switch_round']['fr-fr'] = "Round Switch";
|
||||
$text['option-switch_round']['he-il'] = "Round Switch";
|
||||
$text['option-switch_round']['it-it'] = "Round Switch";
|
||||
$text['option-switch_round']['nl-nl'] = "Round Switch";
|
||||
$text['option-switch_round']['pl-pl'] = "Round Switch";
|
||||
$text['option-switch_round']['pt-br'] = "Round Switch";
|
||||
$text['option-switch_round']['pt-pt'] = "Round Switch";
|
||||
$text['option-switch_round']['ro-ro'] = "Round Switch";
|
||||
$text['option-switch_round']['ru-ru'] = "Round Switch";
|
||||
$text['option-switch_round']['sv-se'] = "Round Switch";
|
||||
$text['option-switch_round']['uk-ua'] = "Round Switch";
|
||||
$text['option-switch_round']['tr-tr'] = "Round Switch";
|
||||
|
||||
$text['option-switch_square']['en-us'] = "Square Switch";
|
||||
$text['option-switch_square']['en-gb'] = "Square Switch";
|
||||
$text['option-switch_square']['ar-eg'] = "Square Switch";
|
||||
$text['option-switch_square']['de-at'] = "Square Switch";
|
||||
$text['option-switch_square']['de-ch'] = "Square Switch";
|
||||
$text['option-switch_square']['de-de'] = "Square Switch";
|
||||
$text['option-switch_square']['el-gr'] = "Square Switch";
|
||||
$text['option-switch_square']['es-cl'] = "Square Switch";
|
||||
$text['option-switch_square']['es-mx'] = "Square Switch";
|
||||
$text['option-switch_square']['fr-ca'] = "Square Switch";
|
||||
$text['option-switch_square']['fr-fr'] = "Square Switch";
|
||||
$text['option-switch_square']['he-il'] = "Square Switch";
|
||||
$text['option-switch_square']['it-it'] = "Square Switch";
|
||||
$text['option-switch_square']['nl-nl'] = "Square Switch";
|
||||
$text['option-switch_square']['pl-pl'] = "Square Switch";
|
||||
$text['option-switch_square']['pt-br'] = "Square Switch";
|
||||
$text['option-switch_square']['pt-pt'] = "Square Switch";
|
||||
$text['option-switch_square']['ro-ro'] = "Square Switch";
|
||||
$text['option-switch_square']['ru-ru'] = "Square Switch";
|
||||
$text['option-switch_square']['sv-se'] = "Square Switch";
|
||||
$text['option-switch_square']['uk-ua'] = "Square Switch";
|
||||
$text['option-switch_square']['tr-tr'] = "Square Switch";
|
||||
|
||||
$text['message-toggled']['en-us'] = "Toggle Completed";
|
||||
$text['message-toggled']['en-gb'] = "Toggle Completed";
|
||||
$text['message-toggled']['ar-eg'] = "الانتهاء من تبديل";
|
||||
|
||||
@@ -665,6 +665,13 @@
|
||||
echo " <option value='none' ".(($default_setting_value == "none") ? "selected='selected'" : null).">".$text['label-none']."</option>\n";
|
||||
echo " </select>\n";
|
||||
}
|
||||
elseif ($category == "theme" && $subcategory == "input_toggle_style" && $name == "text" ) {
|
||||
echo " <select class='formfld' id='default_setting_value' name='default_setting_value'>\n";
|
||||
echo " <option value='select'>".$text['option-select']."</option>\n";
|
||||
echo " <option value='switch_round' ".(($default_setting_value == "switch_round") ? "selected='selected'" : null).">".$text['option-switch_round']."</option>\n";
|
||||
echo " <option value='switch_square' ".(($default_setting_value == "switch_square") ? "selected='selected'" : null).">".$text['option-switch_square']."</option>\n";
|
||||
echo " </select>\n";
|
||||
}
|
||||
elseif ($category == "users" && $subcategory == "username_format" && $name == "text" ) {
|
||||
echo " <select class='formfld' id='default_setting_value' name='default_setting_value'>\n";
|
||||
echo " <option value='any' ".($default_setting_value == 'any' ? "selected='selected'" : null).">".$text['option-username_format_any']."</option>\n";
|
||||
|
||||
@@ -480,6 +480,9 @@
|
||||
else if ($category == 'theme' && $subcategory == 'menu_side_item_main_sub_close' && $name == 'text') {
|
||||
echo " ".$text['option-'.$row['default_setting_value']]."\n";
|
||||
}
|
||||
else if ($category == 'theme' && $subcategory == 'input_toggle_style' && $name == 'text') {
|
||||
echo " ".$text['option-'.$row['default_setting_value']]."\n";
|
||||
}
|
||||
else if (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;'));
|
||||
echo "<span style=\"font-family: 'Courier New'; line-height: 6pt;\">".escape($row['default_setting_value'])."</span>\n";
|
||||
|
||||
Reference in New Issue
Block a user