__( 'Send a friend request.', 'friends' ), ) ); } /** * Render the widget. * * @param array $args Sidebar arguments. * @param array $instance Widget instance settings. */ public function widget( $args, $instance ) { $instance = wp_parse_args( $instance, $this->defaults() ); $title = apply_filters( 'widget_title', $instance['title'] ); echo $args['before_widget']; if ( ! empty( $title ) ) { echo $args['before_title'] . $title . $args['after_title']; } ?>
" placeholder="" class="form-input input-sm" />
defaults; return $instance; } /** * Return an associative array of default values * * These values are used in new widgets. * * @return array Array of default values for the Widget's options */ public function defaults() { return array( 'title' => '', ); } /** * Register this widget. */ public static function register() { register_widget( __CLASS__ ); } }