diff options
author | Marc Alexander <admin@m-a-styles.de> | 2014-09-17 14:15:16 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2014-09-17 14:22:08 +0200 |
commit | 9ebee7de323eae3ac86f025f44429d2d4bc995b1 (patch) | |
tree | 93bdbdd2e0c86391fc9c27182af409fca833370d /phpBB/styles/prosilver/template/timezone_option.html | |
parent | 20903c0a9b0bc2df65feca467a2e318e700a9b8a (diff) | |
download | forums-9ebee7de323eae3ac86f025f44429d2d4bc995b1.tar forums-9ebee7de323eae3ac86f025f44429d2d4bc995b1.tar.gz forums-9ebee7de323eae3ac86f025f44429d2d4bc995b1.tar.bz2 forums-9ebee7de323eae3ac86f025f44429d2d4bc995b1.tar.xz forums-9ebee7de323eae3ac86f025f44429d2d4bc995b1.zip |
[ticket/12858] Generate timezone selects with template loop
PHPBB3-12858
Diffstat (limited to 'phpBB/styles/prosilver/template/timezone_option.html')
-rw-r--r-- | phpBB/styles/prosilver/template/timezone_option.html | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/phpBB/styles/prosilver/template/timezone_option.html b/phpBB/styles/prosilver/template/timezone_option.html index fc0579bffd..291283c7ca 100644 --- a/phpBB/styles/prosilver/template/timezone_option.html +++ b/phpBB/styles/prosilver/template/timezone_option.html @@ -1,10 +1,12 @@ <dl> <dt><label for="timezone">{L_BOARD_TIMEZONE}{L_COLON}</label></dt> - <!-- IF S_TZ_DATE_OPTIONS --> + <!-- IF .tz_date --> <dd id="tz_select_date" style="display: none;"> <select name="tz_date" id="tz_date" class="autowidth tz_select"> <option value="">{L_SELECT_CURRENT_TIME}</option> - {S_TZ_DATE_OPTIONS} + <!-- BEGIN tz_date --> + <option value="{tz_date.VALUE}"<!-- IF tz_date.SELECTED --> selected="selected"<!-- ENDIF -->>{tz_date.TITLE}</option> + <!-- END tz_date --> </select> <input type="button" id="tz_select_date_suggest" class="button2" style="display: none;" timezone-preselect="<!-- IF S_TZ_PRESELECT -->true<!-- ELSE -->false<!-- ENDIF -->" data-l-suggestion="{L_TIMEZONE_DATE_SUGGESTION}" value="{L_TIMEZONE_DATE_SUGGESTION}" /> </dd> @@ -12,7 +14,13 @@ <dd> <select name="tz" id="timezone" class="autowidth tz_select"> <option value="">{L_SELECT_TIMEZONE}</option> - {S_TZ_OPTIONS} + <!-- BEGIN tz_select --> + <optgroup label="{tz_select.LABEL}"> + <!-- BEGIN tz_options --> + <option title="{tz_select.tz_options.TITLE}" value="{tz_select.tz_options.VALUE}"<!-- IF tz_select.tz_options.SELECTED --> selected="selected"<!-- ENDIF -->>{tz_select.tz_options.LABEL}</option> + <!-- END tz_options --> + </optgroup> + <!-- END tz_select --> </select> <!-- INCLUDEJS timezone.js --> |