|
Complete code:
class My_Widget_Avatar extends WP_Widget { function My_Widget_Avatar() { $widget_ops = array( 'classname' =>
'widget_avatar', 'description' =>
__( "My Avatar Widget" ) ); $this->
WP_Widget('my_avatar', __('My Avatar'), $widget_ops); } function widget( $args, $instance ) { extract($args); $text = apply_filters( 'widget_text', $instance[ext'], $instance ); echo $before_widget; ?>
'' ) ); $text = format_to_edit($instance[ext']);
?>
|