Commit 44e7b353 authored by Stefan.Bruckner's avatar Stefan.Bruckner
Browse files

sizing of head images

parent 1a9b1d58
......@@ -96,6 +96,10 @@ function present_post($post, $skipongoing)
<?php if (has_post_thumbnail()) :
echo get_the_post_thumbnail($post->ID,'thumbnail');
elseif ($head and has_post_thumbnail($head->ID)):
$src = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'team-thumb');
$thumb_src = $src[0]; ?>
<img src="<?php echo $thumb_src ?>" alt="IMG"/>
<?php
echo get_the_post_thumbnail($head->ID,'thumbnail');
else: ?>
<img src= "<?php bloginfo('template_directory'); ?>/images/noimage.png"/>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment