• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP get_comment_time函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中get_comment_time函数的典型用法代码示例。如果您正苦于以下问题:PHP get_comment_time函数的具体用法?PHP get_comment_time怎么用?PHP get_comment_time使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了get_comment_time函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: comment

 protected function comment($comment, $depth, $args)
 {
     // разметка каждого комментария, без закрывающего </li>!
     $classes = implode(' ', get_comment_class()) . ($comment->comment_author_email == get_the_author_meta('email') ? ' author-comment' : '');
     // берем стандартные классы комментария и если коммент пренадлежит автору поста добавляем класс author-comment
     echo '<li id="li-comment-' . get_comment_ID() . '" class="' . $classes . '">' . "\n";
     // родительский тэг комментария с классами выше и уникальным id
     echo '<div id="comment-' . get_comment_ID() . '">' . "\n";
     // элемент с таким id нужен для якорных ссылок на коммент
     echo get_avatar($comment, 64) . "\n";
     // покажем аватар с размером 64х64
     echo '<p class="meta">Автор: ' . get_comment_author() . "\n";
     // имя автора коммента
     //echo ' '.get_comment_author_email(); // email автора коммента
     echo ' ' . get_comment_author_url();
     // url автора коммента
     echo ' <br>Добавлено ' . get_comment_date('F j, Y') . ' в ' . get_comment_time() . "\n";
     // дата и время комментирования
     if ('0' == $comment->comment_approved) {
         echo '<em class="comment-awaiting-moderation">Ваш комментарий будет опубликован после проверки модератором.</em>' . "\n";
     }
     // если комментарий должен пройти проверку
     comment_text() . "\n";
     // текст коммента
     $reply_link_args = array('depth' => $depth, 'reply_text' => 'Ответить', 'login_text' => 'Вы должны быть залогинены');
     echo get_comment_reply_link(array_merge($args, $reply_link_args));
     // выводим ссылку ответить
     echo '</div>' . "\n";
     // закрываем див
 }
开发者ID:Ivan26ru,项目名称:gp-wp,代码行数:30,代码来源:functions.php


示例2: jhfn_comment

function jhfn_comment($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    //print_r($comment);
    /* Check if post is by Author for special styling */
    $isByAuthor = false;
    if ($comment->comment_author_email == get_the_author_meta('email')) {
        $isByAuthor = true;
    }
    ?>
  

<li>
    <h4><span><?php 
    echo $comment->comment_author;
    ?>
</span> wrote:</h4>
    <?php 
    comment_text();
    ?>
    <p class="commentDate">
        Written on <?php 
    printf(__('%1$s at %2$s'), get_comment_date('n/j/Y'), get_comment_time('g:ia'));
    ?>
 <?php 
    edit_comment_link(__('Edit'), '  ', '');
    ?>
    </p>
</li>

<?php 
}
开发者ID:jackrabbit-design,项目名称:jrd-londoncompany,代码行数:32,代码来源:functions-comments.php


示例3: comment

 protected function comment($comment, $depth, $args)
 {
     // each comment markup, without </li>!
     $classes = implode(' ', get_comment_class()) . ($comment->comment_author_email == get_the_author_meta('email') ? ' author-comment' : '');
     // get typical wp comment classes and if comment belong post autor add "author-comment" class
     echo '<li id="li-comment-' . get_comment_ID() . '" class="' . $classes . '">' . "\n";
     // parent tag with classes and uniq id
     echo '<div id="comment-' . get_comment_ID() . '">' . "\n";
     // anchor element with this id need to anchor links on comments works
     echo get_avatar($comment, 64) . "\n";
     // show avatar with size 64x64 px
     echo '<p class="meta">Posted by: ' . get_comment_author() . "\n";
     // comment autor name
     echo ' ' . get_comment_author_email();
     // comment autor email
     echo ' ' . get_comment_author_url();
     // comment autor url
     echo ' On ' . get_comment_date('F j, Y') . ' at ' . get_comment_time() . '</p>' . "\n";
     // date and time of comment creating
     if ('0' == $comment->comment_approved) {
         echo '<em class="comment-awaiting-moderation">Your comment is awaiting moderation</em>' . "\n";
     }
     // if comment is not approved notify of it
     comment_text() . "\n";
     // display comment text
     $reply_link_args = array('depth' => $depth, 'reply_text' => 'Reply on it', 'login_text' => 'You must be logged to post comments');
     echo get_comment_reply_link(array_merge($args, $reply_link_args));
     // display reply link
     echo '</div>' . "\n";
     // anchor element end
 }
开发者ID:seredniy,项目名称:clean-wp-template,代码行数:31,代码来源:functions.php


示例4: mytheme_comment

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
            }
开发者ID:rodolfospalenza,项目名称:blogrs,代码行数:35,代码来源:functions.php


示例5: franz_comment_meta

/**
 * Comment meta
 */
