HEX
Server: Apache/2
System: Linux ns65.hostinglotus.net 4.18.0-553.16.1.el8_10.x86_64 #1 SMP Thu Aug 8 07:11:46 EDT 2024 x86_64
User: newsnnno (1225)
PHP: 8.2.20
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,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/newsnnno/domains/newsnnnonline.com/private_html/wp-content/themes/walkerpress/index.php
<?php
/**
 * The main template file
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package WalkerPress
 */

get_header();
$current_post_view = get_theme_mod('walkerpress_blog_post_view','post-layout-grid');
$current_sidebar_layout = get_theme_mod('walkerpress_blog_layout','sidebar-layout-right');
if($current_post_view=='post-layout-full'){
	$content_class= 'full-layout';
}elseif($current_post_view=='post-layout-list'){
	$content_class= 'list-layout';
}else{
	$content_class= 'grid-layout';
}

if($current_sidebar_layout=='sidebar-layout-none'){
	$current_content_class='walkerwp-grid-12';
	$current_content_sub_class ='full-width';
}elseif($current_sidebar_layout=='sidebar-layout-left'){
	$current_content_class='walkerwp-grid-9';
	$current_content_sub_class='left-sidebar';
}else{
	$current_content_class='walkerwp-grid-9';
	$current_content_sub_class='right-sidebar';
}

?>
<div class="walkerwp-wraper inner-wraper">
	<div class="walkerwp-container">
	<?php
		if($current_sidebar_layout=='sidebar-layout-left'){?>
			<div class="walkerwp-grid-3 sidebar-block">
		<?php get_sidebar();?>
	</div>
		<?php }
	?>
		<main id="primary" class="site-main <?php echo esc_attr($current_content_class).' '. esc_attr($current_content_sub_class);?>">
			<div class="content-layout <?php echo esc_attr($content_class);?>">
				<?php if ( have_posts() ) : ?>
				<?php
				/* Start the Loop */
				while ( have_posts() ) :
					the_post();

					/*
					 * Include the Post-Type-specific template for the content.
					 * If you want to override this in a child theme, then include a file
					 * called content-___.php (where ___ is the Post Type name) and that will be used instead.
					 */
					get_template_part( 'template-parts/content', get_post_type() );

				endwhile;
			echo '</div>';
			$wlakerpress_paginate_style = get_theme_mod('walkerpress_pagination_style','walkerpress-default-style');
			if($wlakerpress_paginate_style =='walkerpress-numeric-style'){
				walkerpress_pagination();
			}else{
				the_posts_navigation();
			}

			else :

				get_template_part( 'template-parts/content', 'none' );

			endif;
			?>
	</main><!-- #main -->

	<?php
		if($current_sidebar_layout=='sidebar-layout-right'){?>
			<div class="walkerwp-grid-3 sidebar-block">
		<?php get_sidebar();?>
	</div>
		<?php }
	?>
	</div>
</div>
<?php get_footer();