'widget_flickr', 'description' => 'A widget that show flickr' ); /* Create the widget. */ parent::__construct( 'rst-flickr-widget', 'Agnilla - Flickr', $widget_ops); } function widget($args, $instance) { $html = ''; $protocol = is_ssl() ? 'https' : 'http'; $html .= $args['before_widget']; if( !empty($instance['title']) ) { $html .= $args['before_title']; $html .= $instance['title']; $html .= $args['after_title']; } $html .= '
'; $my_account = $instance['user_id']; $count = $instance['count'] ? $instance['count'] : 6; //Do the deed if($my_account && $my_account != ''){ $html .= ""; }else{ $html .= '

Please provide an Flickr ID

'; } $html .= '
'; $html .= '
'; //return $html; echo force_balance_tags($html); } function update($new_instance, $old_instance) { return $new_instance; } function form($instance) { ?>


Flickr ID if you don\'t know your ID.', 'angllia' ); ?>