-
Notifications
You must be signed in to change notification settings - Fork 0
/
wpop-example-panel.php
49 lines (42 loc) · 1.55 KB
/
wpop-example-panel.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/**
* WPOP Example Panel
*
* @wordpress-plugin
* @package Wpop_example_panel
* @author David Ryan - WordPress Phoenix
* @license GNU GPL v2.0+
* @link https://github.com/wordpress-phoenix
* @version 2.0.0
*
* Built with WP PHX WordPress Development Toolkit v3.0.0 on Sunday 8th of April 2018 05:54:29 PM
* @link https://github.com/WordPress-Phoenix/wordpress-development-toolkit
*
* Plugin Name: WPOP Example Panel
* Plugin URI: https://github.com/wordpress-phoenix
* Description: Examples of implementing the WPOP class as options and metadata fields.
* Version: 2.0.0
* Author: David Ryan - WordPress Phoenix
* Text Domain: wpop-example-panel
* License: GNU GPL v2.0+
*/
defined( 'ABSPATH' ) or die(); // WordPress must exist.
$current_dir = trailingslashit( dirname( __FILE__ ) );
/**
* 3RD PARTY DEPENDENCIES
* (manually include_once dependencies installed via composer for safety)
*/
if ( ! class_exists( '\\WPAZ_Plugin_Base\\V_2_6\\Abstract_Plugin' ) ) {
include_once $current_dir . 'lib/wordpress-phoenix/abstract-plugin-base/src/abstract-plugin.php';
}
if ( ! class_exists( '\\Parsedown' ) ) {
include_once $current_dir . 'lib/erusev/parsedown/Parsedown.php';
}
if ( ! class_exists( '\\WPOP\\V_4_1\\Panel' ) ) {
include_once $current_dir . 'lib/wordpress-phoenix/wordpress-options-builder-class/src/wordpress-options-panels.php';
}
/**
* INTERNAL DEPENDENCIES (autoloader defined in main plugin class)
*/
include_once $current_dir . 'app/class-plugin.php';
WordPressPhoenix\WPOP_Example\Plugin::run( __FILE__ );