$time_string = sprintf($time_string, esc_attr(get_the_date('c')), esc_html(get_the_date()), esc_attr(get_the_modified_date('c')), esc_html(get_the_modified_date())); $posted_on = sprintf(_x('%s', 'post date', 'wp-profile'), '<a href="' . esc_url(get_permalink()) . '" rel="bookmark"><i class="fa fa-clock-o"></i>' . $time_string . '</a>'); echo '<ul class="featured-items">'; echo '<li><div class="tag-container"><span class="byline">' . $posted_on . '</span></div></li>'; echo '<li><div class="tag-container"><span class="author vcard"><a class="url fn n" href="' . esc_url(get_author_posts_url(get_the_author_meta('ID'))) . '"><i class="fa fa-user fa-6"> </i>' . esc_html(get_the_author()) . '</a></span></div></li>'; echo '<li><div class="tag-container"><span class="post-comments"><a href="#comments"><i class="fa fa-comments-o"></i>' . $post->comment_count . '</a></spa></div></li>'; echo '</ul>'; ?> </div> </div> <div class="row entry-meta"> <div id="featured-category" class="col-lg-8"> <?php $categories_list = get_the_category_list(__(', ', 'wp-profile')); if ($categories_list && wp_profile_categorized_blog()) { printf('<span class="cat-links">' . __('Posted in %1$s', 'wp-profile') . '</span>', $categories_list); } ?> </div> </div> <?php the_content(); ?> <?php if (get_theme_mod('wp_profile_author_bio')) { ?> <div class="author-bio"> <?php $author_avatar = get_avatar(get_the_author_meta('email'), '75');
<div class="page-content col-md-9"> <p><?php _e('It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'wp-profile'); ?> </p> <?php get_search_form(); ?> <?php the_widget('WP_Widget_Recent_Posts'); ?> <?php if (wp_profile_categorized_blog()) { // Only show the widget if site has multiple categories. ?> <div class="widget widget_categories"> <h2 class="widget-title"><?php _e('Most Used Categories', 'wp-profile'); ?> </h2> <ul> <?php wp_list_categories(array('orderby' => 'count', 'order' => 'DESC', 'show_count' => 1, 'title_li' => '', 'number' => 10)); ?> </ul> </div><!-- .widget --> <?php }
/** * Prints HTML with meta information for the categories, tags and comments. */ function wp_profile_entry_footer() { // Hide category and tag text for pages. if ('post' == get_post_type()) { /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list(__(', ', 'wp-profile')); if ($categories_list && wp_profile_categorized_blog()) { printf('<span class="cat-links">' . __('Posted in %1$s', 'wp-profile') . '</span>', $categories_list); } /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list('', __(', ', 'wp-profile')); if ($tags_list) { printf('<span class="tags-links">' . __('Tagged %1$s', 'wp-profile') . '</span>', $tags_list); } } if (!is_single() && !post_password_required() && (comments_open() || get_comments_number())) { echo '<span class="comments-link">'; comments_popup_link(__('Leave a comment', 'wp-profile'), __('1 Comment', 'wp-profile'), __('% Comments', 'wp-profile')); echo '</span>'; } edit_post_link(__('Edit', 'wp-profile'), '<span class="edit-link">', '</span>'); }