]> git.mxchange.org Git - friendica.git/commitdiff
Frio: Show mobile theme selection only if mobile themes are available
authorrabuzarus <>
Thu, 5 Jan 2017 01:52:39 +0000 (02:52 +0100)
committerrabuzarus <>
Thu, 5 Jan 2017 01:52:39 +0000 (02:52 +0100)
view/theme/frio/templates/settings_display.tpl

index 06709f304323ead3271a86c4288dcb6e5e809d6d..e2b84fc34bf6bd28788747ecab797e7b1e81faa6 100644 (file)
 
                                                {{include file="field_themeselect.tpl" field=$theme}}
 
+                                               {{* 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}}
 
                                                <div class="form-group pull-right settings-submit-wrapper" >
                                                        <button type="submit" name="submit" class="btn btn-primary" value="{{$submit|escape:'html'}}">{{$submit}}</button>