'Displays AdSense'); $control_ops = array('width' => 400, 'height' => 500); parent::WP_Widget(false,$name='AdSense',$widget_ops,$control_ops); } /* Displays the Widget in the front-end */ function widget($args, $instance){ extract($args); $title = esc_html( $instance['title']); $adsenseCode = empty( $instance['adsenseCode'] ) ? '' : $instance['adsenseCode']; echo $before_widget; if ( $title ) echo $before_title . $title . $after_title; ?>
'AdSense', 'adsenseCode'=>'' ) ); $title = esc_attr( $instance['title'] ); $adsenseCode = esc_textarea( $instance['adsenseCode'] ); echo '

'; echo '

'; } }// end web_buis_adv class add_action('widgets_init', create_function('', 'return register_widget("web_buis_adsens");')) ?>