canvas.php
52 lines
| 1 | <?php |
| 2 | |
| 3 | if ( ! defined( 'ABSPATH' ) ) { |
| 4 | exit; // Exit if accessed directly. |
| 5 | } |
| 6 | |
| 7 | global $post; |
| 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 esc_html(wp_get_document_title()); ?></title> |
| 18 | <?php endif; ?> |
| 19 | <?php wp_head(); ?> |
| 20 | <?php |
| 21 | // Keep the following line after `wp_head()` call, to ensure it's not overridden by another templates. |
| 22 | ?> |
| 23 | <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" /> |
| 24 | </head> |
| 25 | <body <?php body_class(); auxin_dom_attributes( 'body' ); ?>> |
| 26 | <?php |
| 27 | do_action( "auxin_after_body_open", $post ); |
| 28 | /** |
| 29 | * Before canvas page template content. |
| 30 | * |
| 31 | * Fires before the content of Elementor canvas page template. |
| 32 | * |
| 33 | * @since 1.0.0 |
| 34 | */ |
| 35 | do_action( 'elementor/page_templates/canvas/before_content' ); |
| 36 | |
| 37 | \Elementor\Plugin::instance()->modules_manager->get_modules( 'page-templates' )->print_content(); |
| 38 | |
| 39 | /** |
| 40 | * After canvas page template content. |
| 41 | * |
| 42 | * Fires after the content of Elementor canvas page template. |
| 43 | * |
| 44 | * @since 1.0.0 |
| 45 | */ |
| 46 | do_action( 'elementor/page_templates/canvas/after_content' ); |
| 47 | |
| 48 | wp_footer(); |
| 49 | ?> |
| 50 | </body> |
| 51 | </html> |
| 52 |