sshot
Categories
Component ID
1951902
Component name
sshot
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
The S-Shot Screenshots module uses the s-shot.ru service to fetch and display thumbnails of web pages.
The module is a view widget for the Link module. Simply go to the display management page and select the "Sshot thumbnail" format.
Same formatter works in Views as well. There is an additional option to choose the screenshot image size.
The module provides function theme_sshot_image() to request and display web pages screenshots. The theme function could be executed as follows:
$options = array(
'url' => 'http://drupal.org', //URL of the site
'size' => 'l', // size of the generated screenshot.
'image_options' => array(
'attributes' => array('class' => 'my-class') // image "class" attribute
),
'url_options' => array(
'attributes' => array(
'class' => array('class1 class2'), // link "class" attributes
'title' => 'this is the URL title',
'target' => '_blank'
)
)
);
echo theme_sshot_image($options);
NOTE:
Module fully based on code of pagepeeker module. Author: geobaev.
