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/archive.php
<?php
/**
 * The template for displaying archive pages
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package Edubin
 */

if ( is_tax( 'tp_event_tag' ) ) :
	get_template_part( 'wp-events-manager/archive', 'event' );
	return;
endif;

$author_redirect_to_courses = apply_filters( 'edubin_ld_author_redirect_to_course', false );
if ( isset( $_GET['ldauthor'] ) ) :
	$ldauthor = $_GET['ldauthor'];
else :
	$ldauthor = false;
endif;

get_header();

$blog_layout = apply_filters( 'edubin_archive_sidebar_layout', Edubin::setting( 'blog_sidebar' ) );
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="edubin-' . get_post_type() . '-archive-wrapper content-area ' . esc_attr( apply_filters( 'edubin_content_area_class', 'edubin-col-lg-9' ) ) . '">';
		echo '<main id="main" class="site-main">';
			if ( 'sfwd-courses' === get_post_type() ) :
				get_template_part( 'learndash/tpl-part/content', 'sfwd-courses' );
			else :
				get_template_part( 'template-parts/content', 'blog' );
			endif;
		echo '</main>';
	echo '</div>';

	if ( 'no-sidebar' !== $blog_layout ) :
		if ( ( true != $author_redirect_to_courses ) || ( true == $author_redirect_to_courses && 'true' != $ldauthor ) ) :
			get_sidebar();
		endif;
	endif;

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

get_footer();