PHP Classes

File: searchform.php

Recommend this page to a friend!
  Classes of Joko Prasetyo   kciaotime WordPress Theme   searchform.php   Download  
File: searchform.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: kciaotime WordPress Theme
WordPress theme to customize different page parts
Author: By
Last change:
Date: 1 year ago
Size: 549 bytes
 

Contents

Class file image Download
<?php $search_text = empty($_GET['s']) ? __('Search', 'kciao') : get_search_query(); ?>
<div id="search" title="<?php _e('Type and hit enter', 'kciao'); ?>">
    <form method="get" id="searchform" action="<?php echo home_url( '/' ); ?>">
        <input type="text" value="<?php echo $search_text; ?>"
            name="s" id="s" onblur="if (this.value == '') {this.value = '<?php echo $search_text; ?>';}"
            onfocus="if (this.value == '<?php echo $search_text; ?>') {this.value = '';}"
        />
    </form>
</div><!-- #search -->