From 898761b4a0cfa1aad6f570c753d4b612f18393a2 Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Sat, 7 Jan 2017 00:22:22 +0100 Subject: [PATCH] Show mobile theme selection only if mobile themes are available (default template) --- view/templates/settings_display.tpl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/view/templates/settings_display.tpl b/view/templates/settings_display.tpl index 6f5a065508..ef2091035f 100644 --- a/view/templates/settings_display.tpl +++ b/view/templates/settings_display.tpl @@ -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}}