| @@ -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 | * |