the_post_thumbnail('main-featured'); ?> </a> </figure> <?php } ?> <!-- .entry-image --> <header class="entry-header"> <?php the_title('<h2 class="entry-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h2>'); ?> <!-- <p class="entry-meta entry-meta-time"> <a href="<?php the_permalink(); ?> " rel="bookmark"><i class="fa fa-clock-o"></i><?php echo eighties_get_time_difference(get_the_date('Y-m-d H:i:s')); ?> </a> </p> --> </header><!-- .entry-header --> <div class="entry-summary"> <?php the_excerpt(); ?> </div><!-- .entry-content --> </article><!-- #post-## -->
/** * Template for comments and pingbacks. * * Used as a callback by wp_list_comments() for displaying the comments. * * @since 1.0.0 */ function eighties_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; $timestamp = eighties_get_time_difference($comment->comment_date); if ('pingback' == $comment->comment_type || 'trackback' == $comment->comment_type) { ?> <li id="comment-<?php comment_ID(); ?> " <?php comment_class(); ?> > <?php _e('Pingback:', 'eighties'); ?> <?php comment_author_link(); ?> <?php } else { ?> <li id="comment-<?php comment_ID(); ?> " <?php comment_class(empty($args['has_children']) ? '' : 'parent'); ?> > <?php if ($args['avatar_size'] != 0) { echo get_avatar($comment, $args['avatar_size']); } ?> <div class="comment-wrap"> <div class="comment-top vcard"> <span class="comment-author"> <?php printf(__('%s', 'eighties'), get_comment_author_link()); ?> </span> <span class="comment-meta comment-time"> · <?php echo $timestamp; ?> </span> </div> <div id="comment-body-<?php comment_ID(); ?> " class="comment-body"> <?php if ($comment->comment_approved == '0') { ?> <div class="comment-awaiting-moderation"> <p class="notice"><?php _e('Your comment is awaiting moderation.', 'eighties'); ?> </p> </div> <?php } ?> <?php comment_text(); ?> </div> <div class="reply"> <?php comment_reply_link(array_merge($args, array('add_below' => 'comment-body', 'depth' => $depth, 'max_depth' => $args['max_depth']))); ?> </div> </div> <?php } }