'Aneeq_Flickr_Widget',
'name' => 'Anneq Flickr Widget',
'description' => 'Flickr PhotoStream Widget',
'before_widget' => "',
'before_title' => '
',
);
parent::__construct( 'Aneeq_Flickr_Widget', 'Aneeq Flickr PhotoStream', $widget_ops );
}
/*
* Outputs the content of the widget
*/
public function widget( $args, $instance ) {
// outputs the content of the widget
$title = apply_filters( 'widget_title', $instance['title'] );
$image_limit = apply_filters( 'widget_title', $instance['image_limit'] );
$flickr_account_id = apply_filters( 'widget_title', $instance['flickr_account_id'] );
if($title == '') { $title = __('Aneeq Flickr Widget', 'aneeq'); }
if($image_limit == '') { $image_limit = 10; }
if($flickr_account_id == '') { $flickr_account_id ='147476924@N07'; }
echo $args['before_widget'];
if ( ! empty( $instance['title'] ) ) {
echo $args['before_title'] . apply_filters( 'widget_title', $instance['title'] ) . $args['after_title'];
}
?>