PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 3.2.6
ShopBuilder – WooCommerce Builder For Elementor v3.2.6
3.4.2 3.4.1 3.4.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 All 63 releases
shopbuilder / page-templates / elementor-canvas.php

elementor-canvas.php in ShopBuilder – WooCommerce Builder For Elementor 3.2.6, at page-templates/elementor-canvas.php

54 lines 1.7 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 use RadiusTheme\SB\Helpers\BuilderFns;
5 use RadiusTheme\SB\Helpers\Fns;
6
7 if ( ! defined( 'ABSPATH' ) ) {
8 exit; // Exit if accessed directly.
9 }
10
11 do_action( 'rtsb/builder/before/header' );
12
13 ?>
14 <!DOCTYPE html>
15 <html <?php language_attributes(); ?>>
16 <head>
17 <meta charset="<?php bloginfo( 'charset' ); ?>">
18 <?php if ( ! current_theme_supports( 'title-tag' ) ) : ?>
19 <title><?php echo wp_get_document_title(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></title>
20 <?php endif; ?>
21 <?php wp_head(); ?>
22 <?php
23 // Keep the following line after `wp_head()` call, to ensure it's not overridden by another templates.
24 Utils::print_unescaped_internal_string( Utils::get_meta_viewport( 'canvas' ) );
25 ?>
26 </head>
27 <body <?php body_class(); ?>>
28 <?php
29 wp_body_open();
30 $parent_class = apply_filters( 'rtsb/builder/wrapper/parent_class', [] );
31 $type = apply_filters( 'rtsb/builder/set/current/page/type', '' ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
32 do_action( 'rtsb/builder/after/header' );
33 if ( Fns::content_invisible() ) {
34 $parent_class[] = 'content-invisible';
35 }
36 ?>
37 <div id="rtsb-builder-content" class="rtsb-builder-content <?php echo esc_attr( implode( ' ', $parent_class ) ); ?>">
38 <?php
39 do_action( 'rtsb/builder/template/before/content' );
40 if ( is_singular( BuilderFns::$post_type_tb ) && 'elementor' === Fns::page_edit_with( get_the_ID() ) ) {
41 the_content();
42 } else {
43 do_action( 'rtsb/builder/template/main/content' );
44 }
45 do_action( 'rtsb/builder/template/after/content' );
46 ?>
47 </div>
48 <?php
49 do_action( 'rtsb/builder/before/footer' );
50 wp_footer();
51 ?>
52 </body>
53 </html>
54