コード例 #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 
}
コード例 #2
0
ファイル: comments.php プロジェクト: robbiespire/paQui
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 } ?>
コード例 #3
0
ファイル: functions.php プロジェクト: bibiangel1989/vespatour
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 
}
コード例 #4
0
ファイル: comments.php プロジェクト: nxtclass/NXTClass-themes
    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 
    }
コード例 #5
0
ファイル: functions.php プロジェクト: nukulb/bugsbounty-blog
/**
     * 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;
}
コード例 #6
0
ファイル: comments.php プロジェクト: nicomollet/stormbringer
function stormbringer_comments($comment, $args, $depth) {
  $GLOBALS['comment'] = $comment; ?>
	<li <?php comment_class('media'); ?>>
    <div class="pull-left">
      <div class="comment-avatar vcard">
        <?php echo get_avatar($comment,apply_filters('stormbringer_author_bio_avatar_size', 100) ); ?>
      </div>
    </div>
    <!-- /.comment-avatar -->
    <div class="media-body">
      <div class="comment-message">
        <?php printf(__('<h4 class="media-heading">%s</h4>','stormbringer'), get_comment_author_link()) ?>
        <?php edit_comment_link(__('Edit','stormbringer'),'<span class="edit-comment btn btn-info"><span class="glyphicon glyphicon-pencil"></span>','</span>') ?>

        <?php if ($comment->comment_approved == '0') : ?>
          <div class="alert-message success">
            <p><?php _e('Your comment is awaiting moderation.','stormbringer') ?></p>
          </div>
        <?php endif; ?>

        <?php comment_text() ?>

        <time datetime="<?php echo comment_time('c'); ?>"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php comment_time(esc_attr__( 'F j, Y', 'stormbringer' )); ?> <?php _e('at', 'stormbringer'); ?> <?php comment_time(esc_attr__( 'H:i', 'stormbringer' )); ?> </a></time>

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

    <!-- </li> is added by wordpress automatically -->
<?php
}
コード例 #7
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 
}
コード例 #8
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();
}
コード例 #9
0
function paragrams_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 
    $myavatar = get_bloginfo('template_directory') . '/images/gravatar.png';
    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 
}
コード例 #10
0
function show_comment($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>

  <li <?php 
    comment_class();
    ?>
 >
    <div class="avatar">
      <?php 
    echo get_avatar($comment, 70, $default = 'mystery');
    ?>
    </div>
    <div class="author">
      <?php 
    echo get_comment_author_link();
    ?>
    </div>
    <div class="comment-meta">
      <?php 
    printf('%1$s — %2$s', get_comment_date(), get_comment_time());
    ?>
    </div>
    <?php 
    comment_text();
    ?>
    <div class="reply">
      <?php 
    comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
    </div>
  </li>
<?php 
}
コード例 #11
0
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>';
}
コード例 #12
0
ファイル: comments.php プロジェクト: jackmachin/bayer
<?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 } ?>
コード例 #13
0
ファイル: comments.php プロジェクト: blueset/theme-gn
    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 
    }
コード例 #14
0
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 
}
コード例 #15
0
ファイル: functions.php プロジェクト: rodolfospalenza/blogrs
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
            }
コード例 #16
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 
}
コード例 #17
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();
}
コード例 #18
0
ファイル: comments.php プロジェクト: ConceptHaus/beckery
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 
}
コード例 #19
0
        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 
        }
コード例 #20
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 
}
コード例 #21
0
ファイル: functions.php プロジェクト: normalhh/zwwtheme.old
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 
}
コード例 #22
0
ファイル: functions.php プロジェクト: ravenvn/sandau
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>';
}
コード例 #23
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 
}
コード例 #24
0
ファイル: functions.php プロジェクト: newshorts/thorn
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', 'Foundation'), get_comment_author_link(), get_comment_date(), get_comment_time());
    edit_comment_link(__('Edit', 'Foundation'), ' <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', 'Foundation');
    }
    ?>
            <div class="comment-content">
                <?php 
    comment_text();
    ?>
            </div>
<?php 
}
コード例 #25
0
/**
 * 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 
}
コード例 #26
0
ファイル: comments.php プロジェクト: Paulf-999/HollyFry.com
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 
}
コード例 #27
0
ファイル: functions.php プロジェクト: efreetant/stellar
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 
}
コード例 #28
0
ファイル: comments.php プロジェクト: supravatweb/wordpress
/**
 * 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 
}
コード例 #29
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 
}
コード例 #30
-1
ファイル: functions.php プロジェクト: pslorus/WebsiteTinTuc
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;
    }
}