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


PHP comment_author_link函数代码示例

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


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

示例1: mydesign

function mydesign($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
<li class="compost" id="comment-<?php 
    comment_ID();
    ?>
">
	<div class="combody">
		<?php 
    comment_text();
    ?>
	</div><!-- .combody -->
	<p class="cominfo">
		by <?php 
    comment_author_link();
    ?>
 €<?php 
    comment_date();
    ?>
  <?php 
    comment_time();
    ?>
	</p>
</li>
<?php 
}
开发者ID:TakenokoPro,项目名称:antenna,代码行数:27,代码来源:functions.php

示例2: 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">
			<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 } ?>
开发者ID:robbiespire,项目名称:paQui,代码行数:29,代码来源:comments.php

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

示例4: as_function_comments_better

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

示例5: webnus_comments

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

示例6: mydesign

function mydesign($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    $users = get_users();
    ?>
        <li id="comment-<?php 
    echo comment_id();
    ?>
" class="compost">
             <?php 
    // ユーザーIDを引っ張る
    foreach ($users as $user) {
        //echo $user->display_name.'<br />';
        //echo get_comment_author();
        if ($user->display_name == get_comment_author()) {
            break;
        }
    }
    ?>
                <span class="trick_rounded-img icon_image" style="background: url(<?php 
    echo ps_get_user_profile_image_src($user->ID, 'standard');
    ?>
) no-repeat center center; width: 50px; height: 50px;></span>
				<span class="trick_thumbnail_Image">
					<?php 
    ps_user_profile_image($user->ID, 'thumbnail');
    ?>
				</span>
                <?php 
    ?>
            <div class="commentarea">
            	<?php 
    //改行表示
    $commentstr = '<p>' . get_comment_text() . '</p>';
    $commentstr = preg_replace("/\n/", "<br />", $commentstr);
    echo $commentstr;
    //comment_text();
    ?>
            
            </div>
            
            <p class="cominfo">
                <?php 
    comment_date();
    ?>
                <?php 
    comment_time();
    ?>
                |
                <?php 
    comment_author_link();
    ?>
                <?php 
    comment_reply_link(array_merge($args, array('depth' => $depth, 'reply_text' => '返信', 'before' => ' | ', 'after' => '')));
    ?>
            </p> 
        </li>

<?php 
}
开发者ID:nashinomi,项目名称:kukuru,代码行数:60,代码来源:functions.php

示例7: hui_comment

function hui_comment($comment, $args, $depth)
{
    global $commentcount;
    $GLOBALS['comment'] = $comment;
    if (!$commentcount) {
        $page = get_query_var('cpage') - 1;
        $cpp = get_option('comments_per_page');
        $commentcount = $cpp * $page;
    }
    ?>
<li class="comment-list-entry">
	<article>
		<footer class="comment-info">
			<?php 
    echo get_avatar($comment, 36);
    ?>
			<span class="comment-author"><?php 
    comment_author_link();
    ?>
</span>
			<span class="edit"><?php 
    edit_comment_link('编辑', '', '');
    ?>
</span>
			<span class="date">发表于 <time datetime="<?php 
    printf('%1$sT%2$s', get_comment_date('Y-m-d'), get_comment_time('H:i:s'));
    ?>
+00:00"><?php 
    printf('%1$s %2$s', get_comment_date('Y-m-d'), get_comment_time('H:i:s'));
    ?>
</time></span>
			<span class="floor"><?php 
    if (!($parent_id = $comment->comment_parent)) {
        printf('%1$s楼', ++$commentcount);
    }
    ?>
</span>
		</footer>
		<div class="comment-content">
		<?php 
    if ($comment->comment_approved == '0') {
        ?>
			<p>您的<?php 
        echo $comment_title;
        ?>
正在审核中,请耐心等待,以下是您正在审核中的<?php 
        echo $comment_title;
        ?>
内容:</p>
		<?php 
    }
    ?>
			<?php 
    comment_text();
    ?>
		</div>
	</article>
<?php 
}
开发者ID:Germey,项目名称:xjdssyzx,代码行数:59,代码来源:comments.php

