PluginProbe
Elementor Website Builder – more than just a page builder / 3.28.0-dev1
Elementor Website Builder – more than just a page builder v3.28.0-dev1
4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 All 452 releases
elementor / modules / page-templates / templates / canvas.php

canvas.php in Elementor Website Builder – more than just a page builder 3.28.0-dev1, at modules/page-templates/templates/canvas.php

54 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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