static function comment($comment, $args, $depth) { $deff = get_template_directory_uri() . '/media/img/default-avatar.png'; $GLOBALS['comment'] = $comment; switch ($comment->comment_type) { case '': echo '<li '; comment_class(); echo ' id="li-comment-'; comment_ID(); echo '">'; echo '<div id="comment-'; comment_ID(); echo '" class="comment-box">'; echo '<header>'; echo myThemes::gravatar($comment->comment_author_email, 44, $deff); echo '<span class="comment-meta">'; echo '<time class="comment-time">'; printf('%1$s ', get_comment_date()); echo '</time>'; echo ' / '; comment_reply_link(array_merge($args, array('reply_text' => __('Reply', 'myThemes'), 'before' => '<span class="comment-replay">', 'after' => '</span>', 'depth' => $depth, 'max_depth' => $args['max_depth']))); echo '</span>'; echo '<cite>'; echo get_comment_author_link($comment->comment_ID); echo '</cite>'; echo '<div class="clear"></div>'; echo '</header>'; echo '<div class="comment-quote">'; if ($comment->comment_approved == '0') { echo '<em class="comment-awaiting-moderation">'; _e('Your comment is awaiting moderation.', 'myThemes'); echo '</em>'; } echo get_comment_text(); echo '</div>'; echo '</div>'; echo '</li>'; break; default: echo '<li '; comment_class(); echo ' id="li-comment-'; comment_ID(); echo '">'; echo '<div id="comment-'; comment_ID(); echo '" class="comment-box">'; echo '<header>'; echo '<span class="comment-meta">'; echo '<time class="comment-time">'; printf('%1$s ', get_comment_date()); echo '</time>'; echo ' / '; comment_reply_link(array_merge($args, array('reply_text' => __('Reply', 'myThemes'), 'before' => '<span class="comment-replay">', 'after' => '</span>', 'depth' => $depth, 'max_depth' => $args['max_depth']))); echo '</span>'; echo '<cite>'; echo get_comment_author_link($comment->comment_ID); echo '</cite>'; echo '<div class="clear"></div>'; echo '</header>'; echo '<div class="comment-quote">'; if ($comment->comment_approved == '0') { echo '<em class="comment-awaiting-moderation">'; _e('Your comment is awaiting moderation.', 'myThemes'); echo '</em>'; } echo get_comment_text(); echo '</div>'; echo '</div>'; echo '</li>'; break; } }
function comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; switch ( $comment -> comment_type ) { case '' : { echo '<li '; comment_class(); echo' id="li-comment-'; comment_ID(); echo '">'; echo '<div id="comment-'; comment_ID(); echo '" class="comment-box">'; echo '<header>'; echo '<span class="arrow"></span>'; echo myThemes::gravatar( $comment -> comment_author_email , 50 ); echo '<span class="comment-meta">'; echo '<time class="comment-time"><i class="icon-date"></i> '; printf( '%1$s ' , get_comment_date() ); echo '</time>'; comment_reply_link( array_merge( $args , array( 'reply_text' => __( 'Reply', 'mythemes' ), 'before' => '<span class="comment-replay">', 'after' => '</span>', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); echo '</span>'; echo '<cite>'; echo get_comment_author_link( $comment -> comment_ID ); echo '</cite>'; echo '<div class="clear"></div>'; echo '</header>'; echo '<p class="comment-quote">'; if ( $comment -> comment_approved == '0' ) { echo '<em class="comment-awaiting-moderation">'; _e( 'Your comment is awaiting moderation.' , 'mythemes' ); echo '</em>'; } echo get_comment_text(); echo '</p>'; echo '</div>'; echo '</li>'; break; } case 'pingback' :{ } case 'trackback' : { break; } } }