]> git.mxchange.org Git - friendica.git/commitdiff
Show mobile theme selection only if mobile themes are available (default template)
authorrabuzarus <>
Fri, 6 Jan 2017 23:22:22 +0000 (00:22 +0100)
committerrabuzarus <>
Fri, 6 Jan 2017 23:22:22 +0000 (00:22 +0100)
view/templates/settings_display.tpl

index 6f5a0655081744b890388452946afff54e79bf41..ef2091035f9cfed2a6ac8dff57d33e6ca1d8ad78 100644 (file)
@@ -6,7 +6,12 @@
 
 {{include file="field_themeselect.tpl" field=$theme}}
 {{include file="field_input.tpl" field=$itemspage_network}}
+
+{{* Show the mobile theme selection only if mobile themes are available *}}
+{{if count($mobile_theme.4) > 1}}
 {{include file="field_themeselect.tpl" field=$mobile_theme}}
+{{/if}}
+
 {{include file="field_input.tpl" field=$itemspage_mobile_network}}
 {{include file="field_input.tpl" field=$ajaxint}}
 {{include file="field_checkbox.tpl" field=$nowarn_insecure}}