-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearchform.php
More file actions
6 lines (6 loc) · 906 Bytes
/
searchform.php
File metadata and controls
6 lines (6 loc) · 906 Bytes
1
2
3
4
5
6
<?php namespace Habari; ?>
<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
<form method="get" id="search-form" action="<?php URL::out('display_search'); ?>" onsubmit="if ( document.getElementById('search-box').value == '<?php _e( "Search %s", array(str_replace("'", "\'", Options::get("title"))) ); ?>' ) { return false; }">
<input type="text" name="criteria" id="search-box" value="<?php if ( isset( $criteria ) ) { echo htmlentities($criteria, ENT_COMPAT, 'UTF-8'); } else { _e( "Search %s", array(Options::get("title")) ); } ?>" onfocus="if (this.value == '<?php _e( "Search %s", array(str_replace("'", "\'", Options::get("title"))) ); ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e( "Search %s", array(str_replace("'", "\'", Options::get("title"))) ); ?>';}" >
<input type="submit" id="search-btn" value="" title="<?php _e( "Go" ); ?>">
</form>