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


PHP cancel_comment_reply_link函数代码示例

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


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

示例1: get_comment

    





<div id="respond">


    <?php 
    if ($_GET["replytocom"] != "") {
        echo '<div class="cancel-comment-reply">';
        $comment_id_7 = get_comment($_GET["replytocom"]);
        $name = $comment_id_7->comment_name;
        cancel_comment_reply_link('Cancelar la respuesta al comentario de');
        ?>
 <?php 
        echo $comment_id_7->comment_author;
        echo '</div>';
    }
    if (get_option('comment_registration') && !is_user_logged_in()) {
        ?>
<p><?php 
        e_("You must be logged in to post a comment.", "notesblog");
        ?>
 <a href="<?php 
        echo wp_login_url(get_permalink());
        ?>
"><?php 
        _e("So log in!", "notesblog");
开发者ID:estrategasdigitales,项目名称:glummer,代码行数:24,代码来源:comments.php

示例2: cancel_comment_reply_link

<!-- #comments -->
<?php 
    /* Stop the rest of comments.php from being processed,
     * but don't kill the script entirely -- we still have
     * to fully load the template.
     */
    return;
}
?>
	<?php 
if (comments_open()) {
    ?>
		<div id="respond">
			<div class="cancel_comment_reply">
				<?php 
    cancel_comment_reply_link('取消回复');
    ?>
			</div>
			<form action="<?php 
    echo get_option('siteurl');
    ?>
/wp-comments-post.php" method="post" id="commentform">
				<div class="f-publish" id="real-avatar">
					<span>
					<?php 
    if (isset($_COOKIE['comment_author_email_' . COOKIEHASH])) {
        ?>
						<?php 
        echo get_avatar($comment_author_email, 50);
        ?>
					<?php 
开发者ID:YocoZhang,项目名称:my-blog-site,代码行数:31,代码来源:comments.php

示例3: printf

        ?>
:</strong> <?php 
        printf(__('You can use these tags: %s', 'guangzhou'), allowed_tags());
        ?>
</small></p>

			<p><textarea class="text" name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>

			<p>
				<div id="cancel-comment-reply">
					<input class="button-primary" name="submit" type="submit" id="submit" tabindex="5" value="<?php 
        _e('Submit Comment', 'guangzhou');
        ?>
" />
					<small><?php 
        cancel_comment_reply_link(__('| Cancel Reply', 'guangzhou'));
        ?>
</small>
				</div>
			</p>

			<?php 
        do_action('comment_form', $post->ID);
        ?>
		</form>
	</div>
	<?php 
    }
    ?>

<?php 
开发者ID:billerby,项目名称:Surdeg,代码行数:31,代码来源:comments.php

示例4: _e

            _e('Your website address', 'carrington-mobile');
            ?>
" for="url"><small><?php 
            _e('Web', 'carrington-mobile');
            ?>
</small></label>	
		</p>
	<?php 
        }
        ?>
	<p><textarea name="comment" id="comment" rows="8" cols="40"></textarea></p>
	<p>
		<input name="submit" type="submit" id="submit" value="<?php 
        _e('Submit comment', 'carrington-mobile');
        ?>
" tabindex="5" />
		<?php 
        cancel_comment_reply_link('cancel reply');
        ?>
	</p>
<?php 
        comment_id_fields();
        do_action('comment_form', $post->ID);
        ?>
</form>
</div>
<?php 
    }
    // If registration required and not logged in
}
// If you delete this the sky will fall on your head
开发者ID:rascoop,项目名称:carrington,代码行数:31,代码来源:comment.php

示例5: comment_form_title

