Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div <?php post_class(); ?>>
- <div class="teaser">
- <a href="' . esc_url( get_permalink()) . '" rel="bookmark"><?php the_post_thumbnail('featured-teaser'); ?></a>
- <div class="teaser-text">
- <?php
- $comment_count = get_comment_count($post->ID);
- if ($comment_count['approved'] > 0) :
- ?>
- <span class="teaser-comment-total"><?php comments_number('0', '1', '% '); ?></span>
- <?php endif; ?>
- <?php if (is_sticky()) : ?>
- <?php the_title('<h3 class="teaser-title"><span>★</span><a href="' . esc_url( get_permalink()) . '" rel="bookmark">', '</a></h3>'); ?>
- <?php else: ?>
- <?php the_title('<h3 class="teaser-title"><a href="' . esc_url( get_permalink()) . '" rel="bookmark">', '</a></h3>'); ?>
- <?php endif; ?>
- <?php the_excerpt(); ?>
- </div>
- <div class="teaser-footer">
- <p><?php echo get_avatar(get_the_author_meta('ID'), 20); ?> <span><?php the_author(); ?> • <?php the_time(get_option('date_format')); ?></span></p>
- </div>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement