From fbfeab12aa0428cc910525d24e7b13cd344fbed0 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 28 May 2013 15:20:41 +0200 Subject: [PATCH] Sidebar optimization --- com.woltlab.wcf/template/footer.tpl | 4 +++ com.woltlab.wcf/template/header.tpl | 46 +++++++++++++----------- wcfsetup/install/files/style/layout.less | 9 ----- 3 files changed, 30 insertions(+), 29 deletions(-) diff --git a/com.woltlab.wcf/template/footer.tpl b/com.woltlab.wcf/template/footer.tpl index 11ba24abe2..7a5730c2b0 100644 --- a/com.woltlab.wcf/template/footer.tpl +++ b/com.woltlab.wcf/template/footer.tpl @@ -3,6 +3,10 @@ {if $skipBreadcrumbs|empty}{include file='breadcrumbs' __microdata=false}{/if} + + {if $sidebarOrientation|isset && $sidebarOrientation == 'right'} + {@$__sidebar} + {/if} diff --git a/com.woltlab.wcf/template/header.tpl b/com.woltlab.wcf/template/header.tpl index d84155eed6..54a540138b 100644 --- a/com.woltlab.wcf/template/header.tpl +++ b/com.woltlab.wcf/template/header.tpl @@ -45,27 +45,33 @@
- {if $sidebar|isset} - - - {if $sidebarOrientation|isset && $sidebarOrientation == 'right'} - + {capture assign='__sidebar'} + {if $sidebar|isset} + + + {if $sidebarOrientation|isset && $sidebarOrientation == 'right'} + + {/if} {/if} - {/if} + {/capture} + + {if !$sidebarOrientation|isset || $sidebarOrientation == 'left'} + {@$__sidebar} + {/if}
diff --git a/wcfsetup/install/files/style/layout.less b/wcfsetup/install/files/style/layout.less index 27156eb76d..f3bda629cb 100644 --- a/wcfsetup/install/files/style/layout.less +++ b/wcfsetup/install/files/style/layout.less @@ -643,15 +643,6 @@ } &.sidebarOrientationRight { - direction: rtl; - - > div { - > .sidebar, - > .content { - direction: ltr; - } - } - &.sidebarCollapsed > div { > .sidebar { width: 20px; -- 2.20.1