'about', 'description' => 'Display your gravatar and a short bio blurb.' ); /* Widget control settings. */ $control_ops = array( 'width' => 300, 'height' => 350, 'id_base' => 'about' ); /* Create the widget. */ $this->WP_Widget( 'about', 'About (by @ThemeJam)', $widget_ops, $control_ops ); } function widget( $args, $instance ) { extract( $args ); /* User-selected settings. */ $title = apply_filters('widget_title', $instance['title'] ); $imageurl = $instance['imageurl']; $biotext = $instance['biotext']; $morelinkurl = isset($instance['morelinkurl']) ? $instance['morelinkurl'] : ''; /* Before widget (defined by theme). */ echo $before_widget; /* Title of widget (before and after defined by theme). */ if ( $title ) echo $before_title . $title . $after_title; echo '
';
/* Display image */
if ( $imageurl )
echo '';
/* Display text */
if ( $biotext )
echo $biotext;
echo '