/** * Prints HTML with meta information for the categories, tags, comments and edit link. */ function edin_entry_meta() { if (has_post_format()) { $format = get_post_format(); echo '<span class="post-format-link"><a class="genericon genericon-' . $format . '" href="' . esc_url(get_post_format_link($format)) . '" title="' . esc_attr(sprintf(__('All %s posts', 'edin'), get_post_format_string($format))) . '"><span class="screen-reader-text">' . get_post_format_string($format) . '</span></a></span>'; } /* 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(__(', ', 'edin')); if ($categories_list && edin_categorized_blog()) { printf('<span class="cat-links">' . __('Posted in %1$s', 'edin') . '</span>', $categories_list); } /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list('', __(', ', 'edin')); if ($tags_list) { printf('<span class="tags-links">' . __('Tagged %1$s', 'edin') . '</span>', $tags_list); } } if (!post_password_required() && (comments_open() || '0' != get_comments_number())) { echo '<span class="comments-link">'; comments_popup_link(__('Leave a comment', 'edin'), __('1 Comment', 'edin'), __('% Comments', 'edin')); echo '</span>'; } edit_post_link(__('Edit', 'edin'), '<span class="edit-link">', '</span>'); }
<div class="page-content"> <p><?php _e('It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'edin'); ?> </p> <?php get_search_form(); ?> <?php the_widget('WP_Widget_Recent_Posts'); ?> <?php if (edin_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', 'edin'); ?> </h2> <ul> <?php wp_list_categories(array('orderby' => 'count', 'order' => 'DESC', 'show_count' => 1, 'title_li' => '', 'number' => 10)); ?> </ul> </div><!-- .widget --> <?php }