コード例 #1
0
ファイル: options.php プロジェクト: CompositeUK/clone.bbPress
/**
 * Output the maximum length of a title
 *
 * @since 2.0.0 bbPress (r3246)
 *
 * @param $default bool Optional. Default value 80
 */
function bbp_title_max_length($default = 80)
{
    echo bbp_get_title_max_length($default);
}
コード例 #2
0
    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(esc_html__('Topic Title (Maximum Length: %d):', 'monsoon'), 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 
コード例 #3
0
ファイル: form-forum.php プロジェクト: severnrescue/web
    }
    ?>

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

				<div>

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

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

					<?php 
コード例 #4
0
    do_action('bbp_template_notices');
    ?>

					<div>

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

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

						<div class="form-group">
							<label for="bbp_topic_title"><?php 
    printf(__('Topic Title (Maximum Length: %d):', 'omega-td'), bbp_get_title_max_length());
    ?>
</label><br />
							<input class="form-control" 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();
    ?>
" />
						</div>

						<?php 
コード例 #5
0
ファイル: form-topic.php プロジェクト: hakkens/davehakkens
    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 (no more then %d letters)', '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 
コード例 #6
0
ファイル: form-forum.php プロジェクト: mynein/myne
    }
    ?>

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

				<div>

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

					<p>
						<label for="bbp_forum_title"><?php 
    printf(__('Forum Name (Maximum Length: %d):', 'wpdance'), bbp_get_title_max_length());
    ?>
</label><br />
						<input type="text" id="bbp_forum_title" value="<?php 
    bbp_form_forum_title();
    ?>
" tabindex="<?php 
    bbp_tab_index();
    ?>
" size="40" name="bbp_forum_title" maxlength="<?php 
    bbp_title_max_length();
    ?>
" />
					</p>

					<?php 
コード例 #7
0
    }
    ?>

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

				<div>

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

					<p>
						<label for="bbp_forum_title"><?php 
    printf(esc_html__('Forum Name (Maximum Length: %d):', 'monsoon'), bbp_get_title_max_length());
    ?>
</label><br />
						<input type="text" id="bbp_forum_title" value="<?php 
    bbp_form_forum_title();
    ?>
" tabindex="<?php 
    bbp_tab_index();
    ?>
" size="40" name="bbp_forum_title" maxlength="<?php 
    bbp_title_max_length();
    ?>
" />
					</p>

					<?php 
コード例 #8
0
				<div>

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

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

                    <div class="form-group">
                        <div class="input-group">
                            <span class="input-group-addon"><i class="icon-comments"></i></span>
                            <input type="text" class="form-control" id="bbp_topic_title" placeholder="<?php 
    printf(__('Topic Title (Maximum Length: %d):', 'firmasite'), bbp_get_title_max_length());
    ?>
" value="<?php 
    bbp_form_topic_title();
    ?>
" tabindex="<?php 
    bbp_tab_index();
    ?>
" size="40" name="bbp_topic_title" maxlength="<?php 
    bbp_title_max_length();
    ?>
" />
                        </div>
                    </div>

					<?php 
コード例 #9
0
ファイル: form-topic.php プロジェクト: namleduc/thqc
    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):', 'mk_framework'), 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 
コード例 #10
0
ファイル: form-topic.php プロジェクト: niamherinoc/rctractors
					<div class="bbp-template-notice">
						<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 />
コード例 #11
0
				</legend>


				<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 <span>max %d characters</span>', 'bbpress'), bbp_get_title_max_length());
    ?>
</label>
						<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 
コード例 #12
0
ファイル: form-topic.php プロジェクト: Tiger66639/electrify
    ?>

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

					<div class="form-group">
						<label for="bbp_topic_title" class="req"><?php 
    _e('Topic Title', 'bbpress');
    ?>
</label>
						<input type="text" id="bbp_topic_title" value="<?php 
    bbp_form_topic_title();
    ?>
" placeholder="<?php 
    bbp_get_title_max_length();
    ?>
" tabindex="<?php 
    bbp_tab_index();
    ?>
" size="40" name="bbp_topic_title" maxlength="<?php 
    bbp_title_max_length();
    ?>
" />
					</div>

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

					<?php 
コード例 #13
0
    }
    ?>

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

				<div>

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

					<p>
						<label for="bbp_forum_title"><?php 
    printf(__('Forum Name (Maximum Length: %d):', 'firmasite'), bbp_get_title_max_length());
    ?>
