Ejemplo n.º 1
0
function edu7_comment($comment, $args, $depth)
{
    ?>
<div class="comment-img"><?php 
    echo get_avatar($comment, $size = '45');
    ?>
    </div>
    <div class="comments-box">
	<?php 
    comment_text();
    ?>
  	<?php 
    if ($comment->comment_approved == '0') {
        ?>
    	<em><?php 
        _e('Your comment is awaiting moderation.');
        ?>
</em>
    <?php 
    }
    ?>
	<br/><span class="comment-writer"> توسط <?php 
    comment_author();
    ?>
</span><span class="comment-date"><?php 
    comment_date();
    ?>
 - <?php 
    comment_time();
    ?>
    </span> <?php 
    comment_reply_link(array_merge($args, array('before' => '<span class="comment-replay">', 'reply_text' => 'پاسخ', 'after' => '</span>', 'depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
    </div><br/><?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'])));
}
Ejemplo n.º 3
0
function theme_comments($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
	<li <?php 
    comment_class();
    ?>
 id="li-comment-<?php 
    comment_ID();
    ?>
">
		<div class="mk-single-comment" id="comment-<?php 
    comment_ID();
    ?>
">
			<div class="gravatar"><?php 
    echo get_avatar($comment, $size = '45', $default = '');
    ?>
</div>
			<div class="comment-meta">
					<?php 
    printf('<span class="comment-author">%s</span>', get_comment_author_link());
    ?>
					
                    <?php 
    edit_comment_link('', '', '');
    ?>
                    <time class="comment-time"><?php 
    echo get_comment_date();
    ?>
</time>
			</div>
			<span class="comment-reply">
					<?php 
    comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
			</span>
			<div class="clearboth"></div>
			<div class="comment-content">
					<?php 
    comment_text();
    ?>

<?php 
    if ($comment->comment_approved == '0') {
        ?>
					<span class="unapproved"><?php 
        _e('Your comment is awaiting moderation.', 'mk_framework');
        ?>
</span>
<?php 
    }
    ?>
				<div class="clearboth"></div>
			</div>

		       
		</div>		
<?php 
}
Ejemplo n.º 4
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 
}
Ejemplo n.º 5
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 
}
Ejemplo n.º 6
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 
}
Ejemplo n.º 7
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 } ?>
Ejemplo n.º 8
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 
}
Ejemplo n.º 9
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 
}
Ejemplo n.º 10
0
    function sf_custom_comments($comment, $args, $depth)
    {
        $GLOBALS['comment'] = $comment;
        $GLOBALS['comment_depth'] = $depth;
        ?>
		    <li id="comment-<?php 
        comment_ID();
        ?>
" <?php 
        comment_class('clearfix');
        ?>
>
		        <div class="comment-wrap clearfix">
		            <div class="comment-avatar">
		            	<?php 
        if (function_exists('get_avatar')) {
            echo get_avatar($comment, '100');
        }
        ?>
		            	<?php 
        if ($comment->comment_author_email == get_the_author_meta('email')) {
            ?>
		            	<span class="tooltip"><?php 
            _e("Author", "swiftframework");
            ?>
<span class="arrow"></span></span>
		            	<?php 
        }
        ?>
		            </div>
		    		<div class="comment-content">
		            	<div class="comment-meta">
	            			<?php 
        printf('<span class="comment-author">%1$s</span> <span class="comment-date">%2$s</span>', get_comment_author_link(), human_time_diff(get_comment_time('U'), current_time('timestamp')) . ' ' . __("ago", "swiftframework"));
        ?>
			            	<div class="comment-meta-actions">
		            			<?php 
        edit_comment_link(__('Edit', 'swiftframework'), '<span class="edit-link">', '</span><span class="meta-sep"> |</span>');
        ?>
		                        <?php 
        if ($args['type'] == 'all' || get_comment_type() == 'comment') {
            comment_reply_link(array_merge($args, array('reply_text' => __('Reply', 'swiftframework'), 'login_text' => __('Log in to reply.', 'swiftframework'), 'depth' => $depth, 'before' => '<span class="comment-reply">', 'after' => '</span>')));
        }
        ?>
			                </div>
						</div>
		      			<?php 
        if ($comment->comment_approved == '0') {
            _e("\t\t\t\t\t<span class='unapproved'>Your comment is awaiting moderation.</span>\n", 'swiftframework');
        }
        ?>
		            	<div class="comment-body">
		                	<?php 
        comment_text();
        ?>
		            	</div>
		    		</div>
		        </div>
	<?php 
    }
Ejemplo n.º 11
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();
    ?>
" class="comment-inner">
  	<figure class="vcard">
    	<?php 
    echo get_avatar($comment, 70);
    ?>
    </figure>
    <div class="comment-container">
	    <div class="commentmeta">
	        <strong><?php 
    comment_author_link();
    ?>
</strong>
	        <span class="authorname">
	            <?php 
    comment_date('M d, Y');
    ?>
 - <?php 
    comment_time('h:i A');
    ?>
 <?php 
    edit_comment_link("Edit", '');
    ?>
	        </span>
	    </div>
	    <div class="comment-text">
	        <?php 
    if ($comment->comment_approved == '0') {
        ?>
	            <em class="awaiting_moderation"><?php 
        _e('Your comment is awaiting moderation.', THB_THEME_NAME);
        ?>
</em>
	        <?php 
    }
    ?>
	        <?php 
    comment_text();
    ?>
	        <?php 
    comment_reply_link(array_merge($args, array('reply_text' => __('Reply', THB_THEME_NAME), 'depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
	    </div>
    </div> 
	</div>
<?php 
}
Ejemplo n.º 12
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 } ?>
Ejemplo n.º 13
0
    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 
    }
Ejemplo n.º 14
0
 private function replyLink($args, $depth)
 {
     $reply_link = '<p class="reply">';
     $reply_link .= comment_reply_link(array_merge($args, ['add_below' => 'comment', 'depth' => $depth, 'reply_text' => __('Reply', 'elr'), 'max_depth' => $args['max_depth']]));
     $reply_link .= '</p>';
     return $reply_link;
 }
Ejemplo n.º 15
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 
}
Ejemplo n.º 16
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 
}
Ejemplo n.º 17
0
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 
}
    /**
     * @param object $comment
     * @param int    $depth
     * @param array  $args
     */
    protected function comment($comment, $depth, $args)
    {
        ?>
		<li <?php 
        comment_class($this->has_children ? 'parent' : '', $comment->comment_ID);
        ?>
 id="comment-<?php 
        comment_ID();
        ?>
">
			<?php 
        if (1 === $depth) {
            ?>
<div class="row"><?php 
        }
        ?>
				<div class="media media--nofloat">
					<div class="img">
						<?php 
        $avatar_size = 1 === $depth ? 100 : 70;
        echo get_avatar($comment, $avatar_size, '', get_comment_author());
        ?>
					</div>
					<div class="bd">
						<div class="comment-author">
							<?php 
        printf(__('By&nbsp;<cite class="fn">%s</cite> <span class="date">on %s</span>', 'yoast-theme'), get_comment_author_link(), get_comment_date());
        ?>
						</div>

						<div class="comment-content">
							<?php 
        if ($comment->comment_approved == '0') {
            ?>
								<p class="alert"><?php 
            echo apply_filters('genesis_comment_awaiting_moderation', __('Your comment is awaiting moderation.', 'genesis'));
            ?>
</p>
							<?php 
        }
        ?>

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

				<div class="reply">
					<?php 
        comment_reply_link(array_merge($args, array('add_below' => 'comment', 'depth' => $depth, 'max_depth' => $args['max_depth'])));
        ?>
					<?php 
        edit_comment_link('edit', ' | ', '');
        ?>
				</div>
		<?php 
    }
