'blogostrap_class_separator', 'description' => __( 'Add a simple separator inside sidebar.', 'blogostrap' ), ); parent::__construct( 'blogostrap_separator', __( 'Blogostrap Separator', 'blogostrap' ), $widget_ops ); } /** * Outputs the content of the widget * * @param array $args * @param array $instance */ public function widget( $args, $instance ) { // outputs the content of the widget echo $args['before_widget']; if ( ! empty( $instance['title'] ) ) { echo $args['before_title'] . apply_filters( 'widget_title', $instance['title'] ) . $args['after_title']; } echo '
'; echo $args['after_widget']; } /** * Outputs the options form on admin * * @param array $instance The widget options */ public function form( $instance ) { // outputs the options form on admin $title = ! empty( $instance['title'] ) ? $instance['title'] : ''; ?>