Example #1
3
function commentlist($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
    <li id="li-comment-<?php 
    comment_ID();
    ?>
">
        <div id="comment-<?php 
    comment_ID();
    ?>
" <?php 
    comment_class('comment_item clear');
    ?>
>
            <div class="comment_meta">Posted on <?php 
    printf(__('%1$s'), get_comment_date());
    ?>
 by <?php 
    printf(__('<cite class="fn">%s</cite>'), get_comment_author_link());
    ?>
</div>
            <div class="comment_text"><?php 
    comment_text();
    ?>
</div>
        </div>
<?php 
}
Example #2
0
function reverie_comments($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
	<li <?php 
    comment_class();
    ?>
>
		<article id="comment-<?php 
    comment_ID();
    ?>
">
			<header class="comment-author vcard">
				<?php 
    echo get_avatar($comment, $size = '40');
    ?>
				<?php 
    printf(__('<cite class="fn">%s</cite>', 'reverie'), get_comment_author_link());
    ?>
				<time datetime="<?php 
    echo comment_date('c');
    ?>
"><a href="<?php 
    echo htmlspecialchars(get_comment_link($comment->comment_ID));
    ?>
"><?php 
    printf(__('%1$s', 'reverie'), get_comment_date(), get_comment_time());
    ?>
</a></time>
				<?php 
    edit_comment_link(__('(Edit)', 'reverie'), '', '');
    ?>
			</header>
			
			<?php 
    if ($comment->comment_approved == '0') {
        ?>
       			<div class="notice">
					<p class="bottom"><?php 
        _e('Your comment is awaiting moderation.', 'reverie');
        ?>
</p>
          		</div>
			<?php 
    }
    ?>
			
			<section class="comment">
				<?php 
    comment_text();
    ?>
			</section>
			
			<?php 
    comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
			
		</article>
<?php 
}
function motiontheme_ping($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
	<li <?php 
    comment_class();
    ?>
 id="li-comment-<?php 
    comment_ID();
    ?>
">
	<div id="comment-<?php 
    comment_ID();
    ?>
" class="comment-wrap">
		<div class="commentbody">
			<div class="author"><?php 
    comment_author_link();
    ?>
</div>
			<?php 
    if ($comment->comment_approved == '0') {
        ?>
				<em>(Your comment is awaiting moderation...)</em>
			<?php 
    }
    ?>
			<?php 
    comment_text();
    ?>
		</div><!-- /commentbody -->
	</div>
<?php 
}
Example #4
0
    function start_el(&$output, $comment, $depth, $args, $id = 0)
    {
        $depth++;
        $GLOBALS['comment_depth'] = $depth;
        $GLOBALS['comment'] = $comment;
        if (!empty($args['callback'])) {
            call_user_func($args['callback'], $comment, $args, $depth);
            return;
        }
        extract($args, EXTR_SKIP);
        ?>

  <li id="comment-<?php 
        comment_ID();
        ?>
" <?php 
        if ($depth > 1) {
            comment_class('child-comment');
        } else {
            comment_class();
        }
        ?>
>
    <?php 
        include locate_template('templates/comment.php');
        ?>
  <?php 
    }
