summaryrefslogtreecommitdiff
path: root/data/templates/default/sidebar.tpl.php
blob: b4fac9609de47f42c86fab7ee892f40ca5695b17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php if ($GLOBALS['enableAdminColors'] != false
    && isset($userid) && $userservice->isAdmin($userid)
): ?>
<div id="sidebar" class="adminBackground">
<?php else: ?>
<div id="sidebar">
<?php endif ?>


<?php
echo $GLOBALS['sidebarTopMessage'].' ';

if (isset($sidebar_blocks) && count($sidebar_blocks)) {
    $size = count($sidebar_blocks);
    for ($i = 0; $i < $size; $i++) {
        $this->includeTemplate('sidebar.block.'. $sidebar_blocks[$i]);
    }
}

echo $GLOBALS['sidebarBottomMessage'];
?>

</div>