-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwpop-init.php
More file actions
executable file
·43 lines (38 loc) · 1.29 KB
/
Copy pathwpop-init.php
File metadata and controls
executable file
·43 lines (38 loc) · 1.29 KB
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
<?php
/**
* [WPOP] WordPress Phoenix Options Panel - Field Builder Classes
*
* @authors 🌵 WordPress Phoenix 🌵 / Seth Carstens, David Ryan
* @package wpop
* @version 3.1.0
* @license GPL-2.0+ - please retain comments that express original build of this file by the author.
*/
/**
* Some tips:
* * Panel + Page work together to register panel, create wordpress admin page.
* * The resulting Panel supports tabbed Sections.
* * Sections contain Parts (which are either inputs or non-data display values)
*/
if ( ! function_exists( 'add_filter' ) ) { // avoid direct calls to file
header( 'Status: 403 Forbidden' );
header( 'HTTP/1.1 403 Forbidden' );
exit();
}
// data api wrappers
require_once 'inc/api/class-read.php';
require_once 'inc/api/class-update.php';
// base part
require_once 'inc/class-part.php';
// core files
require_once 'inc/class-assets.php';
require_once 'inc/class-section.php';
require_once 'inc/class-panel.php';
require_once 'inc/class-page.php';
// must require base input class first because others extend
require_once 'inc/parts/class-input.php';
foreach ( glob( trailingslashit( dirname( __FILE__ ) ) . 'inc/parts/class-*.php' ) as $file ) {
if ( false !== stripos( $file, 'inc/parts/class-input.php' ) ) {
continue; // already included above
}
require_once $file;
}