-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedwbasic-suite.php
More file actions
48 lines (37 loc) · 1.52 KB
/
edwbasic-suite.php
File metadata and controls
48 lines (37 loc) · 1.52 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
44
45
46
47
48
<?php
/**
* Plugin Name: EDWBasic Suite
* Description: EDW baseline content + settings for landing/services pages.
* Version: 1.0.1
*/
defined('ABSPATH') || exit;
define('EDW_DIR', plugin_dir_path(__FILE__));
define('EDW_URL', plugin_dir_url(__FILE__));
// 1) Core definitions (slugs, option names, toggles)
require_once EDW_DIR . 'includes/defines.php';
// 2) Choose one storage backend (toggle via constant in defines.php)
// - Option UI (settings page) OR Singleton CPT “page storage”
// if (defined('EDW_USE_PAGE_STORAGE') && EDW_USE_PAGE_STORAGE) {
require_once EDW_DIR . 'includes/storage-page.php';
// } else {
require_once EDW_DIR . 'includes/storage-option.php';
// }
require_once EDW_DIR . 'includes/storage-builtin-page.php';
// 3) Admin menu (points to settings screen or redirects to singleton post editor)
require_once EDW_DIR . 'includes/admin-menu.php';
// 4) Media frame (upload/select hero background) – admin only
if (is_admin()) {
require_once EDW_DIR . 'includes/admin-media.php';
}
// 5) Optional: register any CPTs you want (e.g., Services)
require_once EDW_DIR . 'includes/cpt-services.php';
// 6) Payload helpers used by your templates
require_once EDW_DIR . 'includes/payload.php';
// 7) Dev helpers (safe to leave; gated by WP_DEBUG)
if (defined('WP_DEBUG') && WP_DEBUG) {
@require_once EDW_DIR . 'includes/utils-debug.php';
}
// 8) Shortcodes
require_once EDW_DIR . 'includes/shortcodes.php';
// require_once __DIR__ . '/includes/acf-groups.php';
require_once __DIR__ . '/includes/shortcode-steps.php';