'business-center-procustom-info-widget', 'description' => esc_html__( 'A widget to show basic informations with icons.', 'business-center-pro' ), ); parent::__construct( 'business-center-procustom-info-widget', esc_html__( 'TP : Custom Info', 'business-center-pro' ), $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 if ( ! isset( $args['widget_id'] ) ) { $args['widget_id'] = $this->id; } $title = ( ! empty( $instance['title'] ) ) ? $instance['title'] : esc_html__( 'Contact Infomation', 'business-center-pro' ); echo $args['before_widget']; if ( ! empty( $title ) ) { echo $args['before_title'] . esc_html( $title ) . $args['after_title']; } $number = isset( $instance['number'] ) ? absint( $instance['number'] ) : 3; ?>

', '' );?>