"Place a link on your site to pop up a 'write post' box.")); } /** @see WP_Widget::widget */ function widget($args, $instance) { extract( $args ); $title = apply_filters('widget_title', $instance['title']); $category = $instance['category']; $link = apply_filters('widget_title', $instance['link']); $popup = $instance['popup']; echo $before_widget; if ( $title ) echo $before_title . $title . $after_title; echo ""; echo $after_widget; } /** @see WP_Widget::update */ function update($new_instance, $old_instance) { $instance = $old_instance; $instance['title'] = strip_tags($new_instance['title']); $instance['category'] = strip_tags($new_instance['category']); $instance['link'] = strip_tags($new_instance['link']); $instance['popup'] = (isset($new_instance['popup'])) ? 'true' : false; return $instance; } /** @see WP_Widget::form */ function form($instance) { if ( $instance ) { $title = esc_attr($instance['title']); $category = esc_attr($instance['category']); $link = esc_attr($instance['link']); $popup = $instance['popup']; } else { $title = ''; $category = ''; $link = ''; $popup = 0; } ?>