<?php 
if ('open' == $post->comment_status) {
    ?>

  <div id="respond">
    <h3><?php 
    comment_form_title(__('Leave a Reply', 'default'), __('Leave a Reply to %s', 'default'));
    ?>
</h3>
    <div class="cancel-comment-reply">
    	<?php 
    // cancel_comment_reply_link();
    ?>
    	<?php 
    cancel_comment_reply_link(__('Click here to cancel reply.', 'default'));
    ?>
    	
    </div>
  
  <?php 
    if (get_option('comment_registration') && !$user_ID) {
        ?>
  <div class="you-must-be-logged-in">
    <?php 
        _e('You must be', 'default');
        ?>
 <a href="<?php 
        echo get_option('siteurl');
        ?>
/wp-login.php?redirect_to=<?php 
开发者ID:Jintha,项目名称:cama,代码行数:30,代码来源:comments.php

示例6: comment_form_title

    ?>

<?php 
}
// end have_comments()
?>



<?php 
if (comments_open()) {
    ?>
<div id="respond">
<h3><?php 
    comment_form_title(__('发表评论', 'lovnvns'), __('回复 %s 的评论', 'lovnvns'));
    cancel_comment_reply_link(__('  取消', 'lovnvns'));
    ?>
</h3>
<?php 
    if (get_option('lovnvns_comment_ad') != "") {
        echo '<div id="form_ad">' . get_option('lovnvns_comment_ad') . '</div>';
    }
    ?>
<div id="formcomment">
<?php 
    if (get_option('comment_registration') && !is_user_logged_in()) {
        ?>
<p><?php 
        _e('您必须', 'lovnvns');
        ?>
 <a href="<?php 
开发者ID:G-g-beringei,项目名称:DChaser,代码行数:31,代码来源:comments.php

示例7: _e

            ?>
" size="22" tabindex="3" />
<label for="url"><small><?php 
            _e('Website', 'lightword');
            ?>
</small></label></p>

<?php 
        }
        ?>

<p><input name="submit" type="submit" id="submit" tabindex="4" accesskey="s" value="<?php 
        echo attribute_escape(__('Submit', 'lightword'));
        ?>
" /><?php 
        cancel_comment_reply_link(__('( Cancel )', 'lightword'));
        ?>
<br class="clear"/></p>
<?php 
        comment_id_fields();
        do_action('comment_form', $post->ID);
        ?>
</form>
<?php 
    }
    ?>
</div>
<?php 
}
?>
</div>
开发者ID:roblillack,项目名称:lightword,代码行数:31,代码来源:comments.php

示例8: wp_list_comments

					
					<ol>
<?php wp_list_comments('type=pings&callback=custom_pings'); ?>
					</ol>				
					
				</div><!-- #trackbacks-list .comments -->			


<?php endif /* if ( $ping_count ) */ ?>
<?php endif /* if ( $comments ) */ ?>

<?php if ( 'open' == $post->comment_status ) : ?>
				<div id="respond">
    				<h3><?php comment_form_title( __('Post a Comment', 'uthili'), __('Post a Reply to %s', 'uthili') ); ?></h3>
    				
    				<div id="cancel-comment-reply"><?php cancel_comment_reply_link() ?></div>

<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
					<p id="login-req"><?php printf(__('You must be <a href="%s" title="Log in">logged in</a> to post a comment.', 'uthili'),
					get_option('siteurl') . '/wp-login.php?redirect_to=' . get_permalink() ) ?></p>

<?php else : ?>
					<div class="formcontainer">	
					

						<form id="commentform" action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post">

