Esempio n. 1
0
                ?>
</a>
                        <?php 
                wp_link_pages(array('before' => '<div class="page-links">' . __('Pages:', 'accesspress-staple'), 'after' => '</div>'));
                ?>
                    </div><!-- .entry-content -->

                    <footer class="entry-footer">
                        <?php 
                if ('post' == get_post_type()) {
                    // Hide category and tag text for pages on Search
                    ?>
                            <?php 
                    /* translators: used between list items, there is a space after the comma */
                    $categories_list = get_the_category_list(__(', ', 'accesspress-staple'));
                    if ($categories_list && accesspress_staple_categorized_blog()) {
                        ?>
                            <span class="cat-links">
                                <?php 
                        printf(__('Posted in %1$s', 'accesspress-staple'), $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('', __(', ', 'accesspress-staple'));
                    if ($tags_list) {
 /**
  * Prints HTML with meta information for the categories, tags and comments.
  */
 function accesspress_staple_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(__(', ', 'accesspress-staple'));
         if ($categories_list && accesspress_staple_categorized_blog()) {
             printf('<span class="cat-links">' . __('Posted in %1$s', 'accesspress-staple') . '</span>', $categories_list);
         }
         /* translators: used between list items, there is a space after the comma */
         $tags_list = get_the_tag_list('', __(', ', 'accesspress-staple'));
         if ($tags_list) {
             printf('<span class="tags-links">' . __('Tagged %1$s', 'accesspress-staple') . '</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', 'accesspress-staple'), __('1 Comment', 'accesspress-staple'), __('% Comments', 'accesspress-staple'));
         echo '</span>';
     }
     edit_post_link(__('Edit', 'accesspress-staple'), '<span class="edit-link">', '</span>');
 }