fixed some display

This commit is contained in:
Bachir Soussi Chiadmi
2015-06-15 18:15:53 +02:00
parent cc8306bc14
commit 2e4a069036
4 changed files with 271 additions and 198 deletions

View File

@@ -55,6 +55,8 @@ if ($vars['type'] == 'simplenews' && $vars['view_mode'] == 'teaser') {
image_style_create_derivative("card-full", $img_src, $img_uri);
// theme the new image tag
$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
$vars['content']['body'][0]['#markup'] = $img;
}