2007-12-12 17:29:16 +01:00
< ? php
2010-09-27 00:05:20 +02:00
/**
* Show a list of bookmarks .
*
* SemanticScuttle - your social bookmark manager .
*
* PHP version 5.
*
* @ category Bookmarking
* @ package SemanticScuttle
* @ subcategory Templates
* @ author Benjamin Huynh - Kim - Bang < mensonge @ users . sourceforge . net >
* @ author Christian Weiske < cweiske @ cweiske . de >
* @ author Eric Dane < ericdane @ users . sourceforge . net >
* @ license GPL http :// www . gnu . org / licenses / gpl . html
* @ link http :// sourceforge . net / projects / semanticscuttle
*/
2008-11-21 18:25:23 +01:00
/* Service creation: only useful services are created */
2010-09-27 00:05:20 +02:00
$bookmarkservice = SemanticScuttle_Service_Factory :: get ( 'Bookmark' );
$tagservice = SemanticScuttle_Service_Factory :: get ( 'Tag' );
$cdservice = SemanticScuttle_Service_Factory :: get ( 'CommonDescription' );
2007-12-12 17:29:16 +01:00
2008-11-21 19:45:18 +01:00
2010-09-27 00:05:20 +02:00
$pageName = isset ( $pageName ) ? $pageName : '' ;
$user = isset ( $user ) ? $user : '' ;
$currenttag = isset ( $currenttag ) ? $currenttag : '' ;
2009-01-15 17:58:14 +01:00
2008-02-20 14:43:06 +01:00
2007-12-12 17:29:16 +01:00
$this -> includeTemplate ( $GLOBALS [ 'top_include' ]);
2009-10-03 23:52:30 +02:00
include ( 'search.menu.php' );
2007-12-12 17:29:16 +01:00
?>
2009-09-20 19:11:38 +02:00
< ? php if ( $pageName == PAGE_INDEX && $GLOBALS [ 'welcomeMessage' ]) : ?>
2008-05-14 10:55:38 +02:00
< p id = " welcome " >< ? php echo $GLOBALS [ 'welcomeMessage' ]; ?> </p>
< ? php endif ?>
2009-02-16 11:38:11 +01:00
< ? php if ( $GLOBALS [ 'enableAdminColors' ] != false && isset ( $userid ) && $userservice -> isAdmin ( $userid ) && $pageName != PAGE_WATCHLIST ) : ?>
2009-01-07 16:13:16 +01:00
< div style = " width:70%;text-align:center; " >
2009-02-03 15:15:34 +01:00
< img src = " <?php echo ROOT ?>images/logo_24.gif " width = " 12px " /> < ? php echo T_ ( 'Bookmarks on this page are managed by an admin user.' ); ?> <img src="<?php echo ROOT ?>images/logo_24.gif" width="12px"/>
2009-01-07 16:13:16 +01:00
</ div >
< ? php endif ?>
2008-02-13 18:34:18 +01:00
< ? php
2008-11-25 16:57:29 +01:00
// common tag description
2009-01-15 17:58:14 +01:00
if (( $currenttag != '' && $GLOBALS [ 'enableCommonTagDescription' ])
2008-11-21 19:45:18 +01:00
|| ( isset ( $hash ) && $GLOBALS [ 'enableCommonBookmarkDescription' ])) : ?>
2008-11-25 16:57:29 +01:00
2008-11-21 19:45:18 +01:00
< p class = " commondescription " >< ? php
2009-02-09 15:05:21 +01:00
$cDescription = '' ;
2009-01-15 17:58:14 +01:00
if ( $currenttag != '' && $cdservice -> getLastTagDescription ( $currenttag )) {
2009-02-09 15:05:21 +01:00
$cDescription = $cdservice -> getLastTagDescription ( $currenttag );
echo nl2br ( filter ( $cDescription [ 'cdDescription' ]));
2008-02-13 18:34:18 +01:00
} elseif ( isset ( $hash ) && $cdservice -> getLastBookmarkDescription ( $hash )) {
2009-02-09 15:05:21 +01:00
$cDescription = $cdservice -> getLastBookmarkDescription ( $hash );
echo nl2br ( filter ( $cDescription [ 'cdTitle' ])) . " <br/> " ;
echo nl2br ( filter ( $cDescription [ 'cdDescription' ])) . " <br/> " ;
2008-02-13 18:34:18 +01:00
}
2008-11-25 16:57:29 +01:00
//common tag description edit
2010-10-09 10:18:52 +02:00
if ( $userservice -> isLoggedOn ()) {
if ( $currenttag != ''
&& ( $GLOBALS [ 'enableCommonTagDescriptionEditedByAll' ]
|| $currentUser -> isAdmin ()
)
) {
2009-02-09 15:05:21 +01:00
echo ' <a href="' . createURL ( 'tagcommondescriptionedit' , $currenttag ) . '" title="' . T_ ( 'Edit the common description of this tag' ) . '">' ;
echo ! is_array ( $cDescription ) || strlen ( $cDescription [ 'cdDescription' ]) == 0 ? T_ ( 'Edit the common description of this tag' ) : '' ;
echo ' <img src="' . ROOT . 'images/b_edit.png" /></a>' ;
2010-10-09 10:18:52 +02:00
} else if ( isset ( $hash )) {
2009-02-09 15:05:21 +01:00
echo ' (<a href="' . createURL ( 'bookmarkcommondescriptionedit' , $hash ) . '" title="' . T_ ( 'Edit the common description of this bookmark' ) . '">' ;
echo T_ ( 'Edit the common description of this bookmark' ) . '</a>)' ;
2008-11-21 19:45:18 +01:00
}
2008-02-13 18:34:18 +01:00
}
2008-11-21 19:45:18 +01:00
?> </p>
2008-02-13 18:34:18 +01:00
< ? php endif ?>
2008-04-21 17:43:00 +02:00
< ? php
2009-01-15 15:15:41 +01:00
/* personal tag description */
2009-01-15 17:58:14 +01:00
if ( $currenttag != '' && $user != '' ) {
2008-11-21 19:45:18 +01:00
$userObject = $userservice -> getUserByUsername ( $user );
if ( $tagservice -> getDescription ( $currenttag , $userObject [ 'uId' ])) { ?>
2008-05-10 10:59:41 +02:00
2008-11-21 19:45:18 +01:00
< p class = " commondescription " >< ? php
2009-02-09 15:05:21 +01:00
$pDescription = $tagservice -> getDescription ( $currenttag , $userObject [ 'uId' ]);
echo nl2br ( filter ( $pDescription [ 'tDescription' ]));
2009-01-15 15:15:41 +01:00
//personal tag description edit
if ( $userservice -> isLoggedOn ()) {
2009-01-15 17:58:14 +01:00
if ( $currenttag != '' ) {
2009-02-09 15:05:21 +01:00
echo ' <a href="' . createURL ( 'tagedit' , $currenttag ) . '" title="' . T_ ( 'Edit your personal description of this tag' ) . '" >' ;
echo strlen ( $pDescription [ 'tDescription' ]) == 0 ? T_ ( 'Edit your personal description of this tag' ) : '' ;
echo ' <img src="' . ROOT . 'images/b_edit.png" /></a>' ;
2009-01-15 15:15:41 +01:00
}
}
2008-11-21 19:45:18 +01:00
?> </p>
2008-05-10 10:59:41 +02:00
2008-11-21 19:45:18 +01:00
< ? php
}
2008-05-10 10:59:41 +02:00
}
?>
2008-04-21 17:43:00 +02:00
2008-02-13 18:34:18 +01:00
< ? php if ( count ( $bookmarks ) > 0 ) { ?>
2007-12-12 17:29:16 +01:00
< script type = " text/javascript " >
window . onload = playerLoad ;
</ script >
2008-11-21 19:45:18 +01:00
< p id = " sort " >< ? php echo $total . ' ' . T_ ( " bookmark(s) " ); ?> - <?php echo T_("Sort by:"); ?>
2010-01-29 08:30:46 +01:00
< ? php
2009-10-28 23:30:12 +01:00
$titleArrow = '' ;
$dateArrow = '' ;
$votingArrow = '' ;
$dateSort = 'date_desc' ;
$titleSort = 'title_asc' ;
2009-10-28 23:34:49 +01:00
$votingSort = 'voting_desc' ;
2009-10-28 23:30:12 +01:00
2009-03-05 11:11:59 +01:00
switch ( getSortOrder ()) {
2009-10-28 23:30:12 +01:00
case 'date_asc' :
2010-11-02 19:07:59 +01:00
$dateArrow = ' ↑' ;
2009-10-28 23:30:12 +01:00
$dateSort = 'date_desc' ;
2009-03-05 11:11:59 +01:00
break ;
2009-10-28 23:30:12 +01:00
case 'title_asc' :
2010-11-02 19:07:59 +01:00
$titleArrow = ' ↑' ;
2009-10-28 23:30:12 +01:00
$titleSort = 'title_desc' ;
2009-03-05 11:11:59 +01:00
break ;
2009-10-28 23:30:12 +01:00
case 'title_desc' :
2010-11-02 19:07:59 +01:00
$titleArrow = ' ↓' ;
2009-10-28 23:30:12 +01:00
$titleSort = 'title_asc' ;
break ;
case 'voting_asc' :
2010-11-02 19:07:59 +01:00
$votingArrow = ' ↑' ;
2009-10-28 23:30:12 +01:00
$votingSort = 'voting_desc' ;
2009-03-05 11:11:59 +01:00
break ;
2009-10-28 23:30:12 +01:00
case 'voting_desc' :
2010-11-02 19:07:59 +01:00
$votingArrow = ' ↓' ;
2009-10-28 23:30:12 +01:00
$votingSort = 'voting_asc' ;
break ;
case 'date_desc' :
default :
2010-11-02 19:07:59 +01:00
$dateArrow = ' ↓' ;
2009-03-05 11:11:59 +01:00
$dateSort = 'date_asc' ;
break ;
}
2009-10-28 23:30:12 +01:00
?>
2010-09-27 00:05:20 +02:00
< a href = " ?sort=<?php echo $dateSort ?> " >< ? php echo T_ ( " Date " ) . $dateArrow ; ?> </a>
< span >/</ span >
< a href = " ?sort=<?php echo $titleSort ?> " >< ? php echo T_ ( " Title " ) . $titleArrow ; ?> </a>
< span >/</ span >
2009-10-28 23:30:12 +01:00
< ? php if ( $GLOBALS [ 'enableVoting' ]) { ?>
2010-09-27 00:05:20 +02:00
< a href = " ?sort=<?php echo $votingSort ?> " >< ? php echo T_ ( " Voting " ) . $votingArrow ; ?> </a>
< span >/</ span >
2009-10-28 23:30:12 +01:00
< ? php } ?>
< ? php
2010-09-27 00:05:20 +02:00
if ( $currenttag != '' ) {
if ( $user != '' ) {
2008-11-21 19:45:18 +01:00
echo ' - ' ;
echo '<a href="' . createURL ( 'tags' , $currenttag ) . '">' ;
echo T_ ( 'Bookmarks from other users for this tag' ) . '</a>' ;
//echo T_(' for these tags');
2010-09-27 00:05:20 +02:00
} else if ( $userservice -> isLoggedOn ()){
2008-11-21 19:45:18 +01:00
echo ' - ' ;
2008-12-05 08:25:04 +01:00
echo '<a href="' . createURL ( 'bookmarks' , $currentUser -> getUsername () . '/' . $currenttag ) . '">' ;
2008-11-21 19:45:18 +01:00
echo T_ ( 'Only your bookmarks for this tag' ) . '</a>' ;
//echo T_(' for these tags');
}
}
?> </p>
2009-05-19 17:59:55 +02:00
< ? php
// PAGINATION
// Ordering
$sortOrder = '' ;
if ( GET_SORT != '' ) {
2009-10-29 10:05:56 +01:00
$sortOrder = 'sort=' . getSortOrder ();
2009-05-19 17:59:55 +02:00
}
$sortAmp = (( $sortOrder ) ? '&' . $sortOrder : '' );
$sortQue = (( $sortOrder ) ? '?' . $sortOrder : '' );
// Previous
$perpage = getPerPageCount ( $currentUser );
if ( ! $page || $page < 2 ) {
$page = 1 ;
$start = 0 ;
$bfirst = '<span class="disable">' . T_ ( 'First' ) . '</span>' ;
$bprev = '<span class="disable">' . T_ ( 'Previous' ) . '</span>' ;
} else {
$prev = $page - 1 ;
$prev = 'page=' . $prev ;
$start = ( $page - 1 ) * $perpage ;
$bfirst = '<a href="' . sprintf ( $nav_url , $user , $currenttag , '' ) . $sortQue . '">' . T_ ( 'First' ) . '</a>' ;
$bprev = '<a href="' . sprintf ( $nav_url , $user , $currenttag , '?' ) . $prev . $sortAmp . '">' . T_ ( 'Previous' ) . '</a>' ;
}
// Next
$next = $page + 1 ;
$totalpages = ceil ( $total / $perpage );
if ( count ( $bookmarks ) < $perpage || $perpage * $page == $total ) {
$bnext = '<span class="disable">' . T_ ( 'Next' ) . '</span>' ;
$blast = '<span class="disable">' . T_ ( 'Last' ) . " </span> \n " ;
} else {
$bnext = '<a href="' . sprintf ( $nav_url , $user , $currenttag , '?page=' ) . $next . $sortAmp . '">' . T_ ( 'Next' ) . '</a>' ;
$blast = '<a href="' . sprintf ( $nav_url , $user , $currenttag , '?page=' ) . $totalpages . $sortAmp . '">' . T_ ( 'Last' ) . " </a> \n " ;
}
// RSS
$brss = '' ;
$size = count ( $rsschannels );
for ( $i = 0 ; $i < $size ; $i ++ ) {
2010-09-27 00:06:31 +02:00
$brss = '<a style="background:#FFFFFF" href="' . htmlspecialchars ( $rsschannels [ $i ][ 1 ]) . '"'
. ' title="' . htmlspecialchars ( $rsschannels [ $i ][ 0 ]) . '">'
. '<img src="' . ROOT . 'images/rss.gif" width="16" height="16" alt="' . htmlspecialchars ( $rsschannels [ $i ][ 0 ]) . '"/>'
. '</a>' ;
2009-05-19 17:59:55 +02:00
}
$pagesBanner = '<p class="paging">' . $bfirst . '<span> / </span>' . $bprev . '<span> / </span>' . $bnext . '<span> / </span>' . $blast . '<span> / </span>' . sprintf ( T_ ( 'Page %d of %d' ), $page , $totalpages ) . " " . $brss . " </p> \n " ;
2009-10-28 23:30:12 +01:00
2009-10-27 21:30:33 +01:00
if ( getPerPageCount ( $currentUser ) > 10 ) {
2009-05-19 17:59:55 +02:00
echo $pagesBanner ; // display a page banner if too many bookmarks to manage
2009-10-28 23:30:12 +01:00
}
2009-05-19 17:59:55 +02:00
?>
2008-11-21 19:45:18 +01:00
2010-09-27 00:05:20 +02:00
< ol < ? php echo ( $start > 0 ? ' start="' . ++ $start . '"' : '' ); ?> id="bookmarks">
< ? php
2010-02-20 12:06:12 +01:00
$addresses = array ();
foreach ( $bookmarks as $key => & $row ) {
$addresses [ $row [ 'bId' ]] = $row [ 'bAddress' ];
}
$otherCounts = $bookmarkservice -> countOthers ( $addresses );
2010-02-20 12:41:01 +01:00
if ( $userservice -> isLoggedOn ()) {
$existence = $bookmarkservice -> bookmarksExist (
$addresses , $currentUser -> getId ()
);
}
2010-02-20 12:06:12 +01:00
2010-03-19 08:43:42 +01:00
if ( $userservice -> isLoggedOn ()) {
$watchedNames = $userservice -> getWatchNames (
$currentUser -> getId (), true
);
} else {
$watchedNames = null ;
}
2010-02-20 12:04:51 +01:00
foreach ( $bookmarks as $key => & $row ) {
2008-11-21 19:45:18 +01:00
switch ( $row [ 'bStatus' ]) {
case 0 :
$access = '' ;
break ;
case 1 :
$access = ' shared' ;
break ;
case 2 :
$access = ' private' ;
break ;
}
$cats = '' ;
$tagsForCopy = '' ;
$tags = $row [ 'tags' ];
2010-02-20 12:04:51 +01:00
foreach ( $tags as $tkey => & $tag ) {
2010-09-27 00:05:20 +02:00
$tagcaturl = sprintf (
$cat_url ,
filter ( $row [ 'username' ], 'url' ),
filter ( $tag , 'url' )
);
$cats .= sprintf (
'<a href="%s" rel="tag">%s</a>, ' ,
$tagcaturl , filter ( $tag )
);
$tagsForCopy .= $tag . ',' ;
2008-11-21 19:45:18 +01:00
}
$cats = substr ( $cats , 0 , - 2 );
if ( $cats != '' ) {
2010-09-27 00:05:20 +02:00
$cats = T_ ( 'Tags:' ) . ' ' . $cats ;
2008-11-21 19:45:18 +01:00
}
// Edit and delete links
$edit = '' ;
2009-09-22 08:21:45 +02:00
if ( $bookmarkservice -> editAllowed ( $row )) {
2010-09-27 00:05:20 +02:00
$edit = ' - <a href="' . createURL ( 'edit' , $row [ 'bId' ]) . '">'
. T_ ( 'Edit' )
. '</a>'
2010-10-09 12:15:11 +02:00
. ' <a href="#" onclick="deleteBookmark(this, ' . $row [ 'bId' ] . '); return false;">'
2010-09-27 00:05:20 +02:00
. T_ ( 'Delete' )
2010-10-09 12:15:11 +02:00
. '</a>' ;
2008-11-21 19:45:18 +01:00
}
2009-10-28 23:30:12 +01:00
2009-02-09 13:54:31 +01:00
// Last update
2010-09-27 00:05:20 +02:00
$update = ' <small title="' . T_ ( 'Last update' ) . '">(' . date ( $GLOBALS [ 'shortdate' ], strtotime ( $row [ 'bModified' ])) . ') </small>' ;
2008-11-21 19:45:18 +01:00
// User attribution
2010-09-27 00:05:20 +02:00
$copy = ' ' . T_ ( 'by' ) . ' ' ;
if ( $userservice -> isLoggedOn ()
&& $currentUser -> getUsername () == $row [ 'username' ]
) {
$copy .= T_ ( 'you' );
2009-02-09 13:54:31 +01:00
} else {
2010-09-27 00:05:20 +02:00
$copy .= '<a href="' . createURL ( 'bookmarks' , $row [ 'username' ]) . '">'
2011-03-15 19:13:14 +01:00
. SemanticScuttle_Model_UserArray :: getName ( $row )
. '</a>' ;
2008-11-21 19:45:18 +01:00
}
2010-10-09 10:18:52 +02:00
// others
2008-11-21 19:45:18 +01:00
if ( ! isset ( $hash )) {
2010-02-20 12:06:12 +01:00
$others = $otherCounts [ $row [ 'bAddress' ]];
2010-09-27 00:05:20 +02:00
$ostart = '<a href="' . createURL ( 'history' , $row [ 'bHash' ]) . '">' ;
2008-11-21 19:45:18 +01:00
$oend = '</a>' ;
switch ( $others ) {
case 0 :
break ;
case 1 :
$copy .= sprintf ( T_ ( ' and %s1 other%s' ), $ostart , $oend );
break ;
default :
$copy .= sprintf ( T_ ( ' and %2$s%1$s others%3$s' ), $others , $ostart , $oend );
}
}
// Copy link
if ( $userservice -> isLoggedOn ()
2009-10-27 21:30:33 +01:00
&& ( $currentUser -> getId () != $row [ 'uId' ])
2010-02-20 12:41:01 +01:00
&& ! $existence [ $row [ 'bAddress' ]]
2009-10-27 21:30:33 +01:00
) {
$copy .= ' - <a href="'
2010-09-27 00:05:20 +02:00
. createURL (
'bookmarks' ,
$currentUser -> getUsername ()
. '?action=add&copyOf=' . $row [ 'bId' ])
2009-10-27 21:30:33 +01:00
. '" title="' . T_ ( 'Copy this bookmark to YOUR bookmarks.' ) . '">'
. T_ ( 'Copy' )
. '</a>' ;
2008-11-21 19:45:18 +01:00
}
// Nofollow option
$rel = '' ;
if ( $GLOBALS [ 'nofollow' ]) {
$rel = ' rel="nofollow"' ;
}
2010-01-19 19:34:01 +01:00
$address = filter ( $row [ 'bAddress' ]);
$oaddress = $address ;
2008-11-21 19:45:18 +01:00
// Redirection option
if ( $GLOBALS [ 'useredir' ]) {
$address = $GLOBALS [ 'url_redir' ] . $address ;
}
2009-10-28 23:30:12 +01:00
2009-02-03 15:15:34 +01:00
// Admin specific design
2010-02-22 20:41:21 +01:00
if ( $userservice -> isAdmin ( $row [ 'username' ]) && $GLOBALS [ 'enableAdminColors' ]) {
2010-09-27 00:05:20 +02:00
$adminBgClass = ' class="adminBackground"' ;
$adminStar = ' <img src="' . ROOT . 'images/logo_24.gif" width="12px" title="' . T_ ( 'This bookmark is certified by an admin user.' ) . '" />' ;
2009-02-03 15:15:34 +01:00
} else {
$adminBgClass = '' ;
2010-09-27 00:05:20 +02:00
$adminStar = '' ;
2009-02-03 15:15:34 +01:00
}
2009-10-28 23:30:12 +01:00
2009-02-17 11:06:19 +01:00
// Private Note (just visible by the owner and his/her contacts)
2010-03-19 08:43:42 +01:00
if ( $watchedNames !== null
&& ( $currentUser -> getId () == $row [ 'uId' ]
|| in_array ( $row [ 'username' ], $watchedNames )
)
) {
2009-02-17 11:06:19 +01:00
$privateNoteField = $row [ 'bPrivateNote' ];
} else {
$privateNoteField = '' ;
}
2009-10-28 23:30:12 +01:00
2009-11-05 21:23:55 +01:00
if ( $GLOBALS [ 'enableVoting' ] && $GLOBALS [ 'hideBelowVoting' ] !== null
&& $row [ 'bVoting' ] < $GLOBALS [ 'hideBelowVoting' ]
) {
$access .= ' below-threshold' ;
}
2008-11-21 19:45:18 +01:00
// Output
2010-09-27 00:05:20 +02:00
echo ' <li class="xfolkentry' . $access . '">' . " \n " ;
2009-10-27 21:30:33 +01:00
include 'bookmarks-thumbnail.inc.tpl.php' ;
2009-10-26 22:55:43 +01:00
include 'bookmarks-vote.inc.tpl.php' ;
2009-10-28 23:30:12 +01:00
2010-09-27 00:05:20 +02:00
echo ' <div' . $adminBgClass . '>' . " \n " ;
2008-11-21 19:45:18 +01:00
2010-09-27 00:05:20 +02:00
echo ' <div class="link">'
2010-10-09 10:18:52 +02:00
. '<a href="' . htmlspecialchars ( $address ) . '"' . $rel . ' class="taggedlink">'
2010-09-27 00:05:20 +02:00
. filter ( $row [ 'bTitle' ])
. '</a>' . $adminStar . " </div> \n " ;
2008-11-21 19:45:18 +01:00
if ( $row [ 'bDescription' ] == '' ) {
2010-01-19 21:23:23 +01:00
$bkDescription = $GLOBALS [ 'blankDescription' ];
2008-12-18 17:25:17 +01:00
} else {
2009-02-09 12:16:02 +01:00
// Improve description display (anchors, links, ...)
2008-12-18 17:25:17 +01:00
$bkDescription = preg_replace ( '|\[\/.*?\]|' , '' , filter ( $row [ 'bDescription' ])); // remove final anchor
2009-02-17 11:25:29 +01:00
$bkDescription = preg_replace ( '|\[(.*?)\]|' , ' <span class="anchorBookmark">$1</span> » ' , $bkDescription ); // highlight starting anchor
2009-02-09 13:54:31 +01:00
$bkDescription = preg_replace ( '@((http|https|ftp)://.*?)( |\r|$)@' , '<a href="$1" rel="nofollow">$1</a>$3' , $bkDescription ); // make url clickable
2009-10-28 23:30:12 +01:00
2008-11-21 19:45:18 +01:00
}
2010-09-27 00:05:20 +02:00
echo ' <div class="description">' . nl2br ( $bkDescription ) . " </div> \n " ;
echo ' <div class="address">' . shortenString ( $oaddress ) . " </div> \n " ;
echo ' <div class="meta">'
. $cats . " \n "
. $copy . " \n "
. $edit . " \n "
. $update . " \n "
. " </div> \n " ;
echo $privateNoteField != ''
? ' <div class="privateNote" title="' . T_ ( 'Private Note on this bookmark' ) . '">' . $privateNoteField . " </div> \n "
: '' ;
echo ' ' ;
2009-11-02 10:37:14 +01:00
include 'bookmarks-vote-horizontal.inc.tpl.php' ;
2010-09-27 00:05:20 +02:00
echo " </div> \n " ;
2008-11-21 19:45:18 +01:00
2010-09-27 00:05:20 +02:00
echo " </li> \n " ;
2008-11-21 19:45:18 +01:00
}
?>
</ ol >
< ? php
2009-10-28 23:30:12 +01:00
if ( getPerPageCount ( $currentUser ) > 7 ) {
2009-05-19 17:59:55 +02:00
echo '<p class="backToTop"><a href="#header" title="' . T_ ( 'Come back to the top of this page.' ) . '">' . T_ ( 'Top of the page' ) . '</a></p>' ;
2008-02-13 18:41:47 +01:00
}
2009-05-19 17:59:55 +02:00
echo $pagesBanner ; // display previous and next links pages + RSS link
2009-10-28 23:30:12 +01:00
2008-04-24 10:48:57 +02:00
2007-12-12 17:29:16 +01:00
} else {
2008-11-21 19:45:18 +01:00
echo '<p class="error">' . T_ ( 'No bookmarks available' ) . '</p>' ;
2007-12-12 17:29:16 +01:00
}
$this -> includeTemplate ( 'sidebar.tpl' );
$this -> includeTemplate ( $GLOBALS [ 'bottom_include' ]);
?>