| @@ -15,31 +15,35 @@ | ||
| 15 | 15 | |
| 16 | 16 | do_action( 'rtsb/builder/before/header' ); |
| 17 | 17 | |
| 18 | 18 | if ( Fns::check_is_block_theme() ) { ?> |
| 19 | - <!doctype html> | |
| 20 | - <html <?php language_attributes(); ?>> | |
| 21 | - <head> | |
| 22 | - <meta charset="<?php bloginfo( 'charset' ); ?>"> | |
| 23 | - <?php wp_head(); ?> | |
| 24 | - </head> | |
| 25 | - <body <?php body_class(); ?>> | |
| 26 | - <?php wp_body_open(); ?> | |
| 27 | - <div class="wp-site-blocks"> | |
| 28 | - <?php | |
| 29 | - echo do_blocks( '<!-- wp:template-part {"slug":"header","theme":"' . esc_attr( rtsb()->current_theme ) . '","tagName":"header","className":"site-header"} /-->' ); | |
| 19 | + <!doctype html> | |
| 20 | + <html <?php language_attributes(); ?>> | |
| 21 | + <head> | |
| 22 | + <meta charset="<?php bloginfo( 'charset' ); ?>"> | |
| 23 | + <?php wp_head(); ?> | |
| 24 | + </head> | |
| 25 | + <body <?php body_class(); ?>> | |
| 26 | + <?php wp_body_open(); ?> | |
| 27 | + <div class="wp-site-blocks"> | |
| 28 | + <?php | |
| 29 | + Fns::print_html( do_blocks( '<!-- wp:template-part {"slug":"header","theme":"' . esc_attr( rtsb()->current_theme ) . '","tagName":"header","className":"site-header"} /-->' ), true ); | |
| 30 | 30 | } else { |
| 31 | - get_header( 'shop' ); | |
| 31 | + get_header( 'shop' ); | |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | +$parent_class = apply_filters( 'rtsb/builder/wrapper/parent_class', [] ); | |
| 35 | +$type = apply_filters( 'rtsb/builder/set/current/page/type', '' ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited | |
| 34 | 36 | |
| 35 | -$parent_class = apply_filters( 'rtsb/builder/wrapper/parent_class', [] ); | |
| 37 | +do_action( 'rtsb/builder/after/header' ); | |
| 38 | +if ( Fns::content_invisible() ) { | |
| 39 | + $parent_class[] = 'content-invisible'; | |
| 40 | +} | |
| 36 | 41 | ?> |
| 37 | -<div id="rtsb-builder-content" class="rtsb-builder-content content-invisible <?php echo esc_attr( implode( ' ', $parent_class ) ); ?>"> | |
| 42 | +<div id="rtsb-builder-content" class="rtsb-builder-content <?php echo esc_attr( implode( ' ', $parent_class ) ); ?>"> | |
| 38 | 43 | <?php |
| 39 | 44 | do_action( 'rtsb/builder/template/before/content' ); |
| 40 | 45 | if ( is_singular( BuilderFns::$post_type_tb ) && 'elementor' === Fns::page_edit_with( get_the_ID() ) ) { |
| 41 | - // \Elementor\Plugin::$instance->modules_manager->get_modules( 'page-templates' )->print_content(); | |
| 42 | 46 | the_content(); |
| 43 | 47 | } else { |
| 44 | 48 | do_action( 'rtsb/builder/template/main/content' ); |
| 45 | 49 | } |
| @@ -49,12 +53,12 @@ | ||
| 49 | 53 | <?php |
| 50 | 54 | do_action( 'rtsb/builder/before/footer' ); |
| 51 | 55 | |
| 52 | 56 | if ( Fns::check_is_block_theme() ) { |
| 53 | - echo do_blocks( '<!-- wp:template-part {"slug":"footer","theme":"' . esc_attr( rtsb()->current_theme ) . '","tagName":"footer","className":"site-footer"} /-->' ); | |
| 54 | - echo '</div>'; | |
| 55 | - wp_footer(); | |
| 56 | - echo '</body>'; | |
| 57 | - echo '</html>'; | |
| 57 | + Fns::print_html( do_blocks( '<!-- wp:template-part {"slug":"footer","theme":"' . esc_attr( rtsb()->current_theme ) . '","tagName":"footer","className":"site-footer"} /-->' ), true ); | |
| 58 | + echo '</div>'; | |
| 59 | + wp_footer(); | |
| 60 | + echo '</body>'; | |
| 61 | + echo '</html>'; | |
| 58 | 62 | } else { |
| 59 | - get_footer( 'shop' ); | |
| 63 | + get_footer( 'shop' ); | |
| 60 | 64 | } |