Advertisement
Guest User

content-child.php { Pinboard, setting up default thumbnail }

a guest
Apr 18th, 2015
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.59 KB | None | 0 0
  1. <article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
  2.     <div class="entry">
  3.         <?php if( ! pinboard_post_is_full_width() ) { ?>
  4.         <?php if ( has_post_thumbnail() ) { ?>
  5.                     <?php pinboard_post_thumbnail(); ?>
  6.         <?php } else { ?>
  7.                     <figure class="entry-thumbnail">
  8.                         <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
  9.                             <img width="auto" height="auto" src="http://bhsolutions.eu/wp-content/uploads/2013/09/BH_h250.png" class="attachment-teaser-thumb wp-post-image" alt="<?php the_title_attribute(); ?>"></img>          
  10.                         </a>
  11.                     </figure>
  12.         <?php }
  13.         }
  14.         ?>
  15.         <div class="entry-container">
  16.             <header class="entry-header">
  17.                 <<?php pinboard_title_tag( 'post' ); ?> class="entry-title">
  18.                     <?php the_title(); ?>
  19.                 </<?php pinboard_title_tag( 'post' ); ?>>
  20.  
  21.                 <?php if( pinboard_post_is_full_width() ) : ?>
  22.                     <?php pinboard_entry_meta(); ?>
  23.                 <?php endif; ?>
  24.             </header><!-- .entry-header -->
  25.             <?php if( pinboard_post_is_full_width() ) : ?>
  26.                 <?php pinboard_post_thumbnail(); ?>
  27.             <?php endif; ?>
  28.             <?php if( ! is_category( pinboard_get_option( 'portfolio_cat' ) ) && ! ( is_category() && cat_is_ancestor_of( pinboard_get_option( 'portfolio_cat' ), get_queried_object() ) ) ) : ?>
  29.                 <div class="entry-summary">
  30.                     <?php // the_excerpt(); ?>
  31.                 </div><!-- .entry-summary -->
  32.             <?php endif; ?>
  33.             <div class="clear"></div>
  34.         </div><!-- .entry-container -->
  35.         <?php if( ! pinboard_post_is_full_width() ) : ?>
  36.             <?php pinboard_entry_meta(); ?>
  37.         <?php endif; ?>
  38.     </div><!-- .entry -->
  39. </article><!-- .post -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement