'widget_catchbox_adwidget', 'description' => __( 'Use this widget to add any type of Ad as a widget.', 'catchbox' ) ); $this->WP_Widget( 'widget_catchbox_adwidget', __( 'Catch Box Adspace Widget', 'catchbox' ), $widget_ops ); $this->alt_option_name = 'widget_catchbox_adwidget'; } /** * Creates the form for the widget in the back-end which includes the Title , adcode, image, alt * $instance Current settings */ function form($instance) { $instance = wp_parse_args( (array) $instance, array( 'title' => '', 'adcode' => '', 'image' => '', 'href' => '', 'alt' => '' ) ); $title = esc_attr( $instance[ 'title' ] ); $adcode = esc_textarea( $instance[ 'adcode' ] ); $image = esc_url( $instance[ 'image' ] ); $href = esc_url( $instance[ 'href' ] ); $alt = esc_attr( $instance[ 'alt' ] ); ?>

or

id_base ) . $after_title; } else { echo ''; } if ( $adcode != '' ) { echo $adcode; } else { ?><?php echo $alt; ?>