Esempio n. 1
0
    /**
     * Template for comments and pingbacks.
     *
     * Used as a callback by wp_list_comments() for displaying the comments.
     */
    function breathe_comment($comment, $args, $depth)
    {
        $GLOBALS['comment'] = $comment;
        switch ($comment->comment_type) {
            case 'pingback':
            case 'trackback':
                ?>
	<li class="post pingback">
		<p><?php 
                _e('Pingback:', 'p2-breathe');
                ?>
 <?php 
                comment_author_link();
                edit_comment_link(__('Edit', 'p2-breathe'), '<span class="edit-link">', '<span>');
                ?>
</p>
	<?php 
                break;
            default:
                ?>
	<li <?php 
                comment_class();
                ?>
 id="li-comment-<?php 
                comment_ID();
                ?>
">
		<article id="comment-<?php 
                comment_ID();
                ?>
" class="comment">
			<footer>
				<?php 
                echo get_avatar($comment, 32);
                ?>

				<div class="comment-meta commentmetadata">
				<?php 
                echo get_comment_author_link();
                ?>

				<span class="comment-date">
					<?php 
                breathe_date_time_with_microformat('comment');
                ?>
				</span>
				<span class="comment-actions">
					<?php 
                do_action('breathe_comment_actions', $args, $depth);
                ?>
				</span>
				</div><!-- .comment-meta .commentmetadata -->
			</footer>

			<div class="comment-content"><?php 
                comment_text();
                ?>
</div>
		</article><!-- #comment-## -->

	<?php 
                break;
        }
    }
Esempio n. 2
0
				<a href="<?php 
    echo esc_url($author_posts_url);
    ?>
" title="<?php 
    echo esc_attr($posts_by_title);
    ?>
" class="entry-author"><?php 
    the_author();
    ?>
</a>
			<?php 
}
?>
			<span class="entry-date">
				<?php 
breathe_date_time_with_microformat();
?>
			</span>
			<span class="entry-actions">
				<?php 
do_action('breathe_post_actions');
?>
			</span>
			<?php 
if (is_object_in_taxonomy(get_post_type(), 'post_tag')) {
    ?>
				<span class="entry-tags">
					<?php 
    breathe_tags_with_count('', __('<br />Tags:', 'p2-breathe') . ' ', ', ', ' &nbsp;');
    ?>
&nbsp;