From 7c8fcbe7f60ed6b81cdb8525e61f40e2aa7de690 Mon Sep 17 00:00:00 2001 From: Fabio Varesano Date: Sun, 18 Feb 2007 14:45:47 +0000 Subject: #81157 by Sean B Fuller: Don't show video image in node body if showing the video in node body --- plugins/video_image/video_image.module | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'plugins') 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; } -- cgit v1.2.3