Example #1
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 
}
Example #2
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 #3
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 #4
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 #5
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 #6
0
function mydesign($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    $users = get_users();
    ?>
        <li id="comment-<?php 
    echo comment_id();
    ?>
" class="compost">
             <?php 
    // ユーザーIDを引っ張る
    foreach ($users as $user) {
        //echo $user->display_name.'<br />';
        //echo get_comment_author();
        if ($user->display_name == get_comment_author()) {
            break;
        }
    }
    ?>
                <span class="trick_rounded-img icon_image" style="background: url(<?php 
    echo ps_get_user_profile_image_src($user->ID, 'standard');
    ?>
) no-repeat center center; width: 50px; height: 50px;></span>
				<span class="trick_thumbnail_Image">
					<?php 
    ps_user_profile_image($user->ID, 'thumbnail');
    ?>
				</span>
                <?php 
    ?>
            <div class="commentarea">
            	<?php 
    //改行表示
    $commentstr = '<p>' . get_comment_text() . '</p>';
    $commentstr = preg_replace("/\n/", "<br />", $commentstr);
    echo $commentstr;
    //comment_text();
    ?>
            
            </div>
            
            <p class="cominfo">
                <?php 
    comment_date();
    ?>
                <?php 
    comment_time();
    ?>
                |
                <?php 
    comment_author_link();
    ?>
                <?php 
    comment_reply_link(array_merge($args, array('depth' => $depth, 'reply_text' => '返信', 'before' => ' | ', 'after' => '')));
    ?>
            </p> 
        </li>

