From 2fb1f13f9335c01996b3e3e9ac6d5f60e5d3b211 Mon Sep 17 00:00:00 2001 From: mensonge Date: Tue, 17 Feb 2009 10:06:19 +0000 Subject: Interface fix: makes visible private notes on bookmarks pages. git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@285 b3834d28-1941-0410-a4f8-b48e95affb8f --- templates/bookmarks.tpl.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'templates/bookmarks.tpl.php') diff --git a/templates/bookmarks.tpl.php b/templates/bookmarks.tpl.php index 777e7ca..bb09c4e 100644 --- a/templates/bookmarks.tpl.php +++ b/templates/bookmarks.tpl.php @@ -208,7 +208,14 @@ if($currenttag!= '') { $adminBgClass = ''; $adminStar = ''; } - + + // Private Note (just visible by the owner and his/her contacts) + if($userservice->isLoggedOn() && ($currentUser->getId() == $row['uId'] || in_array($row['username'], $userservice->getWatchNames($currentUser->getId(), true)))) { + $privateNoteField = $row['bPrivateNote']; + } else { + $privateNoteField = ''; + } + // Output echo '
  • '."\n"; if ($GLOBALS['enableWebsiteThumbnails']) { @@ -235,7 +242,7 @@ if($currenttag!= '') { //} echo '
    '. $cats . $copy . $edit . $update ."
    \n"; - + echo $privateNoteField!=''?'
    '.$privateNoteField."
    \n":''; echo ''; echo "
  • \n"; -- cgit v1.2.3-54-g00ecf