diff options
| author | czaks <marcin@6irc.net> | 2013-08-18 13:16:31 -0400 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2013-08-18 13:16:31 -0400 |
| commit | da1b7d087e55019b064e4dff0498ae0aa8a64418 (patch) | |
| tree | cf92758fac657dee32485d34353653953b05b9a6 /templates/mod/theme_config.html | |
| parent | f6c25382b9708eff88a575ba199a645fc3dac420 (diff) | |
| parent | f8837ad60cac5aa7ec1457819986822d14661681 (diff) | |
Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Conflicts:
install.php
Diffstat (limited to 'templates/mod/theme_config.html')
| -rw-r--r-- | templates/mod/theme_config.html | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/templates/mod/theme_config.html b/templates/mod/theme_config.html index 2dbb8397..d85b5df1 100644 --- a/templates/mod/theme_config.html +++ b/templates/mod/theme_config.html @@ -7,12 +7,21 @@ <tr> <th>{{ conf.title }}</th> <td> - <input type="text" name="{{ conf.name }}" - {% if settings[conf.name] %}value="{{ settings[conf.name] }}"{% else %}{% if conf.default %}value="{{ conf.default }}"{% endif %}{% endif %} - {% if conf.size %} - size="{{ conf.size }}" + {% if conf.type == 'checkbox' %} + <input type="checkbox" name="{{ conf.name }}" + {% if settings[conf.name] or (not settings[conf.name] is defined and conf.default) %} + checked + {% endif %}> + {% else %} + <input type="text" name="{{ conf.name }}" + {% if settings[conf.name] %} + value="{{ settings[conf.name] }}" + {% else %} + {% if conf.default %}value="{{ conf.default }}"{% endif %}{% endif %} + {% if conf.size %} + size="{{ conf.size }}" + {% endif %}> {% endif %} - /> {% if conf.comment %} <span class="unimportant">{{ conf.comment }}</span> {% endif %} |
