src/WPametu/UI/Widget.php
public function widget($args, $instance){
        $content = $this->widget_content($instance);
        if( $content ){
            echo $args['before_widget'];
            if( isset($instance['title']) && !empty($instance['title']) ){
                echo $args['before_title'];
                echo $instance['title'];
                echo $args['after_title'];
            }
            echo $content;
            echo $args['after_widget'];
        }
    }
public function widget($args, $instance){
        $content = $this->widget_content($instance);
        if( $content ){
            echo $args['before_widget'];
            if( isset($instance['title']) && !empty($instance['title']) ){
                echo $args['before_title'];
                echo $instance['title'];
                echo $args['after_title'];
            }
            echo $content;
            echo $args['after_widget'];
        }
    }
public function widget ( $ args , $ instance ) { $ content = $ this -> widget_content ( $ instance ) ; if ( $ content ) { echo $ args [ 'before_widget' ] ; if ( isset ( $ instance [ 'title' ] ) && ! empty ( $ instance [ 'title' ] ) ) { echo $ args [ 'before_title' ] ; echo $ instance [ 'title' ] ; echo $ args [ 'after_title' ] ; } echo $ content ; echo $ args [ 'after_widget' ] ; } }
Show widget content

@param array $args
@param array $instance
Show widget content