Example #1
0
/**
 * Edit Delay Time setting field
 *
 * @since 2.1.0 bbPress (r3813)
 */
function bbp_converter_setting_callback_delay_time()
{
    ?>

	<input name="_bbp_converter_delay_time" id="_bbp_converter_delay_time" type="text" value="<?php 
    bbp_form_option('_bbp_converter_delay_time', '1');
    ?>
" class="small-text" />
	<label for="_bbp_converter_delay_time"><?php 
    esc_html_e('second(s) delay between each group of rows', 'bbpress');
    ?>
</label>
	<p class="description"><?php 
    esc_html_e('Keep this high to prevent too-many-connection issues.', 'bbpress');
    ?>
</p>

<?php 
}
    public static function reply_title_callback()
    {
        $default_title = '[' . get_option('blogname') . '] {title}';
        ?>

		<input name="_bbp_reply_notice_title" type="text" id="_bbp_reply_notice_title" value="<?php 
        bbp_form_option('_bbp_reply_notice_title', $default_title);
        ?>
" class="regular-text" />
		<label for="_bbp_reply_notice_title"><?php 
        _e('The subject of the notification email', 'bbpress');
        ?>
</label>

	<?php 
    }
    /**
     * Blocklist settings field
     *
     * @return void
     */
    public function callback_blocklist()
    {
        ?>
        <textarea name="_bbp_block_user_list" id="bbp-user-block-list" cols="20" rows="10"><?php 
        bbp_form_option('_bbp_block_user_list');
        ?>
</textarea>
        <p class="help"><?php 
        _e('Enter username (one per line)', 'bbp-block-user');
        ?>
</p>
        <?php 
    }