block-based-templates
1 year ago
styles
4 years ago
customizer-options.php
1 year ago
editor-hooks.php
1 year ago
fallback-compatibility.php
4 years ago
front-page.html
2 years ago
frontend-hooks.php
1 year ago
preview.php
4 years ago
templates-importer.php
1 year ago
templates.php
1 year ago
third-party-themes.php
1 year ago
third-party-themes.php
26 lines
| 1 | <?php |
| 2 | |
| 3 | use IlluminateAgnostic\Arr\Support\Arr; |
| 4 | |
| 5 | if ( ! defined( 'KUBIO_3RD_PARTY_THEME_EDITOR_QUERY_PARAM' ) ) { |
| 6 | define( 'KUBIO_3RD_PARTY_THEME_EDITOR_QUERY_PARAM', '__kubio-site-edit-iframe-preview' ); |
| 7 | } |
| 8 | |
| 9 | if ( ! defined( 'KUBIO_3RD_PARTY_DEFAULT_TEMPLATES_PATH' ) ) { |
| 10 | define( 'KUBIO_3RD_PARTY_DEFAULT_TEMPLATES_PATH', KUBIO_ROOT_DIR . '/lib/integrations/third-party-themes/block-based-templates' ); |
| 11 | } |
| 12 | |
| 13 | function kubio_is_hybdrid_theme_iframe_preview() { |
| 14 | // phpcs:ignore WordPress.Security.NonceVerification.Recommended |
| 15 | return Arr::has( $_REQUEST, '__kubio-site-edit-iframe-preview' ); |
| 16 | } |
| 17 | |
| 18 | |
| 19 | require_once __DIR__ . '/fallback-compatibility.php'; |
| 20 | require_once __DIR__ . '/templates.php'; |
| 21 | require_once __DIR__ . '/customizer-options.php'; |
| 22 | require_once __DIR__ . '/editor-hooks.php'; |
| 23 | require_once __DIR__ . '/frontend-hooks.php'; |
| 24 | require_once __DIR__ . '/templates-importer.php'; |
| 25 | require_once __DIR__ . '/preview.php'; |
| 26 |