'widget_ajaxweather', 'description' => __('Show the weather info. from API interfacing with Google') ); $this->WP_Widget('ajax-weather-widget', __('AJAX Weather'), $widget_ops); } // // form() - outputs the options form on admin in Appearance => Widgets (backend). // function form($instance) { // Assigns values $instance = wp_parse_args( (array) $instance, array( 'weather_title' => '','weather_zip' => '', 'weather_width' => '' ) ); $title = strip_tags($instance['weather_title']); $zip = strip_tags($instance['weather_zip']); $width = strip_tags($instance['weather_width']); ?>
'; echo ''; echo ''; echo ''; // Outputs the widget in its standard ul li format. echo $before_widget; if (!empty( $title )) { echo $before_title . $title . $after_title; }; $ul__head = '