Example #1
0
					<?php 
    bbp_get_template_part('form', 'anonymous');
    ?>

					<?php 
    do_action('bbp_theme_before_topic_form_title');
    ?>

					<p>
						<label for="bbp_topic_title"><?php 
    printf(__('Topic Title (Maximum Length: %d):', 'bbpress'), bbp_get_title_max_length());
    ?>
</label><br />
						<input type="text" id="bbp_topic_title" value="<?php 
    bbp_form_topic_title();
    ?>
" tabindex="<?php 
    bbp_tab_index();
    ?>
" size="40" name="bbp_topic_title" maxlength="<?php 
    bbp_title_max_length();
    ?>
" />
					</p>

					<?php 
    do_action('bbp_theme_after_topic_form_title');
    ?>

					<?php 
Example #2
0
						<p><?php _e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></p>
					</div>

				<?php endif; ?>

				<?php do_action( 'bbp_template_notices' ); ?>

				<div>

					<?php bbp_get_template_part( 'form', 'anonymous' ); ?>

					<?php do_action( 'bbp_theme_before_topic_form_title' ); ?>

					<p>
						<label for="bbp_topic_title"><?php printf( __( 'Topic Title (Maximum Length: %d):', 'bbpress' ), bbp_get_title_max_length() ); ?></label><br />
						<input type="text" id="bbp_topic_title" value="<?php bbp_form_topic_title(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_topic_title" maxlength="<?php bbp_title_max_length(); ?>" />
					</p>

					<?php do_action( 'bbp_theme_after_topic_form_title' ); ?>

					<?php do_action( 'bbp_theme_before_topic_form_content' ); ?>

					<?php bbp_the_content( array( 'context' => 'topic' ) ); ?>

					<?php do_action( 'bbp_theme_after_topic_form_content' ); ?>

					<?php if ( ! ( bbp_use_wp_editor() || current_user_can( 'unfiltered_html' ) ) ) : ?>

						<p class="form-allowed-tags">
							<label><?php _e( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:','bbpress' ); ?></label><br />
							<code><?php bbp_allowed_tags(); ?></code>