__( 'A widget to show 260x260px Ad Banner', 'beka' ), ) ); } // Creating widget front-end // This is where the action happens public function widget( $args, $instance ) { $title = apply_filters( 'widget_title', $instance['title'] ); $ad_code = $instance['ad_code']; // before and after widget arguments are defined by themes echo $args['before_widget']; if ( ! empty( $title ) ) echo $args['before_title'] . $title . $args['after_title']; ?>
'', 'ad_code' => '', ); $instance = wp_parse_args( (array) $instance, $defaults ); // Widget admin form ?>