2009-10-27 21:04:12 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Bookmark thumbnail image
|
|
|
|
* Shows the website thumbnail for the bookmark.
|
|
|
|
*
|
|
|
|
* Expects a $row variable with bookmark data.
|
|
|
|
*/
|
|
|
|
|
2014-04-23 23:12:55 +02:00
|
|
|
$thumbnailer = SemanticScuttle_Service_Factory::get('Thumbnails')->getThumbnailer();
|
|
|
|
$imgUrl = $thumbnailer->getThumbnailUrl($address, 120, 90);
|
|
|
|
if ($imgUrl !== false) {
|
|
|
|
echo '<a href="' . htmlspecialchars($address) . '">'
|
|
|
|
. '<img class="thumbnail" width="120" height="90" src="'
|
|
|
|
. htmlspecialchars($imgUrl).
|
|
|
|
'" />'
|
|
|
|
. '</a>';
|
|
|
|
}
|
2009-10-27 21:04:12 +01:00
|
|
|
?>
|