HEX
Server: Apache
System: Linux hp3-wp-1011494.hostingp3.local 3.10.0-1160.139.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Nov 3 13:30:41 UTC 2025 x86_64
User: csh2729955 (2121743)
PHP: 7.4.33
Disabled: shell_exec,exec,system,popen,set_time_limit
Upload Files
File: /home/storage/162/3480162/user/htdocs/wp-content/themes/newsreaders/front-page.php
<?php
/**
 * @package Newsreaders
 */
get_header();
	
	$newsreaders_default = newsreaders_get_default_theme_options();
	$home_section_reorder_value_1 = get_theme_mod( 'home_section_reorder_value_1', $newsreaders_default['home_section_reorder_value_1'] );
	$home_section_reorder_value_1 = explode(",",$home_section_reorder_value_1 );
	
	$paged_active = false;
	if ( !is_paged() ) {
		$paged_active = true;
	}

	foreach( $home_section_reorder_value_1 as $home_section_reorder ){


		switch( $home_section_reorder ){

			case 'home_section_block_1':

				if( $paged_active ){
					newsreaders_block_1_section();
				}

	        break;

	        case 'home_section_block_2':

	        	if( $paged_active ){
					newsreaders_block_2_section();
				}

	        break;


			case 'home_section_block_3':

				if( $paged_active ){
					newsreaders_block_3_section();
				}

	        break;


			case 'home_section_block_4':

				if( $paged_active ){
					newsreaders_block_4_section();
				}

	        break;


	        case 'home_section_block_carousel':

	        	if( $paged_active ){
					newsreaders_carousel_section();
				}

	        break;

	        case 'home_section_block_breaking_news':

	        	if( $paged_active ){ 
					newsreaders_breaking_news_section();
				}

	        break;

	        case 'home_section_latest_posts':

				newsreaders_latest_posts_section();

	        break;

	        case 'sidebar-widgets-newsreaders-homepage-sidebar':

				if ( $paged_active && is_active_sidebar('newsreaders-homepage-sidebar') ) { ?>
				    <div class=" ">
				        <?php dynamic_sidebar('newsreaders-homepage-sidebar'); ?>
				    </div>
				<?php }

	        break;

		}

	}
	
	

get_footer();