/** * Meta Box: Extra Settings */ public function call_box_admin_settings() { echo $this->form->set_current_option('screen')->open_form(); ?> <fieldset class="options"> <table class="form-table"> <tr> <th><?php $this->_e('Admin menu position'); ?> <?php echo $this->tooltip_help('Change the menu position of this plugin in "Screen Options".'); ?> </th> <td><label> <?php echo $this->form->select('menu_position', array('admin.php' => 'Main menu', 'index.php' => $this->__('Subitem of Dashboard'), 'edit.php' => $this->__('Subitem of Posts'), 'upload.php' => $this->__('Subitem of Media'), 'link-manager.php' => $this->__('Subitem of Links'), 'edit.php?post_type=page' => $this->__('Subitem of Pages'), 'edit-comments.php' => $this->__('Subitem of Comments'), 'themes.php' => $this->__('Subitem of Appearance'), 'plugins.php' => $this->__('Subitem of Plugins'), 'users.php' => $this->__('Subitem of Users'), 'tools.php' => $this->__('Subitem of Tools'), 'options-general.php' => $this->__('Subitem of Settings'))); ?> </label></td> </tr> </table> </fieldset> <?php echo $this->form->submit(); echo $this->form->close_form(); }
/** * Screen settings * @param string $content * @return string */ public function call_screen_settings( $content ) { $content .= '<h5>'. $this->__( 'Menu Setting' ) .'</h5>' . "\n"; $content .= '<div class="extra-prfs">' . "\n"; $content .= $this->__( 'Admin menu position' ) . ': ' . "\n"; $content .= $this->form->open_screen_option( 'screen', 'menu_position' ); $content .= $this->form->select( 'menu_position', array( 'admin.php' => 'Main menu', 'index.php' => $this->__( 'Subitem of Dashboard' ), 'edit.php' => $this->__( 'Subitem of Posts' ), 'upload.php' => $this->__( 'Subitem of Media' ), 'link-manager.php' => $this->__( 'Subitem of Links' ), 'edit.php?post_type=page' => $this->__( 'Subitem of Pages' ), 'edit-comments.php' => $this->__( 'Subitem of Comments' ), 'themes.php' => $this->__( 'Subitem of Appearance' ), 'plugins.php' => $this->__( 'Subitem of Plugins' ), 'users.php' => $this->__( 'Subitem of Users' ), 'tools.php' => $this->__( 'Subitem of Tools' ), 'options-general.php' => $this->__( 'Subitem of Settings' ), )) . "\n"; $content .= '</div>' . "\n"; return $content; }