web/wp-content/themes/IRI-Theme/searchform.php
branchwordpress
changeset 109 03b0d1493584
child 123 561aa6d282f6
equal deleted inserted replaced
-1:000000000000 109:03b0d1493584
       
     1 <?php 
       
     2 	if (!is_search()) {
       
     3 		// Default search text
       
     4 		$search_text = __("Search");
       
     5 	} else {
       
     6 		$search_text = $s;
       
     7 	}
       
     8 ?>
       
     9 
       
    10 		<div class="box">
       
    11 			<div>
       
    12 				<h6><?php _e("Search");?></h6>
       
    13 				
       
    14 				<div id="search">
       
    15 					<form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
       
    16 						<div>
       
    17 							<input type="text" name="s" id="s"
       
    18 										 value="<?php echo wp_specialchars($s, 1); ?>"
       
    19 										 onfocus="clearInput('s', '<?php echo wp_specialchars($s, 1); ?>')" 
       
    20 										 onblur="clearInput('s', '<?php echo wp_specialchars($s, 1); ?>')"
       
    21 							/>
       
    22 							<input type="submit" name="envoi" value="<?php _e("Search");?>" /> 
       
    23 							
       
    24 						</div>
       
    25 					</form>
       
    26 				</div>
       
    27 			</div>
       
    28 			<div class="cleaner"></div>	
       
    29 		</div>