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/festung-wp/wp-content/themes/gilber/template-parts/archive/archive-archive.php
<?php

/**
 * @author: paul_tf
 * @version: 1.0.0
 */

$pagination = gilber_get_theme_mod( 'archive_type_pagination' );
$posts_layout = gilber_get_theme_mod( 'archive_layout' );

$column_sidebar_class = 'col-lg-4';

if ( is_active_sidebar( 'blog_sidebar' ) ) {
	$column_content_class = 'col-lg-8';
} else {
	$column_content_class = 'col-lg-12';
}

$post_list_class = 'vlt-blog-posts';

?>

<div class="container">

	<div class="row">

		<div class="<?php echo gilber_sanitize_class( $column_content_class ); ?>">

			<div class="<?php echo gilber_sanitize_class( $post_list_class ); ?>">

				<?php

					if ( have_posts() ) :

						get_template_part( 'template-parts/loop/loop-blog', $posts_layout );

						echo gilber_get_page_pagination( null, $pagination );

					else:

						get_template_part( 'template-parts/loop/content-page', 'empty' );

					endif;

					wp_reset_postdata();

				?>

			</div>

		</div>

		<?php if ( is_active_sidebar( 'blog_sidebar' ) ) : ?>

			<div class="<?php echo gilber_sanitize_class( $column_sidebar_class ); ?>">

				<div class="vlt-sidebar vlt-sidebar--right">

					<?php get_sidebar(); ?>

				</div>

			</div>

		<?php endif; ?>

	</div>

</div>