| 1 |
<?php |
| 2 |
|
| 3 |
use Elementor\Utils; |
| 4 |
|
| 5 |
if ( ! defined( 'ABSPATH' ) ) { |
| 6 |
exit; // Exit if accessed directly. |
| 7 |
} |
| 8 |
|
| 9 |
\Elementor\Plugin::$instance->frontend->add_body_class( 'elementor-template-canvas' ); |
| 10 |
|
| 11 |
?> |
| 12 |
<!DOCTYPE html> |
| 13 |
<html <?php language_attributes(); ?>> |
| 14 |
<head> |
| 15 |
<meta charset="<?php bloginfo( 'charset' ); ?>"> |
| 16 |
<?php if ( ! current_theme_supports( 'title-tag' ) ) : ?> |
| 17 |
<title><?php echo wp_get_document_title(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></title> |
| 18 |
<?php endif; ?> |
| 19 |
<?php wp_head(); ?> |
| 20 |
<?php |
| 21 |
|
| 22 |
// Keep the following line after `wp_head()` call, to ensure it's not overridden by another templates. |
| 23 |
Utils::print_unescaped_internal_string( Utils::get_meta_viewport( 'canvas' ) ); |
| 24 |
?> |
| 25 |
</head> |
| 26 |
<body <?php body_class(); ?>> |
| 27 |
<?php |
| 28 |
wp_body_open(); |
| 29 |
|
| 30 |
/** |
| 31 |
* Before canvas page template content. |
| 32 |
* |
| 33 |
* Fires before the content of Elementor canvas page template. |
| 34 |
* |
| 35 |
* @since 1.0.0 |
| 36 |
*/ |
| 37 |
do_action( 'elementor/page_templates/canvas/before_content' ); |
| 38 |
|
| 39 |
\Elementor\Plugin::$instance->modules_manager->get_modules( 'page-templates' )->print_content(); |
| 40 |
|
| 41 |
/** |
| 42 |
* After canvas page template content. |
| 43 |
* |
| 44 |
* Fires after the content of Elementor canvas page template. |
| 45 |
* |
| 46 |
* @since 1.0.0 |
| 47 |
*/ |
| 48 |
do_action( 'elementor/page_templates/canvas/after_content' ); |
| 49 |
|
| 50 |
wp_footer(); |
| 51 |
?> |
| 52 |
</body> |
| 53 |
</html> |
| 54 |
|