本文整理汇总了PHP中bp_directory_members_search_form函数的典型用法代码示例。如果您正苦于以下问题:PHP bp_directory_members_search_form函数的具体用法?PHP bp_directory_members_search_form怎么用?PHP bp_directory_members_search_form使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bp_directory_members_search_form函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: bp_groups_members_template_part
/**
* Output the Group members template
*
* @since BuddyPress (?)
*
* @return string html output
*/
function bp_groups_members_template_part()
{
?>
<div class="item-list-tabs" id="subnav" role="navigation">
<ul>
<li class="groups-members-search" role="search">
<?php
bp_directory_members_search_form();
?>
</li>
<?php
bp_groups_members_filter();
?>
<?php
do_action('bp_members_directory_member_sub_types');
?>
</ul>
</div>
<div id="members-group-list" class="group_members dir-list">
<?php
bp_get_template_part('groups/single/members');
?>
</div>
<?php
}
示例2: _e
<form action="" method="post" id="members-directory-form" class="dir-form">
<h3><?php
_e(sprintf('%1s Directory', ucfirst(buatp_get_dir_name())), 'buddypress');
?>
</h3>
<?php
do_action('bp_before_directory_members_content');
?>
<div id="members-dir-search" class="dir-search" role="search">
<?php
bp_directory_members_search_form();
?>
</div><!-- #members-dir-search -->
<div class="item-list-tabs" role="navigation">
<ul>
<li class="selected" id="members-all"><a href="<?php
echo trailingslashit(bp_get_root_domain() . '/' . bp_get_members_root_slug());
?>
"><?php
printf(__('All %1s <span>%2s</span>', 'buddypress'), ucfirst(buatp_get_dir_name()), bp_get_total_member_count());
?>
</a></li>
<?php
示例3: bp_groups_members_template_part
/**
* Output the Group members template
*
* @since 2.0.0
*/
function bp_groups_members_template_part()
{
?>
<div class="item-list-tabs" id="subnav" aria-label="<?php
esc_attr_e('Group secondary navigation', 'buddypress');
?>
" role="navigation">
<ul>
<li class="groups-members-search" role="search">
<?php
bp_directory_members_search_form();
?>
</li>
<?php
bp_groups_members_filter();
?>
<?php
/**
* Fires at the end of the group members search unordered list.
*
* Part of bp_groups_members_template_part().
*
* @since 1.5.0
*/
do_action('bp_members_directory_member_sub_types');
?>
</ul>
</div>
<h2 class="bp-screen-reader-text"><?php
/* translators: accessibility text */
_e('Members', 'buddypress');
?>
</h2>
<div id="members-group-list" class="group_members dir-list">
<?php
bp_get_template_part('groups/single/members');
?>
</div>
<?php
}
示例4: bp_groups_members_template_part
/**
* Output the Group members template
*
* @since 2.0.0
*/
function bp_groups_members_template_part()
{
?>
<div class="item-list-tabs" id="subnav" role="navigation">
<ul>
<li class="groups-members-search" role="search">
<?php
bp_directory_members_search_form();
?>
</li>
<?php
bp_groups_members_filter();
?>
<?php
/**
* Fires at the end of the group members search unordered list.
*
* Part of bp_groups_members_template_part().
*
* @since 1.5.0
*/
do_action('bp_members_directory_member_sub_types');
?>
</ul>
</div>
<div id="members-group-list" class="group_members dir-list">
<?php
bp_get_template_part('groups/single/members');
?>
</div>
<?php
}
示例5: bp_legacy_theme_group_manage_members_add_search
/**
* Add a search box to a single group's manage members screen.
*
* @since 2.7.0
*
* @return string HTML for the search form.
*/
function bp_legacy_theme_group_manage_members_add_search()
{
if (bp_is_action_variable('manage-members')) {
?>
<div id="members-dir-search" class="dir-search no-ajax" role="search">
<?php
bp_directory_members_search_form();
?>
</div>
<?php
}
}