PluginProbe
Elementor Website Builder – more than just a page builder / 3.0.3
Elementor Website Builder – more than just a page builder v3.0.3
4.3.1 4.3.0 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 All 454 releases
← All changes | modules/page-templates/templates/canvas.php +4 -9 4.3.1 → 3.0.3 View file →
@@ -1,8 +1,6 @@
1 1 <?php
2 2
3 -use Elementor\Utils;
4 -
5 3 if ( ! defined( 'ABSPATH' ) ) {
6 4 exit; // Exit if accessed directly.
7 5 }
8 6
@@ -13,21 +11,20 @@
13 11 <html <?php language_attributes(); ?>>
14 12 <head>
15 13 <meta charset="<?php bloginfo( 'charset' ); ?>">
16 14 <?php if ( ! current_theme_supports( 'title-tag' ) ) : ?>
17 - <title><?php echo wp_get_document_title(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></title>
15 + <title><?php echo wp_get_document_title(); ?></title>
18 16 <?php endif; ?>
19 17 <?php wp_head(); ?>
20 18 <?php
21 19
22 20 // 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' ) );
21 + echo \Elementor\Utils::get_meta_viewport( 'canvas' );
24 22 ?>
25 23 </head>
26 24 <body <?php body_class(); ?>>
27 25 <?php
28 - wp_body_open();
29 -
26 + Elementor\Modules\PageTemplates\Module::body_open();
30 27 /**
31 28 * Before canvas page template content.
32 29 *
33 30 * Fires before the content of Elementor canvas page template.
@@ -35,11 +32,9 @@
35 32 * @since 1.0.0
36 33 */
37 34 do_action( 'elementor/page_templates/canvas/before_content' );
38 35
39 - $module = apply_filters( 'elementor/render_mode/module', 'page-templates' );
40 -
41 - \Elementor\Plugin::$instance->modules_manager->get_modules( $module )->print_content();
36 + \Elementor\Plugin::$instance->modules_manager->get_modules( 'page-templates' )->print_content();
42 37
43 38 /**
44 39 * After canvas page template content.
45 40 *