HEX
Server: nginx/1.24.0
System: Linux DGT-WORDPRESS-VM-SERVER 6.14.0-1014-azure #14~24.04.1-Ubuntu SMP Fri Oct 3 20:52:11 UTC 2025 x86_64
User: ubuntu (1000)
PHP: 8.4.12
Disabled: NONE
Upload Files
File: /mnt/data/companiesonthegouk/wp-content/themes/apper/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.
 * For example, it puts together the home page when no home.php file exists.
 *
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package Apper WordPress theme
 */

get_header();
?>
<?php do_action( 'before_content_wrap' ); ?>

	<div id="content-wrap" class="main-content-wrap blog-wrap blog-loop blog-content-wrap container clr">

		<?php do_action( 'before_primary' ); ?>

		<div id="primary" class="<?php echo acmthemes_blog_content_area_class(); ?> clr">

			<?php do_action( 'before_content' ); ?>

			<div id="content" class="site-content clr">

				<?php do_action( 'before_content_inner' ); ?>

				<?php
				// Check if posts exist
				if ( have_posts() ) :

					// Elementor `archive` location
					if ( ! function_exists( 'elementor_theme_do_location' ) || ! elementor_theme_do_location( 'archive' ) ) {

							// Get post layout
							$blog_col_layout = ( ! empty( $settings['blog_col_layout'] ) ) ? intval( $settings['blog_col_layout'] ) : 3;

							if ( 1 == $blog_col_layout || isset( $_GET['blog_col'] ) && $_GET['blog_col'] == 'single' ) {
								get_template_part( 'partials/entry/default' );
							}
							else {
								get_template_part( 'partials/entry/columns' );
							}

						// Display post pagination
						acmthemes_blog_pagination();

					} ?>

				<?php
				// No posts found
				else : ?>

					<?php
					// Display no post found notice
					get_template_part( 'partials/none' ); ?>

				<?php endif; ?>

				<?php do_action( 'after_content_inner' ); ?>

			</div><!-- #content -->

			<?php do_action( 'after_content' ); ?>

		</div><!-- #primary -->

		<?php get_sidebar(); ?>

		<?php do_action( 'after_primary' ); ?>

	</div><!-- #content-wrap -->

	<?php do_action( 'after_content_wrap' ); ?>

<?php get_footer(); ?>