'Ambision-AuthorInfo','description' => __( "Author Widget" ,'') ); $this->WP_Widget('Ambision-AuthorInfo', __('Ambision: Author Widget',''), $widget_ops); // add image js add_action('admin_enqueue_scripts' , array(&$this , 'admin_js') , 99 , 1); } function widget($args , $instance) { extract($args); $title = ($instance['title']) ? $instance['title'] : ''; $author_name = ($instance['author_name']) ? $instance['author_name'] : __('Author Name' , ''); $author_bio = ($instance['author_bio']) ? $instance['author_bio'] : __('About The Author' , ''); $author_image = ($instance['author_image']) ? $instance['author_image'] : ''; $image_auto_width = ''; if(isset($instance['image_auto_width'])) $image_auto_width = $instance['image_auto_width'] ? $instance['image_auto_width'] : 'checked'; echo $before_widget; echo $before_title; echo $title; echo $after_title; /** * Widget Content */ ?>
Note: Preferred Image Size Is : 150px / 150px