public function widget($args, $instance) { $title = apply_filters('widget_title', $instance['title']); echo $args['before_widget']; if (!empty($title)) { echo $args['before_title'] . $title . $args['after_title']; } $oFeed = new JDFeed(); $oFeed->display(array('id' => $instance['queue_id'])); echo $args['after_widget']; }
public function displayFeed($aAttributes) { $oFeedController = new JDfeed(); $oFeedController->display($aAttributes); }