'widget_KalinsPostList', 'description' => __("Display a customized list of posts or pages")); // $this->WP_Widget('kalinsPostList', __("Kalin's Post List"), $widget_ops); $widget_ops = array('classname' => 'widget_APL', 'description' => __("Display a customized list of posts or pages")); $this->WP_Widget('advancedPostList', __("Advanced Post List"), $widget_ops); } // This code displays the widget on the screen. function widget($args, $instance) { extract($args); echo $before_widget; if (!empty($instance['title'])) { echo $before_title . $instance['title'] . $after_title; } kalinsPost_show($instance['k_preset']); echo $after_widget; } // Updates the settings. function update($new_instance, $old_instance) { return $new_instance; } function form($instance) { $adminOptions = kalinsPost_get_admin_options(); $presetArr = json_decode($adminOptions["preset_arr"]); echo '
'; echo ''; echo '

'; echo '
'; } // end function form } ?>