Exemplo n.º 1
0
    function hepouf_comment($comment, $args, $depth)
    {
        $GLOBALS['comment'] = $comment;
        if ('pingback' == $comment->comment_type || 'trackback' == $comment->comment_type) {
            ?>

	<li id="comment-<?php 
            comment_ID();
            ?>
" <?php 
            comment_class();
            ?>
>
		<div class="comment-body">
			<?php 
            _e('Pingback :', 'athemes');
            ?>
 <?php 
            comment_author_link();
            ?>
 <?php 
            edit_comment_link(__('Edit', 'athemes'), '<span class="edit-link">', '</span>');
            ?>
		</div>

	<?php 
        } else {
            ?>

	<li id="comment-<?php 
            comment_ID();
            ?>
" <?php 
            comment_class(empty($args['has_children']) ? '' : 'parent');
            ?>
>
		<article id="div-comment-<?php 
            comment_ID();
            ?>
" class="comment-body">
			<footer class="clearfix comment-meta">
                        
				<div class="reply-bar"></div>
            
				<div class="clearfix comment-author vcard">
					<?php 
            if (0 != $args['avatar_size']) {
                echo get_avatar($comment, $args['avatar_size']);
            }
            ?>

					<div class="comment-metadata">
						<a href="<?php 
            echo esc_url(get_comment_link($comment->comment_ID));
            ?>
">
							<time><?php 
            comment_date('d/m/Y, G\\:i');
            ?>
</time>
						</a>
					</div><!-- .comment-metadata -->

					<?php 
            printf(__('%s', 'athemes'), sprintf('<cite class="fn">%s</cite>', get_comment_author_link()));
            ?>

					<span class="comment-level">
						<?php 
            $user_info = get_comment_author($comment_ID);
            $user_info = strtolower($user_info);
            if ($user_info == jocker) {
                echo 'Papi' . "\n";
            } elseif ($user_info == shibo) {
                echo 'D&eacute;tective chiens et chats' . "\n";
            } elseif ($user_info == nath) {
                echo 'Graphistologue' . "\n";
            } elseif ($user_info == manu) {
                echo 'Pierre Tchernia of the space' . "\n";
            } elseif ($user_info == loo) {
                echo 'Maitre de guerre' . "\n";
            }
            ?>
 
					</br>
					<span class="comment-count"><?php 
            commentCount();
            ?>
</span>	
					</span><!-- .comment-count-and-role -->

				</div><!-- .comment-author -->

				<?php 
            if ('0' == $comment->comment_approved) {
                ?>
				<p class="comment-awaiting-moderation"><?php 
                _e('Votre commentaire est en attente de mod&eacute;ration.', 'athemes');
                ?>
</p>
				<?php 
            }
            ?>
			</footer><!-- .comment-meta -->

			<div class="comment-content">
				<?php 
            comment_text();
            ?>
                <div class="reply">
					<?php 
            edit_comment_link('Editer', '', '</br>');
            ?>
				</div><!-- .reply -->
			</div><!-- .comment-content -->
		</article><!-- .comment-body -->

	<?php 
        }
    }
Exemplo n.º 2
0
function post_footer_metadata($post, $a_post_type = "", $a_post_type_label = "", $post_footer_metadata_more_label = FALSE)
{
    ?>
	<!-- START POST FOOTER METADATA -->
	<div class="post-footer-meta">
	<span class="postmetadata">
	<?php 
    /*echo time_since(abs(strtotime($post->post_date_gmt . " GMT")), time()); ?> ago |*/
    ?>
 <?php 
    commentCount('comments');
    ?>
 <?php 
    if ($post_footer_metadata_more_label) {
        ?>
| <a href="<?php 
        echo get_post_type_archive_link($a_post_type);
        ?>
" title="Read more <?php 
        echo $a_post_type_label;
        ?>
">More <?php 
        echo $a_post_type_label;
        ?>
 →</a><?php 
    }
    ?>
</span>
	</div>	
	<!-- END POST FOOTER METADATA -->	
	<?php 
}