defaults = array( 'title' => __( 'Profile', $this->domain ), 'template' => '
{avatar 100}
{display_name}
{description}
', ); $this->WP_Widget( 'author-profile-widget-profile', __( 'Author profile', $this->domain ), array( 'classname' => 'author-profile-widget-profile', 'description' => __( 'Author profile', $this->domain ) ) ); } /** * form * @param array $instance */ public function form( $instance ) { $instance = $this->_parse_options( $instance ); ?>

get_field_id( 'title' ); $title_name = $this->get_field_name( 'title' ); ?>

get_field_id( 'template' ); $user_name = $this->get_field_name( 'template' ); ?> the_author_meta" field. e.g {user_login}', $this->domain ); ?>
domain ); ?>

_parse_options( $instance ); echo $args['before_widget']; echo $args['before_title'] . apply_filters( 'widget_title', $instance['title'] ) . $args['after_title']; echo do_shortcode( sprintf( '[apw-profile]%s[/apw-profile]', $instance['template'] ) ); echo $args['after_widget']; } } }