' : '
';
$time_line_div_start = $style == 'timeline' ? '
' : '';
$time_line_div_end = $style == 'timeline' ? '
' : '';
$flex_column = $column;
$mage_div_count = 0;
$event_expire_on = mep_get_option('mep_event_expire_on_datetimes', 'general_setting_sec', 'event_start_datetime');
$unq_id = 'abr'.uniqid();
ob_start();
/**
* The Main Query function mep_event_query is locet in inc/mep_query.php File
*/
$loop = mep_event_query($show, $sort, $cat, $org, $city, $country, $status);
?>
post_count;
echo wp_kses_post($main_div);
echo wp_kses_post($time_line_div_start);
while ($loop->have_posts()) {
$loop->the_post();
mep_update_event_upcoming_date(get_the_id());
mep_update_event_upcoming_date(get_the_id());
if ($style == 'grid' && (int)$column>0 && $pagination != 'carousal') {
$columnNumber='column_style';
$width=100/(int)$column;
}elseif($pagination == 'carousal' && $style == 'grid'){
$columnNumber = 'grid';
$width=100;
} else {
$columnNumber = 'one_column';
$width=100;
}
/**
* 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,$width,$unq_id);
}
wp_reset_postdata();
echo wp_kses_post($time_line_div_end);
?>
"0",
"org" => "0",
"style" => "grid",
"column" => 3,
"cat-filter" => "no",
"org-filter" => "no",
"show" => "-1",
"pagination" => "no",
"city" => "",
"country" => "",
"carousal-nav" => "no",
"carousal-dots" => "yes",
"carousal-id" => "102448",
"timeline-mode" => "vertical",
'sort' => 'ASC'
);
$params = shortcode_atts($defaults, $atts);
$cat = $params['cat'];
$org = $params['org'];
$style = $params['style'];
$cat_f = $params['cat-filter'];
$org_f = $params['org-filter'];
$show = $params['show'];
$pagination = $params['pagination'];
$sort = $params['sort'];
$column = $style != 'grid' ? 1 : $params['column'];
$nav = $params['carousal-nav'] == 'yes' ? 1 : 0;
$dot = $params['carousal-dots'] == 'yes' ? 1 : 0;
$city = $params['city'];
$country = $params['country'];
$cid = $params['carousal-id'];
$main_div = $pagination == 'carousal' ? '
' : '
';
$time_line_div_start = $style == 'timeline' ? '
' : '';
$time_line_div_end = $style == 'timeline' ? '
' : '';
$flex_column = $column;
$mage_div_count = 0;
$event_expire_on = mep_get_option('mep_event_expire_on_datetimes', 'general_setting_sec', 'event_start_datetime');
ob_start();
?>
post_count;
echo wp_kses_post($main_div);
while ($loop->have_posts()) {
$loop->the_post();
mep_update_event_upcoming_date(get_the_id());
if ($style == 'grid' && (int)$column>0) {
$columnNumber='column_style';
if($pagination == 'carousal'){
$width=100;
}else{
$width=100/(int)$column;
}
}else {
$columnNumber = 'one_column';
$width=100;
}
/**
* 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,$width);
}
wp_reset_postdata();
?>
max_num_pages);
}elseif($pagination == 'carousal'){
?>
"0",
"cart-btn-label" => __( 'Register For This Event', 'mage-eventpress' ),
"ticket-label" => __( 'Ticket Type', 'mage-eventpress' ),
"extra-service-label" => __( 'Extra Service', 'mage-eventpress' )
);
$params = shortcode_atts($defaults, $atts);
$event = $params['event'];
ob_start();
if($event > 0){
echo mep_shortcode_add_cart_section_html($event,$params);
do_action('mep_after_event_cart_shortcode',$event);
}
return ob_get_clean();
}
add_shortcode('event-speaker-list', 'mep_event_speaker_list_shortcode_section');
function mep_event_speaker_list_shortcode_section($atts, $content = null)
{
$defaults = array(
"event" => "0"
);
$params = shortcode_atts($defaults, $atts);
$event = $params['event'];
ob_start();
if($event > 0){
echo mep_shortcode_speaker_list_html($event);
}else{
echo mep_shortcode_all_speaker_list_html();
}
return ob_get_clean();
}
add_shortcode('event-list-onepage', 'mep_event_onepage_list');
function mep_event_onepage_list($atts, $content = null)
{
$defaults = array(
"cat" => "0",
"org" => "0",
"style" => "grid",
"column" => 3,
"cat-filter" => "no",
"org-filter" => "no",
"show" => "-1",
"pagination" => "no",
"city" => "",
"country" => "",
"carousal-nav" => "no",
"carousal-dots" => "yes",
"carousal-id" => "102448",
"timeline-mode" => "vertical",
'sort' => 'ASC',
'status' => 'upcoming'
);
$params = shortcode_atts($defaults, $atts);
$cat = $params['cat'];
$org = $params['org'];
$style = $params['style'];
$cat_f = $params['cat-filter'];
$org_f = $params['org-filter'];
$show = $params['show'];
$pagination = $params['pagination'];
$sort = $params['sort'];
$column = $style != 'grid' ? 1 : $params['column'];
$nav = $params['carousal-nav'] == 'yes' ? 1 : 0;
$dot = $params['carousal-dots'] == 'yes' ? 1 : 0;
$city = $params['city'];
$country = $params['country'];
$cid = $params['carousal-id'];
$status = $params['status'];
$main_div = $pagination == 'carousal' ? '
' : '
';
$time_line_div_start = $style == 'timeline' ? '
' : '';
$time_line_div_end = $style == 'timeline' ? '
' : '';
$flex_column = $column;
$mage_div_count = 0;
$event_expire_on = mep_get_option('mep_event_expire_on_datetimes', 'general_setting_sec', 'event_start_datetime');
ob_start();
do_action('woocommerce_before_single_product');
?>
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' && (int)$column>0) {
$columnNumber='column_style';
$width=100/(int)$column;
} else {
$columnNumber = 'one_column';
$width=100;
}
/**
* 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,$width);
$currency_pos = get_option('woocommerce_currency_pos');
$mep_full_name = mage_array_strip($event_meta['mep_full_name'][0]);
$mep_reg_email = mage_array_strip($event_meta['mep_reg_email'][0]);
$mep_reg_phone = mage_array_strip($event_meta['mep_reg_phone'][0]);
$mep_reg_address = mage_array_strip($event_meta['mep_reg_address'][0]);
$mep_reg_designation = mage_array_strip($event_meta['mep_reg_designation'][0]);
$mep_reg_website = mage_array_strip($event_meta['mep_reg_website'][0]);
$mep_reg_veg = mage_array_strip($event_meta['mep_reg_veg'][0]);
$mep_reg_company = mage_array_strip($event_meta['mep_reg_company'][0]);
$mep_reg_gender = mage_array_strip($event_meta['mep_reg_gender'][0]);
$mep_reg_tshirtsize = mage_array_strip($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);
} ?>