'warrior_sidebar_ad', 'description' => __('Warrior Sidebar Ad Widget', 'warrior') ); $control_ops = array( 'id_base' => 'warrior_sidebar_ad' ); $this->WP_Widget( 'warrior_sidebar_ad', __('Warrior Sidebar Ad', 'warrior'), $widget_ops, $control_ops ); } function widget( $args, $instance ) { global $shortname; extract( $args ); $warrior_ad_1 = get_option($shortname.'_ad_1'); $warrior_ad_url_1 = get_option($shortname.'_ad_url_1'); $warrior_ad_2 = get_option($shortname.'_ad_2'); $warrior_ad_url_2 = get_option($shortname.'_ad_url_2'); $warrior_ad_3 = get_option($shortname.'_ad_3'); $warrior_ad_url_3 = get_option($shortname.'_ad_url_3'); $warrior_ad_4 = get_option($shortname.'_ad_4'); $warrior_ad_url_4 = get_option($shortname.'_ad_url_4'); $warrior_ad_5 = get_option($shortname.'_ad_5'); $warrior_ad_url_5 = get_option($shortname.'_ad_url_5'); $warrior_ad_6 = get_option($shortname.'_ad_6'); $warrior_ad_url_6 = get_option($shortname.'_ad_url_6'); echo $before_widget; ?>