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

PHP get_comment_reply_link函数代码示例

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

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



在下文中一共展示了get_comment_reply_link函数的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: 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


示例3: et_custom_comments_display

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


示例4: et_custom_comments_display

    function et_custom_comments_display($comment, $args, $depth)
    {
        $GLOBALS['comment'] = $comment;
        ?>
	<li <?php 
        comment_class();
        ?>
 id="li-comment-<?php 
        comment_ID();
        ?>
">
		<article id="comment-<?php 
        comment_ID();
        ?>
" class="comment-body clearfix">
			<?php 
        echo get_avatar($comment, $size = '60');
        ?>

			<?php 
        printf('<span class="fn">%s</span>', get_comment_author_link());
        ?>
			<span class="comment_date">
				<?php 
        /* translators: 1: date, 2: time */
        printf(__('%1$s', 'Flexible'), get_comment_date());
        ?>
			</span>
			<?php 
        edit_comment_link(esc_html__('(Edit)', 'Flexible'), ' ');
        ?>

			<?php 
        if ($comment->comment_approved == '0') {
            ?>
				<em class="moderation"><?php 
            esc_html_e('Your comment is awaiting moderation.', 'Flexible');
            ?>
</em>
				<br />
			<?php 
        }
        ?>

			<div class="comment-content clearfix">
				<?php 
        comment_text();
        ?>

				<?php 
        $et_comment_reply_link = get_comment_reply_link(array_merge($args, array('reply_text' => esc_attr__('Reply', 'Flexible'), '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-content-->
		</article> <!-- end comment-body -->
<?php 
    }
开发者ID:AttyC,项目名称:elizafilby,代码行数:59,代码来源:comments.php


示例5: omega_get_comment_reply_link

/**
 * Outputs the comment reply link.  Note that WP's `comment_reply_link()` doesn't work outside of 
 * `wp_list_comments()` without passing in the proper arguments (it isn't meant to).  This function is just a 
 * wrapper for `get_comment_reply_link()`, which adds in the arguments automatically.
 *
 * @since  0.9.0
 * @access public
 * @param  array  $args
 * @return string
 */
function omega_get_comment_reply_link($args = array())
{
    if (!get_option('thread_comments') || in_array(get_comment_type(), array('pingback', 'trackback'))) {
        return '';
    }
    $args = wp_parse_args($args, array('depth' => intval($GLOBALS['comment_depth']), 'max_depth' => get_option('thread_comments_depth')));
    return get_comment_reply_link($args);
}
开发者ID:traviswright,项目名称:matterandspirit,代码行数:18,代码来源:template-comments.php


示例6: mo_comments_list

/**
 * [mo_comments_list description]
 * @param  [type] $comment [description]
 * @param  [type] $args    [description]
 * @param  [type] $depth   [description]
 * @return [type]          [description]
 */
function mo_comments_list($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    global $commentcount, $wpdb, $post;
    if (!$commentcount) {
        //初始化楼层计数器
        $comments = $wpdb->get_results("SELECT * FROM {$wpdb->comments} WHERE comment_post_ID = {$post->ID} AND comment_type = '' AND comment_approved = '1' AND !comment_parent");
        $cnt = count($comments);
        //获取主评论总数量
        $page = get_query_var('cpage');
        //获取当前评论列表页码
        $cpp = get_option('comments_per_page');
        //获取每页评论显示数量
        if (ceil($cnt / $cpp) == 1 || $page > 1 && $page == ceil($cnt / $cpp)) {
            $commentcount = $cnt + 1;
            //如果评论只有1页或者是最后一页,初始值为主评论总数
        } else {
            $commentcount = $cpp * $page + 1;
        }
    }
    echo '<li ';
    comment_class();
    echo ' id="comment-' . get_comment_ID() . '">';
    //楼层
    if (!($parent_id = $comment->comment_parent)) {
        echo '<span class="comt-f">';
        printf('#%1$s', --$commentcount);
        echo '</span>';
    }
    //头像
    echo '<div class="comt-avatar">';
    echo _get_the_avatar($user_id = $comment->user_id, $user_email = $comment->comment_author_email);
    echo '</div>';
    //内容
    echo '<div class="comt-main" id="div-comment-' . get_comment_ID() . '">';
    // echo str_replace(' src=', ' data-src=', convert_smilies(get_comment_text()));
    comment_text();
    if ($comment->comment_approved == '0') {
        echo '<span class="comt-approved">待审核</span>';
    }
    echo '<div class="comt-meta"><span class="comt-author">' . get_comment_author_link() . '</span>';
    echo _get_time_ago($comment->comment_date);
    if ($comment->comment_approved !== '0') {
        $replyText = get_comment_reply_link(array_merge($args, array('add_below' => 'div-comment', 'depth' => $depth, 'max_depth' => $args['max_depth'])));
        // echo str_replace(' href', ' href="javascript:;" data-href', $replyText );
        if (strstr($replyText, 'reply-login')) {
            echo preg_replace('# class="[\\s\\S]*?" href="[\\s\\S]*?"#', ' class="signin-loader" href="javascript:;"', $replyText);
        } else {
            echo preg_replace('# href=[\\s\\S]*? onclick=#', ' href="javascript:;" onclick=', $replyText);
        }
    }
    echo '</div>';
    echo '</div>';
}
开发者ID:yszar,项目名称:linuxwp,代码行数:61,代码来源:mo_comments_list.php


示例7: skillcrush_comments

function skillcrush_comments($comment, $args, $depth)
{
    $comment = '<li class="comment">';
    $comment .= '<header class="comment-head">';
    $comment .= '<span class="comment-author">' . get_comment_author() . '</span>';
    $comment .= '<span class="comment-meta">' . get_comment_date('m/d/Y') . '&emsp;|&emsp;' . get_comment_reply_link(array('depth' => $depth, 'max_depth' => 5)) . '</span>';
    $comment .= '</header>';
    $comment .= '<div class="comment-body">';
    $comment .= '<p>' . get_comment_text() . '</p>';
    $comment .= '</div>';
    $comment .= '</li>';
    echo $comment;
}
开发者ID:beccanelson,项目名称:wordpress-portfolio,代码行数:13,代码来源:functions.php


示例8: om_comment

    function om_comment($comment, $args, $depth)
    {
        $GLOBALS['comment'] = $comment;
        ?>
		<div class="comment" id="comment-<?php 
        comment_ID();
        ?>
">
			<div class="comment-inner depth-<?php 
        echo esc_attr($depth);
        ?>
" id="comment-inner-<?php 
        comment_ID();
        ?>
">
				<div class="comment-meta">
					<div class="author"><?php 
        printf(__('<cite class="fn">%s</cite>', 'om_theme'), get_comment_author_link());
        ?>
</div>
					<div class="date"><a href="<?php 
        echo esc_url(get_comment_link($comment->comment_ID));
        ?>
"><?php 
        printf(__('%1$s at %2$s', 'om_theme'), get_comment_date(), get_comment_time());
        ?>
</a></div>
					<?php 
        $reply = get_comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth'])));
        $reply = preg_replace('#<a([^>]*)>([\\s\\S]*)</a>#', '<a$1><span>$2</span></a>', $reply);
        if ($reply) {
            echo '<div class="reply">' . $reply . '</div>';
        }
        ?>
					<?php 
        edit_comment_link(__('(Edit)', 'om_theme'), '<div class="edit">', '</div>');
        ?>
					<div class="clear"></div>
				</div>
				<div class="comment-text">
					<?php 
        if (preg_match('/src=["\']([^"\']+)["\']/', get_avatar($comment->comment_author_email, 76), $m)) {
            $src2x = $m[1];
        } else {
            $src2x = false;
        }
        $avatar = get_avatar($comment->comment_author_email, 38);
        if ($src2x) {
            $avatar = str_replace('src=', 'data-src-retina="' . $src2x . '" src=', $avatar);
        }
        if ($avatar) {
            ?>
								<div class="pic">
									<div class="pic-inner">
										<?php 
            echo wp_kses_post($avatar);
            ?>
									</div>
									<div class="clear"></div>
								</div>
							<?php 
        }
        ?>
					<div class="text<?php 
        if ($avatar) {
            echo ' with-avatar';
        }
        ?>
">
						<?php 
        if ($comment->comment_approved == '0') {
            ?>
						   <p><em><?php 
            _e('Your comment is awaiting moderation.', 'om_theme');
            ?>
</em></p>
						<?php 
        }
        ?>
						<?php 
        comment_text();
        ?>
					</div>
					<div class="clear"></div>

				</div>
			</div>
		<?php 
    }
开发者ID:SayenkoDesign,项目名称:ividf,代码行数:89,代码来源:comments.php


示例9: themeFunction_comment

    function themeFunction_comment($comment, $args, $depth)
    {
        $GLOBALS['comment'] = $comment;
        switch ($comment->comment_type) {
            case 'pingback':
            case 'trackback':
                ?>
	<li class="post pingback">
		<p><?php 
                _e('Pingback:', 'themeTextDomain');
                ?>
 <?php 
                comment_author_link();
                edit_comment_link(__('Edit', 'themeTextDomain'), '<span class="edit-link">', '</span>');
                ?>
</p>
	<?php 
                break;
            default:
                ?>
	<li <?php 
                comment_class('bs-example');
                ?>
 id="li-comment-<?php 
                comment_ID();
                ?>
">
		<article id="comment-<?php 
                comment_ID();
                ?>
" class="comment">
			<footer class="comment-meta">
				<div class="comment-author vcard">
					<?php 
                $avatar_size = 35;
                if ('0' != $comment->comment_parent) {
                    $avatar_size = 35;
                }
                echo get_avatar($comment, $avatar_size);
                /* translators: 1: comment author, 2: date and time */
                printf(__('%1$s %2$s', 'themeTextDomain'), sprintf('<span class="fn">%s</span>', get_comment_author_link()), sprintf('<time pubdate datetime="%2$s" itemprop="datePublished">%3$s</time>', esc_url(get_comment_link($comment->comment_ID)), get_comment_time('c'), sprintf(__('%1$s at %2$s', 'themeTextDomain'), get_comment_date(), get_comment_time())));
                ?>

				</div><!-- .comment-author .vcard -->

				<?php 
                if ($comment->comment_approved == '0') {
                    ?>
					<em class="comment-awaiting-moderation"><?php 
                    _e('Your comment is awaiting moderation.', 'themeTextDomain');
                    ?>
</em>
					<br />
				<?php 
                }
                ?>

			</footer>

			<div class="comment-content"><?php 
                comment_text();
                ?>
</div>

			<div class="reply">
				<?php 
                $myclass = 'btn btn-default';
                echo preg_replace('/comment-reply-link/', 'comment-reply-link ' . $myclass, get_comment_reply_link(array_merge($args, array('reply_text' => __('Reply', 'themeTextDomain'), 'depth' => $depth, 'max_depth' => $args['max_depth']))), 1);
                ?>
			</div><!-- .reply -->
		</article><!-- #comment-## -->
	
	<?php 
                break;
        }
    }
开发者ID:jomurgel,项目名称:Emijo-Bootstrap,代码行数:76,代码来源:comments.php


示例10: et_custom_comments_display

    function et_custom_comments_display($comment, $args, $depth)
    {
        $GLOBALS['comment'] = $comment;
        ?>
   <li <?php 
        comment_class();
        ?>
 id="li-comment-<?php 
        comment_ID();
        ?>
">
	    <div class="comment-body-outer">
			<div class="comment-body">
			   <div id="comment-<?php 
        comment_ID();
        ?>
" class="clearfix">
					<div class="avatar-box">
						<?php 
        echo get_avatar($comment, $size = '56');
        ?>
						<span class="avatar-overlay"></span>
					</div> <!-- end .avatar-box -->
					<div class="comment-wrap clearfix">
						<?php 
        printf('<span class="fn">%s</span>', get_comment_author_link());
        ?>
						<div class="comment-meta commentmetadata"><a href="<?php 
        echo esc_url(get_comment_link($comment->comment_ID));
        ?>
">
							<?php 
        /* translators: 1: date, 2: time */
        printf(__('%1$s at %2$s', 'twentyten'), get_comment_date(), get_comment_time());
        ?>
</a><?php 
        edit_comment_link(esc_html__('(Edit)', 'Feather'), ' ');
        ?>
						</div><!-- .comment-meta .commentmetadata -->

						<?php 
        if ($comment->comment_approved == '0') {
            ?>
							<em class="moderation"><?php 
            esc_html_e('Your comment is awaiting moderation.', 'Feather');
            ?>
</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', 'Feather'), '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 class="comment-arrow"></div>
				</div> <!-- end comment-body-->
			</div> <!-- end comment-body-->
		</div> <!-- end comment-body-outer -->
<?php 
    }
开发者ID:rmaloney,项目名称:simplewp_restaurant,代码行数:69,代码来源:comments.php


示例11: get_the_comment_meta

 public static function get_the_comment_meta($comment = null, $add_below = 'comment', $depth = 0, $max_depth = 0)
 {
     $comment = get_comment($comment);
     if (!$comment) {
         return;
     }
     $output = '<li class="comment-date"><span class="screen-reader-text">' . _x('Posted on', 'Used before the comment date.', 'wp-starter-theme') . '</span><time datetime="' . esc_attr(self::get_comment_time('c', false, $comment)) . '">' . self::get_the_comment_date($comment) . '</time></li>';
     $output .= '<li class="comment-author"><span class="screen-reader-text">' . _x('Author', 'Used before the comment author name.', 'wp-starter-theme') . '</span>' . get_comment_author_link($comment) . '</li>';
     if ('comment' === $comment->comment_type) {
         $output .= get_comment_reply_link(array('add_below' => $add_below, 'depth' => $depth, 'max_depth' => $max_depth, 'before' => '<li class="comment-reply-link-wrap">', 'after' => '</li>'), $comment);
     }
     ob_start();
     self::edit_comment_link(null, '<li class="comment-edit-link">', '</li>', $comment);
     $output .= ob_get_clean();
     $comment_type = $comment->comment_type ? $comment->comment_type : 'comment';
     $output = '<ul class="comment-meta comment-meta-' . $comment_type . '">' . $output . '</ul>';
     return $output;
 }
开发者ID:felixarntz,项目名称:wp-starter-theme,代码行数:18,代码来源:TemplateTags.php


示例12: weaverii_comment

    /**
     * Template for comments and pingbacks.
     *
     * To override this walker in a child theme without modifying the comments template
     * simply create your own weaverii_comment(), and that function will be used instead.
     *
     * Used as a callback by wp_list_comments() for displaying the comments.
     *
     * @since Weaver II 1.0
     */
    function weaverii_comment($comment, $args, $depth)
    {
        $GLOBALS['comment'] = $comment;
        switch ($comment->comment_type) {
            case 'pingback':
            case 'trackback':
                ?>
	<li class="pingback">
		<p><?php 
                echo __('Pingback:', 'weaver-ii');
                ?>
 <?php 
                comment_author_link();
                edit_comment_link(__('Edit', 'weaver-ii'), '<span class="edit-link">', '</span>');
                ?>
</p>
	<?php 
                break;
            default:
                ?>
	<li <?php 
                comment_class();
                ?>
 id="li-comment-<?php 
                comment_ID();
                ?>
" >
		<article id="comment-<?php 
                comment_ID();
                ?>
" class="comment">
			<footer class="comment-meta">
				<div class="comment-author vcard">
<?php 
                $avatar_size = 40;
                if ('0' != $comment->comment_parent) {
                    $avatar_size = 32;
                }
                echo get_avatar($comment, $avatar_size);
                /* translators: 1: comment author, 2: date and time */
                printf(__('%1$s on %2$s <span class="says">said:</span>', 'weaver-ii'), sprintf('<span class="fn">%s</span>', get_comment_author_link()), sprintf('<a href="%1$s"><time datetime="%2$s">%3$s</time></a>', esc_url(get_comment_link($comment->comment_ID)), get_comment_time('c'), sprintf(__('%1$s at %2$s', 'weaver-ii'), get_comment_date(), get_comment_time())));
                ?>

<?php 
                edit_comment_link(__('Edit', 'weaver-ii'), '<span class="edit-link">', '</span>');
                ?>
				</div><!-- .comment-author .vcard -->

				<?php 
                if ($comment->comment_approved == '0') {
                    ?>
					<em class="comment-awaiting-moderation"><?php 
                    echo __('Your comment is awaiting moderation.', 'weaver-ii');
                    ?>
</em>
					<br />
				<?php 
                }
                ?>

			</footer>

			<div class="comment-content"><?php 
                comment_text();
                ?>
</div>
<?php 
                $rl = get_comment_reply_link(array_merge($args, array('reply_text' => __('Reply <span>&darr;</span>', 'weaver-ii'), 'depth' => $depth, 'max_depth' => $args['max_depth'])));
                if ($rl != '') {
                    ?>
			<div class="reply">
				<?php 
                    echo $rl;
                    ?>
			</div><!-- .reply -->
<?php 
                }
                ?>
		</article><!-- #comment-## -->

	<?php 
                break;
        }
        /* end switch */
    }
开发者ID:mystified7545,项目名称:MyBlog,代码行数:95,代码来源:functions.php


示例13: the_comments

    /**
     * Display comments
     *
     * @param object $comment
     * @param array $args
     * @param int $depth
     */
    public static function the_comments($comment, $args, $depth)
    {
        $GLOBALS['comment'] = $comment;
        ?>
		<li <?php 
        comment_class(array('comments__item'));
        ?>
 id="li-comment-<?php 
        comment_ID();
        ?>
">
			<dl id="comment-<?php 
        comment_ID();
        ?>
" class="comment">
				<dt class="comment__header">
					<div class="comment__author">
						<?php 
        echo get_avatar($comment, '48');
        ?>
					<!-- end .comment-author --></div>
				</dt>
				<dd class="comment__body">
					<?php 
        if ($comment->comment_approved == '0') {
            ?>
					<em><?php 
            _e('Your comment is awaiting moderation.', 'habakiri');
            ?>
</em>
					<?php 
        }
        ?>
					<div class="comment__meta vcard">
						<?php 
        printf(__('<cite class="fn">%1$s</cite> said on %2$s at %3$s', 'habakiri'), get_comment_author_link(), get_comment_date(), get_comment_time());
        edit_comment_link('edit', '  ', '');
        ?>
					<!-- end .comment-meta --></div>
					<?php 
        comment_text();
        ?>
					<?php 
        $comment_reply_link = get_comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth'])));
        ?>
					<?php 
        if (!empty($comment_reply_link)) {
            ?>
					<div class="comment__reply reply btn btn-sm btn-primary">
						<?php 
            echo $comment_reply_link;
            ?>
					<!-- end .reply --></div>
					<?php 
        }
        ?>
				</dd>
			</dl>
		<?php 
    }
开发者ID:ConductiveIO,项目名称:mbrady,代码行数:67,代码来源:functions.php


示例14: lambda_comments

    function lambda_comments($comment, $args, $depth)
    {
        $GLOBALS['comment'] = $comment;
        $admincomment = 1 == $comment->user_id ? 'admin-comment' : '';
        ?>

<li <?php 
        comment_class();
        ?>
 id="li-comment-<?php 
        comment_ID();
        ?>
">
			<article id="comment-<?php 
        comment_ID();
        ?>
" class="single-comment clearfix">
                    
                    <?php 
        $avatar = get_avatar($comment, 45);
        if (!empty($avatar)) {
            ?>
   
                    
                    <figure class="comment-avatar <?php 
            echo $admincomment;
            ?>
"> 
                        <?php 
            echo $avatar;
            ?>
 
                    </figure>
                    
                    <?php 
        }
        ?>
               
                    <div class="comment-content">
                    
                    	<div class="comment-meta">
							
                            <span class="comment-author"><?php 
        echo get_comment_author_link();
        ?>
</span>
                            
                            <span class="comment-time"><i class="icon-time"></i><?php 
        echo get_comment_date() . '  -  ' . get_comment_time();
        ?>
</span>
                            
                            <?php 
        $comment_link = get_comment_reply_link(array_merge($args, array('reply_text' => __('Reply', 'delaware-theme'), 'depth' => $depth, 'max_depth' => $args['max_depth'])));
        ?>
                            
                            <?php 
        if (!empty($comment_link)) {
            ?>
                            
                            <span class="comment-reply">
                            	<i class="icon-reply"></i>
                                <?php 
            echo $comment_link;
            ?>
                            
                            </span>
                            
                            <?php 
        }
        ?>
                            
                            
                            <span class="comment-edit"><?php 
        edit_comment_link(__('Edit Comment', 'delaware-theme'), '  ', '');
        ?>
</span>
                            
                        </div>
                       
                        <div class="comment-text entry-content">
							<?php 
        comment_text();
        ?>
                        
                        	<?php 
        if ($comment->comment_approved == '0') {
            ?>
                            	<em><?php 
            _e('Comment is awaiting moderation', 'delaware-theme');
            ?>
</em>
                            <?php 
        }
        ?>
						
						</div>                     
		                        
                	</div>                               
		</article>
//.........这里部分代码省略.........
开发者ID:sebfabiani,项目名称:vcv,代码行数:101,代码来源:theme-layout-functions.php


示例15: imic_comment

    function imic_comment($comment, $args, $depth)
    {
        $isByAuthor = false;
        if ($comment->comment_author_email == get_the_author_meta('email')) {
            $isByAuthor = true;
        }
        $GLOBALS['comment'] = $comment;
        ?>
        <li <?php 
        comment_class();
        ?>
 id="li-comment-<?php 
        comment_ID();
        ?>
">
            <div class="post-comment-block">
                <div id="comment-<?php 
        comment_ID();
        ?>
">
                    <div class="img-thumbnail"><?php 
        echo get_avatar($comment, $size = '40');
        ?>
</div>
        <?php 
        echo preg_replace('/comment-reply-link/', 'comment-reply-link btn btn-primary btn-xs pull-right', get_comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth'], 'reply_text' => __('Reply', 'framework')))), 1);
        echo '<h5>' . get_comment_author() . __(' says', 'framework') . '</h5>';
        ?>
            
                    <span class="meta-data">
            <?php 
        echo get_comment_date();
        _e(' at ', 'framework');
        echo get_comment_time();
        ?>
                    </span>
            <?php 
        if ($comment->comment_approved == '0') {
            ?>
                        <em class="moderation"><?php 
            _e('Your comment is awaiting moderation.', 'framework');
            ?>
</em>
                        <br />
            <?php 
        }
        ?>
            <?php 
        comment_text();
        ?>
                </div>
            </div>
            <?php 
    }
开发者ID:jesusmarket,项目名称:jesusmarket,代码行数:54,代码来源:functions.php


示例16: evolve_comment_reply

 function evolve_comment_reply($return = false)
 {
     global $comment_depth;
     $max_depth = get_option('thread_comments_depth');
     $reply_text = apply_filters('evolve_reply_text', (string) 'Reply');
     // Available filter: evolve_reply_text
     $login_text = apply_filters('evolve_login_text', (string) 'Log in to reply.');
     // Available filter: evolve_login_text
     if (get_option('thread_comments') && get_comment_type() == 'comment') {
         if ($return) {
             return get_comment_reply_link(array('reply_text' => $reply_text, 'login_text' => $login_text, 'depth' => $comment_depth, 'max_depth' => $max_depth, 'before' => '<span class="comment-reply">', 'after' => '</span>'));
         } else {
             comment_reply_link(array('reply_text' => $reply_text, 'login_text' => $login_text, 'depth' => $comment_depth, 'max_depth' => $max_depth, 'before' => '<div class="comment-reply">', 'after' => '</div>'));
         }
     }
 }
开发者ID:berniecultess,项目名称:infirev,代码行数:16,代码来源:pluggable.php


示例17: bon_comment_reply_link_shortcode

/**
 * Displays a reply link for the 'comment' comment_type if threaded comments are enabled.
 *
 * @since 1.0
 * @access public
 * @return string
 */
function bon_comment_reply_link_shortcode($attr)
{
    if (!get_option('thread_comments') || 'comment' !== get_comment_type()) {
        return '';
    }
    $defaults = array('reply_text' => __('Reply', 'bon'), 'login_text' => __('Log in to reply.', 'bon'), 'depth' => intval($GLOBALS['comment_depth']), 'max_depth' => get_option('thread_comments_depth'), 'before' => '', 'after' => '');
    $attr = shortcode_atts($defaults, $attr);
    return get_comment_reply_link($attr);
}
开发者ID:VadimSid,项目名称:thinkgreek,代码行数:16,代码来源:shortcodes.php


示例18: fotos_comment_template

    function fotos_comment_template($comment, $args, $depth)
    {
        $GLOBALS['comment'] = $comment;
        extract($args, EXTR_SKIP);
        $comreply = get_comment_reply_link(array_merge($args, array('reply_text' => 'reply', 'depth' => $depth, 'max_depth' => $args['max_depth'])));
        $comdate = mysql2date('l jS F, Y, g:ia', get_comment_date());
        ?>
<li <?php 
        comment_class('fotos-single-comment');
        ?>
 id="li-comment-<?php 
        echo get_comment_ID();
        ?>
"><?php 
        printf('<div id="comment-%s" class="row fotos-single-comment-pad">', get_comment_ID());
        printf('<div class="span2 zmb"><span class="fotos-comment-author"><strong><a href="%s">%s</a></strong>: </span>', get_comment_author_url(), get_comment_author());
        printf('</div><div class="span10 zmb"><p class="fotos-comment-content">%s</p>', get_comment_text());
        printf('<p class="fotos-comment-date"><small>%s</small></p>', $comdate);
        printf('</div></div>');
    }
开发者ID:adrian-sowinski,项目名称:fotos,代码行数:20,代码来源:post.php


示例19: et_custom_comments_display

    function et_custom_comments_display($comment, $args, $depth)
    {
        $GLOBALS['comment'] = $comment;
        ?>
	<li <?php 
        comment_class();
        ?>
 id="li-comment-<?php 
        comment_ID();
        ?>
">
		<article id="comment-<?php 
        comment_ID();
        ?>
" class="note-block comment-body">
			<div class="note">
				<div class="note-inner">
					<div class="note-content">
						<div class="post-title">
							<div class="comment-meta commentmetadata clearfix">
								<div class="avatar-box">
									<?php 
        echo get_avatar($comment, $size = '53');
        ?>
									<span class="avatar-overlay"></span>
								</div> <!-- end .avatar-box -->

								<?php 
        printf('<span class="fn">%s</span>', get_comment_author_link());
        ?>
								<span class="comment_date">
									<?php 
        /* translators: 1: date, 2: time */
        printf(__('%1$s', 'DailyJournal'), get_comment_date());
        ?>
								</span>
								<?php 
        edit_comment_link(esc_html__('(Edit)', 'DailyJournal'), ' ');
        ?>
							</div><!-- .comment-meta .commentmetadata -->

							<?php 
        if ($comment->comment_approved == '0') {
            ?>
								<em class="moderation"><?php 
            esc_html_e('Your comment is awaiting moderation.', 'DailyJournal');
            ?>
</em>
								<br />
							<?php 
        }
        ?>
						</div> <!-- end .post-title -->

						<div class="post-content">
							<div class="comment-wrap clearfix">
								<div class="comment-content clearfix">
									<?php 
        comment_text();
        ?>
								</div> <!-- end comment-content-->
							</div> <!-- end comment-wrap -->
						</di 

鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP get_comment_statuses函数代码示例发布时间:2022-05-15
下一篇:
PHP get_comment_pages_count函数代码示例发布时间: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