Ejemplo n.º 19
0
function py_comments($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
  <li <?php 
    comment_class();
    ?>
>
    <article class="callout" id="comment-<?php 
    comment_ID();
    ?>
">
      <header class="comment-author">
        <?php 
    echo get_avatar($comment, $size = '96', $default = get_template_directory_uri() . ' /img/yeti-avatar.png');
    ?>
        <div class="author-meta">
          <?php 
    printf(__('<cite class="fn">%s</cite>', 'projectyeti'), get_comment_author_link());
    ?>
          <time datetime="<?php 
    echo comment_date('c');
    ?>
"><a href="<?php 
    echo esc_url(get_comment_link($comment->comment_ID));
    ?>
"><?php 
    printf(__('%1$s', 'projectyeti'), get_comment_date(), get_comment_time());
    ?>
</a></time>
          <?php 
    edit_comment_link(__('(Edit)', 'projectyeti'), '', '');
    ?>
        </div>
      </header>
      <?php 
    if ($comment->comment_approved == '0') {
        ?>
        <div class="notice">
        <p class="bottom"><?php 
        _e('Your comment is awaiting moderation.', 'projectyeti');
        ?>
</p>
          </div>
      <?php 
    }
    ?>
      <div class="comment">
        <?php 
    comment_text();
    ?>
      </div>
      <footer><?php 
    comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
</footer>
    </article>
<?php 
}
Ejemplo n.º 20
0
function tokopress_comments($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
    <li itemprop="reviews" itemscope="" itemtype="http://schema.org/Review" class="comment even thread-even depth-1" id="li-comment-105">
        <div id="comment-105" class="comment_container">
            <?php 
    echo get_avatar($comment, $size = '60');
    ?>
            <div class="comment-text">
                <div class="entry-meta">
                    <span class="author vcard"><a class="url fn n" rel="author" href="<?php 
    echo get_comment_author_url();
    ?>
" title="<?php 
    echo get_comment_author();
    ?>
 <?php 
    _e('Says', 'tokopress');
    ?>
"><?php 
    echo get_comment_author();
    ?>
</a></span>
                    <time class="published" datetime="<?php 
    echo get_comment_date('c');
    ?>
" title="<?php 
    echo get_comment_date('l, F jS, Y, g:i a');
    ?>
"><?php 
    echo get_comment_date();
    ?>
</time> <?php 
    comment_reply_link(array_merge($args, array('reply_text' => __('. Reply', 'tokopress'), 'after' => '', 'depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
                </div>
                <div itemprop="description" class="description">
                    <?php 
    if ($comment->comment_approved == '0') {
        ?>
                        <div class="alert alert-moderation">
                            <p><em><?php 
        _e('Your comment is awaiting moderation.', 'tokopress');
        ?>
</em></p>
                        </div>
                    <?php 
    }
    ?>
                    <?php 
    comment_text();
    ?>
                </div>
            </div>
        </div>
    </li><!-- #comment-## -->
    <?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 
}
Ejemplo n.º 22
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 
}
Ejemplo n.º 23
0
function joints_comments($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
	<li <?php 
    comment_class('panel');
    ?>
>
		<article id="comment-<?php 
    comment_ID();
    ?>
" class="clearfix large-12 columns">
			<header class="comment-author">
				<?php 
    // create variable
    $bgauthemail = get_comment_author_email();
    ?>
				<?php 
    printf(__('<cite class="fn">%s</cite>', 'jointstheme'), get_comment_author_link());
    ?>
 on
				<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 - g:ia', 'jointstheme'));
    ?>
 </a></time>
				<?php 
    edit_comment_link(__('(Edit)', 'jointstheme'), '  ', '');
    ?>
			</header>
			<?php 
    if ($comment->comment_approved == '0') {
        ?>
				<div class="alert alert-info">
					<p><?php 
        _e('Your comment is awaiting moderation.', 'jointstheme');
        ?>
</p>
				</div>
			<?php 
    }
    ?>
			<section class="comment_content clearfix">
				<?php 
    comment_text();
    ?>
			</section>
			<?php 
    comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
		</article>
	<!-- </li> is added by WordPress automatically -->
<?php 
}
Ejemplo n.º 24
0
    public function start_el(&$output, $comment, $depth = 0, $args = array(), $id = 0)
    {
        $depth++;
        $GLOBALS['comment_depth'] = $depth;
        $GLOBALS['comment'] = $comment;
        $parent_class = empty($args['has_children']) ? '' : 'parent';
        ?>
		
		<li id="comment-<?php 
        comment_ID();
        ?>
" <?php 
        comment_class($parent_class);
        ?>
>
			<div class="comment-header">
				<div class="left">
					<ul class="c">
						<li class="author">
							<a href="<?php 
        comment_author_url();
        ?>
">
								<?php 
        comment_author();
        ?>
							</a>
						</li>
						<li class="date">
							<?php 
        comment_time(get_option('n/j/Y g:i A'));
        ?>
						</li>
					</ul>
				</div>
				<div class="right">
					<ul class="c">
						<li class="reply">
							<?php 
        $reply_args = array('depth' => $depth, 'max_depth' => $args['max_depth'], 'reply_text' => '<span data-icon="reply"></span>');
        comment_reply_link(array_merge($args, $reply_args));
        ?>
						</li>
						<li class="edit">
							<?php 
        edit_comment_link('<span data-icon="edit"></span>');
        ?>
						</li>
					</ul>
				</div>
			</div>
			<section class="comment-body">
				<?php 
        comment_text();
        ?>
			</section>
			
	<?php 
    }
Ejemplo n.º 25
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 
}
Ejemplo n.º 26
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 
}
    function quality_comment($comment, $args, $depth)
    {
        $GLOBALS['comment'] = $comment;
        //get theme data
        global $comment_data;
        //translations
        $leave_reply = $comment_data['translation_reply_to_coment'] ? $comment_data['translation_reply_to_coment'] : __('Reply', 'quality');
        ?>
	
          <div class="media qua_comment_box">
			<a class="pull_left_comment">
            <?php 
        echo get_avatar($comment, $size = '60');
        ?>
            </a>
           <div class="media-body">
			   <div class="qua_comment_detail">
				<h4 class="qua_comment_detail_title"><?php 
        comment_author($comment);
        ?>
</h4>
				<span class="qua_comment_date"><?php 
        comment_date('F j, Y');
        ?>
&nbsp;<?php 
        _e('at', 'quality');
        ?>
&nbsp;<?php 
        comment_time('g:i a');
        ?>
</span>
				<?php 
        comment_text();
        ?>
				
				<div class="reply">				
				<i class="fa fa-mail-reply"></i>&nbsp;<?php 
        comment_reply_link(array_merge($args, array('reply_text' => $leave_reply, 'depth' => $depth, 'max_depth' => $args['max_depth'])));
        ?>
				</div>
				
				<?php 
        if ($comment->comment_approved == '0') {
            ?>
				<em class="comment-awaiting-moderation"><?php 
            _e('Your comment is awaiting moderation.', 'quality');
            ?>
</em>
				<br/>
				<?php 
        }
        ?>
				
				</div>
			</div>
		  </div>
<?php 
    }
