HEX
Server: Apache
System: Linux webd004.cluster130.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User: frenchy (106757)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/f/r/e/frenchy/refonte2023/wordpress/wp-content/plugins/ova-dep/templates/archive-dep.php
<?php if ( !defined( 'ABSPATH' ) ) exit();

	get_header();

	$show_search   = isset( $_GET['dep_search'] ) 	? $_GET['dep_search'] 	: get_theme_mod( 'ova_dep_archive_search', 'yes' );
	$template 	   = isset( $_GET['dep_template'] ) ? $_GET['dep_template'] : get_theme_mod( 'ova_dep_archive_template', 'template1' );
	$number_column = isset( $_GET['dep_column'] ) 	? $_GET['dep_column'] 	: get_theme_mod( 'ova_dep_layout', 'three_column' );

	if ( is_tax('cat_department') ) {
		$term = get_queried_object();
	}
	

?>

<div class="container">
	<div class="row_site">
		<div class="container_site">
			<div class="ova_dep_wrap ova_archive_dep archive_dep">

				<?php if ( $show_search == 'yes') {
					ovadep_get_template( 'search_form.php' ); 
			    } ?>

			   <?php if ( !empty($term) && !empty($term->description) ): ?>
					<p class="category-description">
						<?php echo esc_html( $term->description ); ?>
					</p>
				<?php endif; ?>

				<div class="content <?php echo esc_attr( $number_column ) ?> <?php echo esc_attr( $template ) ?>">
					<?php if( have_posts() ) : while ( have_posts() ) : the_post();  ?>
						<?php ovadep_get_template( 'parts/item-department.php' ); ?>
					<?php endwhile; endif; wp_reset_postdata(); ?>
				</div>
				
				<?php 
					$args = array(
						'type'      => 'list',
						'next_text' => '<i class="ovaicon-next"></i><span class="visuallyhidden">Next</span>',
						'prev_text' => '<i class="ovaicon-back"></i><span class="visuallyhidden">Previous</span>',
					);

					the_posts_pagination($args);
				?>

			</div>
		</div>
	</div>
</div>

<?php get_footer();