HEX
Server: Apache
System: Linux www 5.10.0-10-amd64 #1 SMP Debian 5.10.84-1 (2021-12-08) x86_64
User: root (0)
PHP: 8.2.1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals
Upload Files
File: /mnt/drbd/www/edenhouse/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
                        ];
                    }
            }