'flickr-widget', 'description' => __('A widget that show last flickr photo streams', 'gdl_back_office') ); /* Widget control settings. */ $control_ops = array( 'width' => 300, 'height' => 350, 'id_base' => 'flickr-widget' ); /* Create the widget. */ $this->WP_Widget( 'flickr-widget', __('Flickr (Goodlayers)', 'gdl_back_office'), $widget_ops, $control_ops ); } // Output of the widget function widget( $args, $instance ) { extract( $args ); $title = apply_filters('widget_title', $instance['title'] ); $id = $instance['id']; $how = $instance['how']; $show_num = $instance['show_num']; // Opening of widget echo $before_widget; // Open of title tag if ( $title ){ echo $before_title . $title . $after_title; } // Widget Content echo '
'; echo ''; // Closing of widget echo $after_widget; } // Widget Form function form( $instance ) { if ( $instance ) { $title = esc_attr( $instance[ 'title' ] ); $id = esc_attr( $instance[ 'id' ] ); $show_num = esc_attr( $instance[ 'show_num' ] ); $how = esc_attr( $instance[ 'how' ] ); } else { $title = ''; $id = ''; $show_num = '6'; $how = 'latest'; } ?>