martcol

Reactor Post Thumb

Nov 3rd, 2013
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.70 KB | None | 0 0
  1. /**
  2.  * Post thumbnail
  3.  * in format-standard
  4.  *
  5.  * @since 1.0.0
  6.  */
  7. function reactor_do_standard_thumbnail() {
  8.     $link_titles = reactor_option('frontpage_link_titles', 0);
  9.    
  10.     if ( has_post_thumbnail() ) { ?>
  11.         <div class="entry-thumbnail small-4 column">
  12.         <?php if ( is_page_template('page-templates/front-page.php') && !$link_titles ) {
  13.             the_post_thumbnail( 'thumb-150' ); ?>
  14.  
  15. <?php } elseif ( is_single()){ ;?>
  16.         <?php } else { ;?>
  17.  
  18.                 <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail('thumb-150'); ?></a>
  19.             <?php } ?>
  20.         </div>
  21.     <?php }
  22. }
  23. add_action('reactor_post_header', 'reactor_do_standard_thumbnail', 4);
Advertisement
Add Comment
Please, Sign In to add comment