XPressME Integration Kit

Trac

source: trunk/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/search_block_theme.php @ 448

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

ブロックのバージョン管理実装 Fixes #246

File size: 712 bytes
Line 
1<?php
2// Block Version: 1.0
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] );
7        $input_length = empty( $options[2] ) ? '18' : $options[2] ;
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.