diff --git a/wp-content/themes/twentyeleven/showcase.php b/wp-content/themes/twentyeleven/showcase.php
index 19c5b99971..69435ef32c 100644
--- a/wp-content/themes/twentyeleven/showcase.php
+++ b/wp-content/themes/twentyeleven/showcase.php
@@ -78,9 +78,9 @@ get_header(); ?>
/**
* We're going to add a class to our featured post for featured images
- * by default it'll have no class though.
+ * by default it'll have the feature-text class.
*/
- $feature_class = '';
+ $feature_class = 'feature-text';
if ( has_post_thumbnail() ) {
// ... but if it has a featured image let's add some class
@@ -94,32 +94,28 @@ get_header(); ?>
// If bigger, let's add a BIGGER class. It's EXTRA classy now.
$feature_class = 'feature-image large';
}
- } else {
- $feature_class = 'feature-text';
}
- ?>
-
-
- ';
+ get_template_part( 'content', get_post_format() );
- else : ?>
-
';
- have_posts() ) : $recent->the_post(); ?>
+
+
+ // If we had some posts, close the
+ if ( $recent->post_count > 0 )
+ echo '
';
+ ?>