p =& $plugin; if ( $this->p->debug->enabled ) { $this->p->debug->mark(); } $this->menu_id = $id; $this->menu_name = $name; $this->menu_lib = $lib; $this->menu_ext = $ext; $this->menu_metaboxes = array( 'addons' => _x( 'Free Plugin Add-ons', 'metabox title', 'wpsso' ), ); } /* * Remove all action buttons. */ protected function add_form_buttons( &$form_button_rows ) { $form_button_rows = array(); } /* * Callback method must be public for add_meta_box() hook. * * See WpssoAdmin->add_settings_page_metaboxes(). */ public function show_metabox_addons( $obj, $mb ) { if ( $this->p->debug->enabled ) { $this->p->debug->mark(); } $ext_sorted = WpssoConfig::get_ext_sorted(); unset( $ext_sorted[ $this->p->id ] ); $tabindex = 0; $ext_num = 0; $ext_total = count( $ext_sorted ); $pkg_info = $this->p->util->get_pkg_info(); // Uses a local cache. $charset = get_bloginfo( $show = 'charset', $filter = 'raw' ); $icon_px = 100; echo '