39 lines
1.5 KiB
PHP
39 lines
1.5 KiB
PHP
|
|
<?php
|
||
|
|
|
||
|
|
get_header();
|
||
|
|
|
||
|
|
$upstudy_archive_page_tp_event_clm = Upstudy::setting( 'upstudy_archive_page_tp_event_clm' );
|
||
|
|
$upstudy_archive_events_style = Upstudy::setting( 'tp_events_archive_style' );
|
||
|
|
$events_course_per_page = Upstudy::setting( 'tp_events_course_per_page' );
|
||
|
|
|
||
|
|
echo '<div class="tpc-site-content-inner' . esc_attr( apply_filters( 'upstudy_container_class', ' upstudy-container' ) ) . '">';
|
||
|
|
do_action( 'upstudy_before_content' );
|
||
|
|
if ( have_posts() ) {
|
||
|
|
echo '<div class="tpc-event-archive-wrapper upstudy-row">';
|
||
|
|
while ( have_posts() ) : the_post();
|
||
|
|
|
||
|
|
if ( $upstudy_archive_events_style !== '4' ) {
|
||
|
|
|
||
|
|
echo '<div class="tpc-event-single-item upstudy-col-lg-'. esc_attr( $upstudy_archive_page_tp_event_clm ) .' upstudy-col-md-6 upstudy-col-sm-12" data-sal>';
|
||
|
|
wpems_get_template_part( 'layout', esc_attr( $upstudy_archive_events_style ) );
|
||
|
|
echo '</div>';
|
||
|
|
}
|
||
|
|
if ( $upstudy_archive_events_style === '4' ) {
|
||
|
|
echo '<div class="tpc-event-single-item upstudy-col-12" data-sal>';
|
||
|
|
wpems_get_template_part( 'layout', esc_attr( $upstudy_archive_events_style ) );
|
||
|
|
echo '</div>';
|
||
|
|
}
|
||
|
|
|
||
|
|
endwhile;
|
||
|
|
wp_reset_postdata();
|
||
|
|
echo '</div>';
|
||
|
|
|
||
|
|
upstudy_numeric_pagination();
|
||
|
|
}else {
|
||
|
|
_e( 'No Event Found.', 'upstudy' );
|
||
|
|
};
|
||
|
|
|
||
|
|
do_action( 'upstudy_after_content' );
|
||
|
|
echo '</div>';
|
||
|
|
|
||
|
|
get_footer();
|