当前位置: 首页>>代码示例>>PHP>>正文


PHP bp_search_form_action函数代码示例

本文整理汇总了PHP中bp_search_form_action函数的典型用法代码示例。如果您正苦于以下问题:PHP bp_search_form_action函数的具体用法?PHP bp_search_form_action怎么用?PHP bp_search_form_action使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了bp_search_form_action函数的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();
        ?>
&nbsp;<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;
    }
开发者ID:jrbranaa,项目名称:pitchperspectives,代码行数:38,代码来源:bp-widgets-functions.php

示例2: esc_attr_e

</h3>
					<div class="skip-link assistive-text"><a href="#content" title="<?php 
esc_attr_e('Skip to content', 'logicalboneshug');
?>
"><?php 
_e('Skip to content', 'logicalboneshug');
?>
</a></div>
					<?php 
wp_nav_menu(array('theme_location' => 'top', 'menu_class' => 'top_menu', 'container' => ''));
?>
				</nav>
			</div>
			<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();
?>
开发者ID:raminjan,项目名称:logicalbones_hug,代码行数:30,代码来源:header.php

示例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);
}
开发者ID:alvaropereyra,项目名称:shrekcms,代码行数:13,代码来源:bp-core-templatetags.php

示例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);
}
开发者ID:nxtclass,项目名称:NXTClass-Plugin,代码行数:17,代码来源:1.5.php

示例5: if

					<li<?php if ( bp_is_page( BP_BLOGS_SLUG ) ) : ?> class="selected"<?php endif; ?>>
						<a href="<?php echo site_url() ?>/<?php echo BP_BLOGS_SLUG ?>/" title="<?php _e( 'Blogs', 'buddypress' ) ?>"><?php _e( 'Blogs', 'buddypress' ) ?></a>
					</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' ) ?>
开发者ID:n-sane,项目名称:zaroka,代码行数:31,代码来源:header.php

示例6: bp_search_form_action

								<br>
						
							</div>
				        <?php 
}
?>
	


						<?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>
开发者ID:CoordCulturaDigital-Minc,项目名称:cdigital2014,代码行数:31,代码来源:header.php

示例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 
            }
        }
    }
开发者ID:paulmedwal,项目名称:edxforumspublic,代码行数:50,代码来源:theme-generator.php


注:本文中的bp_search_form_action函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。