'author_info_Widget_class',
'description' => 'Display author bio on the widget'
);
$this->WP_Widget( 'author_info_Widget', 'Author Info', $widget_ops );
}
//displays the widget form in the admin dashboard
function form($instance) {
$defaults = array( 'title' => 'Author Info', 'info' =>'' );
$instance = wp_parse_args( (array) $instance, $defaults );
$title = $instance['title'];
$info = $instance['info'];
?>
Title :
Author Bio :
' . $title . ''.$after_title; };
echo ''.get_avatar($post->post_author).$info.'
';
echo $after_widget;
}
}
}
//Adding css styles to author info Widget
add_action('wp_head', 'author_info_Widget_styles');
function author_info_Widget_styles() {
echo '
';
}
?>