本文整理汇总了PHP中bbp_get_form_topic_forum函数的典型用法代码示例。如果您正苦于以下问题:PHP bbp_get_form_topic_forum函数的具体用法?PHP bbp_get_form_topic_forum怎么用?PHP bbp_get_form_topic_forum使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bbp_get_form_topic_forum函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: bbp_form_topic_forum
/**
* Output value of topic forum
*
* @since 2.0.0 bbPress (r2976)
*
* @uses bbp_get_form_topic_forum() To get the topic's forum id
*/
function bbp_form_topic_forum()
{
echo bbp_get_form_topic_forum();
}
示例2: do_action
<?php
if (!bbp_is_single_forum()) {
?>
<?php
do_action('bbp_theme_before_topic_form_forum');
?>
<p>
<label for="bbp_forum_id"><?php
_e('Forum:', 'bbpress');
?>
</label><br />
<?php
bbp_dropdown(array('show_none' => __('(No Forum)', 'bbpress'), 'selected' => bbp_get_form_topic_forum()));
?>
</p>
<?php
do_action('bbp_theme_after_topic_form_forum');
?>
<?php
}
?>
<?php
if (current_user_can('moderate')) {
?>
示例3: do_action
<?php
if (!bbp_is_single_forum()) {
?>
<?php
do_action('bbp_theme_before_topic_form_forum');
?>
<p>
<label for="bbp_forum_id"><?php
_e('Forum:', 'bbpress');
?>
</label><br />
<?php
bbp_dropdown(array('selected' => bbp_get_form_topic_forum()));
?>
</p>
<?php
do_action('bbp_theme_after_topic_form_forum');
?>
<?php
}
?>
<?php
if (current_user_can('moderate')) {
?>
示例4: do_action
<?php
if (!bbp_is_single_forum()) {
?>
<?php
do_action('bbp_theme_before_topic_form_forum');
?>
<p>
<label for="bbp_forum_id"><?php
esc_html_e('Forum:', 'monsoon');
?>
</label><br />
<?php
bbp_dropdown(array('show_none' => esc_html__('(No Forum)', 'monsoon'), 'selected' => bbp_get_form_topic_forum()));
?>
</p>
<?php
do_action('bbp_theme_after_topic_form_forum');
?>
<?php
}
?>
<?php
if (current_user_can('moderate')) {
?>
示例5: topic_parent
public function topic_parent()
{
$forum_ids = bbp_get_group_forum_ids(bp_get_current_group_id());
?>
<p>
<label for="bbp_forum_id"><?php
esc_html_e('Forum:', 'bbpress');
?>
</label><br />
<?php
bbp_dropdown(array('include' => $forum_ids, 'selected' => bbp_get_form_topic_forum()));
?>
</p>
<?php
}
示例6: do_action
</p>
<?php do_action( 'bbp_theme_after_topic_form_tags' ); ?>
<?php endif; ?>
<?php if ( !bbp_is_single_forum() ) : ?>
<?php do_action( 'bbp_theme_before_topic_form_forum' ); ?>
<p>
<label for="bbp_forum_id"><?php _e( 'Forum:', 'bbpress' ); ?></label><br />
<?php
bbp_dropdown( array(
'show_none' => __( '(No Forum)', 'bbpress' ),
'selected' => bbp_get_form_topic_forum()
) );
?>
</p>
<?php do_action( 'bbp_theme_after_topic_form_forum' ); ?>
<?php endif; ?>
<?php if ( current_user_can( 'moderate' ) ) : ?>
<?php do_action( 'bbp_theme_before_topic_form_type' ); ?>
<p>
<label for="bbp_stick_topic"><?php _e( 'Topic Type:', 'bbpress' ); ?></label><br />