this is my searchform.php
[php]
<input class=“focus” name=“s” type=“text” onfocus=“if(this.value==‘search’) this.value=’’;” onblur=“if(this.value==’’) this.value=‘search’;” value="<?php _e("searchprocurar"); ?>" />
</fieldset>
</form>
[/php]
an this is my search.php
[php]<?php get_header(); ?>
<h1><?php _e("<!--:en-->search result for: <!--:--><!--:PT-->resultados de procura para: <!--:-->"); ?><?php /* Search Count */ $allsearch = &new WP_Query("s=$s&showposts=-1"); $key = wp_specialchars($s, 1); $count = $allsearch->post_count; _e(''); _e('“'); echo $key; _e('”'); _e(' — '); echo $count . ' '; _e('<!--:en-->articles<!--:--><!--:PT-->artigos<!--:-->'); wp_reset_query(); ?></h1>
<ul class="mcol">
<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
<li class="article" id="post-<?php the_ID(); ?>">
<?php
if ( has_post_thumbnail() ) { ?>
<?php
$imgsrcparam = array(
'alt' => trim(strip_tags( $post->post_excerpt )),
'title' => trim(strip_tags( $post->post_title )),
);
$thumbID = get_the_post_thumbnail( $post->ID, 'background', $imgsrcparam ); ?>
<div class="preview"><a href="<?php the_permalink() ?>"><?php echo "$thumbID"; ?></a></div>
<?php } else {?>
<div class="preview"><a href="<?php the_permalink() ?>"><img src="<?php bloginfo('template_url'); ?>/images/default-thumbnail.jpg" alt="<?php the_title(); ?>" /></a></div>
<?php } ?>
<div class="article-over">
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<?php the_excerpt(); ?>
<div class="postmetadata">
<?php the_time(__('y.m.d', 'kubrick')) ?> ˑ
<?php printf(__("<!--:en-->categories: %s<!--:--><!--:PT-->categorias: %s<!--:-->"), get_the_category_list(', ')); ?>
</div>
</div>
</li> <?php ?>
<?php endwhile; ?>
<?php else : ?>
<?php endif; ?>
</ul>
<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
<?php endwhile; ?>
<?php else : ?>
<h1 id="error"><?php _e("<!--:en-->sorry, but i can't find what you are looking for...<!--:--><!--:PT-->lamentamos, mas não encontramos o que procura...<!--:-->"); ?></h1>
<?php endif; ?>
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
<?php get_footer(); ?>
[/php]