Advertisement
Guest User

Form

a guest
May 18th, 2012
542
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.11 KB | None | 0 0
  1. <form method="get" id="searchform" action="<?php echo home_url(); ?>">
  2.     <input type="text" onclick="this.value='';" onfocus="this.select()" onblur="this.value=!this.value?'Product Search...':this.value;" value="Product Search..." name="s" id="s" class="left" />
  3.     <input type="image" src="<?php bloginfo('template_directory') ?>/images/icosearch.png" id="searchsubmit" value=""/>
  4.     <?php
  5.         wp_dropdown_categories(
  6.             array(
  7.                 'child_of' => 426,
  8.                 'class' => 'styled',
  9.                 'id' => 'make',
  10.                 'name' => 'make',
  11.                 'show_option_all' => 'Make...',
  12.                 'taxonomy' => 'product_cat',
  13.                 'walker' => new dropdown
  14.             ))
  15.     ?>
  16.     <?php
  17.         wp_dropdown_categories(
  18.             array(
  19.                 'child_of' => 427,
  20.                 'class' => 'styled',
  21.                 'id' => 'model',
  22.                 'name' => 'model',
  23.                 'show_option_all' => 'Model...',
  24.                 'taxonomy' => 'product_cat',
  25.                 'walker' => new dropdown
  26.             ))
  27.     ?>
  28. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement