/** * Displays meta information for the current post - post-date/time, author and comments count. * * @param string $location Where will be displayed. */ function gently_posted_on($location = '') { $time_string = gently_entry_time(); $author_avatar = get_avatar(get_the_author_meta('ID'), '35'); $posted_on = '<a href="' . esc_url(get_permalink()) . '" rel="bookmark">' . $time_string . '</a>'; $byline = '<span class="author vcard">' . $author_avatar . '<a class="url fn n" href="' . esc_url(get_author_posts_url(get_the_author_meta('ID'))) . '">' . esc_html(get_the_author()) . '</a></span>'; $comments_count = gently_comments_count(); if ($location === 'search') { echo '<span class="posted-on">' . $posted_on . '</span>' . '<span class="byline"> ' . gently_get_author() . '</span>'; } else { if ($location === 'archive') { echo '<span class="byline"> ' . gently_get_author() . '</span>' . '<span class="posted-on">' . $posted_on . '</span>'; } else { echo '<span class="byline"> ' . $byline . '<br></span><span class="posted-on">' . $posted_on . '</span>' . $comments_count; } } }
<?php the_content(); ?> <?php wp_link_pages(array('before' => '<div class="page-links">' . esc_html__('Pages:', 'gently'), 'after' => '</div>')); ?> </div> <!-- .entry-content --> <footer class="entry-footer"> <div class="row collapse"> <div class="small-12 medium-6 columns"> <div class="entry-author"> <div class="author-info"> <?php echo gently_get_author(); ?> <?php gently_author_social_icons(); ?> </div> <div class="author-bio clear"> <?php echo get_avatar(get_the_author_meta('ID'), 50); ?> <p> <?php echo get_the_author_meta('description'); ?> </p> </div>