Ejemplo n.º 1
0
 *
 * The comment template displays an individual comment. This can be overwritten by templates specific
 * to the comment type (comment.php, comment-{$comment_type}.php, comment-pingback.php, 
 * comment-trackback.php) in a child theme.
 *
 * @package Oxygen
 * @subpackage Template
 */
global $post, $comment;
?>

	<li id="comment-<?php 
comment_ID();
?>
" class="<?php 
hybrid_comment_class();
?>
">

		<?php 
do_atomic('before_comment');
// oxygen_before_comment
?>

		<div class="comment-wrap">

			<?php 
do_atomic('open_comment');
// oxygen_open_comment
?>
Ejemplo n.º 2
0
/**
* Displays individual comments
* Uses the callback parameter for wp_list_comments
* Overwrites the default display of comments
*
* @since 0.2.3
*
* @param $comment The comment variable
* @param $args Array of arguments passed from wp_list_comments
* @param $depth What level the particular comment is
*/
function hybrid_comments_callback($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    $GLOBALS['comment_depth'] = $depth;
    ?>

	<li id="comment-<?php 
    comment_ID();
    ?>
" class="<?php 
    hybrid_comment_class();
    ?>
">

		<?php 
    hybrid_avatar();
    // Avatar filter
    ?>
<div class="comment-meta-data">

			<div class="comment-author vcard">
				<?php 
    hybrid_comment_author();
    ?>
			</div>

			<abbr class="comment-time" title="<?php 
    comment_date(__('F jS, Y, g:i a (P - e)', 'hybrid'));
    ?>
">
				<?php 
    printf(__('%1$s at %2$s', 'hybrid'), get_comment_date(), get_comment_time());
    ?>
			</abbr> 

			<span class="separator">|</span> 
			<a class="permalink" href="#comment-<?php 
    comment_ID();
    ?>
" title="<?php 
    _e('Permalink to comment', 'hybrid');
    ?>
"><?php 
    _e('Permalink', 'hybrid');
    ?>
</a>

			<?php 
    if (get_option('thread_comments') && ($args['type'] == 'all' || get_comment_type() == 'comment')) {
        $max_depth = get_option('thread_comments_depth');
        echo comment_reply_link(array('reply_text' => __('Reply', 'hybrid'), 'login_text' => __('Log in to reply.', 'hybrid'), 'depth' => $depth, 'max_depth' => $max_depth, 'before' => '<span class="separator">|</span> <span class="comment-reply-link">', 'after' => '</span>'));
    }
    ?>

			<?php 
    edit_comment_link('<span class="edit">' . __('Edit', 'hybrid') . '</span>', ' <span class="separator">|</span> ', '');
    ?>
 

			<?php 
    if ($comment->comment_approved == '0') {
        ?>
				<em><?php 
        _e('Your comment is awaiting moderation.', 'hybrid');
        ?>
</em>
			<?php 
    }
    ?>

		</div>

		<div class="comment-text">
			<?php 
    comment_text();
    ?>
		</div>
<?php 
}
Ejemplo n.º 3
0
<?php
/**
 * Comment Template
 *
 * The comment template displays an individual comment. This can be overwritten by templates specific
 * to the comment type (comment.php, comment-{$comment_type}.php, comment-pingback.php, 
 * comment-trackback.php) in a child theme.
 *
 * @package Pogidude
 * @subpackage Template
 */

	global $post, $comment;
?>

	<li id="comment-<?php comment_ID(); ?>" class="<?php hybrid_comment_class(); ?>">

		<?php do_atomic( 'before_comment' ); // {theme-name}_before_comment ?>
		
		<div class="author-avatar vcard">
			<?php echo get_avatar($comment,$size='48' ); ?>
		</div>
		
		<div class="comment-author">
			<?php printf( __('<h4 class="fn">%s</h4>'), get_comment_author_link() ); ?>
		</div>
		
		<div class="comment-meta commentmetadata"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php printf(__('%1$s at %2$s'), get_comment_date(),  get_comment_time()) ?></a> <a class="comment-link" href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php printf(__('Link to this comment')) ?></a><?php edit_comment_link(__('(Edit)'),'  ','') ?></div>

		
		<div class="comment-text">