function _photos_slide in Album Photos 7.3
Same name and namespace in other branches
- 6.2 inc/photos.album.inc \_photos_slide()
Slide show. @todo add support for jQuery and other slide show(s).
2 calls to _photos_slide()
- photos_album_share in inc/
photos.album.inc - Photos album share.
- photos_album_slide in inc/
photos.album.inc - Album slide show.
File
- inc/
photos.album.inc, line 299 - Handles album views and content.
Code
function _photos_slide($node) {
if ($node->album['slide']) {
list($width, $height) = explode('x', $node->album['slide']);
}
else {
list($width, $height) = explode('x', variable_get('photos_display_slide', '640x480'));
}
$type = $node->type == 'photos' ? 'album' : 'sub_album';
if (module_exists('dfgallery')) {
$output = dfgallery_html(array(
'url' => url('photos/data/' . $type . '/' . $node->nid . '/json.json', array(
'absolute' => TRUE,
)),
'width' => $width,
'height' => $height,
));
return $output;
}
}