mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 08:15:13 +00:00
only allow theme selection forms if there are any themes to select
This commit is contained in:
parent
61f398e055
commit
3fa4123161
2 changed files with 6 additions and 3 deletions
|
@ -848,8 +848,8 @@ function settings_content(&$a) {
|
|||
'$baseurl' => $a->get_baseurl(true),
|
||||
'$uid' => local_channel(),
|
||||
|
||||
'$theme' => array('theme', t('Display Theme:'), $theme_selected, '', $themes, 'preview'),
|
||||
'$mobile_theme' => array('mobile_theme', t('Mobile Theme:'), $mobile_theme_selected, '', $mobile_themes, ''),
|
||||
'$theme' => (($themes) ? array('theme', t('Display Theme:'), $theme_selected, '', $themes, 'preview') : false),
|
||||
'$mobile_theme' => (($mobile_themes) ? array('mobile_theme', t('Mobile Theme:'), $mobile_theme_selected, '', $mobile_themes, '') : false),
|
||||
'$user_scalable' => array('user_scalable', t("Enable user zoom on mobile devices"), $user_scalable, '', $yes_no),
|
||||
'$ajaxint' => array('browser_update', t("Update browser every xx seconds"), $browser_update, t('Minimum of 10 seconds, no maximum')),
|
||||
'$itemspage' => array('itemspage', t("Maximum number of conversations to load at any time:"), $itemspage, t('Maximum of 100 items')),
|
||||
|
|
|
@ -3,9 +3,12 @@
|
|||
|
||||
<form action="settings/display" id="settings-form" method="post" autocomplete="off" >
|
||||
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
|
||||
|
||||
{{if $theme}}
|
||||
{{include file="field_themeselect.tpl" field=$theme}}
|
||||
{{/if}}
|
||||
{{if $mobile_theme}}
|
||||
{{include file="field_themeselect.tpl" field=$mobile_theme}}
|
||||
{{/if}}
|
||||
{{if $expert}}
|
||||
{{include file="field_checkbox.tpl" field=$user_scalable}}
|
||||
{{/if}}
|
||||
|
|
Loading…
Reference in a new issue