当前位置: 首页>>代码示例>>PHP>>正文


PHP comment_author_url函数代码示例

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


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

示例1: 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

示例2: start_el

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

示例3: dsq_render_single_comment

    function dsq_render_single_comment($comment, $args, $depth)
    {
        $GLOBALS['comment'] = $comment;
        ?>
		<li id="dsq-comment-<?php 
        echo (int) get_comment_ID();
        ?>
">
			<div id="dsq-comment-header-<?php 
        echo (int) get_comment_ID();
        ?>
" class="dsq-comment-header">
				<cite id="dsq-cite-<?php 
        echo (int) get_comment_ID();
        ?>
">
					<?php 
        if (comment_author_url()) {
            ?>
						<a id="dsq-author-user-<?php 
            echo (int) get_comment_ID();
            ?>
" href="<?php 
            echo esc_url(get_comment_author_url());
            ?>
" target="_blank" rel="nofollow"><?php 
            echo esc_html(get_comment_author());
            ?>
</a>
					<?php 
        } else {
            ?>
						<span id="dsq-author-user-<?php 
            echo (int) get_comment_ID();
            ?>
"><?php 
            echo esc_html(get_comment_author());
            ?>
</span>
					<?php 
        }
        ?>
				</cite>
			</div>
			<div id="dsq-comment-body-<?php 
        echo (int) get_comment_ID();
        ?>
" class="dsq-comment-body">
				<div id="dsq-comment-message-<?php 
        echo (int) get_comment_ID();
        ?>
" class="dsq-comment-message"><?php 
        wp_filter_kses(comment_text());
        ?>
</div>
			</div>
		</li>
		<?php 
    }
开发者ID:humanmade,项目名称:vip-mu-plugins-public,代码行数:59,代码来源:comments.php

示例4: advanced_comment

function advanced_comment($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
   <div class="comment-container" id="comment-<?php 
    comment_ID();
    ?>
">
        <div class="gravatar"> 
			<?php 
    echo get_avatar($comment);
    ?>
        </div>
        <span class="comment-author">
            <?php 
    echo get_comment_author_link();
    ?>
说道:
        </span>
        <div class="comment-time">
			<?php 
    echo get_comment_date();
    echo get_comment_time();
    ?>
            <span class="edit-comment"><?php 
    edit_comment_link('修改');
    ?>
</span>
        </div>
        <div class="comment-content">
			<?php 
    echo comment_text();
    ?>
        </div>
		<div class="comment-reply" onclick="replyComment(<?php 
    echo $comment->comment_post_ID;
    ?>
,<?php 
    echo $comment->comment_ID;
    ?>
,'<?php 
    echo get_option('siteurl');
    ?>
'+'/wp-comments-post.php','<?php 
    echo comment_author();
    ?>
','<?php 
    echo comment_author_email();
    ?>
','<?php 
    echo comment_author_url();
    ?>
')">
        	回复
      	</div>
   </div>
<?php 
}
开发者ID:AlaricZeng,项目名称:First-Blog,代码行数:58,代码来源:functions.php

示例5: gt_comments

function gt_comments($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
	<li class="comment">
	
		<div>
			
		<?php 
    echo get_avatar($comment, $size = '50');
    ?>
		    
		    <div class="comment-meta">
		        <h5 class="author"><a href="<?php 
    comment_author_url();
    ?>
" target="about_blank"><?php 
    comment_author();
    ?>
</a> - <?php 
    comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
</h5>
		        <p class="date"><?php 
    printf(__('%1$s at %2$s', 'velocityslide'), get_comment_date(), get_comment_time());
    ?>
</p>
		    </div>
		    
		    <div class="comment-entry">
		    <?php 
    comment_text();
    ?>
		    </div>
		
		</div>
		
		<?php 
    if ($comment->comment_approved == '0') {
        ?>
			<em class="comment-moderate"><?php 
        _e('Your comment is awaiting moderation.', 'velocityslide');
        ?>
</em>
			<br />
		<?php 
    }
    ?>
		
		<?php 
    edit_comment_link(__('(Edit)', 'velocityslide'), '  ', '');
    ?>
		
<?php 
}
开发者ID:villalonjeremie,项目名称:velocityslide,代码行数:55,代码来源:theme-functions.php

