| 1 |
<?php |
| 2 |
/* |
| 3 |
* License: GPLv3 |
| 4 |
* License URI: https://www.gnu.org/licenses/gpl.txt |
| 5 |
* Copyright 2020-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( 'WpssoEdit' ) ) { |
| 19 |
|
| 20 |
class WpssoEdit { |
| 21 |
|
| 22 |
private $p; // Wpsso class object. |
| 23 |
private $general; // WpssoEditGeneral class object. |
| 24 |
private $media; // WpssoEditMedia class object. |
| 25 |
private $prev; // WpssoEditPrev class object. |
| 26 |
private $schema; // WpssoEditSchema class object. |
| 27 |
private $validators; // WpssoEditValidators class object. |
| 28 |
private $visibility; // WpssoEditVisibility class object. |
| 29 |
|
| 30 |
public function __construct( &$plugin ) { |
| 31 |
|
| 32 |
$this->p =& $plugin; |
| 33 |
|
| 34 |
if ( $this->p->debug->enabled ) { |
| 35 |
|
| 36 |
$this->p->debug->mark(); |
| 37 |
} |
| 38 |
|
| 39 |
require_once WPSSO_PLUGINDIR . 'lib/edit-general.php'; |
| 40 |
|
| 41 |
$this->general = new WpssoEditGeneral( $this->p ); |
| 42 |
|
| 43 |
require_once WPSSO_PLUGINDIR . 'lib/edit-media.php'; |
| 44 |
|
| 45 |
$this->media = new WpssoEditMedia( $this->p ); |
| 46 |
|
| 47 |
require_once WPSSO_PLUGINDIR . 'lib/edit-prev.php'; |
| 48 |
|
| 49 |
$this->prev = new WpssoEditPrev( $this->p ); |
| 50 |
|
| 51 |
if ( ! empty( $this->p->avail[ 'p' ][ 'schema' ] ) ) { |
| 52 |
|
| 53 |
require_once WPSSO_PLUGINDIR . 'lib/edit-schema.php'; |
| 54 |
|
| 55 |
$this->schema = new WpssoEditSchema( $this->p ); |
| 56 |
} |
| 57 |
|
| 58 |
require_once WPSSO_PLUGINDIR . 'lib/edit-validators.php'; |
| 59 |
|
| 60 |
$this->validators = new WpssoEditValidators( $this->p ); |
| 61 |
|
| 62 |
require_once WPSSO_PLUGINDIR . 'lib/edit-visibility.php'; |
| 63 |
|
| 64 |
$this->visibility = new WpssoEditVisibility( $this->p ); |
| 65 |
} |
| 66 |
} |
| 67 |
} |
| 68 |
|