Example #5
0
function mytheme_comment($comment, $args, $depth) {
$GLOBALS['comment'] = $comment; ?>

<li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
	<div id="comment-<?php comment_ID(); ?>">
		<div class="comment-author vcard">
			<span class="small_frame"><?php echo get_avatar($comment,$size='60',$default=get_template_directory_uri().'/images/gravatar.gif' ); ?></span><br />
			<cite><?php comment_author_link() ?></cite><br />
			<div class="date"><?php comment_date('M d, Y'); ?></div>
		</div>

<div class="comment-text">
<?php if ($comment->comment_approved == '0') : ?>
<em class="awaiting_moderation"><?php _e('Your comment is awaiting moderation.', 'epanel') ?></em>
<br />
<?php endif; ?>

<?php comment_text() ?>
<div class="comment-meta commentmetadata">
<?php edit_comment_link(__('(edit)'),' ','') ?>
</div>

<div class="reply">
<?php comment_reply_link(array_merge( $args, array('reply_text' => '(reply)', 'depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
</div>

	</div>
</div>
<?php } ?>
Example #6
0
function webnus_comments($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
   	<li <?php 
    comment_class();
    ?>
 id="comment-<?php 
    comment_ID();
    ?>
">
<div class="comment-info">	
<?php 
    echo get_avatar($comment, 90);
    ?>
								<cite>
<?php 
    comment_author_link();
    ?>
 <?php 
    _e('Says', 'WEBNUS_TEXT_DOMAIN');
    ?>
: 
<span class="comment-data"><a href="#comment-<?php 
    comment_ID();
    ?>
" title=""><?php 
    comment_date('F j, Y');
    ?>
 at <?php 
    comment_time('g:i a');
    ?>
</a><?php 
    edit_comment_link('Edit', ' | ', '');
    ?>
</span>
								</cite>
							</div>
							<div class="comment-text">
				<?php 
    if ($comment->comment_approved == '0') {
        ?>
					<p><em><?php 
        _e('Your comment is awaiting moderation.', 'WEBNUS_TEXT_DOMAIN');
        ?>
</em></p>
				<?php 
    }
    ?>
				<?php 
    comment_text();
    ?>
								<div class="reply">
		<?php 
    comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
		 						</div>	
							</div>
<?php 
}
Example #7
0
function format_comment($comment, $args, $depth)
{
    echo '<div ';
    comment_class();
    echo ' id="li-comment-';
    comment_ID();
    echo '">
        <div class="row-fluid">
            <div class="span9">
                <p>';
    comment_text();
    echo '</p>
            </div>

            <div class="span3">';
    echo get_avatar($comment->comment_author_email, 60);
    echo '<h6>
        <a href="';
    comment_author_url();
    echo '">';
    comment_author();
    echo '</a>											
                </h6>
                <small>';
    printf(__('%1$s', DOMAIN), get_comment_date(), get_comment_time());
    echo '</small>
            </div>
        </div>
    </div>';
}
Example #8
0
function garland_comment($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    extract($args, EXTR_SKIP);
    ?>
<li <?php 
    comment_class(empty($args['has_children']) ? '' : 'parent');
    ?>
id="comment-<?php 
    comment_ID();
    ?>
">
	<div id="div-comment-<?php 
    comment_ID();
    ?>
">
	<span class="comment-author vcard">
	<?php 
    if ($args['avatar_size'] != 0) {
        echo get_avatar($comment, $args['avatar_size']);
    }
    ?>
	<?php 
    printf(__('<cite class="fn">%s</cite> Says:', 'kubrick'), get_comment_author_link());
    ?>
	</span>
	<?php 
    if ($comment->comment_approved == '0') {
        ?>
	<em><?php 
        _e('Your comment is awaiting moderation.', 'kubrick');
        ?>
</em>
	<?php 
    }
    ?>
	<br />

	<small class="comment-meta commentmetadata"><a href="#comment-<?php 
    comment_ID();
    ?>
" title=""><?php 
    printf(__('%1$s at %2$s', 'kubrick'), get_comment_date(), get_comment_time());
    ?>
</a> <?php 
    edit_comment_link(__('edit', 'kubrick'), '&nbsp;&nbsp;', '');
    ?>
</small>

	<?php 
    comment_text();
    ?>
	<div class="reply">
		<?php 
    comment_reply_link(array_merge($args, array('add_below' => 'div-comment', 'depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
	</div>
	</div>
<?php 
}
Example #9
0
/**
     * Return older post
     *
     * @return mixed If not NULL
     */
function older_post_exists()
{
    static $older;
    if (empty($older)) {
        if (is_attachment()) {
            global $post;
            $older =& get_post($post->post_parent);
        } else {
            $older =& get_previous_post();
        }
    }
    return $older;
}
/**
     * Return newer post
     *
     * @return mixed If not NULL
     */
function newer_post_exists()
{
    static $newer;
    if (empty($newer)) {
        $newer =& get_next_post();
    }
    return $newer;
}
Example #10
0
/**
 * A custom function to use to open and display each comment.
 *
 * @since 1.0.0
 * @param object $_comment Comment to display.
 * @param array  $args     An array of arguments.
 * @param int    $depth    Depth of comment.
 */
function king_news_rewrite_comment_item($_comment, $args, $depth)
{
    global $comment;
    $_comment->king_news_comment_list_args = $args;
    $comment = $_comment;
    $tag = 'div' === $args['style'] ? 'div' : 'li';
    ?>

	<<?php 
    echo $tag;
    ?>
 <?php 
    comment_class($args['has_children'] ? 'parent' : '');
    ?>
 id="comment-<?php 
    comment_ID();
    ?>
">

	<article id="div-comment-<?php 
    comment_ID();
    ?>
" class="comment-body">
		<div class="comment-body__holder">
			<?php 
    get_template_part('template-parts/comment');
    ?>
		</div>
	</article><!-- .comment-body -->
<?php 
}
Example #11
0
function sandbox_ping($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    extract($args, EXTR_SKIP);
    ?>
<li <?php 
    comment_class(sandbox_comment_class(false));
    ?>
 id="comment-<?php 
    comment_ID();
    ?>
">
	<div class="comment-metadata">
		<?php 
    printf(__('By %1$s on %2$s at %3$s', 'sandbox'), get_comment_author_link(), get_comment_date(), get_comment_time());
    ?>
		<?php 
    edit_comment_link(__('(Edit)', 'sandbox'), ' ', '');
    ?>
	</div>
	<div class="comment-mod"><?php 
    if ($comment->comment_approved == '0') {
        _e('<em>Your trackback/pingback is awaiting moderation.</em>', 'sandbox');
    }
    ?>
</div>
	<?php 
    comment_text();
}
function my_custom_comments($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
	<li <?php 
    comment_class();
    ?>
 id="li-comment-<?php 
    comment_ID();
    ?>
">
	<?php 
    if ($comment->comment_approved == '0') {
        ?>
		<em><?php 
        _e('Your comment is awaiting moderation.');
        ?>
</em>
	<?php 
    }
    ?>
	<?php 
    echo '<div class="pull-left"><div class="commentor-avatar" style="height: 90px; width: 90px; background: url(' . get_avatar_url($comment) . ') no-repeat center center; background-size: cover;"><div class="commentor-name">' . get_comment_author() . '</div></div></div>';
    comment_text();
    echo '<div class="clearfix"></div>';
}
Example #13
0
<?php function studiofolio_comment($comment, $args, $depth) {
  $GLOBALS['comment'] = $comment; ?>
  <li <?php comment_class(); ?>>
    <article id="comment-<?php comment_ID(); ?>">
      <header class="comment-author vcard">
        <?php echo get_avatar($comment, $size = '32'); ?>
        <?php printf(__('<cite class="fn">%s</cite>', 'studiofolio'), get_comment_author_link()); ?>
        <time datetime="<?php echo comment_date('c'); ?>"><a href="<?php echo htmlspecialchars(get_comment_link($comment->comment_ID)); ?>"><?php printf(__('%1$s', 'studiofolio'), get_comment_date(),  get_comment_time()); ?></a></time>
        <?php edit_comment_link(__('(Edit)', 'studiofolio'), '', ''); ?>
      </header>

      <?php if ($comment->comment_approved == '0') : ?>
        <div class="alert alert-block fade in">
          <a class="close" data-dismiss="alert">&times;</a>
          <p><?php _e('Your comment is awaiting moderation.', 'studiofolio'); ?></p>
        </div>
      <?php endif; ?>

      <section class="comment">
        <?php comment_text() ?>
      </section>

      <?php comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth']))); ?>

    </article>
<?php } ?>
Example #14
0
function efreetant_comments($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
  <div id="comment-<?php 
    comment_ID();
    ?>
" <?php 
    comment_class('comment');
    ?>
>
    <article  class="comment">
      <header class="comment-author">
        <?php 
    $bgauthemail = get_comment_author_email();
    ?>
        <img data-gravatar="http://www.gravatar.com/avatar/<?php 
    echo md5($bgauthemail);
    ?>
?s=40" class="avatar" height="40" width="40" src="<?php 
    echo get_template_directory_uri();
    ?>
/images/nothing.gif" />
        <?php 
    printf(__('<cite class="fn">%1$s</cite> %2$s', 'efreetanttheme'), get_comment_author_link(), edit_comment_link(__('(Edit)', 'efreetanttheme'), '  ', ''));
    ?>
        <time datetime="<?php 
    echo comment_time('Y-m-j');
    ?>
"><a href="<?php 
    echo htmlspecialchars(get_comment_link($comment->comment_ID));
    ?>
"><?php 
    comment_time(__('F jS, Y', 'efreetanttheme'));
    ?>
 </a></time>
     </header>
      <?php 
    if ($comment->comment_approved == '0') {
        ?>
        <div class="alert alert-info">
          <p><?php 
        _e('Your comment is awaiting moderation.', 'efreetanttheme');
        ?>
</p>
        </div>
      <?php 
    }
    ?>
      <section class="comment_content">
        <?php 
    comment_text();
    ?>
      </section>
      <?php 
    comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
    </article>
<?php 
}
Example #15
0
function mydesign($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
<li class="compost" id="comment-<?php 
    comment_ID();
    ?>
">
	<div class="combody">
		<?php 
    comment_text();
    ?>
	</div><!-- .combody -->
	<p class="cominfo">
		by <?php 
    comment_author_link();
    ?>
 €<?php 
    comment_date();
    ?>
  <?php 
    comment_time();
    ?>
	</p>
</li>
<?php 
}
/**
 * Template callback for GeoMashupQuery::list_comments()
 *
 * Use the newer form of template, where the individual comment template goes in 
 * a function that matches the callback argument to list_comments
 *
 * @since 1.3
 * @access public
 * @package GeoMashup
 *
 * @param object $comment The comment to display
 * @param array $args Arguments from wp_list_comments
 * @param mixed $depth Nested depth
 */
function geo_mashup_comment_default($comment, $args, $depth)
{
    // Enable the WordPress comment functions
    GeoMashupQuery::set_the_comment($comment);
    // From here to the closing curly brace should look like a familiar template
    ?>
	<div id="div-comment-<?php 
    comment_ID();
    ?>
" class="<?php 
    comment_class('');
    ?>
">
		<div class="comment-author vcard">
		<?php 
    printf(__('<cite class="fn">%s</cite> <span class="says">says:</span>'), get_comment_author_link());
    ?>
		</div>
		<div class="comment-meta commentmetadata">
			<a href="<?php 
    echo esc_html(get_comment_link($comment->comment_ID));
    ?>
"><?php 
    printf(__('%1$s at %2$s'), get_comment_date(), get_comment_time());
    ?>
</a>
		</div>
		<?php 
    comment_text();
    ?>

	</div>
<?php 
}
    function sun_comment($comment, $args, $depth)
    {
        $GLOBALS['comment'] = $comment;
        ?>
	<li class="comment" id="li-comment-<?php 
        comment_ID();
        ?>
">
	  <div>
      <?php 
        echo get_avatar($comment, $size = '60');
        ?>
      <div class="comment-meta">
        <span class="author"><?php 
        echo get_comment_author_link();
        ?>
</span>
        <span class="date">on <?php 
        echo get_comment_date() . ' ' . get_comment_time();
        ?>
</span>
        <span class="reply"><?php 
        comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth'])));
        ?>
</span>
      </div>
      <div class="comment-body">
        <?php 
        comment_text();
        ?>
      </div>
<?php 
    }
Example #18
0
function mytheme_comment($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
<li <?php 
    comment_class();
    ?>
 id="li-comment-<?php 
    comment_ID();
    ?>
">
	<div id="comment-<?php 
    comment_ID();
    ?>
">
		<div class="comment-author vcard">
			<?php 
    echo get_avatar($comment, $size = '40');
    ?>
			<?php 
    /* printf(__('<cite class="fn">%s</cite> <span class="says">says:</span>'), get_comment_author_link()) */
    ?>
			<cite class="fn"><?php 
    comment_author_link();
    ?>
</cite>
			<span 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><?php 
    edit_comment_link(__('(Edit)'), '  ', '');
    ?>
</span>
			
		</div>
		<?php 
    if ($comment->comment_approved == '0') {
        ?>
		<em class="approved"><?php 
        _e('Your comment is awaiting moderation.');
        ?>
</em>
		<br />
		<?php 
    }
    ?>
		<?php 
    comment_text();
    ?>
		<div class="reply">
			<?php 
    comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
		</div>
	</div>
<?php 
}
Example #19
0
    function et_custom_comments_display($comment, $args, $depth)
    {
        $GLOBALS['comment'] = $comment;
        ?>
   <li <?php 
        comment_class();
        ?>
 id="li-comment-<?php 
        comment_ID();
        ?>
">
	   <div id="comment-<?php 
        comment_ID();
        ?>
" class="comment-body clearfix">			
			<div class="avatar-container">
				<?php 
        echo get_avatar($comment, $size = '56');
        ?>
				<span class="avatar-overlay"></span>
			</div> <!-- end .avatar-->
			
			<div class="comment-wrap clearfix">
				<div class="comment-meta commentmetadata"><?php 
        printf('<span class="fn">%s</span>', get_comment_author_link());
        ?>
 - <span class="comment-date"><?php 
        echo get_comment_date();
        ?>
</span> <?php 
        edit_comment_link(esc_html__('(Edit)', 'Modest'), '  ', '');
        ?>
</div>
				
				<?php 
        if ($comment->comment_approved == '0') {
            ?>
					<em class="moderation"><?php 
            esc_html_e('Your comment is awaiting moderation.', 'Modest');
            ?>
</em>
					<br />
				<?php 
        }
        ?>
				
				<div class="comment-content"><?php 
        comment_text();
        ?>
</div> <!-- end comment-content-->
				<?php 
        $et_comment_reply_link = get_comment_reply_link(array_merge($args, array('reply_text' => esc_attr__('Reply', 'Modest'), 'depth' => $depth, 'max_depth' => $args['max_depth'])));
        if ($et_comment_reply_link) {
            echo '<div class="reply-container">' . $et_comment_reply_link . '</div>';
        }
        ?>
			</div> <!-- end comment-wrap-->
		</div> <!-- end comment-body-->	
<?php 
    }
Example #20
0
function secret_comment($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
    <li class="list-group-item" id="li-comment-<?php 
    comment_ID();
    ?>
">
        <div class="media container">
            <div class="media-left">
                <?php 
    if (function_exists('get_avatar') && get_option('show_avatars')) {
        echo get_avatar($comment, 48);
    }
    ?>
            </div>
            <div class="media-body">
                <div class="row" id="comment-<?php 
    comment_ID();
    ?>
">
                        <div class="col-md-4">
                            <?php 
    printf(__('<cite class="author_name">%s</cite>'), get_comment_author_link());
    ?>
                            &nbsp;&nbsp;&nbsp;
                            <?php 
    edit_comment_link('修改');
    ?>
                        </div>
                        <div class="col-md-4">
                            发表于:<?php 
    echo get_comment_time('Y-m-d H:i');
    ?>
                        </div>

                </div>
                <div class="row">
                    <div class="col-md-8">
                        <?php 
    if ($comment->comment_approved == '0') {
        ?>
                            <em>你的评论正在审核,稍后会显示出来!</em><br />
                        <?php 
    }
    ?>
                        <?php 
    comment_text();
    ?>
                    </div>
                </div>
            </div>
            <div class="row">
                <?php 
    comment_reply_link(array_merge($args, array('reply_text' => '回复', 'depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
            </div>
        </div>
<?php 
}
Example #21
0
function as_function_comments_better($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>

    <li <?php 
    comment_class();
    ?>
 id="as-li-comment-<?php 
    comment_ID();
    ?>
">
        <div class="as-comment" id="as-comment-<?php 
    comment_ID();
    ?>
">

            <div class="as-comment-content">					
                <?php 
    echo get_avatar($comment, $size = '65');
    ?>
                <div class="as-comment-meta">
                    <h4><?php 
    comment_author_link();
    ?>
                        <span><?php 
    comment_date();
    ?>
 at <?php 
    comment_time();
    ?>
</span>
                    </h4> 		
                </div>	
                <div class="as-comment-text">
                    <?php 
    comment_text();
    ?>
                    <?php 
    if ($comment->comment_approved == '0') {
        ?>
                        <p style="font-style:italic;"><?php 
        _e('Your comment is awaiting moderation.', AS_DOMAIN);
        ?>
</p>
                        <br />
                    <?php 
    }
    ?>
                    <?php 
    edit_comment_link(__('[Edit]', AS_DOMAIN), '  ', '');
    ?>
                    <?php 
    comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
                </div> 
            </div>
        </div>
        <?php 
}
Example #22
0
function mytheme_comment($comment, $args, $depth) {
    $GLOBALS['comment'] = $comment;
?>
    <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
        <div id="comment-<?php comment_ID(); ?>">

            <div class="comment-author vcard">
                <?php echo get_avatar($comment, $size = '48', $default = '<path_to_url>'); ?>
            </div>
            
        <?php if ($comment->comment_approved == '0') : ?>
                <em><?php _e('Your comment is awaiting moderation.') ?></em>
                <br />
        <?php endif; ?>

                <div class="comment-meta commentmetadata">
                    <p class="comment_autor">
                        <?php printf(__('%s'), get_comment_author_link()) ?>
                    </p>
                    <p class="comment_date">
                        <?php printf(__('%1$s - %2$s'), get_comment_date('M j, Y'), get_comment_time()) ?>
                    </p>
                </div>
                
                <div class="comment_contet">
                    <?php comment_text() ?>

                       <?php edit_comment_link('editar', '<div class="editar reply">', '</div>'); ?>
                </div>

                 
        </div>
    </li>
    <?php
            }
Example #23
0
function sandbox_10_ping($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    extract($args, EXTR_SKIP);
    ?>
<li <?php 
    comment_class(sandbox_comment_class(false));
    ?>
 id="comment-<?php 
    comment_ID();
    ?>
">
	<div class="comment-author"><?php 
    printf(__('By %1$s on %2$s at %3$s', 'sandbox'), get_comment_author_link(), get_comment_date(), get_comment_time());
    edit_comment_link(__('Edit', 'sandbox'), ' <span class="meta-sep">|</span> <span class="edit-link">', '</span>');
    ?>
</div>
<?php 
    if ($comment->comment_approved == '0') {
        _e('\\t\\t\\t\\t\\t<span class="unapproved">Your trackback is awaiting moderation.</span>\\n', 'sandbox');
    }
    ?>
	<?php 
    comment_text();
}
Example #24
0
function custom_pings($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
	            <li id="comment-<?php 
    comment_ID();
    ?>
" <?php 
    comment_class();
    ?>
>
	                <div class="comment-author"><?php 
    printf(__('By %1$s on %2$s at %3$s', 'swiftframework'), get_comment_author_link(), get_comment_date(), get_comment_time());
    edit_comment_link(__('Edit', 'swiftframework'), ' <span class="meta-sep">|</span> <span class="edit-link">', '</span>');
    ?>
</div>
	    <?php 
    if ($comment->comment_approved == '0') {
        _e('\\t\\t\\t\\t\\t<span class="unapproved">Your trackback is awaiting moderation.</span>\\n', 'swiftframework');
    }
    ?>
	            <div class="comment-content">
	                <?php 
    comment_text();
    ?>
	            </div>
	<?php 
}
Example #25
0
/**
 * A custom function to use to open and display each comment.
 *
 * @since 4.0.4
 * @param object $_comment Comment to display.
 * @param array  $args     An array of arguments.
 * @param int    $depth    Depth of comment.
 */
function cherry_rewrite_comment_item($_comment, $args, $depth)
{
    global $comment;
    $_comment->cherry_comment_list_args = $args;
    $comment = $_comment;
    $tag = 'div' === $args['style'] ? 'div' : 'li';
    ?>

	<<?php 
    echo $tag;
    ?>
 <?php 
    comment_class($args['has_children'] ? 'parent' : '');
    ?>
 id="comment-<?php 
    comment_ID();
    ?>
">

	<article id="div-comment-<?php 
    comment_ID();
    ?>
" class="comment-body">

	<?php 
    $comment_item = cherry_parse_tmpl(apply_filters('cherry_comment_item_template_hierarchy', array('content/comment.tmpl')));
    echo $comment_item;
    ?>

	</article><!-- .comment-body -->
<?php 
}
function ks_list_comments($comment, $args, $depth)
{
    global $ks_settings;
    $GLOBALS['comment'] = $comment;
    extract($args, EXTR_SKIP);
    ?>
	<dt><a name="comment-<?php 
    comment_ID();
    ?>
"><?php 
    if (!ks_option('ks_separate_comments')) {
        ?>
<font size="-1" color="<?php 
        echo $ks_settings['comment_color'];
        ?>
">[<?php 
        comment_type(_x('Comment', 'noun'), __('Trackback'), __('Pingback'));
        ?>
]</font><?php 
    }
    ?>
</a> <?php 
    ks_comment_content();
    $html = array();
    comment_reply_link(array_merge(array('before' => '<div>', 'after' => '</div>', 'reply_before' => '', 'reply_text' => '<img localsrc="149" alt="" />' . __('Reply'), 'login_text' => '<img localsrc="120" alt="" />' . __('Log in to Reply')), $args, array('depth' => $depth, 'max_depth' => $args['max_depth'])));
}
        function start_el(&$output, $comment, $depth = 0, $args = array(), $id = 0)
        {
            $depth++;
            $GLOBALS['comment_depth'] = $depth;
            $GLOBALS['comment'] = $comment;
            if (!empty($args['callback'])) {
                call_user_func($args['callback'], $comment, $args, $depth);
                return;
            }
            extract($args, EXTR_SKIP);
            ?>

  <li id="comment-<?php 
            comment_ID();
            ?>
" <?php 
            comment_class('media comment-' . get_comment_ID());
            ?>
>
    <?php 
            //include(locate_template('view/loop/comment.php'));
            ?>
    <?php 
            include locate_template('comment.php');
            ?>
  <?php 
        }
function kindel_comment($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    extract($args, EXTR_SKIP);
    $classes = array('clearfix');
    if (!empty($args['has_children'])) {
        $classes[] = 'parent';
    }
    ?>
	<div <?php 
    comment_class($classes);
    ?>
 id="comment-<?php 
    comment_ID();
    ?>
" itemscope itemtype="http://schema.org/UserComments">
		<div class="comment-author clearfix">
			<div class="author-avatar">
				<?php 
    if ($args['avatar_size'] != 0) {
        echo get_avatar($comment, $args['avatar_size']);
    }
    ?>
			</div>
			<div class="author-meta">
				<span class="fn author-name" itemprop="creator"><?php 
    echo get_comment_author_link();
    ?>
</span>
				<time itemprop="commentTime" datetime="<?php 
    echo get_comment_time('c');
    ?>
" class="comment-time"><?php 
    printf(__('%s ago', 'kindel'), human_time_diff(get_comment_time('U'), current_time('timestamp')));
    ?>
</time>
			</div>
		</div>
		<div class="comment-body" itemprop="commentText">
		  <?php 
    if ($comment->comment_approved == '0') {
        ?>
		    <p><em class="comment-awaiting-moderation"><?php 
        _e('Your comment is awaiting moderation.', 'kindel');
        ?>
</em></p>
		  <?php 
    } else {
        comment_text();
        comment_reply_link(array_merge($args, array('add_below' => 'comment', 'depth' => $depth, 'max_depth' => $args['max_depth'])));
    }
    ?>
		</div>
		<?php 
    edit_comment_link(__('edit', 'kindel'));
    ?>

<?php 
}
Example #29
0
function imbalance_comments($comment, $args, $depth)
{
    $default = urlencode(get_bloginfo('template_directory') . '/images/default-avatar.png');
    $GLOBALS['comment'] = $comment;
    ?>
	<li <?php 
    comment_class();
    ?>
 id="li-comment-<?php 
    comment_ID();
    ?>
">
	 <div id="comment-<?php 
    comment_ID();
    ?>
">
      <div class="comment-author vcard">
		<?php 
    echo get_avatar($comment, $size = '55', $default);
    ?>
          <?php 
    printf(__('<cite class="fn">%s</cite> <span class="says">wrote:</span>'), get_comment_author_link());
    ?>
      </div>
      <?php 
    if ($comment->comment_approved == '0') {
        ?>
         <em><?php 
        _e('Your comment is awaiting moderation.');
        ?>
</em>
         <br />
      <?php 
    }
    ?>
 
      <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><?php 
    edit_comment_link(__('(Edit)'), '  ', '');
    ?>
</div>
 
      <?php 
    comment_text();
    ?>

	<div class="reply">
	         <?php 
    comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
	</div>
     </div>
<?php 
}
Example #30
0
/**
 * Custom comments template.
 *
 * @package Impact WordPress Theme
 * @since 1.0
 * @author AJ Clarke : http://wpexplorer.com
 * @copyright Copyright (c) 2012, AJ Clarke
 * @link http://wpexplorer.com
 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/
function bro_comment($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
    <li <?php 
    comment_class();
    ?>
 id="li-comment-<?php 
    comment_ID();
    ?>
">
        <div id="comment-<?php 
    comment_ID();
    ?>
" class="comment-body <?php 
    if ($comment->comment_approved == '0') {
        echo 'pending-comment';
    }
    ?>
 bro-cf">
            <div class="comment-details">
                <?php 
    if (get_avatar($comment)) {
        ?>
                <div class="comment-avatar">
                    <?php 
        echo get_avatar($comment, $size = '50');
        ?>
                </div>
                <?php 
    }
    ?>
                <section class="comment-author vcard">
                    <?php 
    printf(__('<cite class="author">%s</cite>'), get_comment_author_link());
    ?>
                    <span class="comment-date"><a href="<?php 
    echo htmlspecialchars(get_comment_link($comment->comment_ID));
    ?>
"> &middot; <?php 
    echo get_comment_date();
    ?>
</a></span>
                    <span class="reply"><?php 
    comment_reply_link(array_merge($args, array('reply_text' => __('Reply', 'bromine'), 'depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
</span>
                </section>
                <section class="comment-content">
                    <div class="comment-text">
                        <?php 
    comment_text();
    ?>
                    </div>
                </section>
            </div>
        </div>
<?php 
}