<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[4674] sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/form-reply.php: Support Theme: Add `form-reply.php` template from bbPress default theme for customization.</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="http://meta.trac.wordpress.org/changeset/4674">4674</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"http://meta.trac.wordpress.org/changeset/4674","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>SergeyBiryukov</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2017-01-14 01:16:32 +0000 (Sat, 14 Jan 2017)</dd>
</dl>

<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Support Theme: Add `form-reply.php` template from bbPress default theme for customization.

See <a href="http://meta.trac.wordpress.org/ticket/2355">#2355</a>.</pre>

<h3>Added Paths</h3>
<ul>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgsupportbbpressformreplyphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/form-reply.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgsupportbbpressformreplyphp"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/form-reply.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/form-reply.php                          (rev 0)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/form-reply.php    2017-01-14 01:16:32 UTC (rev 4674)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,221 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php
+
+/**
+ * New/Edit Reply
+ *
+ * @package bbPress
+ * @subpackage Theme
+ */
+
+if ( bbp_is_reply_edit() ) : ?>
+
+<div id="bbpress-forums">
+
+       <?php bbp_breadcrumb(); ?>
+
+<?php endif; ?>
+
+<?php if ( bbp_current_user_can_access_create_reply_form() ) : ?>
+
+       <div id="new-reply-<?php bbp_topic_id(); ?>" class="bbp-reply-form">
+
+               <form id="new-post" name="new-post" method="post" action="<?php the_permalink(); ?>">
+
+                       <?php do_action( 'bbp_theme_before_reply_form' ); ?>
+
+                       <fieldset class="bbp-form">
+                               <legend><?php printf( esc_html__( 'Reply To: %s', 'wporg-forums' ), ( bbp_get_form_reply_to() ) ? sprintf( esc_html__( 'Reply #%1$s in %2$s', 'wporg-forums' ), bbp_get_form_reply_to(), bbp_get_topic_title() ) : bbp_get_topic_title() ); ?></legend>
+
+                               <?php do_action( 'bbp_theme_before_reply_form_notices' ); ?>
+
+                               <?php if ( ! bbp_is_topic_open() && ! bbp_is_reply_edit() ) : ?>
+
+                                       <div class="bbp-template-notice">
+                                               <ul>
+                                                       <li><?php esc_html_e( 'This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.', 'wporg-forums' ); ?></li>
+                                               </ul>
+                                       </div>
+
+                               <?php endif; ?>
+
+                               <?php if ( current_user_can( 'unfiltered_html' ) ) : ?>
+
+                                       <div class="bbp-template-notice">
+                                               <ul>
+                                                       <li><?php esc_html_e( 'Your account has the ability to post unrestricted HTML content.', 'wporg-forums' ); ?></li>
+                                               </ul>
+                                       </div>
+
+                               <?php endif; ?>
+
+                               <?php do_action( 'bbp_template_notices' ); ?>
+
+                               <div>
+
+                                       <?php bbp_get_template_part( 'form', 'anonymous' ); ?>
+
+                                       <?php do_action( 'bbp_theme_before_reply_form_content' ); ?>
+
+                                       <?php bbp_the_content( array( 'context' => 'reply' ) ); ?>
+
+                                       <?php do_action( 'bbp_theme_after_reply_form_content' ); ?>
+
+                                       <?php if ( ! ( bbp_use_wp_editor() || current_user_can( 'unfiltered_html' ) ) ) : ?>
+
+                                               <p class="form-allowed-tags">
+                                                       <label><?php esc_html_e( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:','wporg-forums' ); ?></label><br />
+                                                       <code><?php bbp_allowed_tags(); ?></code>
+                                               </p>
+
+                                       <?php endif; ?>
+
+                                       <?php if ( bbp_allow_topic_tags() && current_user_can( 'assign_topic_tags' ) ) : ?>
+
+                                               <?php do_action( 'bbp_theme_before_reply_form_tags' ); ?>
+
+                                               <p>
+                                                       <label for="bbp_topic_tags"><?php esc_html_e( 'Tags:', 'wporg-forums' ); ?></label><br />
+                                                       <input type="text" value="<?php bbp_form_topic_tags(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" <?php disabled( bbp_is_topic_spam() ); ?> />
+                                               </p>
+
+                                               <?php do_action( 'bbp_theme_after_reply_form_tags' ); ?>
+
+                                       <?php endif; ?>
+
+                                       <?php if ( bbp_is_subscriptions_active() && ! bbp_is_anonymous() && ( ! bbp_is_reply_edit() || ( bbp_is_reply_edit() && ! bbp_is_reply_anonymous() ) ) ) : ?>
+
+                                               <?php do_action( 'bbp_theme_before_reply_form_subscription' ); ?>
+
+                                               <p>
+
+                                                       <input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe"<?php bbp_form_topic_subscribed(); ?> />
+
+                                                       <?php if ( bbp_is_reply_edit() && ( bbp_get_reply_author_id() !== bbp_get_current_user_id() ) ) : ?>
+
+                                                               <label for="bbp_topic_subscription"><?php esc_html_e( 'Notify the author of follow-up replies via email', 'wporg-forums' ); ?></label>
+
+                                                       <?php else : ?>
+
+                                                               <label for="bbp_topic_subscription"><?php esc_html_e( 'Notify me of follow-up replies via email', 'wporg-forums' ); ?></label>
+
+                                                       <?php endif; ?>
+
+                                               </p>
+
+                                               <?php do_action( 'bbp_theme_after_reply_form_subscription' ); ?>
+
+                                       <?php endif; ?>
+
+                                       <?php if ( bbp_is_reply_edit() ) : ?>
+
+                                               <?php if ( current_user_can( 'moderate', bbp_get_reply_id() ) ) : ?>
+
+                                                       <?php do_action( 'bbp_theme_before_reply_form_reply_to' ); ?>
+
+                                                       <p class="form-reply-to">
+                                                               <label for="bbp_reply_to"><?php esc_html_e( 'Reply To:', 'wporg-forums' ); ?></label><br />
+                                                               <?php bbp_reply_to_dropdown(); ?>
+                                                       </p>
+
+                                                       <?php do_action( 'bbp_theme_after_reply_form_reply_to' ); ?>
+
+                                                       <?php do_action( 'bbp_theme_before_reply_form_status' ); ?>
+
+                                                       <p>
+                                                               <label for="bbp_reply_status"><?php esc_html_e( 'Reply Status:', 'wporg-forums' ); ?></label><br />
+                                                               <?php bbp_form_reply_status_dropdown(); ?>
+                                                       </p>
+
+                                                       <?php do_action( 'bbp_theme_after_reply_form_status' ); ?>
+
+                                               <?php endif; ?>
+
+                                               <?php if ( bbp_allow_revisions() ) : ?>
+
+                                                       <?php do_action( 'bbp_theme_before_reply_form_revisions' ); ?>
+
+                                                       <fieldset class="bbp-form">
+                                                               <legend>
+                                                                       <input name="bbp_log_reply_edit" id="bbp_log_reply_edit" type="checkbox" value="1" <?php bbp_form_reply_log_edit(); ?> />
+                                                                       <label for="bbp_log_reply_edit"><?php esc_html_e( 'Keep a log of this edit:', 'wporg-forums' ); ?></label><br />
+                                                               </legend>
+
+                                                               <div>
+                                                                       <label for="bbp_reply_edit_reason"><?php printf( esc_html__( 'Optional reason for editing:', 'wporg-forums' ), bbp_get_current_user_name() ); ?></label><br />
+                                                                       <input type="text" value="<?php bbp_form_reply_edit_reason(); ?>" size="40" name="bbp_reply_edit_reason" id="bbp_reply_edit_reason" />
+                                                               </div>
+                                                       </fieldset>
+
+                                                       <?php do_action( 'bbp_theme_after_reply_form_revisions' ); ?>
+
+                                               <?php endif; ?>
+
+                                       <?php endif; ?>
+
+                                       <?php do_action( 'bbp_theme_before_reply_form_submit_wrapper' ); ?>
+
+                                       <div class="bbp-submit-wrapper">
+
+                                               <?php do_action( 'bbp_theme_before_reply_form_submit_button' ); ?>
+
+                                               <?php bbp_cancel_reply_to_link(); ?>
+
+                                               <button type="submit" id="bbp_reply_submit" name="bbp_reply_submit" class="button submit"><?php esc_html_e( 'Submit', 'wporg-forums' ); ?></button>
+
+                                               <?php do_action( 'bbp_theme_after_reply_form_submit_button' ); ?>
+
+                                       </div>
+
+                                       <?php do_action( 'bbp_theme_after_reply_form_submit_wrapper' ); ?>
+
+                               </div>
+
+                               <?php bbp_reply_form_fields(); ?>
+
+                       </fieldset>
+
+                       <?php do_action( 'bbp_theme_after_reply_form' ); ?>
+
+               </form>
+       </div>
+
+<?php elseif ( bbp_is_topic_closed() ) : ?>
+
+       <div id="no-reply-<?php bbp_topic_id(); ?>" class="bbp-no-reply">
+               <div class="bbp-template-notice">
+                       <ul>
+                               <li><?php printf( esc_html__( 'The topic &#8216;%s&#8217; is closed to new replies.', 'wporg-forums' ), bbp_get_topic_title() ); ?></li>
+                       </ul>
+               </div>
+       </div>
+
+<?php elseif ( bbp_is_forum_closed( bbp_get_topic_forum_id() ) ) : ?>
+
+       <div id="no-reply-<?php bbp_topic_id(); ?>" class="bbp-no-reply">
+               <div class="bbp-template-notice">
+                       <ul>
+                               <li><?php printf( esc_html__( 'The forum &#8216;%s&#8217; is closed to new topics and replies.', 'wporg-forums' ), bbp_get_forum_title( bbp_get_topic_forum_id() ) ); ?></li>
+                       </ul>
+               </div>
+       </div>
+
+<?php else : ?>
+
+       <div id="no-reply-<?php bbp_topic_id(); ?>" class="bbp-no-reply">
+               <div class="bbp-template-notice">
+                       <ul>
+                               <li><?php is_user_logged_in()
+                                       ? esc_html_e( 'You cannot reply to this topic.',               'wporg-forums' )
+                                       : esc_html_e( 'You must be logged in to reply to this topic.', 'wporg-forums' );
+                               ?></li>
+                       </ul>
+               </div>
+       </div>
+
+<?php endif; ?>
+
+<?php if ( bbp_is_reply_edit() ) : ?>
+
+</div>
+
+<?php endif;
</ins></span></pre>
</div>
</div>

</body>
</html>