Custom open/close labels for mobile sidebars
authorAlexander Ebert <ebert@woltlab.com>
Thu, 21 Dec 2017 14:36:57 +0000 (15:36 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 21 Dec 2017 14:36:57 +0000 (15:36 +0100)
Closes #2494

com.woltlab.wcf/templates/footer.tpl
com.woltlab.wcf/templates/header.tpl

index 24d3b6cd171c1ea1def9f4297ecd4734b72536a3..05b634592ab8ee670351cfbbdb0a5d04141f2289 100644 (file)
                        {/capture}
                                
                        {if $__sidebarRightContent|trim}
-                               <aside class="sidebar boxesSidebarRight" data-show-sidebar="{lang}wcf.global.button.showSidebar{/lang}" data-hide-sidebar="{lang}wcf.global.button.hideSidebar{/lang}">
+                               {if !$__sidebarRightShow|isset}{assign var='__sidebarRightShow' value='wcf.global.button.showSidebar'|language}{/if}
+                               {if !$__sidebarRightHide|isset}{assign var='__sidebarRightHide' value='wcf.global.button.hideSidebar'|language}{/if}
+                               
+                               <aside class="sidebar boxesSidebarRight" data-show-sidebar="{$__sidebarRightShow}" data-hide-sidebar="{$__sidebarRightHide}">
                                        <div class="boxContainer">
                                                {if MODULE_WCF_AD && $__disableAds|empty && $__wcf->getAdHandler()->getAds('com.woltlab.wcf.sidebar.top')}
                                                        <div class="box boxBorderless">
index 9f4bebca647087580ca23469d11585129aa8e859..6dd1964f3745b0596da3a0688dad7fa00c33f6d9 100644 (file)
        <section id="main" class="main" role="main"{if !$__mainItemScope|empty} {@$__mainItemScope}{/if}>
                <div class="layoutBoundary">
                        {hascontent}
-                               <aside class="sidebar boxesSidebarLeft{if !$__sidebarLeftHasMenu|empty || $__wcf->getBoxHandler()->sidebarLeftHasMenu()} boxesSidebarLeftHasMenu{/if}" data-show-sidebar="{lang}wcf.global.button.showSidebar{/lang}" data-hide-sidebar="{lang}wcf.global.button.hideSidebar{/lang}" data-show-navigation="{lang}wcf.global.button.showNavigation{/lang}" data-hide-navigation="{lang}wcf.global.button.hideNavigation{/lang}">
+                               {if !$__sidebarLeftShow|isset}{assign var='__sidebarLeftShow' value='wcf.global.button.showSidebar'|language}{/if}
+                               {if !$__sidebarLeftHide|isset}{assign var='__sidebarLeftHide' value='wcf.global.button.hideSidebar'|language}{/if}
+                               
+                               <aside class="sidebar boxesSidebarLeft{if !$__sidebarLeftHasMenu|empty || $__wcf->getBoxHandler()->sidebarLeftHasMenu()} boxesSidebarLeftHasMenu{/if}" data-show-sidebar="{$__sidebarLeftShow}" data-hide-sidebar="{$__sidebarLeftHide}" data-show-navigation="{lang}wcf.global.button.showNavigation{/lang}" data-hide-navigation="{lang}wcf.global.button.hideNavigation{/lang}">
                                        <div class="boxContainer">
                                                {content}
                                                        {event name='boxesSidebarLeftTop'}