' . "\n"; ahp_recent_posts(5,60,255); /* $how_many: how many recent posts are being displayed (default: 5) $how_long: time frame to choose recent posts from (in days) (default: 60) $optmask: bitmask for various display options (default: 255) DISPLAY OPTIONS BITMASK 1; // gravatar 2; // date 4; // author name 8; // comment count 16; // blog name 32; // post title 64; // post excerpt 128; // excerpt capitalization $exc_size: size of excerpt in words (default: 30) $begin_wrap: start html code (default:
  • ) $end_wrap: end html code to adapt to different themes (default:
  • ) */ echo ""; echo $after_widget; } function ahp_recent_posts_init() { register_sidebar_widget(__("AHP Recent Posts"),"ahp_recent_posts_widget"); } add_action("plugins_loaded","ahp_recent_posts_init"); /* class ahp_recent_posts_Widget extends WP_Widget { function ahp_recent_posts_Widget() { parent::WP_Widget(false, 'AHP Recent Posts'); } function form($instance) { // outputs the options form on admin } function update($new_instance, $old_instance) { // processes widget options to be saved return $new_instance; } function widget($args, $instance) { // outputs the content of the widget } } register_widget('ahp_recent_posts_Widget'); */ ?>