function franz_comment_meta($comment)
{
    global $post;
    $meta = array();
    $meta['attr'] = array('class' => 'comment-attr', 'meta' => sprintf(__('%1$s on %2$s at %3$s', 'franz-josef'), '<span class="comment-author">' . franz_comment_author_link($comment->user_id) . '</span>', '<span class="comment-date">' . get_comment_date(), get_comment_time() . '</span>'));
    if ($comment->user_id === $post->post_author) {
        $meta['author'] = array('class' => 'author-cred label', 'meta' => __('Author', 'franz-josef'));
    }
    $meta = apply_filters('franz_comment_meta', $meta);
    if (!$meta) {
        return;
    }
    ?>
    <ul class="comment-meta col-md-9 col-xs-12">
        <?php 
    foreach ($meta as $item) {
        ?>
        <li class="<?php 
        echo esc_attr($item['class']);
        ?>
"><?php 
        echo $item['meta'];
        ?>
</li>
        <?php 
    }
    ?>
    </ul>
    <?php 
}
开发者ID:ravitechrlabs,项目名称:wordpress,代码行数:33,代码来源:comments.php


示例6: secret_comment

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 
}
开发者ID:Neil-WN,项目名称:mysite,代码行数:60,代码来源:functions.php


示例7: geo_mashup_comment_default

/**
 * 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 
}
开发者ID:amgxyz,项目名称:interactive-geo-trail-map,代码行数:48,代码来源:comment.php


示例8: reverie_comments

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 
}
开发者ID:Paulf-999,项目名称:HollyFry.com,代码行数:60,代码来源:comments.php


示例9: format_comment

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>';
}
开发者ID:ravenvn,项目名称:sandau,代码行数:30,代码来源:functions.php


示例10: jrd_comment

function jrd_comment($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    //print_r($comment);
    /* Check if post is by Author for special styling */
    $isByAuthor = false;
    if ($comment->comment_author_email == get_the_author_meta('email')) {
        $isByAuthor = true;
    }
    ?>
  

<li class="clearfix">
    <div class="author">
        <h6><?php 
    echo $comment->comment_author;
    ?>
</h6>
        <p class="timestamp"><?php 
    printf(__('%1$s at %2$s'), get_comment_date('n/j/Y'), get_comment_time('g:ia'));
    ?>
</p>
    </div>
    <div class="commenttext">
        <?php 
    comment_text();
    ?>
    </div>
</li>

<?php 
}
开发者ID:jackrabbit-design,项目名称:itg,代码行数:32,代码来源:functions-comments.php


示例11: sandbox_ping

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();
}
开发者ID:rmccue,项目名称:wordpress-unit-tests,代码行数:29,代码来源:comments.php


示例12: thematic_pings

function thematic_pings($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
    		<li id="comment-<?php 
    comment_ID();
    ?>
" class="<?php 
    thematic_comment_class();
    ?>
">
    			<div class="comment-author"><?php 
    printf(__('By %1$s on %2$s at %3$s', 'thematic'), get_comment_author_link(), get_comment_date(), get_comment_time());
    edit_comment_link(__('Edit', 'thematic'), ' <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', 'thematic');
    }
    ?>
            <div class="comment-content">
    			<?php 
    comment_text();
    ?>
			</div>
<?php 
}
开发者ID:StudentLifeMarketingAndDesign,项目名称:krui-wp,代码行数:28,代码来源:discussion.php


示例13: sun_comment

    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 
    }
开发者ID:ekudriashov,项目名称:sun-theme,代码行数:33,代码来源:comments-callback.php


示例14: show_comment

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 
}
开发者ID:sfedorenko,项目名称:geekhub_frontend,代码行数:35,代码来源:comments.php


示例15: sandbox_10_ping

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();
}
开发者ID:rmccue,项目名称:wordpress-unit-tests,代码行数:25,代码来源:comments.php


示例16: studiofolio_comment

<?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 } ?>
开发者ID:jackmachin,项目名称:bayer,代码行数:26,代码来源:comments.php


示例17: garland_comment

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 
}
开发者ID:rmccue,项目名称:wordpress-unit-tests,代码行数:60,代码来源:comments.php


示例18: mytheme_comment

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 
}
开发者ID:normalhh,项目名称:zwwtheme.old,代码行数:60,代码来源:functions.php


示例19: cp_comments

function cp_comments($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
    <li id="comment-<?php 
    comment_ID();
    ?>
" <?php 
    comment_class();
    ?>
>
    <div <?php 
    comment_class();
    ?>
 class="comment">

      <div class="col-xs-2 author-avatar">
        <?php 
    echo get_avatar($comment, 80);
    ?>
      </div>
      <div class="col-xs-10">
        <h5><?php 
    echo get_comment_author_link();
    ?>
</h5>
        <span class="comment-date"><?php 
    _e('Posted on', 'concept');
    ?>
 <?php 
    echo get_comment_date();
    ?>
 <?php 
    _e('at', 'concept');
    ?>
 <?php 
    echo get_comment_time();
    ?>
</span>
        <?php 
    if ($comment->comment_approved == '0') {
        ?>
          <em><?php 
        _e('Your comment is awaiting moderation.', 'concept');
        ?>
</em>
        <?php 
    }
    ?>
        <?php 
    comment_text();
    ?>
        <?php 
    comment_reply_link(array_merge($args, array('reply_text' => __('Reply', 'concept'), 'depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
      </div>
    </div>
    <?php 
}
开发者ID:bbwebservices,项目名称:avarel,代码行数:59,代码来源:helpers.php


示例20: py_comments

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 
}
开发者ID:markmcwilliams,项目名称:Project-Yeti,代码行数:59,代码来源:comments.php



注:本文中的get_comment_time函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP get_comment_to_edit函数代码示例发布时间:2022-05-15
下一篇:
PHP get_comment_text函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap