X-Git-Url: https://projects.mako.cc/source/scuttle/blobdiff_plain/c7f63c8b9b12efd7b3c10b9f80cda06eaf32068f..1b57a8783f47606807c879bff785ab64b6860939:/templates/bookmarks.tpl.php diff --git a/templates/bookmarks.tpl.php b/templates/bookmarks.tpl.php index ab35787..743a7c2 100644 --- a/templates/bookmarks.tpl.php +++ b/templates/bookmarks.tpl.php @@ -1,25 +1,33 @@ getServiceInstance('UserService'); +$bookmarkservice =& $sf->getServiceInstance('BookmarkService'); $logged_on_userid = $userservice->getCurrentUserId(); $this->includeTemplate($GLOBALS['top_include']); +# define variables +if (!isset($currenttag)) { + $currenttag = NULL; +} +if (!isset($user)) { + $user = NULL; +} +if (!isset($userid)) { + $userid = NULL; +} + include 'search.inc.php'; if (count($bookmarks) > 0) { ?>

- - / - / - + + / + / + - +

0 ? ' start="'. ++$start .'"' : ''); ?> id="bookmarks"> @@ -93,6 +101,12 @@ if (count($bookmarks) > 0) { $address = filter($row['bAddress']); + // Internet Archive WayBack Links + $archive_link = ''; + if ($GLOBALS["archive_links"]) { + $archive_link = ' - ' . T_('Archived Link') . ''; + } + // Redirection option if ($GLOBALS['useredir']) { $address = $GLOBALS['url_redir'] . $address; @@ -104,7 +118,11 @@ if (count($bookmarks) > 0) { if ($row['bDescription'] != '') { echo '
'. filter($row['bDescription']) ."
\n"; } - echo '
'. date($GLOBALS['shortdate'], strtotime($row['bDatetime'])) . $cats . $copy . $edit ."
\n"; + if ($row['bDatetime'] == $row['bModified']) { + echo '
'. date($GLOBALS['shortdate'], strtotime($row['bDatetime'])) . $cats . $copy . $edit . $archive_link ."
\n"; + } else { + echo '
updated: '. date($GLOBALS['shortdate'], strtotime($row['bModified'])) . ', original: '. date($GLOBALS['shortdate'], strtotime($row['bDatetime'])) . "" . $cats . $copy . $edit . $archive_link ."
\n"; + } echo "\n"; } ?>