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
This commit is contained in:
parent
d68d3dc525
commit
32398ee61b
4 changed files with 30 additions and 9 deletions
|
@ -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
|
$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)
|
$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]}
|
$sizeSearchHistory = 10; # number of users' searches that are saved {1..10[Default]..-1[Unlimited]}
|
||||||
$enableGoogleCustomSearch = true; #Enable Google Search Engine into "gsearch/" folder
|
$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.
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -507,6 +507,12 @@ ul {
|
||||||
width: 75%;
|
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 */
|
||||||
|
|
||||||
/* DOJO Style */
|
/* DOJO Style */
|
||||||
|
|
|
@ -19,6 +19,13 @@ include('search.inc.php');
|
||||||
<?php endif?>
|
<?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
|
<?php
|
||||||
// common tag description
|
// common tag description
|
||||||
if((isset($currenttag) && $currenttag!= '' && $GLOBALS['enableCommonTagDescription'])
|
if((isset($currenttag) && $currenttag!= '' && $GLOBALS['enableCommonTagDescription'])
|
||||||
|
|
|
@ -1,10 +1,16 @@
|
||||||
|
<?php if($GLOBALS['enableAdminColors']!=false && isset($userid) && $userservice->isAdmin($userid)): ?>
|
||||||
|
<div id="sidebar" class="adminBackground">
|
||||||
|
<?php else: ?>
|
||||||
<div id="sidebar">
|
<div id="sidebar">
|
||||||
<?php
|
<?php endif ?>
|
||||||
|
|
||||||
|
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$size = count($sidebar_blocks);
|
||||||
|
for ($i = 0; $i < $size; $i++) {
|
||||||
|
$this->includeTemplate('sidebar.block.'. $sidebar_blocks[$i]);
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
$size = count($sidebar_blocks);
|
|
||||||
for ($i = 0; $i < $size; $i++) {
|
|
||||||
$this->includeTemplate('sidebar.block.'. $sidebar_blocks[$i]);
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
Loading…
Reference in a new issue