aboutsummaryrefslogtreecommitdiff
path: root/templates/sidebar.block.linked.php
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-03-12 16:53:00 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-03-12 16:53:00 +0000
commit1ed53ed3419f7d49bdb216c0e5f823ce3fd4145e (patch)
tree0afef004d3bf12e6bfb04bea57ddd771cb8d0265 /templates/sidebar.block.linked.php
parent0bc299ae6cf0139241bd25cef48a1849a1e8e03f (diff)
downloadsemanticscuttle-1ed53ed3419f7d49bdb216c0e5f823ce3fd4145e.tar.gz
semanticscuttle-1ed53ed3419f7d49bdb216c0e5f823ce3fd4145e.tar.bz2
Interface design: improve navigation between tags (clickable >)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@71 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'templates/sidebar.block.linked.php')
-rw-r--r--templates/sidebar.block.linked.php17
1 files changed, 11 insertions, 6 deletions
diff --git a/templates/sidebar.block.linked.php b/templates/sidebar.block.linked.php
index 74b58ae..c3adfdd 100644
--- a/templates/sidebar.block.linked.php
+++ b/templates/sidebar.block.linked.php
@@ -11,12 +11,17 @@ function displayLinkedTags($tag, $linkType, $uId, $cat_url, $user, $editingMode
$tag2tagservice =& ServiceFactory::getServiceInstance('Tag2TagService');
$tagstatservice =& ServiceFactory::getServiceInstance('TagStatService');
+ // link '>'
+ if($level>1) {
+ $link = '<small><a href="'.createURL('tag2tagedit', $precedentTag.'/'.$tag).'" title="'._('Edit link').'">></a> </small>';
+ }
+
$output = '';
$output.= '<tr>';
$output.= '<td></td>';
$output.= '<td>';
$output.= $level == 1?'<b>':'';
- $output.= str_repeat('&nbsp;', $level*2) .'<a href="'. sprintf($cat_url, filter($user, 'url'), filter($tag, 'url')) .'" rel="tag">'. filter($tag) .'</a>';
+ $output.= str_repeat('&nbsp;', $level*2) .$link.'<a href="'. sprintf($cat_url, filter($user, 'url'), filter($tag, 'url')) .'" rel="tag">'. filter($tag) .'</a>';
$output.= $level == 1?'</b>':'';
//$output.= ' - '. $tagstatservice->getMaxDepth($tag, $linkType, $uId);
@@ -35,15 +40,15 @@ function displayLinkedTags($tag, $linkType, $uId, $cat_url, $user, $editingMode
$output.= '<span title="'.T_('Synonyms:').' '.$synonymList.'">, etc</span>';
}
- if($editingMode) {
+ /*if($editingMode) {
$output.= ' (';
- $output.= '<a href="'.createURL('tag2tagadd', $tag).'">add</a>';
- if($precedentTag != null) {
+ $output.= '<a href="'.createURL('tag2tagadd', $tag).'" title="'._('Add a subtag').'">+</a>';
+ if(1) {
$output.= ' - ';
- $output.= '<a href="'.createURL('tag2tagdelete', $precedentTag.'/'.$tag).'">del</a>';
+ $output.= '<a href="'.createURL('tag2tagdelete', $tag).'">-</a>';
}
$output.= ')';
- }
+ }*/
$output.= '</td>';
$output.= '</tr>';