HEX
Server: LiteSpeed
System: Linux server257.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: salhiscp (12590)
PHP: 8.4.12
Disabled: NONE
Upload Files
File: /home/salhiscp/salhab360photos.com/wp-content/themes/acora/index.php
<?php
/**
  * Index main file.
  *
  * @package acora
  * @since acora 1.0
  */
?>

<?php 
	get_header(); 
	$sidebar_class = AcoraData::$data->sidebar_settings['show_sidebar'] == true ? 'yes-sidebar' : 'no-sidebar';
	if(is_search() && !have_posts() || !is_active_sidebar('sidebar-blog')){
		 $sidebar_class = 'no-sidebar';
	}
?>

<main id="blog_main" class="blog-main" role="main">	
	<div class="wrapper <?php echo esc_attr($sidebar_class); ?>">
		<div class="blog-content">
			<div class="inner">
				<div class="spacer"></div>
				<div class="posts <?php echo esc_attr($sidebar_class); ?>">
				 <?php 	
					if(have_posts()):
						while(have_posts()): the_post();
							get_template_part('template-parts/post-templates/post', get_post_format());
						endwhile;
					else:
						get_template_part('no-results');
					endif;
					if($wp_query->max_num_pages > 1){
						acora_content_paging(); 
					} 
				?>
				</div><!-- .posts -->
				<?php 
					if((is_search() && have_posts())
					   || !is_search()
					   && AcoraData::$data->sidebar_settings['show_sidebar']){
					   echo acora_blog_sidebar($wp_query->max_num_pages); 
					} 
				?>
			</div><!-- .inner -->
		</div><!-- blog-content -->
		<?php 
			// Get footer.
			get_template_part('template-parts/footer');
		?>
		<div class="clear"></div>
	</div><!-- .wrapper -->
	
</main><!-- #main -->
<?php get_footer(); ?>