|
@@ -55,6 +55,8 @@ if ($vars['type'] == 'simplenews' && $vars['view_mode'] == 'teaser') {
|
|
image_style_create_derivative("card-full", $img_src, $img_uri);
|
|
image_style_create_derivative("card-full", $img_src, $img_uri);
|
|
// theme the new image tag
|
|
// theme the new image tag
|
|
$img = theme('image', array('path'=>$img_uri));
|
|
$img = theme('image', array('path'=>$img_uri));
|
|
|
|
+ // link the image to the node
|
|
|
|
+ $img = l($img, "node/".$node->nid, array("html"=>true));
|
|
// replace the body with this new styled image
|
|
// replace the body with this new styled image
|
|
$vars['content']['body'][0]['#markup'] = $img;
|
|
$vars['content']['body'][0]['#markup'] = $img;
|
|
}
|
|
}
|