aboutsummaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-10-27 20:04:12 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-10-27 20:04:12 +0000
commit1ea488babea9bfd8b9b25e8ee025495c2befe655 (patch)
tree78ca4ddc42824eb13960ccf90c4460d7428eb742 /data/templates
parentf24a387cc95661ed724d4a51651a96a0f1b8c488 (diff)
downloadsemanticscuttle-1ea488babea9bfd8b9b25e8ee025495c2befe655.tar.gz
semanticscuttle-1ea488babea9bfd8b9b25e8ee025495c2befe655.tar.bz2
move thumbnail code in own file
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@434 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/bookmarks-thumbnail.inc.tpl.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/data/templates/bookmarks-thumbnail.inc.tpl.php b/data/templates/bookmarks-thumbnail.inc.tpl.php
new file mode 100644
index 0000000..200b8f7
--- /dev/null
+++ b/data/templates/bookmarks-thumbnail.inc.tpl.php
@@ -0,0 +1,18 @@
+<?php
+/**
+ * Bookmark thumbnail image
+ * Shows the website thumbnail for the bookmark.
+ *
+ * Expects a $row variable with bookmark data.
+ */
+if (!$GLOBALS['enableWebsiteThumbnails']) {
+ return;
+}
+
+$thumbnailHash = md5(
+ $address . $GLOBALS['thumbnailsUserId'] . $GLOBALS['thumbnailsKey']
+);
+//echo '<a href="'. $address .'"'. $rel .' ><img class="thumbnail" src="http://www.artviper.net/screenshots/screener.php?url='.$address.'&w=120&sdx=1280&userID='.$GLOBALS['thumbnailsUserId'].'&hash='.$thumbnailHash.'" />';
+echo '<img class="thumbnail" onclick="window.location.href=\''.$address.'\'" src="http://www.artviper.net/screenshots/screener.php?url='.$address.'&w=120&sdx=1280&userID='.$GLOBALS['thumbnailsUserId'].'&hash='.$thumbnailHash.'" />';
+
+?> \ No newline at end of file