HEX
Server: nginx/1.18.0
System: Linux vcwordpress 5.15.0-174-generic #184-Ubuntu SMP Fri Mar 13 18:41:50 UTC 2026 x86_64
User: root (0)
PHP: 7.4.33
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,pcntl_unshare,
Upload Files
File: /var/www/newfaith.focalat.com/new-faith/wp-content/themes/christian/index.php
<?php
/**
 * The site's entry point.
 *
 * loads the relevant template part,
 * the loop is executed (when needed) by the relevant template part.
 */

use ChristianSpace\TemplateFunctions\Main_Elements;

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

get_header();

$is_elementor_template_exist = function_exists( 'cmsmasters_template_do_location' );
$is_elementor_theme_exist = function_exists( 'elementor_theme_do_location' );

if ( is_singular() ) {
	if (
		( ! $is_elementor_template_exist || ! cmsmasters_template_do_location( 'singular' ) ) &&
		( ! $is_elementor_theme_exist || ! elementor_theme_do_location( 'single' ) )
	) {
		echo Main_Elements::main_wrapper_start();

		if ( is_page() ) {
			get_template_part( 'template-parts/page' );
		} elseif ( is_single() ) {
			get_template_part( 'template-parts/single' );
		}

		echo Main_Elements::main_wrapper_end();
	}
} elseif ( is_archive() || is_home() || is_search() ) {
	if (
		( ! $is_elementor_template_exist || ! cmsmasters_template_do_location( 'archive' ) ) &&
		( ! $is_elementor_theme_exist || ! elementor_theme_do_location( 'archive' ) )
	) {
		echo Main_Elements::main_wrapper_start();

		get_template_part( 'template-parts/archive' );

		echo Main_Elements::main_wrapper_end();
	}
} else {
	if (
		( ! $is_elementor_template_exist || ! cmsmasters_template_do_location( 'singular' ) ) &&
		( ! $is_elementor_theme_exist || ! elementor_theme_do_location( 'single' ) )
	) {
		echo Main_Elements::main_wrapper_start();

		get_template_part( 'template-parts/404' );

		echo Main_Elements::main_wrapper_end();
	}
}

get_footer();