]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
New Feature: special colors on admin page and bookmarks allowing to mark a difference...
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Wed, 7 Jan 2009 15:13:16 +0000 (15:13 +0000)
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Wed, 7 Jan 2009 15:13:16 +0000 (15:13 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@223 b3834d28-1941-0410-a4f8-b48e95affb8f

config.inc.php.example
scuttle.css
templates/bookmarks.tpl.php
templates/sidebar.tpl.php

index df4c615dc4a7ce83756265bcaa35857b6164c7b5..56cf957b4de7e405caa630dc7ecdcc172bcfc8db 100644 (file)
@@ -82,9 +82,11 @@ $menuTag = 'menu'; # name of the tag whose subtags will appear into the menu box
 $maxSizeMenuBlock = 7; # maximum number of items (tags) appearing into menu box
 $menu2Tags = array('example', 'of', 'menu', 'tags'); # list of tags used by menu2 sidebar box (void list = hidden menu2 box)
 
-### Other ###
+### Search ###
 $sizeSearchHistory = 10; # number of users' searches that are saved {1..10[Default]..-1[Unlimited]}
 $enableGoogleCustomSearch = true; #Enable Google Search Engine into "gsearch/" folder
 
+### Other ###
+$enableAdminColors = true;  #Enables special colors on admin pages and bookmarks marking the difference with normal user.
 
 ?>
index 9dfc0a4592464eaf248abe2ab3591b80eea3977a..7f9b579062790a5066eeff9cea57ba3b8a4512a6 100644 (file)
@@ -507,6 +507,12 @@ ul {
        width: 75%;
 }
 
+.adminBackground {
+    background: #FFFFFF url(http://127.0.0.6/SemanticScuttle/trunk/images/logo_24.png) repeat-y scroll top right;    
+    /*border-top: 1px solid;
+    border-color: #CC9900;*/
+}
+
 /* DOJO Style */
 
 /* DOJO Style */
index 4a9c1b261d5f34fecf31d6517a7f380af6ecd0bd..56fadbe90ad7153d4687495c5c34d551c39f7c54 100644 (file)
@@ -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'])
index 88915fc52b6b761f8b2b737901fe3c8d1e753fd1..ad5c74fc71d389706e8867d9205e3173b6756d01 100644 (file)
@@ -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