summaryrefslogtreecommitdiffstatshomepage
path: root/bookmarks.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 /bookmarks.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 'bookmarks.php')
-rw-r--r--bookmarks.php23
1 files changed, 18 insertions, 5 deletions
diff --git a/bookmarks.php b/bookmarks.php
index 3a948ef..f8d73de 100644
--- a/bookmarks.php
+++ b/bookmarks.php
@@ -100,7 +100,15 @@ if ($user) {
}
if ($cat) {
$catTitle = ': '. str_replace('+', ' + ', $cat);
- $pagetitle .= $catTitle;
+
+ $catTitleWithUrls = ': ';
+ $titleTags = explode('+', filter($cat));
+ for($i = 0; $i<count($titleTags);$i++) {
+ $catTitleWithUrls.= $titleTags[$i].'<a href="'.createUrl('bookmarks', $user.'/'.aggregateTags($titleTags, '+', $titleTags[$i])).'" title="'.T_('Remove the tag from the selection').'">*</a> + ';
+ }
+ $catTitleWithUrls = substr($catTitleWithUrls, 0, strlen($catTitleWithUrls) - strlen(' + '));
+
+ $pagetitle .= $catTitleWithUrls;
}
$pagetitle = substr($pagetitle, 2);
@@ -237,12 +245,17 @@ if ($templatename == 'editbookmark.tpl') {
$tplVars['cat_url'] = createURL('bookmarks', '%s/%s');
$tplVars['nav_url'] = createURL('bookmarks', '%s/%s%s');
if ($userservice->isLoggedOn() && $user == $currentUsername) {
- $title = T_('My Bookmarks') . filter($catTitle);
+ //$title = T_('My Bookmarks') . $catTitleWithUrls;
+ $tplVars['pagetitle'] = T_('My Bookmarks') . $catTitle;
+ $tplVars['subtitle'] = T_('My Bookmarks') . $catTitleWithUrls;
} else {
- $title = filter($pagetitle);
+ //$title = $pagetitle;
+ //$tplVars['pagetitle'] = $pagetitle;
+ $tplVars['pagetitle'] = '';
+ $tplVars['subtitle'] = $pagetitle;
}
- $tplVars['pagetitle'] = $title;
- $tplVars['subtitle'] = $title;
+ //$tplVars['pagetitle'] = $title;
+ //$tplVars['subtitle'] = $title;
}
$tplVars['summarizeLinkedTags'] = true;