summaryrefslogtreecommitdiffstatshomepage
path: root/tags.php
diff options
context:
space:
mode:
authorGravatar mensonge2008-12-18 22:11:03 +0000
committerGravatar mensonge2008-12-18 22:11:03 +0000
commit3cae6838170fc79f7d367bcb017b67e91620c54c (patch)
tree17c9a3b1edbe3abf74ca3614c01d87138f0f3f52 /tags.php
parente0a61f1fc5e74cbbaf7c710b57bc7a2dca4d05c2 (diff)
downloadscuttle-3cae6838170fc79f7d367bcb017b67e91620c54c.tar.gz
scuttle-3cae6838170fc79f7d367bcb017b67e91620c54c.zip
Interface fix: allows to remove a tag from selection in subtitle bar thanks to a *
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@207 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'tags.php')
-rw-r--r--tags.php19
1 files changed, 14 insertions, 5 deletions
diff --git a/tags.php b/tags.php
index bee3092..358501c 100644
--- a/tags.php
+++ b/tags.php
@@ -39,10 +39,17 @@ list($url, $cat) = explode('/', $_SERVER['PATH_INFO']);
if (!$cat) {
header('Location: '. createURL('populartags'));
exit;
-} else {
- $cattitle = str_replace('+', ' + ', $cat);
}
-$pagetitle = T_('Tags') .': '. $cattitle;
+
+$titleTags = explode('+', filter($cat));
+$pagetitle = T_('Tags') .': ';
+for($i = 0; $i<count($titleTags);$i++) {
+ $pagetitle.= $titleTags[$i].'<a href="'.createUrl('tags', aggregateTags($titleTags, '+', $titleTags[$i])).'" title="'.T_('Remove the tag from the selection').'">*</a> + ';
+}
+$pagetitle = substr($pagetitle, 0, strlen($pagetitle) - strlen(' + '));
+
+
+//$cattitle = str_replace('+', ' + ', $cat);
if ($usecache) {
// Generate hash for caching on
@@ -57,7 +64,8 @@ if ($usecache) {
}
// Header variables
-$tplVars['pagetitle'] = $pagetitle;
+//$tplVars['pagetitle'] = $pagetitle;
+$tplVars['pagetitle'] = '';
$tplVars['loadjs'] = true;
$tplVars['rsschannels'] = array(
array(filter($sitename .': '. $pagetitle), createURL('rss', 'all/'. filter($cat, 'url')).'?sort='.getSortOrder())
@@ -78,7 +86,7 @@ $tplVars['start'] = $start;
$tplVars['popCount'] = 25;
$tplVars['currenttag'] = $cat;
$tplVars['sidebar_blocks'] = array('linked', 'related', 'popular');
-$tplVars['subtitle'] = filter($pagetitle);
+$tplVars['subtitle'] = $pagetitle;
$tplVars['bookmarkCount'] = $start + 1;
$bookmarks =& $bookmarkservice->getBookmarks($start, $perpage, NULL, $cat, NULL, getSortOrder());
$tplVars['total'] = $bookmarks['total'];
@@ -92,4 +100,5 @@ if ($usecache) {
// Cache output if existing copy has expired
$cacheservice->End($hash);
}
+
?>