示例8: candour_comment

    function candour_comment($comment, $args, $depth)
    {
        $GLOBALS['comment'] = $comment;
        if ('pingback' == $comment->comment_type || 'trackback' == $comment->comment_type) {
            ?>
	<li id="comment-<?php 
            comment_ID();
            ?>
" <?php 
            comment_class();
            ?>
>
		<div class="comment-body">
			<?php 
            _e('Pingback:', 'candour');
            ?>
 <?php 
            comment_author_link();
            ?>
 <?php 
            edit_comment_link(__('Edit', 'candour'), '<span class="edit-link">', '</span>');
            ?>
		</div>
	<?php 
        } else {
            ?>
	<li id="comment-<?php 
            comment_ID();
            ?>
" <?php 
            comment_class(empty($args['has_children']) ? '' : 'parent');
            ?>
>
		
			<div class="comment-meta">
				<figure class="comment-avatar">
    	            <?php 
            echo get_avatar($comment, 48);
            ?>
                </figure>	
				
				<div class="comment-metadata">
				    <?php 
            comment_author_link();
            ?>
                    <span class="datetime"><?php 
            comment_date('F j, Y');
            ?>
</span>					
					<?php 
            edit_comment_link(__('Edit', 'candour'), '<span class="edit-link">', '</span>');
            ?>
				</div><!-- .comment-metadata -->
				<?php 
            if ('0' == $comment->comment_approved) {
                ?>
       				<p class="comment-awaiting-moderation"><?php 
                _e('Your comment is awaiting moderation.', 'candour');
                ?>
开发者ID:IllyaKolisnichenko,项目名称:numo.dp.ua,代码行数:59,代码来源:theme-functions.php

示例9: kaitain_theme_comments

/**
 * Custom Comment Template
 * -----------------------------------------------------------------------------
 * @param   string  $comment    The comment.
 * @param   array   $args       Array argument
 * @param   int     $depth      Depth of the comments thread.
 */
function kaitain_theme_comments($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    $comment_classes = array('comments__comment', 'vspace--full');
    ?>

    <li <?php 
    comment_class($comment_classes);
    ?>
 id="comments__comment--<?php 
    comment_ID();
    ?>
">
        <div class="comments__photo avatar">
            <?php 
    kaitain_avatar_background_html($comment, 'tc_post_avatar', 'author-photo');
    ?>
        </div>
        <div class="comments__body">
            <header class="comments__header vspace--quarter">
                <h5 class="comments__meta">
                    <span class="comments__author-website"><?php 
    comment_author_link();
    ?>
</span>
                    <?php 
    printf('<span class="%s"><time datetime="%s">%s</time></span>', 'post-date', get_comment_date('Y-M-d H:i'), get_comment_date_strftime());
    ?>
                </h5>
            </header>

            <div class="comments__comment-body vspace--quarter">
                <?php 
    if (!$comment->comment_approved) {
        printf('<p class="%s">%s</p>', 'comments__unapproved', __('Tá do thrácht á mheas.', 'kaitain'));
    } else {
        comment_text();
    }
    ?>
            </div>

            <?php 
    if (is_user_logged_in()) {
        ?>
                <footer class="comments__footer">
                    <h5 class="comments_edit-link">
                        <?php 
        edit_comment_link(__('edit', 'kaitain'), '', '');
        ?>
                    </h5>
                </footer>
            <?php 
    }
    ?>
        </div>
    </li>

    <?php 
}
开发者ID:tuairisc,项目名称:kaitain,代码行数:66,代码来源:kaitain-comments.php

示例10: cutline_comment

function cutline_comment($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
	<li <?php 
    comment_class();
    ?>
 id="comment-<?php 
    comment_ID();
    ?>
">
			<?php 
    echo get_avatar($comment, 48);
    ?>
			<p class="comment_meta">
				<strong><?php 
    comment_author_link();
    ?>
 </strong>
				<span class="comment_time">// <a href="#comment-<?php 
    comment_ID();
    ?>
" title="<?php 
    echo attribute_escape(__('Permalink to this comment', 'cutline'));
    ?>
"><?php 
    comment_date();
    ?>
 <?php 
    _e('at');
    ?>
 <?php 
    comment_time();
    ?>
</a> <?php 
    echo comment_reply_link(array('depth' => $depth, 'max_depth' => $args['max_depth'], 'before' => ' | '));
    ?>
  <?php 
    edit_comment_link(__('edit', 'cutline'), '(', ')');
    ?>
</span> 			</p> 			<div class="entry">
				<?php 
    comment_text();
    ?>
 
				<?php 
    if ($comment->comment_approved == '0') {
        ?>
				<p><strong><?php 
        _e('Your comment is awaiting moderation.', 'cutline');
        ?>
</strong></p>
				<?php 
    }
    ?>
			</div>
		</li>
<?php 
}
开发者ID:rmccue,项目名称:wordpress-unit-tests,代码行数:59,代码来源:functions.php

示例11: canon_comments

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

		<li <?php 
    comment_class();
    ?>
 id="comment-<?php 
    comment_ID();
    ?>
">

			<div>

				<!-- AVATAR -->
				<?php 
    if (get_option('show_avatars') === '1') {
        echo '<div class="left">';
        echo get_avatar($comment, $args['avatar_size'], '', 'comment-avatar');
        echo '</div>';
    }
    ?>

				<!-- META -->
				<h5><?php 
    comment_author_link();
    ?>
</h5> 
				<h6><?php 
    echo mb_localize_datetime(get_comment_date(get_option('date_format') . ' (' . get_option('time_format') . ')'));
    ?>
</h6>

				<!-- REPLY AND EDIT LINKS -->
				<?php 
    comment_reply_link(array_merge($args, array('reply_text' => __('Reply', 'loc_canon'), 'depth' => $depth, 'max_depth' => $args['max_depth'])), $comment->comment_ID);
    ?>
				<?php 
    edit_comment_link(__('Edit', 'loc_canon'));
    ?>

				<!-- THE COMMENT -->
				<?php 
    if ($comment->comment_approved == '0') {
        printf('<span class="approval_pending_notice">%s</span>', __('Comment awaiting approval', 'loc_canon'));
    }
    ?>

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

		</li>

	<?php 
}
开发者ID:jameymcelveen,项目名称:com.flyingtigersrc.www,代码行数:59,代码来源:comments.php

示例12: list_pings

function list_pings($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    echo "<li id=\"comment-";
    echo comment_ID();
    echo "\" class=\"pings\">";
    echo comment_author_link();
}
开发者ID:Jintha,项目名称:cama,代码行数:8,代码来源:functions.php

示例13: print_comment

function print_comment($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
	<li <?php 
    comment_class('comment');
    ?>
>
		<div class="comment-body" id="comment-<?php 
    comment_ID();
    ?>
">
			<?php 
    echo get_avatar($comment, 70, get_bloginfo('stylesheet_directory') . '/images/avatar.gif');
    ?>
			<p class="author">
				<?php 
    comment_author_link();
    ?>
			</p>
			<p class="comment-meta">
				<?php 
    comment_date();
    ?>
 at <?php 
    comment_time();
    ?>
			</p>
			<div class="comment-content">
				<?php 
    if ($comment->comment_approved == '0') {
        ?>
			        <em><?php 
        _e('Your comment is awaiting moderation.');
        ?>
</em><br />
			    <?php 
    }
    ?>
			    
				<?php 
    comment_text();
    ?>
				<div class="alignleft"><?php 
    edit_comment_link(__('(Edit)'), '  ', '');
    ?>
</div>
				
			</div>
			<div class="reply">
		        <?php 
    comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
		    </div>
			<div class="cl">&nbsp;</div>
		</div>
	<?php 
}
开发者ID:TheWandererLee,项目名称:Git-Projects,代码行数:58,代码来源:functions.php

示例14: orbit_comment

    /**
     * Template for comments and pingbacks.
     * Used as a callback by wp_list_comments() for displaying the comments.
     */
    function orbit_comment($comment, $args, $depth)
    {
        $GLOBALS['comment'] = $comment;
        switch ($comment->comment_type) {
            case 'pingback':
            case 'trackback':
                ?>
	<li>
		<?php 
                _e('Pingback:', 'orbit');
                ?>
 <?php 
                comment_author_link();
                edit_comment_link(__('Edit', 'orbit'), '', '');
                ?>
	<?php 
                break;
            default:
                ?>
	<li>
		<?php 
                $avatar_size = 68;
                if ('0' != $comment->comment_parent) {
                    $avatar_size = 39;
                }
                echo get_avatar($comment, $avatar_size);
                // translators: 1: comment author, 2: date and time
                printf(__('%1$s on %2$s said:', 'orbit'), sprintf('%s', get_comment_author_link()), sprintf('<a href="%1$s"><time pubdate 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', 'orbit'), get_comment_date(), get_comment_time())));
                ?>

		<?php 
                edit_comment_link(__('Edit', 'orbit'), '', '');
                ?>
				
		<?php 
                if ($comment->comment_approved == '0') {
                    ?>
		
			<?php 
                    _e('Your comment is awaiting moderation.', 'orbit');
                    ?>
					
		<?php 
                }
                ?>

		<?php 
                comment_text();
                ?>

		<?php 
                comment_reply_link(array_merge($args, array('reply_text' => __('Reply &darr;', 'orbit'), 'depth' => $depth, 'max_depth' => $args['max_depth'])));
                ?>
	
		<?php 
                break;
        }
    }
