|
@@ -392,7 +392,7 @@ function template_set_options()
|
|
|
</dt>
|
|
|
<dd ', $context['theme_options_reset'] ? 'style="width:40%"' : '', '>
|
|
|
<input type="hidden" name="' . (!empty($setting['default']) ? 'default_' : '') . 'options[' . $setting['id'] . ']" value="0" />
|
|
|
- <input type="checkbox" name="', !empty($setting['default']) ? 'default_' : '', 'options[', $setting['id'], ']" id="options_', $setting['id'], '"', !empty($setting['value']) ? ' checked' : '', $context['theme_options_reset'] ? ' disabled="disabled"' : '', ' value="1" class="input_check floatleft" />';
|
|
|
+ <input type="checkbox" name="', !empty($setting['default']) ? 'default_' : '', 'options[', $setting['id'], ']" id="options_', $setting['id'], '"', !empty($setting['value']) ? ' checked' : '', $context['theme_options_reset'] ? ' disabled' : '', ' value="1" class="input_check floatleft" />';
|
|
|
}
|
|
|
// how about selection lists, we all love them
|
|
|
elseif ($setting['type'] == 'list')
|
|
@@ -405,7 +405,7 @@ function template_set_options()
|
|
|
echo '
|
|
|
</dt>
|
|
|
<dd ', $context['theme_options_reset'] ? 'style="width:40%"' : '', '>
|
|
|
- <select class="floatleft" name="', !empty($setting['default']) ? 'default_' : '', 'options[', $setting['id'], ']" id="options_', $setting['id'], '"', $context['theme_options_reset'] ? ' disabled="disabled"' : '', '>';
|
|
|
+ <select class="floatleft" name="', !empty($setting['default']) ? 'default_' : '', 'options[', $setting['id'], ']" id="options_', $setting['id'], '"', $context['theme_options_reset'] ? ' disabled' : '', '>';
|
|
|
|
|
|
foreach ($setting['options'] as $value => $label)
|
|
|
{
|
|
@@ -427,7 +427,7 @@ function template_set_options()
|
|
|
echo '
|
|
|
</dt>
|
|
|
<dd ', $context['theme_options_reset'] ? 'style="width:40%"' : '', '>
|
|
|
- <input type="text" name="', !empty($setting['default']) ? 'default_' : '', 'options[', $setting['id'], ']" id="options_', $setting['id'], '" value="', $setting['value'], '"', $setting['type'] == 'number' ? ' size="5"' : '', $context['theme_options_reset'] ? ' disabled="disabled"' : '', ' class="input_text" />';
|
|
|
+ <input type="text" name="', !empty($setting['default']) ? 'default_' : '', 'options[', $setting['id'], ']" id="options_', $setting['id'], '" value="', $setting['value'], '"', $setting['type'] == 'number' ? ' size="5"' : '', $context['theme_options_reset'] ? ' disabled' : '', ' class="input_text" />';
|
|
|
}
|
|
|
|
|
|
// end of this defintion
|
|
@@ -1072,7 +1072,7 @@ function template_edit_style()
|
|
|
echo '
|
|
|
<textarea name="entire_file" cols="80" rows="20" style="' . (isBrowser('is_ie8') ? 'width: 635px; max-width: 96%; min-width: 96%' : 'width: 96%') . '; font-family: monospace; margin-top: 1ex; white-space: pre;" onkeyup="setPreviewTimeout();" onchange="refreshPreview(true);">', $context['entire_file'], '</textarea><br />
|
|
|
<div class="padding righttext">
|
|
|
- <input type="submit" name="save" value="', $txt['theme_edit_save'], '"', $context['allow_save'] ? '' : ' disabled="disabled"', ' style="margin-top: 1ex;" class="button_submit" />
|
|
|
+ <input type="submit" name="save" value="', $txt['theme_edit_save'], '"', $context['allow_save'] ? '' : ' disabled', ' style="margin-top: 1ex;" class="button_submit" />
|
|
|
<input type="button" value="', $txt['themeadmin_edit_preview'], '" onclick="refreshPreview(false);" class="button_submit" />
|
|
|
</div>
|
|
|
</div>
|
|
@@ -1124,7 +1124,7 @@ function template_edit_template()
|
|
|
|
|
|
echo '
|
|
|
<div class="padding righttext">
|
|
|
- <input type="submit" name="save" value="', $txt['theme_edit_save'], '"', $context['allow_save'] ? '' : ' disabled="disabled"', ' class="button_submit" />
|
|
|
+ <input type="submit" name="save" value="', $txt['theme_edit_save'], '"', $context['allow_save'] ? '' : ' disabled', ' class="button_submit" />
|
|
|
<input type="hidden" name="filename" value="', $context['edit_filename'], '" />
|
|
|
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />';
|
|
|
|
|
@@ -1168,7 +1168,7 @@ function template_edit_file()
|
|
|
<div class="windowbg">
|
|
|
<div class="content">
|
|
|
<textarea name="entire_file" id="entire_file" cols="80" rows="20" class="edit_file">', $context['entire_file'], '</textarea><br />
|
|
|
- <input type="submit" name="save" value="', $txt['theme_edit_save'], '"', $context['allow_save'] ? '' : ' disabled="disabled"', ' class="button_submit" />
|
|
|
+ <input type="submit" name="save" value="', $txt['theme_edit_save'], '"', $context['allow_save'] ? '' : ' disabled', ' class="button_submit" />
|
|
|
<input type="hidden" name="filename" value="', $context['edit_filename'], '" />
|
|
|
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />';
|
|
|
|