'tpcrn-flickr-widget', 'description' => __('A Flickr widget to Display flickr photo streams', 'imagmag')); /* Widget control settings. */ $control_ops = array( 'width' => 200, 'height' => 350, 'id_base' => 'tpcrn-flickr-widget' ); /* Create the widget. */ $this->WP_Widget( 'tpcrn-flickr-widget', __('ThemePacific : Flickr','imagmag'), $widget_ops, $control_ops ); } /** * display the widget */ function widget( $args, $instance ) { extract( $args ); /* Our variables from the widget settings. */ $title = apply_filters('Flickr', $instance['title'] ); $flickrid = $instance['flickrid']; $fphtos = $instance['fphtos']; $type = $instance['type']; $display = $instance['display']; /* Before widget (defined by themes). */ echo $before_widget; if($title) echo $before_title . $title . $after_title; /* Display the widget title if one was input (before and after defined by themes). */ ?>