HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-86-generic #87-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 18:03:36 UTC 2025 x86_64
User: cssnetorguk (1024)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: /home/countywedding.co.uk/public_html-20250117121004/wp-content/themes/business-roy/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 Business Roy
 */

$layout = get_theme_mod( 'business_roy_blogtemplate_layout', 'default' );

$post_sidebar =  get_theme_mod( 'business_roy_blog_template_sidebar', 'right' );

$column =  get_theme_mod( 'business_roy_post_column', 2 );
 
get_header(); ?>
<div class="container">
	<div class="d-grid d-blog-grid-column-2 sidebar-<?php echo esc_attr($post_sidebar); ?> layout-<?php echo esc_attr($layout); ?>">
		<?php if( $post_sidebar == 'left' && is_active_sidebar('sidebar-2') ){ get_sidebar('left'); } ?>
		<div id="primary" class="content-area">
			<main id="main" class="site-main">
				<div class="innerwrapper">	
					<?php if ( have_posts() ) :?>
							<div class="articlesListing d-grid d-grid-column-<?php echo esc_attr($column);?>">
								<?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.
										*/
										// Post Display Layout
										get_template_part( 'template-parts/content', get_post_format() );
									
									endwhile;

							echo "</div>";

							the_posts_pagination( 
			            		array(
								    'prev_text' => sprintf( esc_html__(  '%s', 'business-roy' ), '<i class="fas fa-arrow-left"></i> <span>Prev</span>' ),
								    'next_text' => sprintf( esc_html__(  '%s', 'business-roy' ), '<span>Next</span> <i class="fas fa-long-arrow-alt-right"></i>' ),
								)
				            );

						else :

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

						endif;
					?>
				</div><!-- Articales Listings -->
			</main><!-- #main -->
		</div><!-- #primary -->
		<?php if( $post_sidebar == 'right' && is_active_sidebar('sidebar-1') ){ get_sidebar('right'); } ?>
	</div>
</div>
<?php get_footer();