本文整理汇总了PHP中bbp_get_title_max_length函数的典型用法代码示例。如果您正苦于以下问题:PHP bbp_get_title_max_length函数的具体用法?PHP bbp_get_title_max_length怎么用?PHP bbp_get_title_max_length使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bbp_get_title_max_length函数的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: bbp_title_max_length
/**
* 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: do_action
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: do_action
}
?>
<?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: do_action
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: do_action
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: do_action
}
?>
<?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
示例7: bbp_get_template_part
<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
示例8: do_action
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
示例9: _e
<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 />
示例10: bbp_get_template_part
</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
示例11: do_action
?>
<?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
示例12: bbp_reply_form_fields
/**
* 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());
}
}
}