-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathindex.php
More file actions
56 lines (42 loc) · 1.34 KB
/
index.php
File metadata and controls
56 lines (42 loc) · 1.34 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
49
50
51
52
53
54
55
56
<?php
/**
* Integrations
*
* Each one should load conditionally when dependencies are met
*/
// ACF integration is loaded earlier by /template for backward compatibility
require_once __DIR__ . '/advanced-custom-fields/index.php';
// Tangible Fields
require_once __DIR__ . '/tangible-fields/index.php';
/**
* Page builders
*/
require_once __DIR__ . '/gutenberg/index.php';
require_once __DIR__ . '/beaver/index.php';
require_once __DIR__ . '/elementor/index.php';
require_once __DIR__ . '/wp-grid-builder/index.php';
/**
* Template preview state
*
* All builders must call the following when inside the builder, so we can
* apply preview-specific workarounds such as disabling the Redirect tag.
*
* @see ./beaver/index.php
* @see ./elementor/index.php
* @see ./gutenberg/index.php
*/
$plugin->set_template_preview_state = function( $yes ) use ( $plugin, $html ) {
// Once set to true, it applies to entire page
if ($plugin->is_template_preview || ! $yes) return;
$plugin->is_template_preview = true;
// Prepare for preview
$html->disable_redirect_tag = true;
};
$plugin->is_template_preview = false;
/**
* Third-party plugin integration API
*/
require_once __DIR__ . '/third-party/index.php';
require_once __DIR__ . '/wp-fusion/index.php';
do_action( 'tangible_template_integrations_ready' );
require_once __DIR__ . '/themes/index.php';