Ejemplo n.º 1
0
		
		<?php 
    /* Check for Pings */
    if ($countPings > 0) {
        ?>
		<ol id="pinglist">

			<?php 
        foreach ($k2_ping_list as $ping_index => $comment) {
            ?>

			<li id="comment-<?php 
            comment_ID();
            ?>
" class="<?php 
            k2_comment_class($ping_index);
            ?>
">
				<?php 
            if (function_exists('comment_favicon')) {
                ?>
<span class="favatar"><?php 
                comment_favicon();
                ?>
</span><?php 
            }
            ?>
				<a href="#comment-<?php 
            comment_ID();
            ?>
" title="<?php 
Ejemplo n.º 2
0
$comment = get_comment($comment_id);
if (!$user->ID) {
    setcookie('comment_author_' . COOKIEHASH, $comment->comment_author, time() + 30000000, COOKIEPATH, COOKIE_DOMAIN);
    setcookie('comment_author_email_' . COOKIEHASH, $comment->comment_author_email, time() + 30000000, COOKIEPATH, COOKIE_DOMAIN);
    setcookie('comment_author_url_' . COOKIEHASH, clean_url($comment->comment_author_url), time() + 30000000, COOKIEPATH, COOKIE_DOMAIN);
}
@header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
$comment->comment_type = 'comment';
$comment_index = $_POST['comment_count'] + 1;
?>

<li id="comment-<?php 
comment_ID();
?>
" class="<?php 
k2_comment_class($comment_index);
?>
">
	<?php 
if (function_exists('gravatar')) {
    ?>
<a href="http://www.gravatar.com/" title="<?php 
    _e('What is this?', 'k2_domain');
    ?>
"><img src="<?php 
    gravatar("X", 32, get_bloginfo('template_url') . "/images/defaultgravatar.jpg");
    ?>
" class="gravatar" alt="<?php 
    _e('Gravatar Icon', 'k2_domain');
    ?>
" /></a><?php