function widget($args, $instance) { extract($args); /* Our variables from the widget settings --------------------------------------- */ $title = apply_filters('widget_title', $instance['title']); $flickrID = $instance['flickrID']; $postcount = $instance['postcount']; $type = $instance['type']; $display = $instance['display']; /* Build our output ------------------------------------------------------------- */ echo $before_widget; if ($title) { echo $before_title . $title . $after_title; } if (class_exists('bj_template')) { bj_template::flickr_badge($flickrID, $postcount, $display, $type); } echo $after_widget; }