HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux srv1.dlabib.net 6.8.0-94-generic #96-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 9 20:36:55 UTC 2026 x86_64
User: hbkconsultan_usr (1002)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /var/www/hbkconsultan_usr/data/www/hbkconsultancy.com/wp-content/themes/edubin/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 Edubin
 */

get_header();
if ( ! isset( $edubin_blog_post_style ) ) :
	$edubin_blog_post_style = Edubin::setting( 'blog_post_style' );
endif;

if ( isset( $_GET['post_preset'] ) ) :
	$edubin_blog_post_style = in_array( $_GET['post_preset'], array( 1, 2, 3, 'standard' ) ) ? $_GET['post_preset'] : $edubin_blog_post_style;
endif;

$blog_layout = Edubin::setting( 'blog_sidebar' );
$masonry_status = Edubin::setting( 'blog_masonry' );
$blog_wrapper = 'edubin-row tpc-edubin-blog-space edubin-blog-post-archive-style-' . esc_attr( $edubin_blog_post_style );

if ( ( $masonry_status || isset( $_GET['masonry'] ) ) && ( 'standard' !== $edubin_blog_post_style ) ) :
	$blog_wrapper = $blog_wrapper . ' ' . 'tpc-masonry-grid-wrapper';
endif;
	
echo '<div class="tpc-site-content-inner' . esc_attr( apply_filters( 'edubin_container_class', ' edubin-container' ) ) . '">';
	do_action( 'edubin_before_content' );

	echo '<div id="primary" class="content-area ' . esc_attr( apply_filters( 'edubin_content_area_class', 'edubin-col-lg-9' ) ) . '">';
		echo '<main id="main" class="site-main">';

			if ( have_posts() ) :
				if ( is_home() && ! is_front_page() ) :
					?>
					<header>
						<h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1>
					</header>
					<?php
				endif;
				echo '<div class="' . esc_attr( $blog_wrapper ) . '">';
					/* 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/posts/post', $edubin_blog_post_style );
					endwhile;
					wp_reset_postdata();
				echo '</div>';

				if ( function_exists( 'edubin_numeric_pagination' ) ) :
					edubin_numeric_pagination();
				else :
					the_posts_navigation();
				endif;
			else :
				get_template_part( 'template-parts/content', 'none' );
			endif;

		echo '</main>';
	echo '</div>';

	if ( 'no-sidebar' !== $blog_layout ) :
		get_sidebar();
	endif;

	do_action( 'edubin_after_content' );
echo '</div>';

get_footer();