Permalink
Browse files

If the admin does not specify a Featured image, then the non fans wil…

…l see the content of the page
  • Loading branch information...
1 parent 5b9dd1e commit 2fcf1f44440845023e8c3576cb70a929f49bd683 @jeherve committed Jun 8, 2011
Showing with 14 additions and 4 deletions.
  1. +14 −4 template.php
View
@@ -60,12 +60,22 @@
</div><!-- .container -->
<?php else : ?>
-
- <div class="photo clearfix">
- <?php the_post_thumbnail( 'fb-nonfans' ); ?>
+ <?php if ( has_post_thumbnail() ) : ?>
+
+ <div class="photo clearfix">
+ <?php the_post_thumbnail( 'fb-nonfans' ); ?>
+ </div><!-- .photo -->
+
+ <?php else : ?>
+
+ <div class="container clearfix">
+ <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
+ <?php the_content(); ?>
+ </div>
+ </div><!-- .container -->
- </div><!-- .photo -->
+ <?php endif; ?>
<?php endif; ?>

0 comments on commit 2fcf1f4

Please sign in to comment.