HEX
Server: LiteSpeed
System: Linux sv01.secureweb.vn 4.18.0-553.16.1.el8_10.x86_64 #1 SMP Thu Aug 8 07:11:46 EDT 2024 x86_64
User: h3b738e84d (1657)
PHP: 8.3.19
Disabled: exec,system,passthru,shell_exec,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/h3b738e84d/public_html/backup_2026/wp-content/themes/news-portal/templates/template-home.php
<?php
/**
 * Template Name: Home Page
 *
 * This is the template that displays all widgets included in homepage widget area.
 *
 * @package Mystery Themes
 * @subpackage News Portal
 * @since 1.0.0
 */

get_header(); 

/*-----------------------------------------------------------------------------------------------------------------------*/
/**
 * Home Top Section Area
 * 
 * @since 1.0.0
 */
	if ( is_active_sidebar( 'news_portal_home_top_section_area' ) ) {
?>
		<div class="np-home-top-section np-clearfix">
			<?php dynamic_sidebar( 'news_portal_home_top_section_area' ); ?>
		</div><!-- .np-home-top-section -->
<?php 
	}

/*-----------------------------------------------------------------------------------------------------------------------*/
/**
 * Home Middle Section Area
 * 
 * @since 1.0.0
 */
	if ( is_active_sidebar( 'news_portal_home_middle_section_area' ) ) {
?>
		<div class="np-home-middle-section np-clearfix">
			<div class="middle-primary">
				<?php dynamic_sidebar( 'news_portal_home_middle_section_area' ); ?>
			</div><!-- .middle-primary -->
			<div class="middle-aside">
				<?php dynamic_sidebar( 'news_portal_home_middle_aside_area' ); ?>
			</div><!-- .middle-aside -->
		</div><!-- .np-home-middle-section -->
<?php 
	}

/*-----------------------------------------------------------------------------------------------------------------------*/
/**
 * Home Bottom Section Area
 * 
 * @since 1.0.0
 */
	if ( is_active_sidebar( 'news_portal_home_bottom_section_area' ) ) {
?>
		<div class="np-home-bottom-section">
			<?php dynamic_sidebar( 'news_portal_home_bottom_section_area' ); ?>
		</div><!-- .np-home-bottom-section -->
<?php 
	}

	$news_portal_home_template_content_option = get_theme_mod( 'news_portal_home_template_content_option', 'hide' );
	if ( 'show' === $news_portal_home_template_content_option ) {
		/**
		 * Renders content of the currently viewing post
		 * 
		 */
		while ( have_posts() ) : the_post();
			the_content();
		endwhile; // End of the loop.
	}

get_footer();