'widget_aperture_author_box', 'description' => __( 'An author box with biographical info from the user profile and an avatar.', 'aperture') ); parent::WP_Widget(false, $name = __('Author Box (Aperture)', 'aperture'), $widget_ops); } // Widget form creation function form($instance) { // Check values if( $instance) { $title = esc_attr($instance['title']); } else { $title = __( 'About The Author', 'aperture' ); } ?>
'; echo get_avatar( get_the_author_meta( 'ID' ), 96 ); echo ''; echo ''; echo $after_widget; } } // register widget add_action('widgets_init', create_function('', 'return register_widget("aperture_author_box");'));