Rev | Line | |
---|
[119] | 1 | <?php |
---|
[451] | 2 | // Block Version: 1.0 |
---|
[119] | 3 | function 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.