Properly hide login link on mobile
authorAlexander Ebert <ebert@woltlab.com>
Thu, 8 Jun 2017 08:21:47 +0000 (10:21 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 8 Jun 2017 08:21:47 +0000 (10:21 +0200)
See #2291

com.woltlab.wcf/templates/pageMenuMobile.tpl

index 89f5d9cb9cc55bbf514063a7f6a84e0c993e33ad..111233cee58159bb94f69baa5474f2c1fddf4f37 100644 (file)
                {else}
                        {* guest *}
                        <li class="menuOverlayTitle">{lang}wcf.menu.user{/lang}</li>
-                       <li class="menuOverlayItem" data-more="com.woltlab.wcf.login">
-                               <a href="#" class="menuOverlayItemLink box24">
-                                       <span class="icon icon24 fa-sign-in"></span>
-                                       <span class="menuOverlayItemTitle">{lang}wcf.user.login{/lang}</span>
-                               </a>
-                       </li>
+                       {if !$__disableLoginLink|isset}
+                               <li class="menuOverlayItem" data-more="com.woltlab.wcf.login">
+                                       <a href="#" class="menuOverlayItemLink box24">
+                                               <span class="icon icon24 fa-sign-in"></span>
+                                               <span class="menuOverlayItemTitle">{lang}wcf.user.login{/lang}</span>
+                                       </a>
+                               </li>
+                       {/if}
                        {if !REGISTER_DISABLED}
                                <li class="menuOverlayItem">
                                        <a href="{link controller='Register'}{/link}" class="menuOverlayItemLink box24">