Beispiel #1
0
 /**
  * Display user profile widget.
  *
  * @param array $args widget configuration.
  */
 function widget_user_profile($args)
 {
     extract($args);
     $options = get_option('widget_user_profile');
     $title = $options['title'];
     echo $before_widget;
     echo $before_title . $title . $after_title;
     extended_profile($options['user']);
     echo $after_widget;
 }
 function widget($args, $instance)
 {
     extract($args);
     $title = apply_filters('widget_title', $instance['title']);
     echo $before_widget;
     if ($title) {
         echo $before_title . $title . $after_title;
     }
     extended_profile($instance['user_id']);
     echo $after_widget;
 }