XPressME Integration Kit

Trac

source: tags/Ver2.2.0RC1/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/search_block_theme.php @ 450

Last change on this file since 450 was 450, checked in by toemon, 14 years ago

Ver2.2.0RC1 リリース

File size: 712 bytes
RevLine 
[119]1<?php
[448]2// Block Version: 1.0
[119]3function search_block($options)
4{
5        $mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ;
6        $this_template = empty( $options[1] ) ? 'db:'.$mydirname.'_block_search.html' : trim( $options[1] );
[121]7        $input_length = empty( $options[2] ) ? '18' : $options[2] ;
[119]8        $mydirpath = get_xpress_dir_path();
9
10        $act_url = get_bloginfo('siteurl');
11        $output  = '<form method="get" id="searchform" action="' . $act_url . '">' ."\n";
12        $output .= '<input type="text" name="s" id="s" size="' . $input_length . '" />' ."\n";
13        $output .= '<input type="submit" id="searchsubmit" value="' . __('Search', 'xpress') . '" />' ."\n";
14        $output .= "</form>\n";
15
16        $block['search'] = $output;
17        return $block ;
18}
19
20?>
Note: See TracBrowser for help on using the repository browser.