diff options
Diffstat (limited to 'plugins/video_image')
-rw-r--r-- | plugins/video_image/video_image.module | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/plugins/video_image/video_image.module b/plugins/video_image/video_image.module index 850781a..992795a 100644 --- a/plugins/video_image/video_image.module +++ b/plugins/video_image/video_image.module @@ -195,15 +195,16 @@ function theme_video_image_teaser($node) { * string of content to display */ function theme_video_image_body($node) { - if($node->serial_data['iid']) { - $image = node_load($node->serial_data['iid']); - $image = image_display($image, 'thumbnail'); - } - else { // only for backward compatibility - $image = theme('image', $node->serial_data['image_view'], $node->title, $node->title, array('class' => 'video_image_view'), FALSE); //Create image HTML + if(variable_get('video_playinbody', 0) == 0){ + if($node->serial_data['iid']) { + $image = node_load($node->serial_data['iid']); + $image = image_display($image, 'thumbnail'); + } + else { // only for backward compatibility + $image = theme('image', $node->serial_data['image_view'], $node->title, $node->title, array('class' => 'video_image_view'), FALSE); //Create image HTML + } + $output = l($image, "node/$node->nid/play", array('title' => t('play') . ' ' . $node->title), NULL, NULL, FALSE, TRUE); //Create link HTML with image in it. } - $output = l($image, "node/$node->nid/play", array('title' => t('play') . ' ' . $node->title), NULL, NULL, FALSE, TRUE); //Create link HTML with image in it. - return $output; } |