<?php /** * @package Spun */ /* * Get the post thumbnail; if one does not exist, try to get the first attached image. * If no images exist, let's print the post title instead. */ $restore_widont = remove_filter('the_title', 'widont'); $postclass = ''; $spun_image = spun_get_image(get_the_ID()); if ('' != $spun_image) { $thumb = $spun_image; } else { $thumb = '<span class="thumbnail-title no-thumbnail">' . get_the_title() . '</span>'; $postclass = 'no-thumbnail'; } if ('no-thumbnail' != $postclass) { $thumb .= '<span class="thumbnail-title">' . get_the_title() . '</span>'; } ?> <article id="post-<?php the_ID(); ?> " <?php post_class($postclass); ?> > <a href="<?php
<?php /** * @package Spun */ $format = get_post_format(); $thumb = spun_get_image(get_the_ID(), 'single-post'); ?> <article id="post-<?php the_ID(); ?> " <?php post_class(); ?> > <?php if ('' != $thumb) { ?> <div class="single-post-thumbnail"> <?php echo $thumb; ?> </div> <?php } ?> <header class="entry-header"> <?php the_title('<h1 class="entry-title">', '</h1>'); ?> </header><!-- .entry-header -->