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/frenchy/refonte2023/wordpress/wp-content/plugins/ova-events/templates/archive-event.php
<?php if ( !defined( 'ABSPATH' ) ) exit();

get_header();

$event_type_temp 	= isset( $_GET['event_type_temp'] ) ? $_GET['event_type_temp'] : OVAEV_Settings::archive_event_type();
$event_col 			= isset( $_GET['col'] ) ? $_GET['col'] : OVAEV_Settings::archive_event_col();
$show_sidebar 		= isset( $_GET['show_sidebar'] ) ? $_GET['show_sidebar'] : OVAEV_Settings::ovaev_show_sidebar();
$show_search 		= isset( $_GET['show_search'] ) ? $_GET['show_search'] : OVAEV_Settings::ovaev_show_search();

$active_sidebar 	= 'main-event';
if ( 'yes' === $show_sidebar && is_active_sidebar('event-sidebar') ) {
	$active_sidebar = 'sidebar-active';
}

?>

<div class="container-event">
	<div id="<?php echo $active_sidebar; ?>" class="content-event">
        
        <!-- search form -->
        <?php if ( 'yes' === $show_search ) {
			    do_action( 'ovaev_search_form' );
		   }
		?>	

		<div class="archive_event <?php echo $event_col; ?>">

			<?php if( have_posts() ) : while ( have_posts() ) : the_post();
				if ( $event_type_temp == 'type1') {
					ovaev_get_template( 'event-templates/event-type1.php' ); 
			    } elseif( $event_type_temp == 'type2' ) {
			    	ovaev_get_template( 'event-templates/event-type2.php' ); 
			    }elseif( $event_type_temp == 'type3' ) {
			    	ovaev_get_template( 'event-templates/event-type3.php' ); 
			    }elseif( $event_type_temp == 'type4' ) {
			    	ovaev_get_template( 'event-templates/event-type4.php' ); 
			    }elseif( $event_type_temp == 'type5' ) {
			    	ovaev_get_template( 'event-templates/event-type5.php' ); 
			    } else {
			    	ovaev_get_template( 'event-templates/event-type1.php' ); 
			    }
			endwhile; else: ?>
				<div class="search_not_found">
					<?php esc_html_e( 'No Events found', 'ovaev' ); ?>
				</div>
			<?php endif; wp_reset_postdata(); ?>

		</div>
		
		<?php  
			global $wp_query;
			if ( $wp_query->max_num_pages > 1 ) {
		?>
			<div class="events_pagination">
				<?php
					echo paginate_links( apply_filters( 'el_pagination_args', array(
						'base'         => esc_url_raw( str_replace( 999999999, '%#%', get_pagenum_link( 999999999, false ) ) ),
						'format'       => '',
						'add_args'     => '',
						'current'      => max( 1, get_query_var( 'paged' ) ),
						'total'        => $wp_query->max_num_pages,
						'next_text' => '<i class="ovaicon-next" aria-hidden="true"></i><span class="visuallyhidden">Next</span>',
			            'prev_text' => '<i class="ovaicon-back" aria-hidden="true"></i><span class="visuallyhidden">Previous</span>',
						'type'         => 'list',
						'end_size'     => 3,
						'mid_size'     => 3
					) ) ); 
				?>
			</div>
		<?php } ?>


	</div>

	<?php 
		if ( 'yes' === $show_sidebar ) {
			ovaev_get_template( 'sidebar-event.php' );
		}
	?>
</div>

<?php get_footer();