X-Git-Url: https://projects.mako.cc/source/scuttle/blobdiff_plain/fbab1fbe884c9f1f0fbd419ad0db0793ef52dbaf..d477c6adca34948d272e753cd0d11df35fcf23cb:/templates/bookmarks.tpl.php diff --git a/templates/bookmarks.tpl.php b/templates/bookmarks.tpl.php index d068a9a..fa40561 100644 --- a/templates/bookmarks.tpl.php +++ b/templates/bookmarks.tpl.php @@ -89,6 +89,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; @@ -101,9 +107,9 @@ if (count($bookmarks) > 0) { echo '
'. filter($row['bDescription']) ."
\n"; } if ($row['bDatetime'] == $row['bModified']) { - echo '
'. date($GLOBALS['shortdate'], strtotime($row['bDatetime'])) . $cats . $copy . $edit ."
\n"; + 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 ."
\n"; + echo '
updated: '. date($GLOBALS['shortdate'], strtotime($row['bModified'])) . ', original: '. date($GLOBALS['shortdate'], strtotime($row['bDatetime'])) . "" . $cats . $copy . $edit . $archive_link ."
\n"; } echo "\n"; }