diff options
author | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2009-01-07 15:13:16 +0000 |
---|---|---|
committer | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2009-01-07 15:13:16 +0000 |
commit | 32398ee61bf5fec93f2a0236149eb44db72768d2 (patch) | |
tree | 482f01d3c75d5e7793bf4755fb93277f48b3b28c /templates | |
parent | d68d3dc525b942460c4a5a1b10273c128278a837 (diff) | |
download | semanticscuttle-32398ee61bf5fec93f2a0236149eb44db72768d2.tar.gz semanticscuttle-32398ee61bf5fec93f2a0236149eb44db72768d2.tar.bz2 |
New Feature: special colors on admin page and bookmarks allowing to mark a difference with bookmarks from normal users. [Config file modified: ]
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@223 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'templates')
-rw-r--r-- | templates/bookmarks.tpl.php | 7 | ||||
-rw-r--r-- | templates/sidebar.tpl.php | 24 |
2 files changed, 22 insertions, 9 deletions
diff --git a/templates/bookmarks.tpl.php b/templates/bookmarks.tpl.php index 4a9c1b2..56fadbe 100644 --- a/templates/bookmarks.tpl.php +++ b/templates/bookmarks.tpl.php @@ -19,6 +19,13 @@ include('search.inc.php'); <?php endif?> +<?php if($GLOBALS['enableAdminColors']!=false && isset($userid) && $userservice->isAdmin($userid)): ?> +<div style="width:70%;text-align:center;"> +<img src="<?php echo ROOT ?>images/logo_24.png" width="12px"/> <?php echo T_('Bookmarks on this page are managed by an admin user.'); ?><img src="<?php echo ROOT ?>images/logo_24.png" width="12px"/> +</div> +<?php endif?> + + <?php // common tag description if((isset($currenttag) && $currenttag!= '' && $GLOBALS['enableCommonTagDescription']) 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 |