/** * Prints HTML with meta information for the categories, tags and comments. */ function twentyseventeen_entry_footer() { /* translators: used between list items, there is a space after the comma */ $separate_meta = __(', ', 'twentyseventeen'); // Get Categories for posts. $categories_list = get_the_category_list($separate_meta); // Get Tags for posts. $tags_list = get_the_tag_list('', $separate_meta); // We don't want to output .entry-footer if it will be empty, so make sure its not. if (twentyseventeen_categorized_blog() && $categories_list || $tags_list || get_edit_post_link()) { echo '<footer class="entry-footer">'; if ('post' === get_post_type()) { if ($categories_list && twentyseventeen_categorized_blog() || $tags_list) { echo '<span class="cat-tags-links">'; // Make sure there's more than one category before displaying. if ($categories_list && twentyseventeen_categorized_blog()) { echo '<span class="cat-links">' . twentyseventeen_get_svg(array('icon' => 'folder-open')) . '<span class="screen-reader-text">' . __('Categories', 'twentyseventeen') . '</span>' . $categories_list . '</span>'; } if ($tags_list) { echo '<span class="tags-links">' . twentyseventeen_get_svg(array('icon' => 'hashtag')) . '<span class="screen-reader-text">' . __('Tags', 'twentyseventeen') . '</span>' . $tags_list . '</span>'; } echo '</span>'; } } twentyseventeen_edit_link(); echo '</footer> <!-- .entry-footer -->'; } }
?> > <?php if (is_sticky() && is_home()) { echo twentyseventeen_get_svg(array('icon' => 'thumb-tack')); } ?> <header class="entry-header"> <?php if ('post' === get_post_type()) { echo '<div class="entry-meta">'; if (is_single()) { twentyseventeen_posted_on(); } else { echo twentyseventeen_time_link(); twentyseventeen_edit_link(); } echo '</div><!-- .entry-meta -->'; } if (is_single()) { the_title('<h1 class="entry-title">', '</h1>'); } else { the_title('<h2 class="entry-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h2>'); } ?> </header><!-- .entry-header --> <?php if ('' !== get_the_post_thumbnail() && !is_single()) { ?> <div class="post-thumbnail">
%"></div> </div><!-- .panel-image --> <?php } ?> <div class="panel-content"> <div class="wrap"> <header class="entry-header"> <?php the_title('<h2 class="entry-title">', '</h2>'); ?> <?php twentyseventeen_edit_link(get_the_ID()); ?> </header><!-- .entry-header --> <div class="entry-content"> <?php /* translators: %s: Name of current post */ the_content(sprintf(__('Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen'), get_the_title())); ?> </div><!-- .entry-content --> <?php // Show recent blog posts if is blog posts page (Note that get_option returns a string, so we're casting the result as an int). if (get_the_ID() === (int) get_option('page_for_posts')) { ?>