HEX
Server: LiteSpeed
System: Linux server240.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
User: creaqbdc (8964)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: //proc/self/cwd/wp-content/plugins/essential-blocks/includes/Utils/TemplateHelpers.php
<?php
    namespace EssentialBlocks\Utils;

    // Exit if accessed directly.
    if ( ! defined( 'ABSPATH' ) ) {
        exit;
    }
    class TemplateHelpers {

        /**
         * EB Template: Header Area
         */
        public static function eb_template_header() {
            if ( function_exists( 'wp_is_block_theme' ) && wp_is_block_theme() ) {
            ?>
			<!doctype html>
			<html			     			     			     			     			     			     			     			                                                                                                                                                               <?php language_attributes();?>>

			<head>
				<meta charset="<?php bloginfo( 'charset' );?>">
				<?php wp_head();?>
			</head>

			<body			     			     			     			     			     			     			     			                                                                                                                                                               <?php body_class();?>>
			<?php
                wp_body_open();

                            block_header_area();
                        } else {
                            get_header();
                        }
                    }

                    /**
                     * EB Template: Footer Area
                     */
                    public static function eb_template_footer() {
                        if ( function_exists( 'wp_is_block_theme' ) && wp_is_block_theme() ) {
                            block_footer_area();

                            wp_footer();

                            echo '</body></html>';
                        } else {
                            get_footer();
                        }
                    }

                    /**
                     * Make request header
                     *
                     * @param array $headers
                     * @return array
                     */
                    public static function makeRequestHeader( $headers = [] ) {
                        return [
                            'headers' => $headers
                        ];
                    }
            }