Exemplo n.º 1
0
?>

		<?php 
wp_link_pages(array('before' => '<div class="page-links">' . esc_html__('Pages:', 'tecblogger'), 'after' => '</div>'));
?>
	</div><!-- .entry-content -->
	
	<?php 
if ('post' == get_post_type()) {
    // Hide category and tag text for pages on Search
    ?>
	<footer class="entry-footer">
		<?php 
    /* translators: used between list items, there is a space after the comma */
    $categories_list = get_the_category_list(__(', ', 'tecblogger'));
    if ($categories_list && tecblogger_categorized_blog()) {
        ?>
		<span class="cat-links">
			<?php 
        printf(__('Posted in %1$s', 'tecblogger'), $categories_list);
        ?>
		</span>
		<?php 
    }
    // End if categories
    ?>
	
		<?php 
    /* translators: used between list items, there is a space after the comma */
    $tags_list = get_the_tag_list('', __(', ', 'tecblogger'));
    if ($tags_list) {
 /**
  * Prints HTML with meta information for the categories, tags and comments.
  */
 function tecblogger_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(esc_html__(', ', 'tecblogger'));
         if ($categories_list && tecblogger_categorized_blog()) {
             printf('<span class="cat-links">' . esc_html__('Posted in %1$s', 'tecblogger') . '</span>', $categories_list);
             // WPCS: XSS OK.
         }
         /* translators: used between list items, there is a space after the comma */
         $tags_list = get_the_tag_list('', esc_html__(', ', 'tecblogger'));
         if ($tags_list) {
             printf('<span class="tags-links">' . esc_html__('Tagged %1$s', 'tecblogger') . '</span>', $tags_list);
             // WPCS: XSS OK.
         }
     }
     if (!is_single() && !post_password_required() && (comments_open() || get_comments_number())) {
         echo '<span class="comments-link">';
         comments_popup_link(esc_html__('Leave a comment', 'tecblogger'), esc_html__('1 Comment', 'tecblogger'), esc_html__('% Comments', 'tecblogger'));
         echo '</span>';
     }
     edit_post_link(esc_html__('Edit', 'tecblogger'), '<span class="edit-link">', '</span>');
 }