Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="row item whitepaper-li">
- <div class="col-md-12">
- <!-- check if the post has thumbnail -->
- <?php if ( has_post_thumbnail($type->id)) {?>
- <div class="col-xs-3">
- <a href="<?php the_permalink($type->id); ?>" title="<?php echo esc_attr($type->title); ?>" >
- <?php echo get_the_post_thumbnail($type->id,'thumbnail', array( 'class' => 'whitepapers-featuredimage' )); ?>
- </a>
- </div>
- <!-- if no thumbnail attached, use default -->
- <?php } else { ?>
- <div class="col-xs-3">
- <a href="<?php the_permalink($type->id); ?>" title="<?php echo esc_attr($type->title);?>" >
- <img class="whitepapers-def-thumb" src="<?php echo esc_url(getPostTypeIcon( 'whitepapers' )); ?>"/>
- </a>
- </div>
- <?php } ?>
- <div class="col-xs-9">
- <h2 class="h3">
- <a href="<?php the_permalink($type->id) ?>"><?php echo esc_attr($type->title); ?>
- </a>
- </h2>
- <p>
- <?php echo esc_html($type->excerpt); ?> <a href="<?php the_permalink($type->id)?>">Continued</a>
- </p>
- </div>
- <hr>
- <?php if( array_key_exists('topics', $type->tags) ) foreach( $type->tags['topics'] as $topic ) { ?>
- <input type="hidden" value="<?php echo $topic->slug; ?>" name="<?php echo $topic->name; ?>" />
- <?php } ?>
- </div> <!-- end col-11 -->
- </div>
- <?php } ?>
- </div><!-- end content-wrap -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement