| 193 | |
| 194 | function form( $instance ) { |
| 195 | $instance = wp_parse_args( (array) $instance, array( 'title' => '') ); |
| 196 | $title = $instance['title']; |
| 197 | ?> |
| 198 | <p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:'); ?> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($title); ?>" /></label></p> |
| 199 | <?php |
| 200 | } |
| 201 | |
| 202 | function update( $new_instance, $old_instance ) { |
| 203 | $instance = $old_instance; |
| 204 | $new_instance = wp_parse_args((array) $new_instance, array( 'title' => '')); |
| 205 | $instance['title'] = strip_tags($new_instance['title']); |
| 206 | // $instance['count'] = $new_instance['count'] ? 1 : 0; |
| 207 | // $instance['dropdown'] = $new_instance['dropdown'] ? 1 : 0; |
| 208 | return $instance; |
| 209 | } |
| 210 | |