<?php if ( $user_ID ) : ?>
							<p id="login"><?php printf(__('<span class="loggedin">Logged in as <a href="%1$s" title="Logged in as %2$s">%2$s</a>.</span> <span class="logout"><a href="%3$s" title="Log out of this account">Log out?</a></span>', 'uthili'),
								get_option('siteurl') . '/wp-admin/profile.php',
								wp_specialchars($user_identity, true),
开发者ID:noorul,项目名称:uthili,代码行数:30,代码来源:comments.php

示例9: comment_form


//.........这里部分代码省略.........
     *
     * @param array $fields The default comment fields.
     */
    $fields = apply_filters('comment_form_default_fields', $fields);
    $defaults = array('fields' => $fields, 'comment_field' => '<p class="comment-form-comment"><label for="comment">' . _x('Comment', 'noun') . '</label> <textarea id="comment" name="comment" cols="45" rows="8"  aria-required="true" required="required"></textarea></p>', 'must_log_in' => '<p class="must-log-in">' . sprintf(__('You must be <a href="%s">logged in</a> to post a comment.'), wp_login_url(apply_filters('the_permalink', get_permalink($post_id)))) . '</p>', 'logged_in_as' => '<p class="logged-in-as">' . sprintf(__('Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>'), get_edit_user_link(), $user_identity, wp_logout_url(apply_filters('the_permalink', get_permalink($post_id)))) . '</p>', 'comment_notes_before' => '<p class="comment-notes"><span id="email-notes">' . __('Your email address will not be published.') . '</span>' . ($req ? $required_text : '') . '</p>', 'comment_notes_after' => '', 'id_form' => 'commentform', 'id_submit' => 'submit', 'class_submit' => 'submit', 'name_submit' => 'submit', 'title_reply' => __('Leave a Reply'), 'title_reply_to' => __('Leave a Reply to %s'), 'cancel_reply_link' => __('Cancel reply'), 'label_submit' => __('Post Comment'), 'submit_button' => '<input name="%1$s" type="submit" id="%2$s" class="%3$s" value="%4$s" />', 'submit_field' => '<p class="form-submit">%1$s %2$s</p>', 'format' => 'xhtml');
    /**
     * Filter the comment form default arguments.
     *
     * Use 'comment_form_default_fields' to filter the comment fields.
     *
     * @since 3.0.0
     *
     * @param array $defaults The default comment form arguments.
     */
    $args = wp_parse_args($args, apply_filters('comment_form_defaults', $defaults));
    // Ensure that the filtered args contain all required default values.
    $args = array_merge($defaults, $args);
    if (comments_open($post_id)) {
        ?>
        <?php 
        /**
         * Fires before the comment form.
         *
         * @since 3.0.0
         */
        do_action('comment_form_before');
        ?>
        <div id="respond" class="comment-respond">
            <h3 id="reply-title"
                class="comment-reply-title"><?php 
        comment_form_title($args['title_reply'], $args['title_reply_to']);
        ?>
                <small><?php 
        cancel_comment_reply_link($args['cancel_reply_link']);
        ?>
</small>
            </h3>
            <?php 
        if (get_option('comment_registration') && !is_user_logged_in()) {
            ?>
                <?php 
            echo $args['must_log_in'];
            ?>
                <?php 
            /**
             * Fires after the HTML-formatted 'must log in after' message in the comment form.
             *
             * @since 3.0.0
             */
            do_action('comment_form_must_log_in_after');
            ?>
            <?php 
        } else {
            ?>
                <form action="<?php 
            echo site_url('/wp-comments-post.php');
            ?>
" method="post"
                      id="<?php 
            echo esc_attr($args['id_form']);
            ?>
"
                      class="comment-form"<?php 
            echo $html5 ? ' novalidate' : '';
            ?>
>
开发者ID:richardbota,项目名称:WordPress-Theme-Development-with-Bootstrap,代码行数:67,代码来源:comment-template.php

示例10: show_subscription_checkbox

	<?php 
    if (function_exists('show_subscription_checkbox')) {
        ?>
	<p><?php 
        show_subscription_checkbox();
        ?>
</p>
	<?php 
    }
    ?>
    <p>
     <input name="submit" type="submit" id="sbutt" tabindex="5" value="<?php 
    _e('Submit Comment', 'arras');
    ?>
" />
     <?php 
    cancel_comment_reply_link(__('Cancel Reply', 'arras'));
    ?>
    </p>
   <?php 
    do_action('comment_form', $post->ID);
    ?>
  </form>
 <?php 
    if (function_exists('show_manual_subscription_form')) {
        show_manual_subscription_form();
    }
    ?>
 </div><!-- end #commentsform --></div>
 <?php 
}
开发者ID:alx,项目名称:Tetalab,代码行数:31,代码来源:comments.php

示例11: render

    function render($params = array())
    {
        global $wp_query, $withcomments, $post, $wpdb, $id, $comment, $user_login, $user_ID, $user_identity, $overridden_cpage;
        global $gantry;
        $fparams = $this->_getParams($params);
        $comment_layout_name = 'comment_' . $fparams->commentLayout;
        $layout = $gantry->_getLayout($comment_layout_name);
        $className = 'GantryLayout' . ucfirst($comment_layout_name);
        // Do not delete these lines
        ob_start();
        if (post_password_required()) {
            ?>
            <span class="alert"><?php 
            _ge('This post is password protected. Enter the password to view comments.');
            ?>
</span>
            <?php 
            return ob_get_clean();
        }
        ?>
        <!-- You can start editing here. -->
        <?php 
        if (have_comments()) {
            ?>
            <br/>
            <div class="comment-section">
                <div class="contentheading"><?php 
            comments_number(_g('No Comments'), _g('1 Comment'), _g('% Comments'));
            ?>
</div>
            </div>
            <ol class="commentlist">
            <?php 
            wp_list_comments(array('style' => 'ol', 'callback' => array($className, 'render_comment'), 'reply_text' => _g('Reply')));
            ?>
            </ol>
            <div class="rt-pagination nav">
                <div class="alignleft"><?php 
            next_comments_link('&laquo; ' . _g('Older Comments'));
            ?>
</div>
                <div class="alignright"><?php 
            previous_comments_link(_g('Newer Comments') . ' &raquo;');
            ?>
</div>
                <div class="clear"></div>
            </div>
        <?php 
        } else {
            // this is displayed if there are no comments so far
            ?>
            <?php 
            if (comments_open()) {
                ?>
                <!-- If comments are open, but there are no comments. -->
            <?php 
            } else {
                // comments are closed
                ?>
                <!-- If comments are closed. -->
                <div class="attention">
                    <div class="icon"><?php 
                _ge('Comments are closed.');
                ?>
</div>
                </div>
            <?php 
            }
            ?>
        <?php 
        }
        ?>
        <!-- RESPOND -->
        <?php 
        if (comments_open()) {
            ?>
            <div id="respond">
            <div class="comment-section">
                <div class="contentheading"><?php 
            comment_form_title(_g('Leave a Reply'), _g('Leave a Reply to %s'));
            ?>
</div>
            </div>
            <div class="cancel-comment-reply">
                <small><?php 
            cancel_comment_reply_link();
            ?>
</small>
            </div>
            <?php 
            if (get_option('comment_registration') && !is_user_logged_in()) {
                ?>
                <div class="attention">
                    <div class="icon"><?php 
                _ge('You must be');
                ?>
 <a
                            href="<?php 
                echo wp_login_url(get_permalink());
                ?>
//.........这里部分代码省略.........
开发者ID:rotoballer,项目名称:emily,代码行数:101,代码来源:commentstempl_basic.php

示例12: get_option

<form role="form" action="<?php 
        echo get_option('siteurl');
        ?>
/wp-comments-post.php" method="post" id="comment-form" class="row">

<div class="form-group">
	<script type="text/plain" id="myEditor" style="width:100%;height:240px;"></script>
</div>

<input id="editor" class="post_input" value="" name="comment" type="hidden" />

<div class="form-inline">

<button type="submit" class="btn btn-primary">回复</button>
<?php 
        cancel_comment_reply_link('<span class="btn btn-default">取消回复</span>');
        ?>
</div>
<?php 
        comment_id_fields();
        ?>

<?php 
        do_action('comment_form', $post->ID);
        ?>

</form>

<script type="text/javascript">
    var ue = UM.getEditor('myEditor');
    ue.addListener('blur',function(){
开发者ID:FreeFunCode,项目名称:Qing,代码行数:31,代码来源:comments.php

示例13: _e

        ?>
						
						<br/>
						<textarea name="comment" title="<?php 
        _e('Message', THEMEDOMAIN);
        ?>
*" cols="40" rows="3" id="comment" tabindex="4" style="width:96%"></textarea> 

						<br /> 
						<p> 
							<input name="submit" type="submit" id="submit" value="<?php 
        _e('Submit', THEMEDOMAIN);
        ?>
" tabindex="5" />&nbsp;
							<?php 
        cancel_comment_reply_link("Cancel Reply");
        ?>
 
						</p> 
						<?php 
        comment_id_fields();
        ?>
 
						<?php 
        do_action('comment_form', $post->ID);
        ?>

					</fieldset> 
					</form> 
					<!-- End of form --> 
			
开发者ID:estrategasdigitales,项目名称:landitec,代码行数:30,代码来源:comments-form.php

示例14: allowed_tags

" size="22" tabindex="3" />
				</p>

				<?php 
        }
        ?>

		<!--<p><small><strong>XHTML:</strong> You can use these tags: <code><?php 
        echo allowed_tags();
        ?>
</code></small></p>-->

				<p><textarea name="comment" id="comment" tabindex="4" rows="8"></textarea></p>
				<p><input name="submit" type="submit" id="submit" class="submit-comment" tabindex="5" value="Leave Comment" />
				<?php 
        cancel_comment_reply_link('<i class="icon-remove"></i> Nah, I changed my mind.');
        ?>
	
				<?php 
        comment_id_fields();
        if ('cgc_images' == get_post_type()) {
            ?>
					<input type="hidden" name="cgc_object_redirect" value="<?php 
            echo get_permalink();
            ?>
#comments">
				<?php 
        } else {
            ?>
					<input type="hidden" name="cgc_object_redirect" value="<?php 
            echo get_permalink();
开发者ID:CGCookie,项目名称:build-cgcookie,代码行数:31,代码来源:comments.php

示例15: comment_form_title

    <div id="respond" class="<?php 
    if (is_user_logged_in()) {
        echo "logged-in";
    }
    ?>
 clearfix">
       
        <h3><?php 
    comment_form_title('Leave a comment (Gatorlink Required)', 'Leave a comment to %s (Gatorlink Required)');
    ?>
</h3>
        
      <div class="cancel-comment-reply">
  <?php 
    cancel_comment_reply_link();
    ?>
      </div>

      <?php 
    if (get_option('comment_registration') && !is_user_logged_in()) {
        ?>
        <p>You must be <a href="<?php 
        echo wp_login_url(get_permalink());
        ?>
">logged in</a> to post a comment.</p>
  <?php 
    } else {
        ?>

        <form action="<?php 
开发者ID:sezj,项目名称:ufl-template-responsive,代码行数:30,代码来源:comments.php


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