| @@ -1,0 +1,52 @@ | ||
| 1 | +<?php | |
| 2 | +/* | |
| 3 | + * License: GPLv3 | |
| 4 | + * License URI: https://www.gnu.org/licenses/gpl.txt | |
| 5 | + * Copyright 2012-2026 Jean-Sebastien Morisset (https://wpsso.com/) | |
| 6 | + */ | |
| 7 | + | |
| 8 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 9 | + | |
| 10 | + die( 'These aren\'t the droids you\'re looking for.' ); | |
| 11 | +} | |
| 12 | + | |
| 13 | +if ( ! defined( 'WPSSO_PLUGINDIR' ) ) { | |
| 14 | + | |
| 15 | + die( 'Do. Or do not. There is no try.' ); | |
| 16 | +} | |
| 17 | + | |
| 18 | +if ( ! class_exists( 'WpssoSubmenuGeneral' ) ) { | |
| 19 | + | |
| 20 | + require_once WPSSO_PLUGINDIR . 'lib/submenu/general.php'; | |
| 21 | +} | |
| 22 | + | |
| 23 | +if ( ! class_exists( 'WpssoSubmenuEssential' ) && class_exists( 'WpssoSubmenuGeneral' ) ) { | |
| 24 | + | |
| 25 | + class WpssoSubmenuEssential extends WpssoSubmenuGeneral { | |
| 26 | + | |
| 27 | + public function __construct( &$plugin, $id, $name, $lib, $ext ) { | |
| 28 | + | |
| 29 | + $this->p =& $plugin; | |
| 30 | + | |
| 31 | + if ( $this->p->debug->enabled ) { | |
| 32 | + | |
| 33 | + $this->p->debug->mark(); | |
| 34 | + } | |
| 35 | + | |
| 36 | + $this->menu_id = $id; | |
| 37 | + $this->menu_name = $name; | |
| 38 | + $this->menu_lib = $lib; | |
| 39 | + $this->menu_ext = $ext; | |
| 40 | + | |
| 41 | + $this->menu_metaboxes = array( | |
| 42 | + 'settings' => _x( 'Essential Settings', 'metabox title', 'wpsso' ), | |
| 43 | + ); | |
| 44 | + } | |
| 45 | + | |
| 46 | + /* | |
| 47 | + * Remove the "Change to View" button from this settings page. | |
| 48 | + */ | |
| 49 | + protected function add_form_buttons_change_show_options( &$form_button_rows ) { | |
| 50 | + } | |
| 51 | + } | |
| 52 | +} | |