Skip to content

Commit 9c680eb

Browse files
committed
Add sidebar
1 parent 268f73b commit 9c680eb

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

main.php

+19-1
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,30 @@ function ua_smt (){
5050
<div class="container">
5151
<div class="row">
5252

53-
<!-- ********** CONTENT ********** -->
5453
<?php if (ua_smt() == true){
5554
echo '<div class="col-12 mt-4">';
5655
} else {
5756
echo '<div class="col-12 px-4 mt-4 border-left border-dark">';
5857
} ?>
58+
59+
<?php if (ua_smt() == false): ?>
60+
<?php if($showSidebar): ?>
61+
<!-- ********** ASIDE ********** -->
62+
<div id="dokuwiki__aside"><div class="pad aside include group">
63+
<h3 class="toggle"><?php echo $lang['sidebar'] ?></h3>
64+
<div class="content"><div class="group">
65+
<?php tpl_flush() ?>
66+
<?php tpl_includeFile('sidebarheader.html') ?>
67+
<?php tpl_include_page($conf['sidebar'], true, true) ?>
68+
<?php tpl_includeFile('sidebarfooter.html') ?>
69+
</div></div>
70+
</div></div><!-- /aside -->
71+
<?php endif; ?>
72+
<?php endif; ?>
73+
74+
75+
<!-- ********** CONTENT ********** -->
76+
5977
<div id="dokuwiki__content"><div class="pad group">
6078
<?php html_msgarea() ?>
6179

0 commit comments

Comments
 (0)