'class-twiter', 'description' => __( 'Twiter Box', 'cd-fbspw' ) ); $this->WP_Widget( 'CD_Class_Twiter_Widget', __( 'Twiter Widget Profile', 'cd-fbspw' ), $widget_ops ); } function form( $instance ) { $defaults = array( 'width' => 250, 'height' =>300, 'user_name' =>'twitter', 'shell_bg_color_code' =>'#333333', 'shell_color_code'=>'#ffffff', 'tweets_bg_color_code'=>'#000000', 'tweets_color_code'=>'#ffffff', 'tweets_links_color_code'=>'#4aed05', ); $instance = wp_parse_args( (array) $instance, $defaults ); extract( $instance ); ?>
"; echo $after_widget; } } // end class /** * Register the widget here to make sure we get the right class... */ add_action( 'widgets_init', 'cd_fbsp_Twiter_Widget' ); function cd_fbsp_Twiter_Widget() { register_widget( 'CD_Class_Twiter_Widget' ); } } // end class_exists