mage-eventpress/templates/list/minimal.php

28 lines
2.3 KiB
PHP
Raw Normal View History

2020-11-30 07:17:35 -05:00
<?php $recurring = get_post_meta($event_id, 'mep_enable_recurring', true) ? get_post_meta($event_id, 'mep_enable_recurring', true) : 'no'; ?>
2020-10-26 07:41:46 -04:00
<div class='mep-event-list-loop mep_event_list_item mep_event_minimal_list mix <?php echo $org_class.' '.$cat_class; ?>'>
2020-07-12 06:42:13 -04:00
<?php do_action('mep_event_minimal_list_loop_header',$event_id); ?>
<div class="mep_list_thumb">
<a href="<?php echo get_the_permalink($event_id); ?>"></a>
<div class="mep-ev-start-date">
<div class="mep-day"><?php echo mep_get_event_upcomming_date($event_id,'day'); //get_mep_datetime($event_meta['event_start_datetime'][0],'day'); ?></div>
<div class="mep-month"><?php echo mep_get_event_upcomming_date($event_id,'month'); //get_mep_datetime($event_meta['event_start_datetime'][0],'month'); ?></div>
</div>
</div>
<div class="mep_list_event_details">
<a href="<?php the_permalink(); ?>">
<div class="mep-list-header">
<h2 class='mep_list_title'><?php the_title(); ?></h2>
<?php
2020-11-30 07:17:35 -05:00
mep_get_event_upcomming_date($event_id,1);
2020-07-12 06:42:13 -04:00
?>
<?php if ($available_seat == 0) {
do_action('mep_show_waitlist_label');
} ?>
2020-11-30 07:17:35 -05:00
<h3 class='mep_list_date'> <?php if($recurring == 'no'){ ?><span class='mep_minimal_list_date'><i class="fa fa-calendar"></i> <?php echo mep_get_event_upcomming_date($event_id,'time'); ?> - <?php if($start_datetime == $end_datetime){ echo get_mep_datetime($event_meta['event_end_datetime'][0],'time'); }else{ echo get_mep_datetime($event_meta['event_end_datetime'][0],'date-time-text'); } ?></span> <?php } ?> <span class='mep_minimal_list_location'><i class='fa fa-map-marker'></i> <?php mep_get_event_city($event_id); ?></span></h3>
2020-07-12 06:42:13 -04:00
</a>
<?php do_action('mep_event_list_loop_footer',$event_id); ?>
</div>
</div>
<?php do_action('mep_event_minimal_list_loop_end',$event_id); ?>
</div>