</label><br />
						<input type="text" id="bbp_forum_title" value="<?php 
    bbp_form_forum_title();
    ?>
" tabindex="<?php 
    bbp_tab_index();
    ?>
" size="40" name="bbp_forum_title" maxlength="<?php 
    bbp_title_max_length();
    ?>
" />
					</p>

					<?php 
コード例 #14
0
ファイル: form-forum.php プロジェクト: namleduc/thqc
    }
    ?>

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

				<div>

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

					<p>
						<label for="bbp_forum_title"><?php 
    printf(__('Forum Name (Maximum Length: %d):', 'mk_framework'), bbp_get_title_max_length());
    ?>
</label><br />
						<input type="text" id="bbp_forum_title" value="<?php 
    bbp_form_forum_title();
    ?>
" tabindex="<?php 
    bbp_tab_index();
    ?>
" size="40" name="bbp_forum_title" maxlength="<?php 
    bbp_title_max_length();
    ?>
" />
					</p>

					<?php 
コード例 #15
0
/**
 * Output the required hidden fields when creating/editing a reply
 *
 * @since bbPress (r2753)
 *
 * @uses bbp_is_reply_edit() To check if it's the reply edit page
 * @uses wp_nonce_field() To generate hidden nonce fields
 * @uses bbp_reply_id() To output the reply id
 * @uses bbp_topic_id() To output the topic id
 * @uses bbp_forum_id() To output the forum id
 */
function bbp_reply_form_fields()
{
    if (bbp_is_reply_edit()) {
        ?>

		<input type="hidden" name="bbp_reply_title" id="bbp_reply_title" value="<?php 
        printf(__('Reply To: %s', 'bbpress'), bbp_get_topic_title());
        ?>
" maxlength="<?php 
        bbp_get_title_max_length();
        ?>
" />
		<input type="hidden" name="bbp_reply_id"    id="bbp_reply_id"    value="<?php 
        bbp_reply_id();
        ?>
" />
		<input type="hidden" name="action"          id="bbp_post_action" value="bbp-edit-reply" />

		<?php 
        if (current_user_can('unfiltered_html')) {
            wp_nonce_field('bbp-unfiltered-html-reply_' . bbp_get_reply_id(), '_bbp_unfiltered_html_reply', false);
        }
        ?>

		<?php 
        wp_nonce_field('bbp-edit-reply_' . bbp_get_reply_id());
    } else {
        ?>

		<input type="hidden" name="bbp_reply_title" id="bbp_reply_title" value="<?php 
        printf(__('Reply To: %s', 'bbpress'), bbp_get_topic_title());
        ?>
" maxlength="<?php 
        bbp_get_title_max_length();
        ?>
" />
		<input type="hidden" name="bbp_topic_id"    id="bbp_topic_id"    value="<?php 
        bbp_topic_id();
        ?>
" />
		<input type="hidden" name="action"          id="bbp_post_action" value="bbp-new-reply" />

		<?php 
        if (current_user_can('unfiltered_html')) {
            wp_nonce_field('bbp-unfiltered-html-reply_' . bbp_get_topic_id(), '_bbp_unfiltered_html_reply', false);
        }
        ?>

		<?php 
        wp_nonce_field('bbp-new-reply');
        // Show redirect field if not viewing a specific topic
        if (bbp_is_query_name('bbp_single_topic')) {
            bbp_redirect_to_field(get_permalink());
        }
    }
}
コード例 #16
0
ファイル: form-topic.php プロジェクト: mynein/myne
    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):', 'wpdance'), 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 
コード例 #17
0
ファイル: form-topic.php プロジェクト: severnrescue/web
    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 
コード例 #18
0
    }
    ?>

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

				<div>

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

					<p>
						<label for="bbp_forum_title"><?php 
    printf(__('Forum Name (Maximum Length: %d):', 'omega-td'), bbp_get_title_max_length());
    ?>
</label><br />
						<input type="text" id="bbp_forum_title" value="<?php 
    bbp_form_forum_title();
    ?>
" tabindex="<?php 
    bbp_tab_index();
    ?>
" size="40" name="bbp_forum_title" maxlength="<?php 
    bbp_title_max_length();
    ?>
" />
					</p>

					<?php