drupal显示图片的几种方式

1、

1
<?php print render($content['field_image']); ?>

2、

1
2
3
<?php
print theme('image_style', array('path' => $node->field_image['und'][0]['uri'], 'style_name' => [STYLE NAME]));
?>

3、

1
<img src="<?php print image_style_url($style, $img_url) ?>>

发表评论

电子邮件地址不会被公开。 必填项已用*标注