'Drag me to the widget area(s) you want to display Ad Swapper Ads in...' 'description' => 'Displays Ad Swapper ads.' ) ) ; } // ========================================================================= // Widget::widget() // ========================================================================= // /** // * Outputs the content of the widget // * // * @param array $args // * @param array $instance // */ // public function widget( $args, $instance ) { // // outputs the content of the widget // } // /** // * Front-end display of widget. // * // * @see WP_Widget::widget() // * // * @param array $args Widget arguments. // * @param array $instance Saved values from database. // */ // public function widget( $args, $instance ) // widget (line 44) // Echo the widget content. // Subclasses should over-ride this function to generate their widget code. // // void widget (array $args, array $instance) // array $args: Display arguments including before_title, after_title, before_widget, and after_widget. // array $instance: The settings for the particular instance of the widget /** @see WP_Widget::widget -- do not rename this */ function widget( $args , $instance ) { // ------------------------------------------------------------------------- // Here we should have (eg):- // // $args = Array( // [name] => Main Sidebar // [id] => themonic-sidebar // [description] => This is a Sitewide sidebar which appears on posts and pages // [class] => // [before_widget] => // [after_widget] => // [before_title] => // [after_title] => // [widget_id] => ad_swapper_ad_display_widget-2 // [widget_name] => Ad Swapper Ad Displayer // ) // // ------------------------------------------------------------------------- //\greatKiwi_byFernTec_adSwapper_local_v0x1x211_testDebug\pr( $args , '$args' ) ; // ------------------------------------------------------------------------- // Here we should have (eg):- // // $instance = Array( // [title] => // [message] => // ) // // ------------------------------------------------------------------------- //\greatKiwi_byFernTec_adSwapper_local_v0x1x211_testDebug\pr( $instance , '$instance' ) ; // extract( $args ); // $title = apply_filters('widget_title', $instance['title']); // $message = $instance['message']; // ?-> // // // // <-?php echo $after_widget; ?-> // <-?php // --------------------------------------------------------------------- // require_once( dirname( __FILE__ ) . '/ad-display-widget-support.php' ) ; // // // ------------------------------------------------------------------------- // // \greatKiwi_byFernTec_adSwapper_local_v0x1x211_adDisplayer\ // // get_ads_to_display( // // $that , // // $args , // // $instance // // ) // // - - - - - - - - - - - - - - - - - // // Generates and returns the "Ad Swapper Ad Displayer" widget's admin // // form (where the widget's options are entered/edited). // // // // $args is the widget settings - including "before_title", "after_title", // // "before_widget", and "after_widget". // // // // $instance holds the previously saved values from the WordPress // // options database. // // // // Returns the widget HTML (which could be an error message). // // // // RETURNS // // $widget_html STRING // // ------------------------------------------------------------------------- // // $widget_html = // \greatKiwi_byFernTec_adSwapper_local_v0x1x211_adDisplayer\get_ads_to_display( // $this , // $args , // $instance // ) ; // --------------------------------------------------------------------- // require_once( dirname( __FILE__ ) . '/ad-display-generic-support.php' ) ; require_once( dirname( __FILE__ ) . '/display-ad-slot-ads.php' ) ; // ------------------------------------------------------------------------- // \greatKiwi_byFernTec_adSwapper_local_v0x1x211_adDisplayer\ // get_ad_slot_widget_html( // $that , // $args , // $instance // ) // - - - - - - - - - - - - - - - - - // Generates and returns the front-end HTML that goes where the widget // is. In other words, generates and returns the Ad Swapper ad (or ads), // to go in the widget's ad slot. // // --- // // $that is the "ad slot" WordPress Widget object instance. // // $args is the widget settings - including "before_title", "after_title", // "before_widget", and "after_widget". // // $instance holds the previously saved values from the WordPress // options database. // // Returns the widget HTML (which could be an error message). // // RETURNS // $widget_html STRING // ------------------------------------------------------------------------- $widget_html = get_ad_slot_widget_html( $this , $args , $instance ) ; // --------------------------------------------------------------------- if ( trim( $widget_html ) !== '' ) { echo << //

// // //

//

// // //

//