开发者ID:ryanurban,项目名称:Orbit,代码行数:62,代码来源:custom-comments.php

示例15: andreas04_comment

function andreas04_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();
    ?>
">
	<?php 
    comment_text();
    ?>
	<p class="vcard"><cite>
	<?php 
    if ($args['avatar_size'] != 0) {
        echo get_avatar($comment, $args['avatar_size']);
    }
    ?>
	<?php 
    comment_type(__('Comment', 'andreas04'), __('Trackback', 'andreas04'), __('Pingback', 'andreas04'));
    ?>
 
	<?php 
    _e('by', 'andreas04');
    ?>
 
	<span class="fn"><?php 
    comment_author_link();
    ?>
</span> | 
	<?php 
    comment_date();
    ?>
 <!-- @ <a href="#comment-<?php 
    comment_ID();
    ?>
"><?php 
    comment_time();
    ?>
</a> --> 
	<?php 
    edit_comment_link(__('Edit', 'andreas04'), ' | ');
    ?>
	<?php 
    comment_reply_link(array_merge($args, array('add_below' => 'div-comment', 'before' => ' | ', 'depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
 
	</cite></p>
	</div>
<?php 
}
开发者ID:rmccue,项目名称:wordpress-unit-tests,代码行数:58,代码来源:comments.php


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