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


PHP edit_comment_link函数代码示例

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


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

示例1: ks_comment_content

function ks_comment_content()
{
    global $comment, $ks_settings;
    ?>
<img localsrc="<?php 
    comment_type(68, 112, 112);
    ?>
" alt="" /><?php 
    ks_comment_author_link();
    ?>
<img localsrc="d001" alt=" @ " /><font color="<?php 
    echo $ks_settings['date_color'];
    ?>
"><?php 
    ks_comment_datetime();
    ?>
</font>
	<?php 
    edit_comment_link('<font color="' . $ks_settings['edit_color'] . '">' . __('Edit') . '</font>', '<img localsrc="104" alt="" />');
    ?>
<br />
	<?php 
    if ($comment->comment_approved == '0') {
        ?>
		<em><font color="red"><?php 
        _e('Your comment is awaiting moderation.', 'ktai_style');
        ?>
</font></em><br />
	<?php 
    }
    comment_text();
}
开发者ID:masayukiando,项目名称:wordpress-event-search,代码行数:32,代码来源:comments.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">
                <?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

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

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

示例5: efreetant_comments

function efreetant_comments($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
  <div id="comment-<?php 
    comment_ID();
    ?>
" <?php 
    comment_class('comment');
    ?>
>
    <article  class="comment">
      <header class="comment-author">
        <?php 
    $bgauthemail = get_comment_author_email();
    ?>
        <img data-gravatar="http://www.gravatar.com/avatar/<?php 
    echo md5($bgauthemail);
    ?>
?s=40" class="avatar" height="40" width="40" src="<?php 
    echo get_template_directory_uri();
    ?>
/images/nothing.gif" />
        <?php 
    printf(__('<cite class="fn">%1$s</cite> %2$s', 'efreetanttheme'), get_comment_author_link(), edit_comment_link(__('(Edit)', 'efreetanttheme'), '  ', ''));
    ?>
        <time datetime="<?php 
    echo comment_time('Y-m-j');
    ?>
"><a href="<?php 
    echo htmlspecialchars(get_comment_link($comment->comment_ID));
    ?>
"><?php 
    comment_time(__('F jS, Y', 'efreetanttheme'));
    ?>
 </a></time>
     </header>
      <?php 
    if ($comment->comment_approved == '0') {
        ?>
        <div class="alert alert-info">
          <p><?php 
        _e('Your comment is awaiting moderation.', 'efreetanttheme');
        ?>
</p>
        </div>
      <?php 
    }
    ?>
      <section class="comment_content">
        <?php 
    comment_text();
    ?>
      </section>
      <?php 
    comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
    </article>
<?php 
}
开发者ID:efreetant,项目名称:stellar,代码行数:60,代码来源:functions.php

示例6: theme_comments

function theme_comments($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    ?>
	<li <?php 
    comment_class();
    ?>
 id="li-comment-<?php 
    comment_ID();
    ?>
">
		<div class="mk-single-comment" id="comment-<?php 
    comment_ID();
    ?>
">
			<div class="gravatar"><?php 
    echo get_avatar($comment, $size = '45', $default = '');
    ?>
</div>
			<div class="comment-meta">
					<?php 
    printf('<span class="comment-author">%s</span>', get_comment_author_link());
    ?>
					
                    <?php 
    edit_comment_link('', '', '');
    ?>
                    <time class="comment-time"><?php 
    echo get_comment_date();
    ?>
</time>
			</div>
			<span class="comment-reply">
					<?php 
    comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
			</span>
			<div class="clearboth"></div>
			<div class="comment-content">
					<?php 
    comment_text();
    ?>

<?php 
    if ($comment->comment_approved == '0') {
        ?>
					<span class="unapproved"><?php 
        _e('Your comment is awaiting moderation.', 'mk_framework');
        ?>
</span>
<?php 
    }
    ?>
				<div class="clearboth"></div>
			</div>

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

示例7: stormbringer_comments

function stormbringer_comments($comment, $args, $depth) {
  $GLOBALS['comment'] = $comment; ?>
	<li <?php comment_class('media'); ?>>
    <div class="pull-left">
      <div class="comment-avatar vcard">
        <?php echo get_avatar($comment,apply_filters('stormbringer_author_bio_avatar_size', 100) ); ?>
      </div>
    </div>
    <!-- /.comment-avatar -->
    <div class="media-body">
      <div class="comment-message">
        <?php printf(__('<h4 class="media-heading">%s</h4>','stormbringer'), get_comment_author_link()) ?>
        <?php edit_comment_link(__('Edit','stormbringer'),'<span class="edit-comment btn btn-info"><span class="glyphicon glyphicon-pencil"></span>','</span>') ?>

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

        <?php comment_text() ?>

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

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

    <!-- </li> is added by wordpress automatically -->
<?php
}
开发者ID:nicomollet,项目名称:stormbringer,代码行数:31,代码来源:comments.php

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

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

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

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

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

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

示例14: 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();
    ?>
" class="comment-inner">
  	<figure class="vcard">
    	<?php 
    echo get_avatar($comment, 70);
    ?>
    </figure>
    <div class="comment-container">
	    <div class="commentmeta">
	        <strong><?php 
    comment_author_link();
    ?>
</strong>
	        <span class="authorname">
	            <?php 
    comment_date('M d, Y');
    ?>
 - <?php 
    comment_time('h:i A');
    ?>
 <?php 
    edit_comment_link("Edit", '');
    ?>
	        </span>
	    </div>
	    <div class="comment-text">
	        <?php 
    if ($comment->comment_approved == '0') {
        ?>
	            <em class="awaiting_moderation"><?php 
        _e('Your comment is awaiting moderation.', THB_THEME_NAME);
        ?>
</em>
	        <?php 
    }
    ?>
	        <?php 
    comment_text();
    ?>
	        <?php 
    comment_reply_link(array_merge($args, array('reply_text' => __('Reply', THB_THEME_NAME), 'depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
	    </div>
    </div> 
	</div>
<?php 
}
开发者ID:ConceptHaus,项目名称:beckery,代码行数:60,代码来源:comments.php

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


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