'adsense_extreme_search_Widget', 'description' => 'Implement Google AdSense for search.'); /* Widget control settings. */ $control_ops = array('width' => 500, 'height' => 350, 'id_base' => 'aes-widget'); /* Create the widget. */ $this->WP_Widget('aes-widget', 'Adsense Extreme Search', $widget_ops, $control_ops); } //Display function widget($args, $instance) { extract($args); /* Our variables from the widget settings. */ $title = apply_filters('widget_title', $instance['title']); $search_code = $instance['search_code']; /* Before widget (defined by themes). */ echo $before_widget; /* Display the widget title if one was input (before and after defined by themes). */ if($title) echo $before_title . $title . $after_title; if($search_code) echo($search_code); /* After widget (defined by themes). */ echo $after_widget; } //Update settings. function update($new_instance, $old_instance) { $instance = $old_instance; // Strip tags for title and name to remove HTML (important for text inputs). $instance['title'] = strip_tags($new_instance['title']); $instance['search_code'] = $new_instance['search_code']; global $aeopt; $aeopt->opts['result_code'] = $new_instance['result_code']; $aeopt->save_opts(); return $instance; } //Displays the widget settings controls on the widget panel. function form($instance) { global $aeopt; /* Set up some default widget settings. */ $defaults = array( 'title' => 'Search', 'search_code' => ' ' ); $instance = wp_parse_args((array)$instance, $defaults); ?>

How do I implement AdSense for search results on my site?