0) {
$loop = mep_event_query('cat',$show,$sort,$cat,0,'upcoming');
} elseif ($org > 0) {
$loop = mep_event_query('org',$show,$sort,0,$org,'upcoming');
} else {
$loop = mep_event_query('all',$show,$sort,0,0,'upcoming');
}
?>
0) {
$loop = mep_event_query('cat',$show,$sort,$cat,0,'upcoming');
} elseif ($org > 0) {
$loop = mep_event_query('org',$show,$sort,0,$org,'upcoming');
} else {
$loop = mep_event_query('all',$show,$sort,0,0,'upcoming');
}
$loop->the_post();
$event_meta = get_post_custom(get_the_id());
$author_terms = get_the_terms(get_the_id(), 'mep_org');
$start_datetime = $event_meta['event_start_date'][0] . ' ' . $event_meta['event_start_time'][0];
$time = strtotime($start_datetime);
$newformat = date_i18n('Y-m-d H:i:s', $time);
$tt = get_the_terms(get_the_id(), 'mep_cat');
$torg = get_the_terms(get_the_id(), 'mep_org');
$org_class = mep_get_term_as_class(get_the_id(), 'mep_org');
$cat_class = mep_get_term_as_class(get_the_id(), 'mep_cat');
$available_seat = mep_get_total_available_seat(get_the_id(), $event_meta);
echo '
';
while ($loop->have_posts()) {
$loop->the_post();
if ($style == 'grid') {
if ($column == 2) {
$columnNumber = 'two_column';
} elseif ($column == 3) {
$columnNumber = 'three_column';
} elseif ($column == 4) {
$columnNumber = 'four_column';
} else {
$columnNumber = 'two_column';
}
} else {
$columnNumber = 'one_column';
}
/**
* This is the hook where Event Loop List fired from inc/template-parts/event_loop_list.php File
*/
do_action('mep_event_list_shortcode',get_the_id(),$columnNumber,$style);
$currency_pos = get_option('woocommerce_currency_pos');
$mep_full_name = strip_tags($event_meta['mep_full_name'][0]);
$mep_reg_email = strip_tags($event_meta['mep_reg_email'][0]);
$mep_reg_phone = strip_tags($event_meta['mep_reg_phone'][0]);
$mep_reg_address = strip_tags($event_meta['mep_reg_address'][0]);
$mep_reg_designation = strip_tags($event_meta['mep_reg_designation'][0]);
$mep_reg_website = strip_tags($event_meta['mep_reg_website'][0]);
$mep_reg_veg = strip_tags($event_meta['mep_reg_veg'][0]);
$mep_reg_company = strip_tags($event_meta['mep_reg_company'][0]);
$mep_reg_gender = strip_tags($event_meta['mep_reg_gender'][0]);
$mep_reg_tshirtsize = strip_tags($event_meta['mep_reg_tshirtsize'][0]);
echo '
';
do_action('mep_add_to_cart_list');
echo '
';
get_event_list_js(get_the_id(), $event_meta, $currency_pos);
}
wp_reset_postdata();
echo '
';
if ($pagination == 'yes') {
/**
* The Pagination function mep_event_pagination is locet in inc/mep_query.php File
*/
mep_event_pagination($loop->max_num_pages);
} ?>