wide content toggler
This commit is contained in:
parent
1b899691a7
commit
3569264837
3 changed files with 5 additions and 4 deletions
|
@ -164,7 +164,7 @@
|
|||
.content {
|
||||
.row > .col-xs-12{
|
||||
width: auto;
|
||||
float: right;
|
||||
float: none;
|
||||
}
|
||||
}
|
||||
&.showSidebar{
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
$elem.wrapInner('<a href="#toggleMenu" class="toggler"></a>');
|
||||
},
|
||||
setWideContent = function(){
|
||||
|
||||
$('body').addClass('wide-content');
|
||||
},
|
||||
setDefaultContent= function(){
|
||||
|
||||
$('body').removeClass('wide-content');
|
||||
},
|
||||
toggleState = function($toggler){
|
||||
$toggler.toggleClass('closed');
|
||||
|
|
3
main.php
3
main.php
|
@ -83,8 +83,9 @@ $showSidebar = true; /* */
|
|||
|
||||
|
||||
/* #dokuwiki__top used as anchor for "back to top" button/link links */
|
||||
$classWideContent = ($ACT === "show") ? "": "wide-content ";
|
||||
?>
|
||||
<body id="dokuwiki__top" class="<?php echo tpl_classes(); ?> <?php echo ($ACT) ? 'do-'.$ACT : 'do-none'; ?> <?php echo ($showSidebar) ? 'showSidebar' : ''; ?>">
|
||||
<body id="dokuwiki__top" class="<?php echo tpl_classes(); ?> <?php echo ($ACT) ? 'do-'.$ACT : 'do-none'; ?> <?php echo $classWideContent; ?><?php echo ($showSidebar) ? 'showSidebar' : ''; ?>">
|
||||
|
||||
<div id="dokuwiki__site">
|
||||
<?php
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue