Commit e2c319ac authored by Stefan Bruckner's avatar Stefan Bruckner
Browse files
parents e783df49 44e7b353
......@@ -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"/>
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