Forráskód Böngészése

Add the before|after|unchanged select box
along with their respective language strings

Signed-off-by: Suki <[email protected]>

Suki 10 éve
szülő
commit
107f491fcb

+ 12 - 1
Themes/default/Admin.template.php

@@ -791,7 +791,7 @@ function template_show_settings()
 				$javascript = $config_var['javascript'];
 				$disabled = !empty($config_var['disabled']) ? ' disabled' : '';
 				$subtext = !empty($config_var['subtext']) ? '<br><span class="smalltext"> ' . $config_var['subtext'] . '</span>' : '';
-				
+
 				// Various HTML5 input types that are basically enhanced textboxes
 				$text_types = array('color', 'date', 'datetime', 'datetime-local', 'email', 'month', 'time');
 
@@ -1083,6 +1083,17 @@ function template_edit_profile_field()
 												<input type="checkbox" name="display" id="display"', $context['field']['display'] ? ' checked' : '', ' class="input_check">
 											</dd>
 
+											<dt>
+												<strong><label for="order">', $txt['custom_edit_order'], ':</label></strong>
+											</dt>
+											<dd>
+												<select id="order" name="field_placement">
+													', empty($context['field']['order']) ? '<option value="">(' .$txt['custom_edit_order_unchanged'] . ')</option>' : '', '
+														<option value="after">' . $txt['custom_edit_order_after'] . '...</option>
+														<option value="before">' . $txt['custom_edit_order_before'] . '...</option>
+								</select>
+											</dd>
+
 											<dt>
 												<strong><label for="placement">', $txt['custom_edit_placement'], ':</label></strong>
 											</dt>

+ 4 - 0
Themes/default/languages/ManageSettings.english.php

@@ -268,6 +268,10 @@ $txt['custom_edit_mask_regex'] = 'Regex (Advanced)';
 $txt['custom_edit_enclose'] = 'Show Enclosed Within Text (Optional)';
 $txt['custom_edit_enclose_desc'] = 'We <strong>strongly</strong> recommend to use an input mask to validate the input supplied by the user.';
 
+$txt['custom_edit_order'] = 'Choose Order';
+$txt['custom_edit_order_unchanged'] = 'Unchanged';
+$txt['custom_edit_order_after'] = 'After';
+$txt['custom_edit_order_before'] = 'Before';
 $txt['custom_edit_placement'] = 'Choose Placement';
 $txt['custom_edit_placement_standard'] = 'Standard (with title)';
 $txt['custom_edit_placement_withicons'] = 'With Icons';