'widget_mfn_flickr', 'description' => __( 'Use this widget on pages to display photos from Flickr photostream.', 'mfn-opts' ) ); parent::__construct( 'widget_mfn_flickr', __( 'Muffin Flickr', 'mfn-opts' ), $widget_ops ); $this->alt_option_name = 'widget_mfn_flickr'; } /* --------------------------------------------------------------------------- * Outputs the HTML for this widget. * --------------------------------------------------------------------------- */ function widget( $args, $instance ) { if ( ! isset( $args['widget_id'] ) ) $args['widget_id'] = null; extract( $args, EXTR_SKIP ); echo $before_widget; $title = apply_filters( 'widget_title', $instance['title'], $instance, $this->id_base); if( $title ) echo $before_title . $title . $after_title; echo '
'; echo''; echo '
'; echo $after_widget; } /* --------------------------------------------------------------------------- * Deals with the settings when they are saved by the admin. * --------------------------------------------------------------------------- */ function update( $new_instance, $old_instance ) { $instance = $old_instance; $instance['title'] = strip_tags( $new_instance['title'] ); $instance['userID'] = strip_tags( $new_instance['userID'] ); $instance['count'] = (int) $new_instance['count']; $instance['order'] = strip_tags( $new_instance['order'] ); return $instance; } /* --------------------------------------------------------------------------- * Displays the form for this widget on the Widgets page of the WP Admin area. * --------------------------------------------------------------------------- */ function form( $instance ) { $title = isset( $instance['title']) ? esc_attr( $instance['title'] ) : ''; $userID = isset( $instance['userID']) ? esc_attr( $instance['userID'] ) : '71865026@N00'; $count = isset( $instance['count'] ) ? absint( $instance['count'] ) : 6; $order = isset( $instance['order']) ? esc_attr( $instance['order'] ) : 'latest'; ?>

this tool to find your Flickr user ID', 'mfn-opts' ); ?>

[1-10]

" />
" />