summaryrefslogtreecommitdiff
path: root/templates/sidebar.tpl.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/sidebar.tpl.php')
-rw-r--r--templates/sidebar.tpl.php24
1 files changed, 15 insertions, 9 deletions
diff --git a/templates/sidebar.tpl.php b/templates/sidebar.tpl.php
index 88915fc..ad5c74f 100644
--- a/templates/sidebar.tpl.php
+++ b/templates/sidebar.tpl.php
@@ -1,10 +1,16 @@
-
+<?php if($GLOBALS['enableAdminColors']!=false && isset($userid) && $userservice->isAdmin($userid)): ?>
+<div id="sidebar" class="adminBackground">
+<?php else: ?>
<div id="sidebar">
- <?php
-
- $size = count($sidebar_blocks);
- for ($i = 0; $i < $size; $i++) {
- $this->includeTemplate('sidebar.block.'. $sidebar_blocks[$i]);
- }
- ?>
-</div>
+<?php endif ?>
+
+
+<?php
+
+$size = count($sidebar_blocks);
+for ($i = 0; $i < $size; $i++) {
+ $this->includeTemplate('sidebar.block.'. $sidebar_blocks[$i]);
+}
+?>
+
+</div> \ No newline at end of file