本文整理汇总了PHP中bp_directory_forums_search_form函数的典型用法代码示例。如果您正苦于以下问题:PHP bp_directory_forums_search_form函数的具体用法?PHP bp_directory_forums_search_form怎么用?PHP bp_directory_forums_search_form使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bp_directory_forums_search_form函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _e
<a class="button show-hide-new" href="#new-topic" id="new-topic-button"><?php
_e('New Topic', 'buddypress');
?>
</a><?php
}
?>
</h3>
<?php
do_action('bp_before_directory_forums_content');
?>
<div id="forums-dir-search" class="dir-search" role="search">
<?php
bp_directory_forums_search_form();
?>
</div>
</form>
<?php
do_action('bp_before_topics');
?>
<form action="" method="post" id="forums-directory-form" class="dir-form">
<div class="item-list-tabs" role="navigation">
<ul>
<li class="selected" id="forums-all"><a href="<?php
echo trailingslashit(bp_get_root_domain() . '/' . bp_get_forums_root_slug());
示例2: get_header
<?php get_header() ?>
<div id="content">
<div class="padder">
<form action="" method="post" id="forums-search-form" class="dir-form">
<h3><?php _e( 'Group Forums Directory', 'buddypress' ) ?><?php if ( is_user_logged_in() ) : ?> <a class="button" href="#new-topic" id="new-topic-button"><?php _e( 'New Topic', 'buddypress' ) ?></a><?php endif; ?></h3>
<?php do_action( 'bp_before_directory_forums_content' ) ?>
<div id="forums-dir-search" class="dir-search">
<?php bp_directory_forums_search_form() ?>
</div>
</form>
<div id="new-topic-post">
<?php if ( is_user_logged_in() ) : ?>
<?php if ( bp_has_groups( 'user_id=' . bp_loggedin_user_id() . '&type=alphabetical&max=100&per_page=100' ) ) : ?>
<form action="" method="post" id="forum-topic-form" class="standard-form">
<?php do_action( 'groups_forum_new_topic_before' ) ?>
<a name="post-new"></a>
<h5><?php _e( 'Post a New Topic:', 'buddypress' ) ?></h5>
<label><?php _e( 'Title:', 'buddypress' ) ?></label>
<input type="text" name="topic_title" id="topic_title" value="" />