本文整理汇总了PHP中bp_search_form_type_select函数的典型用法代码示例。如果您正苦于以下问题:PHP bp_search_form_type_select函数的具体用法?PHP bp_search_form_type_select怎么用?PHP bp_search_form_type_select使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bp_search_form_type_select函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: widget
function widget($args, $instance)
{
// outputs the content of the widget
extract($args);
// Make before_widget, etc available.
$bps_name = empty($instance['title']) ? __('BuddyPress Search', TEMPLATE_DOMAIN) : apply_filters('widget_title', $instance['title']);
$unique_id = $args['widget_id'];
echo $before_widget;
echo $before_title . $bps_name . $after_title;
do_action('bp_before_blog_search_form');
?>
<form action="<?php
echo bp_search_form_action();
?>
" class="bp-searchform" method="post" id="search-form">
<input type="text" id="search-terms" name="search-terms" onfocus="if (this.value == '<?php
_e('Start Searching...', TEMPLATE_DOMAIN);
?>
') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php
_e('Start Searching...', TEMPLATE_DOMAIN);
?>
';}" />
<?php
echo bp_search_form_type_select();
?>
<input type="submit" name="search-submit" id="search-submit" value="<?php
_e('Search', TEMPLATE_DOMAIN);
?>
" />
<?php
wp_nonce_field('bp_search_form');
do_action('bp_blog_search_form');
?>
</form>
<?php
do_action('bp_after_blog_search_form');
echo $after_widget;
}
示例2: bp_search_form_action
<div id="search-bar">
<form action="<?php
echo bp_search_form_action();
?>
" method="post" id="search-form">
<label for="search-terms" class="accessibly-hidden"><?php
_e('Search for:', 'logicalboneshug');
?>
</label>
<input type="text" id="search-terms" name="search-terms" value="<?php
echo isset($_REQUEST['s']) ? esc_attr($_REQUEST['s']) : '';
?>
" />
<?php
echo bp_search_form_type_select();
?>
<input type="submit" name="search-submit" id="search-submit" value="<?php
_e('Search', 'logicalboneshug');
?>
" />
<?php
wp_nonce_field('bp_search_form');
?>
</form><!-- #search-form -->
<?php
do_action('bp_search_login_bar');
?>
</div>
示例3: bp_search_form
function bp_search_form()
{
$form = '
<form action="' . bp_search_form_action() . '" method="post" id="search-form">
<input type="text" id="search-terms" name="search-terms" value="" />
' . bp_search_form_type_select() . '
<input type="submit" name="search-submit" id="search-submit" value="' . __('Search', 'buddypress') . '" />
' . wp_nonce_field('bp_search_form') . '
</form>
';
echo apply_filters('bp_search_form', $form);
}
示例4: bp_search_form
/**
* Last used by core in BP 1.1. The markup was merged into DTheme's header.php template.
*/
function bp_search_form()
{
_deprecated_function(__FUNCTION__, '1.1', 'No longer required.');
$form = '
<form action="' . bp_search_form_action() . '" method="post" id="search-form">
<input type="text" id="search-terms" name="search-terms" value="" />
' . bp_search_form_type_select() . '
<input type="submit" name="search-submit" id="search-submit" value="' . __('Search', 'buddypress') . '" />
' . nxt_nonce_field('bp_search_form') . '
</form>
';
echo apply_filters('bp_search_form', $form);
}
示例5: wp_list_pages
</li>
<?php endif; ?>
<?php wp_list_pages( 'title_li=&depth=1&exclude=' . bp_dtheme_page_on_front() ); ?>
<?php do_action( 'bp_nav_items' ); ?>
</ul><!-- #nav -->
<div id="search-bar">
<div class="padder">
<?php if ( bp_search_form_enabled() ) : ?>
<form action="<?php echo bp_search_form_action() ?>" method="post" id="search-form">
<input type="text" id="search-terms" name="search-terms" value="" />
<?php echo bp_search_form_type_select() ?>
<input type="submit" name="search-submit" id="search-submit" value="<?php _e( 'Search', 'buddypress' ) ?>" />
<?php wp_nonce_field( 'bp_search_form' ) ?>
</form><!-- #search-form -->
<?php endif; ?>
<?php do_action( 'bp_search_login_bar' ) ?>
</div><!-- .padder -->
</div><!-- #search-bar -->
<?php do_action( 'bp_header' ) ?>
</div><!-- #header -->
示例6: bp_search_form_action
<?php
if (function_exists('bp_is_active')) {
?>
<div class="search">
<form action="<?php
print bp_search_form_action();
?>
" method="post" id="search-form">
<input type="text" id="search-terms" name="search-terms" placeholder="Buscar..." value="<?php
print get_search_query();
?>
" />
<?php
print bp_search_form_type_select();
?>
<button type="submit" name="search-submit" id="search-submit"><span class="icon"></span></button>
<?php
wp_nonce_field('bp_search_form');
?>
</form>
</div>
<?php
}
?>
</div>
</nav>
示例7: menue_enable_search
/**
* header: add a search field in the header
*
* located: header.php do_action( 'bp_after_header_nav' )
*
* @package Custom Community
* @since 1.8.3
*/
function menue_enable_search()
{
global $cap;
if (defined('BP_VERSION')) {
if ($cap->menue_enable_search) {
?>
<div id="search-bar" role="search">
<div class="padder">
<form action="<?php
echo bp_search_form_action();
?>
" method="post" id="search-form">
<input type="text" id="search-terms" name="search-terms" value="<?php
echo isset($_REQUEST['s']) ? esc_attr($_REQUEST['s']) : '';
?>
" />
<?php
echo bp_search_form_type_select();
?>
<input type="submit" name="search-submit" id="search-submit" value="<?php
_e('Search', 'cc');
?>
" />
<?php
wp_nonce_field('bp_search_form');
?>
</form><!-- #search-form -->
<?php
do_action('bp_search_login_bar');
?>
</div><!-- .padder -->
</div><!-- #search-bar -->
<?php
}
}
}