示例6: fjords_comment

function fjords_comment($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    extract($args, EXTR_SKIP);
    ?>
<div <?php 
    comment_class(empty($args['has_children']) ? '' : 'parent');
    ?>
 id="comment-<?php 
    comment_ID();
    ?>
">
	<div id="div-comment-<?php 
    comment_ID();
    ?>
">
	<div class="comentarios">
		<span class="comment-author vcard"><?php 
    if ($args['avatar_size'] != 0) {
        echo get_avatar($comment, $args['avatar_size']);
    }
    ?>
&nbsp;
		<span class="fn"><a href="<?php 
    comment_author_url();
    ?>
"> 
		<?php 
    comment_author();
    ?>
</a></span> wrote @ <span class="comment-meta commentmetadata"><?php 
    comment_date();
    ?>
 at <?php 
    comment_time();
    ?>
</span>
		</span>
	</div>	
	<?php 
    comment_text();
    ?>
	<div class="reply">
		<?php 
    comment_reply_link(array_merge($args, array('add_below' => 'div-comment', 'depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
	</div>
	</div>
<?php 
}
开发者ID:rmccue,项目名称:wordpress-unit-tests,代码行数:50,代码来源:comments.php

示例7: confirm

    private function confirm($action)
    {
        global $comment;
        $comment_id = intval($_GET['c']);
        $formaction = $action . 'comment';
        $nonce_action = 'approve' == $action ? 'approve-comment_' : 'delete-comment_';
        $nonce_action .= $comment_id;
        if (!($comment = get_comment_to_edit($comment_id))) {
            $this->base->ks_die(__('Oops, no comment with this ID.') . sprintf(' <a href="%s">' . __('Go back') . '</a>', 'edit-comments.php'), '', false);
        }
        if (!current_user_can('edit_post', $comment->comment_post_ID)) {
            $this->base->ks_die('delete' == $action ? __('You are not allowed to delete comments on this post.') : __('You are not allowed to edit comments on this post, so you cannot approve this comment.'));
        }
        include dirname(__FILE__) . '/admin-header.php';
        switch ($action) {
            case 'spam':
                $message = __('You are about to mark the following comment as spam:');
                break;
            case 'trash':
                $message = __('You are about to move the following comment to the Trash:', 'ktai_style');
                break;
            case 'delete':
                $message = __('You are about to delete the following comment:');
                break;
            default:
                $message = __('You are about to approve the following comment:');
                break;
        }
        echo '<p><img localsrc="1" alt="" /><font color="red">' . $message . '</font><br />' . __('Are you sure you want to do this?') . '</p>';
        ?>
<form action="edit-comments.php" method="get">
<?php 
        $this->admin->sid_field();
        ?>
<div><input type="submit" value="<?php 
        _e('No');
        ?>
" /></div></form>
<form action="comment.php" method="get">
<?php 
        $this->admin->sid_field();
        wp_nonce_field($nonce_action);
        ?>
<input type="hidden" name="action" value="<?php 
        echo esc_attr($formaction);
        ?>
" />
<input type="hidden" name="p" value="<?php 
        echo intval($comment->comment_post_ID);
        ?>
" />
<input type="hidden" name="c" value="<?php 
        echo intval($comment->comment_ID);
        ?>
" />
<input type="hidden" name="noredir" value="1" />
<div><input type="submit" value="<?php 
        _e('Yes');
        ?>
" /></div>
</form>
<dl><dt><img localsrc="<?php 
        comment_type(68, 112, 112);
        ?>
" alt="[<?php 
        comment_type(__('Comment', 'ktai_style'), __('Trackback'), __('Pingback'));
        ?>
] " /><?php 
        comment_author();
        ?>
<img localsrc="46" alt=" @ " /><font color="<?php 
        echo ks_option('ks_date_color');
        ?>
"><?php 
        ks_comment_datetime();
        ?>
</font></dt><dd><?php 
        if ($comment->comment_author_email) {
            ?>
<img localsrc="108" alt="" /><font color="olive"><?php 
            comment_author_email();
            ?>
</font><br /><?php 
        }
        if ($comment->comment_author_url && 'http://' != $comment->comment_author_url) {
            ?>
<img localsrc="112" alt="" /><font color="olive"><?php 
            comment_author_url();
            ?>
</font><br /><?php 
        }
        comment_excerpt();
        ?>
</dd></dl><?php 
        include dirname(__FILE__) . '/admin-footer.php';
    }
开发者ID:masayukiando,项目名称:wordpress-event-search,代码行数:96,代码来源:comment.php

示例8: frank_comment

    function frank_comment($comment, $args, $depth)
    {
        $GLOBALS['comment'] = $comment;
        ?>

		<li id="comment-<?php 
        comment_ID();
        ?>
" class="comment">
			<div class="row">
				<div class="comment-content">
					<?php 
        if ($comment->comment_approved == '0') {
            $moderation_pending = __('Your comment is awaiting moderation', 'frank_theme');
            echo '<span class="comment-moderation">' . $moderation_pending . '</span>';
        }
        comment_text();
        ?>
					<div class="comment-reply">
						<?php 
        comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth'])));
        ?>
					</div>
				</div>
				<div class="comment-info">
					<ul class='metadata vertical'>
						<li class="date"><time datetime="<?php 
        the_time('Y-m-d');
        ?>
"><span class="date-date"><?php 
        comment_date('F d, Y');
        ?>
</span> <span class="date-time"><?php 
        comment_date('g:i A');
        ?>
</span></time></li>
						<li class='author' id="vcard-<?php 
        comment_ID();
        ?>
">
							<?php 
        echo _x('By', 'comment_author_attribution', 'frank_theme');
        echo ' ';
        ?>
								<a class="url fn" href="<?php 
        comment_author_url();
        ?>
"><?php 
        comment_author();
        ?>
</a></li>
						<li>
							<?php 
        edit_comment_link(_x('edit', 'edit-comment', 'frank_theme'));
        ?>
						</li>
					</ul>
				</div>
			</div>
	<?php 
    }
开发者ID:nhodin,项目名称:Jerome,代码行数:61,代码来源:functions.php

示例9: arjuna_get_trackback

function arjuna_get_trackback($comment, $args, $depth)
{
    global $trackbackCount;
    $arjunaOptions = arjuna_get_options();
    $GLOBALS['comment'] = $comment;
    $commentClass = 'comment';
    ?>
	<li <?php 
    comment_class();
    ?>
 id="comment-<?php 
    comment_ID();
    ?>
">
		<?php 
    if (function_exists('get_avatar')) {
        echo get_avatar($comment, 40);
    }
    ?>
		<div class="message">
			<div class="t"><div></div></div>
			<div class="i"><div class="i2">
				<span class="title"><a href="#comment-<?php 
    comment_ID();
    ?>
">#<?php 
    print ++$trackbackCount;
    ?>
</a> | <?php 
    _e('Pinged by', 'Arjuna');
    ?>
 <?php 
    if (!get_comment_author_url()) {
        print get_comment_author_link();
    } else {
        ?>
<a href="<?php 
        comment_author_url();
        ?>
" class="authorLink"><?php 
        comment_author();
        ?>
</a><?php 
    }
    ?>
 <?php 
    if ($arjunaOptions['commentDateFormat'] == 'timePassed') {
        printf(__('about %s ago', 'Arjuna'), arjuna_get_time_passed(strtotime($comment->comment_date_gmt)));
    } else {
        print __('on', 'Arjuna') . ' ' . get_comment_time(get_option('date_format'));
    }
    ?>
.</span>
				<span class="links">
					<?php 
    edit_comment_link(__('Edit', 'Arjuna'), '', '');
    ?>
				</span>
				<?php 
    if ($comment->comment_approved == '0') {
        ?>
					<p><?php 
        _e('Your trackback is awaiting moderation.', 'Arjuna');
        ?>
</p>
				<?php 
    }
    ?>
				<div id="commentbody-<?php 
    comment_ID();
    ?>
">
					<?php 
    comment_text();
    ?>
				</div>
			</div></div>
			<div class="b"><div></div></div>
		</div>
	<?php 
    //</li> , WP, as strange as this is, adds it automatically
}
开发者ID:howardlei82,项目名称:IGSM-Website,代码行数:82,代码来源:functions.php

示例10: onemozilla_comment

    function onemozilla_comment($comment, $args, $depth)
    {
        $GLOBALS['comment'] = $comment;
        $comment_type = get_comment_type();
        $date_format = get_option("date_format");
        $time_format = get_option("time_format");
        ?>

 <li id="comment-<?php 
        comment_ID();
        ?>
" <?php 
        comment_class('hentry');
        ?>
>
  <?php 
        if ($comment_type == 'trackback') {
            ?>
    <h3 class="entry-title"><?php 
            _e('Trackback from ', 'onemozilla');
            ?>
 <cite><?php 
            esc_html(comment_author_link());
            ?>
</cite>
      <?php 
            /* L10N: Trackback headings read "Trackback from <Site> on <Date> at <Time>:" */
            ?>
      <span class="comment-meta"><?php 
            _e('on', 'onemozilla');
            ?>
      <a href="<?php 
            echo htmlspecialchars(get_comment_link($comment->comment_ID));
            ?>
" rel="bookmark" title=" <?php 
            _e('Permanent link to this comment by ', 'onemozilla');
            comment_author();
            ?>
">
      <time class="published" datetime="<?php 
            comment_date('Y-m-d');
            ?>
" title="<?php 
            comment_date('Y-m-d');
            ?>
">
      <?php 
            /* L10N: Trackback headings read "Trackback from <Site> on <Date> at <Time>:" */
            ?>
      <?php 
            printf(__('%1$s at %2$s', 'onemozilla'), get_comment_date($date_format), get_comment_time($time_format));
            ?>
</time></a>:</span></time></a>:</span>
    </h3>
  <?php 
        } elseif ($comment_type == 'pingback') {
            ?>
    <h3 class="entry-title"><?php 
            _e('Pingback from ', 'onemozilla');
            ?>
 <cite><?php 
            esc_html(comment_author_link());
            ?>
</cite>
      <?php 
            /* L10N: Pingback headings read "Pingback from <Site> on <Date> at <Time>:" */
            ?>
      <span class="comment-meta"><?php 
            _e('on', 'onemozilla');
            ?>
      <a href="<?php 
            echo htmlspecialchars(get_comment_link($comment->comment_ID));
            ?>
" rel="bookmark" title="<?php 
            _e('Permanent link to this comment by ', 'onemozilla');
            comment_author();
            ?>
">
      <time class="published" datetime="<?php 
            comment_date('Y-m-d');
            ?>
" title="<?php 
            comment_date('Y-m-d');
            ?>
">
      <?php 
            /* L10N: Pingback headings read "Pingback from <Site> on <Date> at <Time>:" */
            ?>
      <?php 
            printf(__('%1$s at %2$s', 'onemozilla'), get_comment_date($date_format), get_comment_time($time_format));
            ?>
</time></a>:</span></time></a>:</span>
    </h3>
  <?php 
        } else {
            ?>
    <?php 
            if ($comment->comment_author_url != "http://" && $comment->comment_author_url != "") {
                // if author has a link
                ?>
//.........这里部分代码省略.........
开发者ID:MozillaCZ,项目名称:mozilla.si,代码行数:101,代码来源:functions.php

示例11: kite_comment_format

function kite_comment_format($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
	
		<li <?php 
    comment_class();
    ?>
 class="comment" id="comment-<?php 
    echo esc_attr(comment_ID());
    ?>
">
			<div class="commentinfo">
				<div class="left profile">
					<a target="_blank" href="<?php 
    comment_author_url();
    ?>
"><img src="//0.gravatar.com/avatar/<?php 
    echo esc_attr(md5($comment->comment_author_email));
    ?>
?s=96" class="gravatar" alt="<?php 
    comment_author();
    ?>
"></a>
				</div>
				<div class="left">
					<span><?php 
    esc_html_e('Posted at', 'kite');
    ?>
 <?php 
    comment_time();
    ?>
 <?php 
    comment_date();
    ?>
</span>
					<h5><a target="_blank" href="<?php 
    comment_author_url();
    ?>
"><?php 
    comment_author();
    ?>
</a></h5>
				</div>
				<div class="buttons right">
					<?php 
    comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
					<div class="smallrounded tall blue isauthor"><?php 
    esc_html_e('Author', 'kite');
    ?>
</div>
				</div>
			</div>
			<div class="body">
				<?php 
    comment_text();
    ?>
				<?php 
    if ($comment->comment_approved == '0') {
        ?>
					<p><i class="fa fa-info-circle"></i><em> <?php 
        esc_html_e('Your comment is awaiting moderation.', 'kite');
        ?>
.</em></p>
				<?php 
    }
    ?>
			</div>

	<?php 
}
开发者ID:s4mobile,项目名称:WordPressTech,代码行数:72,代码来源:functions.php

示例12: start_el

    /** START_EL */
    function start_el(&$output, $comment, $depth, $args, $id = 0)
    {
        $depth++;
        $GLOBALS['comment_depth'] = $depth;
        $GLOBALS['comment'] = $comment;
        $ocommentmail = get_comment_author_email();
        ?>
        
    <div class="media well">
        
        <a class="pull-left" href="<?php 
        comment_author_url();
        ?>
" target="_blank">
			<?php 
        echo origines_get_avatar($ocommentmail, $args['avatar_size']);
        ?>
		</a>
		
		<div class="media-body">
		
			<?php 
        if ($comment->comment_approved == '0') {
            ?>
				<em class="comment-awaiting-moderation"><?php 
            _e('Your comment is awaiting moderation.', 'origines');
            ?>
</em>
				<br />
			<?php 
        }
        ?>
			
			<h4 class="comment-heading media-heading pull-left"><?php 
        comment_author_link();
        ?>
</h4>
			
			<div class="muted comment-meta commentmetadata pull-right">
				<small><em><?php 
        /* translators: 1: date, 2: time */
        printf(__('%1$s - %2$s', 'origines'), get_comment_date(), get_comment_time());
        edit_comment_link(__('(Edit)', 'origines'), ' ');
        ?>
</em></small>
			</div><!-- .comment-meta .commentmetadata -->
			
			<div class="clearfix"></div>
		
			<div class="comment-body"><?php 
        comment_text();
        ?>
</div>
			
			<div class="reply">
				<?php 
        comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth'])));
        ?>
			</div><!-- .reply -->
 			
    <?php 
    }
开发者ID:shahidbasheer,项目名称:origines,代码行数:63,代码来源:origines-walker.php

示例13: custom_comments

function custom_comments($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    global $commentcount;
    if (!$commentcount) {
        $commentcount = 0;
    }
    ?>
	<li class="comment <?php 
    if ($comment->comment_author_email == get_the_author_email()) {
        echo 'admincomment';
    } else {
        echo 'regularcomment';
    }
    ?>
" id="comment-<?php 
    comment_ID();
    ?>
">
		<div class="author">
			<div class="pic">
				<?php 
    echo get_avatar($comment, 32);
    ?>
			</div>
			<div class="name">
				<?php 
    if (get_comment_author_url()) {
        ?>
					<a id="commentauthor-<?php 
        comment_ID();
        ?>
" class="url" href="<?php 
        comment_author_url();
        ?>
" rel="external nofollow"><?php 
        comment_author();
        ?>
</a>
				<?php 
    } else {
        ?>
					<span id="commentauthor-<?php 
        comment_ID();
        ?>
"><?php 
        comment_author();
        ?>
</span>
				<?php 
    }
    ?>
			</div>
		</div>

		<div class="info">
			<div class="date">
				<?php 
    printf(__('%1$s at %2$s', 'inove'), get_comment_time(get_option('date_format')), get_comment_time(get_option('time_format')));
    ?>
					 | <a href="#comment-<?php 
    comment_ID();
    ?>
"><?php 
    printf('#%1$s', ++$commentcount);
    ?>
</a>
			</div>
			<div class="act">
				<?php 
    echo comment_reply_link(array('depth' => $depth, 'max_depth' => $args['max_depth'], 'after' => ' | '));
    ?>
				<a href="javascript:void(0);" onclick="MGJS_CMT.quote('commentauthor-<?php 
    comment_ID();
    ?>
', 'comment-<?php 
    comment_ID();
    ?>
', 'commentbody-<?php 
    comment_ID();
    ?>
', 'comment');"><?php 
    _e('Quote', 'inove');
    ?>
</a>
				<?php 
    edit_comment_link(__('Edit', 'inove'), ' | ', '');
    ?>
			</div>
			<div class="fixed"></div>
			<div class="content">
				<?php 
    if ($comment->comment_approved == '0') {
        ?>
					<p><small><?php 
        _e('Your comment is awaiting moderation.', 'inove');
        ?>
</small></p>
				<?php 
    }
//.........这里部分代码省略.........
开发者ID:rmccue,项目名称:wordpress-unit-tests,代码行数:101,代码来源:functions.php

示例14: add_filter

?>
">
<?php 
add_filter('get_comment_author_link', 'cfct_hcard_ping_author_link');
printf(__('<cite class="vcard author entry-title">%s <span class="linked-to-this-post">linked to this post</span></cite>', 'carrington-mobile'), get_comment_author_link());
remove_filter('get_comment_author_link', 'cfct_hcard_ping_author_link');
?>
 
	<span class="date">
		<span class="on"><?php 
_e('on');
?>
</span> <abbr class="published" title="<?php 
comment_date('Y-m-d\\TH:i:sO');
?>
"><?php 
comment_date();
?>
</abbr>
	</span>
	<blockquote class="entry-summary" cite="<?php 
comment_author_url();
?>
"><?php 
comment_text();
?>
</blockquote> 
	<?php 
edit_comment_link(__('Edit This', 'carrington-mobile'), '<div class="comment-editlink">', '</div>');
?>
</div><!--.ping-->
开发者ID:SymbiSoft,项目名称:litprojects,代码行数:31,代码来源:ping.php

示例15: dsq_comment

function dsq_comment($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    switch ($comment->comment_type) {
        case '':
            ?>
    <li <?php 
            comment_class();
            ?>
 id="dsq-comment-<?php 
            echo comment_ID();
            ?>
">
        <div id="dsq-comment-header-<?php 
            echo comment_ID();
            ?>
" class="dsq-comment-header">
            <cite id="dsq-cite-<?php 
            echo comment_ID();
            ?>
">
<?php 
            if (comment_author_url()) {
                ?>
                <a id="dsq-author-user-<?php 
                echo comment_ID();
                ?>
" href="<?php 
                echo comment_author_url();
                ?>
" target="_blank" rel="nofollow"><?php 
                echo comment_author();
                ?>
</a>
<?php 
            } else {
                ?>
                <span id="dsq-author-user-<?php 
                echo comment_ID();
                ?>
"><?php 
                echo comment_author();
                ?>
</span>
<?php 
            }
            ?>
            </cite>
        </div>
        <div id="dsq-comment-body-<?php 
            echo comment_ID();
            ?>
" class="dsq-comment-body">
            <div id="dsq-comment-message-<?php 
            echo comment_ID();
            ?>
" class="dsq-comment-message"><?php 
            echo wp_filter_kses(comment_text());
            ?>
</div>
        </div>

    <?php 
            break;
        case 'pingback':
        case 'trackback':
            ?>
    <li class="post pingback">
        <p><?php 
            echo dsq_i('Pingback:');
            ?>
 <?php 
            comment_author_link();
            ?>
(<?php 
            edit_comment_link(dsq_i('Edit'), ' ');
            ?>
)</p>
    </li>
    <?php 
            break;
    }
}
开发者ID:VizualAbstract,项目名称:Marilyn,代码行数:83,代码来源:disqus.php


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