diagnostic_using_thumbnails() ) $this->set_option( 'manually_using_thumbnails', true ); $options = array( 'thumbnails_heading', 'thumbnails_default', 'no_results' ); extract( $this->parse_args( $args, $options ) ); // a little easter egg: if the default image URL is left blank, // default to the theme's header image. (hopefully it has one) if ( empty($thumbnails_default) ) $thumbnails_default = get_header_image(); $dimensions = $this->thumbnail_dimensions(); $output .= '

' . $thumbnails_heading . '

' . "\n"; if (have_posts()) { $output .= '
' . "\n"; while (have_posts()) { the_post(); $output .= "" . "\n"; $post_thumbnail_html = ''; if ( has_post_thumbnail() ) { if ( $this->diagnostic_generate_thumbnails() ) $this->ensure_resized_post_thumbnail( get_the_ID(), $dimensions ); $post_thumbnail_html = get_the_post_thumbnail( null, $dimensions['size'] ); } if ( trim($post_thumbnail_html) != '' ) $output .= $post_thumbnail_html; else $output .= ''; $output .= '' . get_the_title() . ''; $output .= '' . "\n"; } $output .= "
\n"; } else { $output .= $no_results; } $this->enqueue_thumbnails( $dimensions );