From f01fb1362274426d5ebcc4339c4c300a079bbb8e Mon Sep 17 00:00:00 2001 From: cweiske Date: Tue, 27 Oct 2009 20:30:33 +0000 Subject: move bookmark thumbnail code in separate template file git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@436 b3834d28-1941-0410-a4f8-b48e95affb8f --- data/templates/bookmarks.tpl.php | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'data/templates/bookmarks.tpl.php') diff --git a/data/templates/bookmarks.tpl.php b/data/templates/bookmarks.tpl.php index f35139a..7a47a7f 100644 --- a/data/templates/bookmarks.tpl.php +++ b/data/templates/bookmarks.tpl.php @@ -184,7 +184,7 @@ if($currenttag!= '') { $pagesBanner = '

'. $bfirst .' / '. $bprev .' / '. $bnext .' / '. $blast .' / '. sprintf(T_('Page %d of %d'), $page, $totalpages) ." ". $brss ."

\n"; - if(getPerPageCount($currentUser) > 10) { + if (getPerPageCount($currentUser) > 10) { echo $pagesBanner; // display a page banner if too many bookmarks to manage } @@ -260,9 +260,14 @@ if($currenttag!= '') { // Copy link if ($userservice->isLoggedOn() - && ($currentUser->getId() != $row['uId']) - && !$bookmarkservice->bookmarkExists($row['bAddress'], $currentUser->getId())) { - $copy .= ' - '. T_('Copy') .''; + && ($currentUser->getId() != $row['uId']) + && !$bookmarkservice->bookmarkExists($row['bAddress'], $currentUser->getId()) + ) { + $copy .= ' - ' + . T_('Copy') + . ''; } // Nofollow option @@ -296,11 +301,7 @@ if($currenttag!= '') { // Output echo '
  • '."\n"; - if ($GLOBALS['enableWebsiteThumbnails']) { - $thumbnailHash = md5($address.$GLOBALS['thumbnailsUserId'].$GLOBALS['thumbnailsKey']); - //echo ''; - echo ''; - } + include 'bookmarks-thumbnail.inc.tpl.php'; include 'bookmarks-vote.inc.tpl.php'; echo '
    ';; -- cgit v1.2.3-54-g00ecf