HEX
Server: Apache/2.4.41
System: Linux mainweb 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC 2024 x86_64
User: nationalmedicaregrp (1119)
PHP: 8.3.7
Disabled: exec,passthru,shell_exec,system,popen,proc_open,pcntl_exec
Upload Files
File: /home/flbestac/public_html/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
                        ];
                    }
            }