PluginProbe
WPSSO Core – Complete Schema Markup and Meta Tags / 22.7.0
WPSSO Core – Complete Schema Markup and Meta Tags v22.7.0
22.7.0 22.6.1 22.6.0 22.5.3 22.5.2 22.5.1 22.4.0 22.3.0 22.2.1 22.2.0 22.1.3 22.1.2 22.1.1 22.1.0 22.0.0 21.13.3 21.13.2 trunk 21.13.1
wpsso / lib / sitesubmenu / site-advanced.php

site-advanced.php in WPSSO Core – Complete Schema Markup and Meta Tags 22.7.0, at lib/sitesubmenu/site-advanced.php

82 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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( 'WpssoSubmenuAdvanced' ) ) {
19
20 require_once WPSSO_PLUGINDIR . 'lib/submenu/advanced.php';
21 }
22
23 if ( ! class_exists( 'WpssoSiteSubmenuSiteAdvanced' ) && class_exists( 'WpssoSubmenuAdvanced' ) ) {
24
25 class WpssoSiteSubmenuSiteAdvanced extends WpssoSubmenuAdvanced {
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 'plugin' => _x( 'Plugin Settings', 'metabox title', 'wpsso' ),
43 );
44 }
45
46 /*
47 * See WpssoAdmin->get_form_object().
48 */
49 protected function set_form_object( $menu_ext ) {
50
51 if ( $this->p->debug->enabled ) {
52
53 $this->p->debug->log( 'setting site form object for ' . $menu_ext );
54 }
55
56 $def_site_opts = $this->p->opt->get_site_defaults();
57
58 $this->form = new SucomForm( $this->p, WPSSO_SITE_OPTIONS_NAME, $this->p->site_options, $def_site_opts, $menu_ext );
59 }
60
61 /*
62 * Callback method must be public for add_meta_box() hook.
63 *
64 * See WpssoAdmin->add_settings_page_metaboxes().
65 */
66 public function show_metabox_plugin( $obj, $mb ) {
67
68 if ( $this->p->debug->enabled ) {
69
70 $this->p->debug->mark();
71 }
72
73 $tabs = array(
74 'settings' => _x( 'Plugin Admin', 'metabox tab', 'wpsso' ),
75 'integration' => _x( 'Integration', 'metabox tab', 'wpsso' ),
76 );
77
78 $this->show_metabox_tabbed( $obj, $mb, $tabs );
79 }
80 }
81 }
82