Skip to content

Commit

Permalink
If the admin does not specify a Featured image, then the non fans wil…
Browse files Browse the repository at this point in the history
…l see the content of the page
  • Loading branch information
jeherve committed Jun 8, 2011
1 parent 5b9dd1e commit 2fcf1f4
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions template.php
Expand Up @@ -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; ?>

Expand Down

0 comments on commit 2fcf1f4

Please sign in to comment.