/** * Register the link-list widget if not on the root blog. * * @access private * @since 0.2 */ public function _register_widget() { if (!ClassBlogs_Utils::is_root_blog()) { $uid = $this->get_uid(); nxt_register_sidebar_widget($uid, $this->get_option('title'), array($this, '_render_link_list'), array('classname' => $uid)); } }
/** Helper function: Registers a single instance. */ function _register_one($number = -1) { nxt_register_sidebar_widget($this->id, $this->name, $this->_get_display_callback(), $this->widget_options, array('number' => $number)); _register_widget_update_callback($this->id_base, $this->_get_update_callback(), $this->control_options, array('number' => -1)); _register_widget_form_callback($this->id, $this->name, $this->_get_form_callback(), $this->control_options, array('number' => $number)); }