diff options
Diffstat (limited to 'www')
| -rw-r--r-- | www/bookmarks.php | 17 | ||||
| -rw-r--r-- | www/tags.php | 15 | 
2 files changed, 30 insertions, 2 deletions
| diff --git a/www/bookmarks.php b/www/bookmarks.php index efc1680..44119db 100644 --- a/www/bookmarks.php +++ b/www/bookmarks.php @@ -229,12 +229,14 @@ if ($templatename == 'editbookmark.tpl') {  	$tplVars['sidebar_blocks'] = array('watchstatus');  	if (!$cat) { //user page without tags +                $rssTitle = ": My Bookmarks";  		$cat = NULL;  		$tplVars['currenttag'] = NULL;  		//$tplVars['sidebar_blocks'][] = 'menu2';  		$tplVars['sidebar_blocks'][] = 'linked';  		$tplVars['sidebar_blocks'][] = 'popular';  	} else { //pages with tags +                $rssTitle = ": Tags" . $catTitle;  		$rssCat = '/'. filter($cat, 'url');  		$tplVars['currenttag'] = $cat;  		$tplVars['sidebar_blocks'][] = 'tagactions'; @@ -264,9 +266,22 @@ if ($templatename == 'editbookmark.tpl') {  	// Set template vars  	$tplVars['rsschannels'] = array( -	array(filter($sitename .': '. $pagetitle), createURL('rss', filter($user, 'url') . $rssCat.'?sort='.getSortOrder())) +	array(filter($sitename .$rssTitle), createURL('rss', filter($user, 'url') . $rssCat.'?sort='.getSortOrder()))  	); +    if ($userservice->isLoggedOn()) { +        $currentUsername = $currentUser->getUsername(); +        if ($userservice->isPrivateKeyValid($currentUser->getPrivateKey())) { +            array_push( +                $tplVars['rsschannels'], +                array( +                    filter($sitename . $rssTitle. sprintf(T_(': (private) ')) . $currentUsername), +                    createURL('rss', filter($currentUsername, 'url') . '?sort='.getSortOrder().'&privatekey='.$currentUser->getPrivateKey()) +                ) +            ); +        } +    } +  	$tplVars['page'] = $page;  	$tplVars['start'] = $start;  	$tplVars['bookmarkCount'] = $start + 1; diff --git a/www/tags.php b/www/tags.php index a4e6555..09725e4 100644 --- a/www/tags.php +++ b/www/tags.php @@ -67,9 +67,22 @@ if ($usecache) {  $tplVars['pagetitle'] = T_('Tags') .': '. $cat;  $tplVars['loadjs'] = true;  $tplVars['rsschannels'] = array( -array(filter($sitename .': '. $pagetitle), createURL('rss', 'all/'. filter($cat, 'url')).'?sort='.getSortOrder()) +array(filter($sitename .': Tags: '. $cat), createURL('rss', 'all/'. filter($cat, 'url')).'?sort='.getSortOrder())  ); +if ($userservice->isLoggedOn()) { +    $currentUsername = $currentUser->getUsername(); +    if ($userservice->isPrivateKeyValid($currentUser->getPrivateKey())) { +        array_push( +            $tplVars['rsschannels'], +            array( +                filter($sitename .': Tags: '. $cat . sprintf(T_(': (private) ')) . $currentUsername), +                createURL('rss', filter($currentUsername, 'url') . '?sort='.getSortOrder().'&privatekey='.$currentUser->getPrivateKey()) +            ) +        ); +    } +} +  // Pagination  $perpage = getPerPageCount($currentUser);  if (intval(GET_PAGE) > 1) { | 
