summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-01-07 10:30:15 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-01-07 10:30:15 +0000
commitd68d3dc525b942460c4a5a1b10273c128278a837 (patch)
tree379d7195c12bbdd3d10168012173415913d28397 /templates
parent6f95a6af5389b3f3a3affd309ac73f689dee21b8 (diff)
downloadsemanticscuttle-d68d3dc525b942460c4a5a1b10273c128278a837.tar.gz
semanticscuttle-d68d3dc525b942460c4a5a1b10273c128278a837.tar.bz2
Interface Fix: add father tags into linked tags box
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@222 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'templates')
-rw-r--r--templates/sidebar.block.linked.php33
1 files changed, 14 insertions, 19 deletions
diff --git a/templates/sidebar.block.linked.php b/templates/sidebar.block.linked.php
index c78b5e1..33f2a27 100644
--- a/templates/sidebar.block.linked.php
+++ b/templates/sidebar.block.linked.php
@@ -56,10 +56,7 @@ $cUser = $userservice->getUser($userid);
?></h2>
<?php //endif?>
-<div id="related">
-
-<!-- table-->
-<?php
+<div id="related"><!-- table--> <?php
if($editingMode) {
//echo '<tr><td></td><td>';
echo '<p style="margin-bottom: 13px;text-align:center;">';
@@ -80,20 +77,20 @@ foreach($explodedTags as $explodedTag) {
// fathers tag
- /*$fatherTags = $tag2tagservice->getLinkedTags($explodedTag, '>', $userid, true);
+ $fatherTags = $tag2tagservice->getLinkedTags($explodedTag, '>', $userid, true);
if(count($fatherTags)>0) {
- foreach($fatherTags as $fatherTag) {
- echo '<tr><td></td><td>';
- echo '<a href="'. sprintf($cat_url, filter($user, 'url'), filter($fatherTag, 'url')) .'" rel="tag">('. filter($fatherTag) .')</a>';
- echo '</td></tr>';
- }
+ foreach($fatherTags as $fatherTag) {
+ //echo '<tr><td></td><td>';
+ echo '<a href="'. sprintf($cat_url, filter($user, 'url'), filter($fatherTag, 'url')) .'" rel="tag">('. filter($fatherTag) .')</a> ';
+ //echo '</td></tr>';
+ }
}
-
- $displayLinkedTags = displayLinkedTags($explodedTag, '>', $userid, $cat_url, $user, $editingMode, null, 1);
- echo $displayLinkedTags['output'];
- if(is_array($displayLinkedTags['stopList'])) {
- $stopList = array_merge($stopList, $displayLinkedTags['stopList']);
- }*/
+ /*
+ $displayLinkedTags = displayLinkedTags($explodedTag, '>', $userid, $cat_url, $user, $editingMode, null, 1);
+ echo $displayLinkedTags['output'];
+ if(is_array($displayLinkedTags['stopList'])) {
+ $stopList = array_merge($stopList, $displayLinkedTags['stopList']);
+ }*/
echo '<div dojoType="dojo.data.ItemFileReadStore" url="'.ROOT.'ajax/getlinkedtags.php?tag='.$explodedTag.'&uId='.$userid.'" jsid="linkedTagStore" ></div>';
echo '<div dojoType="dijit.Tree" store="linkedTagStore" labelAttr="name" >';
echo '<script type="dojo/method" event="onClick" args="item">';
@@ -107,8 +104,6 @@ foreach($explodedTags as $explodedTag) {
}
}
-?>
-<!-- /table-->
-</div>
+?> <!-- /table--></div>
<?php endif?>