<?php 
}
Example #7
0
function hui_comment($comment, $args, $depth)
{
    global $commentcount;
    $GLOBALS['comment'] = $comment;
    if (!$commentcount) {
        $page = get_query_var('cpage') - 1;
        $cpp = get_option('comments_per_page');
        $commentcount = $cpp * $page;
    }
    ?>
<li class="comment-list-entry">
	<article>
		<footer class="comment-info">
			<?php 
    echo get_avatar($comment, 36);
    ?>
			<span class="comment-author"><?php 
    comment_author_link();
    ?>
</span>
			<span class="edit"><?php 
    edit_comment_link('编辑', '', '');
    ?>
</span>
			<span class="date">发表于 <time datetime="<?php 
    printf('%1$sT%2$s', get_comment_date('Y-m-d'), get_comment_time('H:i:s'));
    ?>
+00:00"><?php 
    printf('%1$s %2$s', get_comment_date('Y-m-d'), get_comment_time('H:i:s'));
    ?>
</time></span>
			<span class="floor"><?php 
    if (!($parent_id = $comment->comment_parent)) {
        printf('%1$s楼', ++$commentcount);
    }
    ?>
</span>
		</footer>
		<div class="comment-content">
		<?php 
    if ($comment->comment_approved == '0') {
        ?>
			<p>您的<?php 
        echo $comment_title;
        ?>
正在审核中,请耐心等待,以下是您正在审核中的<?php 
        echo $comment_title;
        ?>
内容:</p>
		<?php 
    }
    ?>
			<?php 
    comment_text();
    ?>
		</div>
	</article>
<?php 
}
    function candour_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:', 'candour');
            ?>
 <?php 
            comment_author_link();
            ?>
 <?php 
            edit_comment_link(__('Edit', 'candour'), '<span class="edit-link">', '</span>');
            ?>
		</div>
	<?php 
        } else {
            ?>
	<li id="comment-<?php 
            comment_ID();
            ?>
" <?php 
            comment_class(empty($args['has_children']) ? '' : 'parent');
            ?>
>
		
			<div class="comment-meta">
				<figure class="comment-avatar">
    	            <?php 
            echo get_avatar($comment, 48);
            ?>
                </figure>	
				
				<div class="comment-metadata">
				    <?php 
            comment_author_link();
            ?>
                    <span class="datetime"><?php 
            comment_date('F j, Y');
            ?>
</span>					
					<?php 
            edit_comment_link(__('Edit', 'candour'), '<span class="edit-link">', '</span>');
            ?>
				</div><!-- .comment-metadata -->
				<?php 
            if ('0' == $comment->comment_approved) {
                ?>
       				<p class="comment-awaiting-moderation"><?php 
                _e('Your comment is awaiting moderation.', 'candour');
                ?>
Example #9
0
/**
 * Custom Comment Template
 * -----------------------------------------------------------------------------
 * @param   string  $comment    The comment.
 * @param   array   $args       Array argument
 * @param   int     $depth      Depth of the comments thread.
 */
function kaitain_theme_comments($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    $comment_classes = array('comments__comment', 'vspace--full');
    ?>

    <li <?php 
    comment_class($comment_classes);
    ?>
 id="comments__comment--<?php 
    comment_ID();
    ?>
">
        <div class="comments__photo avatar">
            <?php 
    kaitain_avatar_background_html($comment, 'tc_post_avatar', 'author-photo');
    ?>
        </div>
        <div class="comments__body">
            <header class="comments__header vspace--quarter">
                <h5 class="comments__meta">
                    <span class="comments__author-website"><?php 
    comment_author_link();
    ?>
</span>
                    <?php 
    printf('<span class="%s"><time datetime="%s">%s</time></span>', 'post-date', get_comment_date('Y-M-d H:i'), get_comment_date_strftime());
    ?>
                </h5>
            </header>

            <div class="comments__comment-body vspace--quarter">
                <?php 
    if (!$comment->comment_approved) {
        printf('<p class="%s">%s</p>', 'comments__unapproved', __('Tá do thrácht á mheas.', 'kaitain'));
    } else {
        comment_text();
    }
    ?>
            </div>

            <?php 
    if (is_user_logged_in()) {
        ?>
                <footer class="comments__footer">
                    <h5 class="comments_edit-link">
                        <?php 
        edit_comment_link(__('edit', 'kaitain'), '', '');
        ?>
                    </h5>
                </footer>
            <?php 
    }
    ?>
        </div>
    </li>

    <?php 
}
Example #10
0
function cutline_comment($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
	<li <?php 
    comment_class();
    ?>
 id="comment-<?php 
    comment_ID();
    ?>
">
			<?php 
    echo get_avatar($comment, 48);
    ?>
			<p class="comment_meta">
				<strong><?php 
    comment_author_link();
    ?>
 </strong>
				<span class="comment_time">// <a href="#comment-<?php 
    comment_ID();
    ?>
" title="<?php 
    echo attribute_escape(__('Permalink to this comment', 'cutline'));
    ?>
"><?php 
    comment_date();
    ?>
 <?php 
    _e('at');
    ?>
 <?php 
    comment_time();
    ?>
</a> <?php 
    echo comment_reply_link(array('depth' => $depth, 'max_depth' => $args['max_depth'], 'before' => ' | '));
    ?>
  <?php 
    edit_comment_link(__('edit', 'cutline'), '(', ')');
    ?>
</span> 			</p> 			<div class="entry">
				<?php 
    comment_text();
    ?>
 
				<?php 
    if ($comment->comment_approved == '0') {
        ?>
				<p><strong><?php 
        _e('Your comment is awaiting moderation.', 'cutline');
        ?>
</strong></p>
				<?php 
    }
    ?>
			</div>
		</li>
<?php 
}
function canon_comments($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>

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

			<div>

				<!-- AVATAR -->
				<?php 
    if (get_option('show_avatars') === '1') {
        echo '<div class="left">';
        echo get_avatar($comment, $args['avatar_size'], '', 'comment-avatar');
        echo '</div>';
    }
    ?>

				<!-- META -->
				<h5><?php 
    comment_author_link();
    ?>
</h5> 
				<h6><?php 
    echo mb_localize_datetime(get_comment_date(get_option('date_format') . ' (' . get_option('time_format') . ')'));
    ?>
</h6>

				<!-- REPLY AND EDIT LINKS -->
				<?php 
    comment_reply_link(array_merge($args, array('reply_text' => __('Reply', 'loc_canon'), 'depth' => $depth, 'max_depth' => $args['max_depth'])), $comment->comment_ID);
    ?>
				<?php 
    edit_comment_link(__('Edit', 'loc_canon'));
    ?>

				<!-- THE COMMENT -->
				<?php 
    if ($comment->comment_approved == '0') {
        printf('<span class="approval_pending_notice">%s</span>', __('Comment awaiting approval', 'loc_canon'));
    }
    ?>

				<?php 
    comment_text();
    ?>
				
			</div>

		</li>

	<?php 
}
Example #12
0
function list_pings($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    echo "<li id=\"comment-";
    echo comment_ID();
    echo "\" class=\"pings\">";
    echo comment_author_link();
}
Example #13
0
function print_comment($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
	<li <?php 
    comment_class('comment');
    ?>
>
		<div class="comment-body" id="comment-<?php 
    comment_ID();
    ?>
">
			<?php 
    echo get_avatar($comment, 70, get_bloginfo('stylesheet_directory') . '/images/avatar.gif');
    ?>
			<p class="author">
				<?php 
    comment_author_link();
    ?>
			</p>
			<p class="comment-meta">
				<?php 
    comment_date();
    ?>
 at <?php 
    comment_time();
    ?>
			</p>
			<div class="comment-content">
				<?php 
    if ($comment->comment_approved == '0') {
        ?>
			        <em><?php 
        _e('Your comment is awaiting moderation.');
        ?>
</em><br />
			    <?php 
    }
    ?>
			    
				<?php 
    comment_text();
    ?>
				<div class="alignleft"><?php 
    edit_comment_link(__('(Edit)'), '  ', '');
    ?>
</div>
				
			</div>
			<div class="reply">
		        <?php 
    comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
		    </div>
			<div class="cl">&nbsp;</div>
		</div>
	<?php 
}
Example #14
0
    /**
     * Template for comments and pingbacks.
     * Used as a callback by wp_list_comments() for displaying the comments.
     */
    function orbit_comment($comment, $args, $depth)
    {
        $GLOBALS['comment'] = $comment;
        switch ($comment->comment_type) {
            case 'pingback':
            case 'trackback':
                ?>
	<li>
		<?php 
                _e('Pingback:', 'orbit');
                ?>
 <?php 
                comment_author_link();
                edit_comment_link(__('Edit', 'orbit'), '', '');
                ?>
	<?php 
                break;
            default:
                ?>
	<li>
		<?php 
                $avatar_size = 68;
                if ('0' != $comment->comment_parent) {
                    $avatar_size = 39;
                }
                echo get_avatar($comment, $avatar_size);
                // translators: 1: comment author, 2: date and time
                printf(__('%1$s on %2$s said:', 'orbit'), sprintf('%s', get_comment_author_link()), sprintf('<a href="%1$s"><time pubdate datetime="%2$s">%3$s</time></a>', esc_url(get_comment_link($comment->comment_ID)), get_comment_time('c'), sprintf(__('%1$s at %2$s', 'orbit'), get_comment_date(), get_comment_time())));
                ?>

		<?php 
                edit_comment_link(__('Edit', 'orbit'), '', '');
                ?>
				
		<?php 
                if ($comment->comment_approved == '0') {
                    ?>
		
			<?php 
                    _e('Your comment is awaiting moderation.', 'orbit');
                    ?>
					
		<?php 
                }
                ?>

		<?php 
                comment_text();
                ?>

		<?php 
                comment_reply_link(array_merge($args, array('reply_text' => __('Reply &darr;', 'orbit'), 'depth' => $depth, 'max_depth' => $args['max_depth'])));
                ?>
	
		<?php 
                break;
        }
    }
Example #15
0
function andreas04_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();
    ?>
">
	<?php 
    comment_text();
    ?>
	<p class="vcard"><cite>
	<?php 
    if ($args['avatar_size'] != 0) {
        echo get_avatar($comment, $args['avatar_size']);
    }
    ?>
	<?php 
    comment_type(__('Comment', 'andreas04'), __('Trackback', 'andreas04'), __('Pingback', 'andreas04'));
    ?>
 
	<?php 
    _e('by', 'andreas04');
    ?>
 
	<span class="fn"><?php 
    comment_author_link();
    ?>
</span> | 
	<?php 
    comment_date();
    ?>
 <!-- @ <a href="#comment-<?php 
    comment_ID();
    ?>
"><?php 
    comment_time();
    ?>
</a> --> 
	<?php 
    edit_comment_link(__('Edit', 'andreas04'), ' | ');
    ?>
	<?php 
    comment_reply_link(array_merge($args, array('add_below' => 'div-comment', 'before' => ' | ', 'depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
 
	</cite></p>
	</div>
<?php 
}
Example #16
0
function chaoticsoul_comment($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
	<li <?php 
    comment_class();
    ?>
 id="comment-<?php 
    comment_ID();
    ?>
">
			<?php 
    comment_text();
    ?>
			<p class="commentmetadata">
				<?php 
    echo get_avatar($comment, 32);
    ?>
				<small>
				<cite><?php 
    comment_author_link();
    ?>
</cite> <?php 
    _e('said this on', 'chaoticsoul');
    ?>
				<?php 
    if ($comment->comment_approved == '0') {
        ?>
				<em><?php 
        _e('Your comment is awaiting moderation.', 'chaoticsoul');
        ?>
</em>
				<?php 
    }
    ?>
				<a href="#comment-<?php 
    comment_ID();
    ?>
" title=""><?php 
    comment_date(get_option('date_format'));
    ?>
 <?php 
    _e('at', 'chaoticsoul');
    ?>
 <?php 
    comment_time(get_option('time_format'));
    ?>
</a><?php 
    echo comment_reply_link(array('depth' => $depth, 'max_depth' => $args['max_depth'], 'before' => ' | '));
    ?>
 <?php 
    edit_comment_link(__('edit', 'chaoticsoul'), '(', ')');
    ?>
				</small>
			</p>
		</li>
<?php 
}
Example #17
0
function quentin_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();
    ?>
">
	<div class="comment-author vcard">
		<?php 
    if ($args['avatar_size'] != 0) {
        echo get_avatar($comment, $args['avatar_size']);
    }
    ?>
		<cite class="comment-meta commentmetadata">On <?php 
    comment_date();
    ?>
 at <?php 
    comment_time();
    ?>
		<span class="fn"><?php 
    comment_author_link();
    ?>
</span> Said: 
		<?php 
    edit_comment_link(__("Edit This"), ' |');
    ?>
	 </cite>
	 </div>
	 <?php 
    if ($comment->comment_approved == '0') {
        ?>
		<em>Your comment is awaiting moderation.</em>
	<?php 
    }
    ?>

	<?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 
}
    function ct_tracks_customize_comments($comment, $args, $depth)
    {
        $GLOBALS['comment'] = $comment;
        global $post;
        ?>
        <li <?php 
        comment_class();
        ?>
 id="li-comment-<?php 
        comment_ID();
        ?>
">
        <article id="comment-<?php 
        comment_ID();
        ?>
" class="comment">
            <div class="comment-author">
                <?php 
        echo get_avatar(get_comment_author_email(), 72);
        ?>
                <div>
                    <div class="author-name"><?php 
        comment_author_link();
        ?>
</div>
                    <div class="comment-date"><?php 
        comment_date();
        ?>
</div>
                    <?php 
        comment_reply_link(array_merge($args, array('reply_text' => __('Reply', 'tracks'), 'depth' => $depth, 'max_depth' => $args['max_depth'])));
        ?>
                    <?php 
        edit_comment_link(__('Edit', 'tracks'));
        ?>
                </div>
            </div>
            <div class="comment-content">
                <?php 
        if ($comment->comment_approved == '0') {
            ?>
                    <em><?php 
            _e('Your comment is awaiting moderation.', 'tracks');
            ?>
</em>
                    <br/>
                <?php 
        }
        ?>
                <?php 
        comment_text();
        ?>
            </div>
        </article>
    <?php 
    }
Example #19
0
function hemingway_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();
    ?>
">
		<cite class="comment-author vcard comment-meta commentmetadata">
              		<span class="avatarspan"><?php 
    if ($args['avatar_size'] != 0) {
        echo get_avatar($comment, $args['avatar_size']);
    }
    ?>
</span>
			<span class="author fn"><?php 
    comment_author_link();
    ?>
</span>
			<span class="date"><?php 
    comment_date('n.j.y');
    ?>
 / <?php 
    comment_date('ga');
    ?>
</span>
		</cite>
		<div class="content">
			<?php 
    if ($comment->comment_approved == '0') {
        ?>
			<em>Your comment is awaiting moderation.</em>
			<?php 
    }
    ?>
			<?php 
    comment_text();
    ?>
		</div>
		<div class="reply">
			<?php 
    comment_reply_link(array_merge($args, array('add_below' => 'div-comment', 'depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
		</div>
		<div class="clear"></div>
	</div>
<?php 
}
Example #20
0
function sdac_comment($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
     <div class="commentBox <?php 
    comment_class();
    ?>
" id="li-comment-<?php 
    comment_ID();
    ?>
">
       <div id="comment-<?php 
    comment_ID();
    ?>
">
       <?php 
    if (function_exists('get_avatar')) {
        echo get_avatar($comment, '40');
    }
    ?>
  	<?php 
    comment_text();
    ?>

      <i><?php 
    comment_type(__('Comment'), __('Trackback'), __('Pingback'));
    ?>
 <?php 
    _e('by');
    ?>
 <?php 
    comment_author_link();
    ?>
      <?php 
    comment_date('m.d.y');
    ?>
 @ <a href="#comment-<?php 
    comment_ID();
    ?>
"><?php 
    comment_time();
    ?>
</a> <?php 
    edit_comment_link(__("Edit This"), ' |');
    ?>
</i>
  	<p class="reply"> <?php 
    comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
</p>

  </div>
  </div>
  <br />
<?php 
}
function mytheme_comment($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
	<li <?php 
    comment_class();
    ?>
 id="li-comment-<?php 
    comment_ID();
    ?>
">
		<article id="comment-<?php 
    comment_ID();
    ?>
" class="comment-body">
			<footer class="comment-author vcard">
				<?php 
    echo get_avatar($comment->comment_author_email, 60);
    ?>
				<p class='commentauthor'><?php 
    comment_author_link();
    ?>
</p>
				<p class='comment-time'><?php 
    comment_date();
    ?>
, <?php 
    comment_time();
    ?>
</p>							
			</footer>
			<div class="comments-body">				
				<?php 
    comment_text();
    ?>
				<div class="reply">
					<?php 
    comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
 | <?php 
    edit_comment_link('Edit', '  ', '');
    ?>
 				</div>
				<?php 
    if ($comment->comment_approved == '0') {
        ?>
					<em>Your comment is awaiting moderation.</em>			
				<?php 
    }
    ?>
			</div>
			<div class="clear"></div>
		</article>
	</li>
	<?php 
}
function chaostheory_comment($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    extract($args, EXTR_SKIP);
    ?>
<li id="comment-<?php 
    comment_ID();
    ?>
" <?php 
    comment_class();
    ?>
>
	<div id="div-comment-<?php 
    comment_ID();
    ?>
">
	<ul class="comment-meta">
		<li class="comment-author vcard">
		<div class="comment-avatar"><?php 
    if ($args['avatar_size'] != 0) {
        echo get_avatar($comment, $args['avatar_size']);
    }
    ?>
</div>
		<span class="fn"><?php 
    comment_author_link();
    ?>
</span></li>
		<?php 
    printf(__('<li>Posted %1$s at %2$s</li> <li><a href="%3$s" title="Permalink to this comment">Permalink</a></li>', 'chaostheory'), get_comment_date(), get_comment_time(), '#comment-' . get_comment_ID());
    ?>
 <li><?php 
    edit_comment_link(__('(Edit)', 'chaostheory'), ' ', '');
    ?>
 <?php 
    comment_reply_link(array_merge($args, array('add_below' => 'div-comment', 'depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
</li>
	</ul>
	<div class="comment-content">
		<?php 
    if ($comment->comment_approved == '0') {
        ?>
<span class="unapproved"><?php 
        _e('Your comment is awaiting moderation.', 'chaostheory');
        ?>
</span><?php 
    }
    ?>
		<?php 
    comment_text();
    ?>
	</div>
	</div>
<?php 
}
Example #23
0
function list_pings($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
	<li id="comment-<?php 
    comment_ID();
    ?>
"><?php 
    comment_author_link();
}
function list_pings($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
        <li id="comment-<?php 
    comment_ID();
    ?>
"><i class="icon icon-share-alt"></i>&nbsp;<?php 
    comment_author_link();
}
Example #25
0
function sandbox_comment($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    extract($args, EXTR_SKIP);
    ?>
<li <?php 
    comment_class(sandbox_comment_class(false));
    ?>
 id="comment-<?php 
    comment_ID();
    ?>
">
	<div id="div-comment-<?php 
    comment_ID();
    ?>
">
	<div class="vcard">
	<?php 
    if ($args['avatar_size'] != 0) {
        echo get_avatar($comment, $args['avatar_size']);
    }
    ?>
	<div class="comment-author fn"><?php 
    comment_author_link();
    ?>
</div>
	</div>
	<?php 
    if ($comment->comment_approved == '0') {
        ?>
<span class="unapproved"><?php 
        _e('Your comment is awaiting moderation.', 'sandbox');
        ?>
</span><?php 
    }
    ?>
	<div class="comment-meta">
		<?php 
    printf(__('Posted %1$s at %2$s <span class="metasep">|</span> <a href="%3$s" title="Permalink to this comment">Permalink</a>', 'sandbox'), get_comment_date(), get_comment_time(), '#comment-' . get_comment_ID());
    ?>
 <? edit_comment_link(__('(Edit)', 'sandbox'), ' ', ''); ?>

	</div>
	<?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 
}
function theme_render_comment($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
	<li <?php 
    comment_class();
    ?>
 id="li-comment-<?php 
    comment_ID();
    ?>
">
		<div id="comment-<?php 
    comment_ID();
    ?>
" class="commentinside">
		    <div class="image">
		     <?php 
    echo get_avatar($comment, 48);
    ?>
		    </div>
		    <div class="info">
		    	<span class="name">
		        <?php 
    comment_author_link();
    ?>
		        schreibt am  
		        <a href="<?php 
    echo htmlspecialchars(get_comment_link($comment->comment_ID));
    ?>
">
		    		<?php 
    comment_date();
    ?>
 <?php 
    comment_time();
    ?>
		    	</a>
		        </span>
		        <?php 
    comment_text();
    ?>
		        <?php 
    comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
		    </div>
		
		    <div class="comment-meta">

		    	<?php 
    edit_comment_link(__('(Edit)'), '  ', '');
    ?>
	    	</div>
		</div>
	<?php 
}
Example #27
0
    /**
     * Template for comments and pingbacks.
     * To override this walker in a child theme without modifying the comments template
     *
     * Used as a callback by wp_list_comments() for displaying the comments.
     */
    function charity_comment($comment, $args, $depth) {
        $GLOBALS['comment'] = $comment;
        switch ($comment->comment_type) :
            case 'pingback' :
            case 'trackback' :
                // Display trackbacks differently than normal comments.
                ?>
                <li <?php comment_class(); ?> id="comment-<?php comment_ID(); ?>">
                    <p><?php _e('Pingback:', 'charity'); ?> <?php comment_author_link(); ?> <?php edit_comment_link(__('(Edit)', 'charity'), '<span class="edit-link">', '</span>'); ?></p>
                    <?php
                    break;
                default :
                    // Proceed with normal comments.
                    global $post;
                    ?>
                <li <?php comment_class('reply-form'); ?> id="li-comment-<?php comment_ID(); ?>">
                    <article id="comment-<?php comment_ID(); ?>" class="media comment comment-list-content">
                        <header class="comment-meta comment-author vcard pull-left">
                           <?php
                            echo get_avatar($comment, 68);
                            ?>
							</header><!-- .comment-meta -->
                        <div class="comment-wrapper media-body">
                        	
                        	<header>
                        		<h4 class="media-heading">
								<?php
                                printf('<cite><b class="fn">%1$s</b> %2$s</cite>', get_comment_author_link(),
                                        // If current post author is also comment author, make it known visually.
                                        ( $comment->user_id === $post->post_author ) ? '<span>' . __('', 'charity') . '</span>' : '' );
                                ?>
								</h4><!---->
								<span class="date"><?php printf('<a href="%1$s" class="post-date-section"><time datetime="%2$s">%3$s</time></a>', esc_url(get_comment_link($comment->comment_ID)), get_comment_time('c'),
                                        /* translators: 1: date, 2: time */ sprintf(__('%1$s - %2$s', 'charity'), get_comment_date(' M,d/m/Y') , get_comment_time('g:i A'))
                                );
                                ?></span>
                                <span class="btn btn-default btn-sm pull-right comment-reply-btn">
                                <?php comment_reply_link(array_merge($args, array('reply_text' => __('Reply', 'charity'), 'after' => ' ', 'depth' => $depth, 'max_depth' => $args['max_depth']))); ?>
                            </span><!-- .reply -->
                        		
                        	</header>
                        	<section class="comment-content">
                                <?php if ('0' == $comment->comment_approved) : ?>
                                    <p class="comment-awaiting-moderation"><?php _e('Your comment is awaiting moderation.', 'charity'); ?></p>
                                <?php endif; ?>
                                <?php comment_text(); ?>
                                <?php edit_comment_link(__('Edit', 'charity'), '<p class="edit-link">', '</p>'); ?>
                            </section><!-- .comment-content -->
                            
                        </div>
                    </article><!-- #comment-## -->
                    <?php
                    break;
            endswitch; // end comment_type check
        }
Example #28
0
function supposedly_clean_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();
    ?>
" class="comment-author vcard">
	<?php 
    if ($args['avatar_size'] != 0) {
        echo get_avatar($comment, $args['avatar_size']);
    }
    ?>
	<?php 
    comment_text();
    ?>
	<p><cite><?php 
    comment_type(__('Comment'), __('Trackback'), __('Pingback'));
    ?>
 <?php 
    _e('by');
    ?>
 <span class="fn"><?php 
    comment_author_link();
    ?>
</span> &#8212; <?php 
    comment_date();
    ?>
 @ <a href="#comment-<?php 
    comment_ID();
    ?>
"><?php 
    comment_time();
    ?>
</a></cite> <?php 
    edit_comment_link(__("Edit This"), ' |');
    ?>
</p>
	<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 #29
0
function sunburn_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();
    ?>
" class="vcard">
		<?php 
    if ($args['avatar_size'] != 0) {
        echo get_avatar($comment, $args['avatar_size']);
    }
    ?>
		<?php 
    if ($comment->comment_approved == '0') {
        ?>
			<p style = "color: red;">Your comment is awaiting moderation.</p>
			<?php 
    }
    ?>
			
			<?php 
    comment_text();
    ?>
			
			<p class="comment-meta commentmetadata"><span class="fn"><?php 
    comment_author_link();
    ?>
</span> - <a href="<?php 
    echo htmlspecialchars(get_comment_link($comment->comment_ID));
    ?>
" title=""><?php 
    comment_date();
    ?>
 at <?php 
    comment_time();
    ?>
</a></p>
	<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 #30
0
function neo_sapien_05_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();
    ?>
">
	<div class="comment-author vcard comment-meta commentmetadata">
	<?php 
    if ($args['avatar_size'] != 0) {
        echo get_avatar($comment, $args['avatar_size']);
    }
    ?>
	<cite><?php 
    comment_type(__('Comment'), __('Trackback'), __('Pingback'));
    ?>
 <?php 
    _e('by');
    ?>
 <span class="fn"><?php 
    comment_author_link();
    ?>
</span> on <?php 
    comment_date();
    ?>
 <a href="#comment-<?php 
    comment_ID();
    ?>
"><?php 
    comment_time();
    ?>
</a></cite>
	</div>
	<?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 
}