Ejemplo n.º 28
0
/**
 * Custom callback function to list comments in the Thematic style. 
 * 
 * If you want to use your own comments callback for wp_list_comments, filter list_comments_arg
 *
 * @param object $comment 
 * @param array $args 
 * @param int $depth 
 */
function thematic_comments($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    $GLOBALS['comment_depth'] = $depth;
    ?>
    
       	<li id="comment-<?php 
    comment_ID();
    ?>
" <?php 
    comment_class();
    ?>
>
    	
    		<?php 
    // action hook for inserting content above #comment
    thematic_abovecomment();
    ?>
    		
    		<div class="comment-author vcard"><?php 
    thematic_commenter_link();
    ?>
</div>
    		
    			<?php 
    thematic_commentmeta(TRUE);
    ?>
    		
    			<?php 
    if ($comment->comment_approved == '0') {
        echo "\t\t\t\t\t" . '<span class="unapproved">';
        _e('Your comment is awaiting moderation', 'thematic');
        echo ".</span>\n";
    }
    ?>
    			
            <div class="comment-content">
            
        		<?php 
    comment_text();
    ?>
        		
    		</div>
    		
			<?php 
    // echo the comment reply link with help from Justin Tadlock http://justintadlock.com/ and Will Norris http://willnorris.com/
    if ($args['type'] == 'all' || get_comment_type() == 'comment') {
        comment_reply_link(array_merge($args, array('reply_text' => __('Reply', 'thematic'), 'login_text' => __('Log in to reply.', 'thematic'), 'depth' => $depth, 'before' => '<div class="comment-reply-link">', 'after' => '</div>')));
    }
    ?>
			
			<?php 
    // action hook for inserting content above #comment
    thematic_belowcomment();
    ?>

<?php 
}
Ejemplo n.º 29
0
function custom_comment($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
	<li <?php 
    comment_class();
    ?>
 id="comment-<?php 
    comment_ID();
    ?>
" >
		<div class="c-grav"><?php 
    echo get_avatar(get_comment_author_email(), '40');
    ?>
</div>
		<div class="c-body">
			<div class="c-head">
				<?php 
    comment_author_link();
    ?>
 <span class="c-permalink"><a href="<?php 
    echo get_permalink();
    ?>
#comment-<?php 
    comment_ID();
    ?>
"><?php 
    _e('permalink', 'titan');
    ?>
</a></span>
			</div>
			<?php 
    if ($comment->comment_approved == '0') {
        ?>
				<p><?php 
        _e('<em><strong>Please Note:</strong> Your comment is awaiting moderation.</em>', 'titan');
        ?>
</p>
			<?php 
    }
    ?>
			<?php 
    comment_text();
    ?>
			<?php 
    comment_type('', 'Trackback', 'Pingback');
    ?>
			<div class="reply">
				<?php 
    echo comment_reply_link(array('depth' => $depth, 'max_depth' => $args['max_depth']));
    ?>
			</div>
			<?php 
    edit_comment_link(__('Edit', 'titan'));
    ?>
		</div><!--end c-body-->
<?php 
}
Ejemplo n.º 30
-1
function my_theme_comment($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    switch ($comment->comment_type) {
        default:
            ?>
            <li <?php 
            comment_class();
            ?>
 id="comment-<?php 
            comment_ID();
            ?>
">
				<p class="meta-comment">
				 <?php 
            echo get_avatar($comment, 30);
            ?>
				 <span class="author-name"><?php 
            comment_author();
            ?>
</span>
					<time <?php 
            comment_time('c');
            ?>
 class="comment-time">
					<span class="date">
						<?php 
            comment_date();
            ?>
					</span>
					<span class="time">
						<?php 
            comment_time();
            ?>
					</span>
					</time>
				 
				</p>
				<div class="comment-content">
					<?php 
            comment_text();
            ?>
				</div>
				<div class="comment-actions">
					<div class="reply"><?php 
            comment_reply_link(array_merge($args, array('reply_text' => 'Reply', 'after' => '', 'depth' => $depth, 'max_depth' => $args['max_depth'])));
            ?>
					</div><!-- .reply -->
				</div>
 
 
            <!-- #comment-<?php 
            comment_ID();
            ?>
 -->
        <?php 
            // End the default styling of comment
            break;
    }
}