Skip to content

Commit

Permalink
no format int values, just use true/false
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Sep 28, 2015
1 parent 26bb30f commit ba196ad
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions class-book-reviews.php
Original file line number Diff line number Diff line change
Expand Up @@ -1100,13 +1100,11 @@ public function create_shortcode( $atts ) {
</a>
<?php } ?>

<?php if ( $format ) {
if ( $format == 1 ) { ?>
<?php the_excerpt(); ?>
<?php } elseif ( $format == 2 ) { ?>
<?php the_content(); ?>
<?php }
} ?>
<?php if ( $format ) { ?>
<?php the_excerpt(); ?>
<?php } else { ?>
<?php the_content(); ?>
<?php } ?>
</div>

<div class="post-meta">
Expand Down

0 comments on commit ba196ad

Please sign in to comment.