/** * (non-PHPdoc) * @see WP_Widget::widget() */ public function widget($args, $instance) { echo $args['before_widget']; try { $this->_displayWidget($args, $instance); } catch (Exception $e) { $this->_pm->handleException($e); } echo $args['after_widget']; }