2020-01-22 07:15:24 -05:00
|
|
|
<?php
|
2018-02-05 02:05:26 -05:00
|
|
|
get_header();
|
|
|
|
the_post();
|
2020-04-28 06:37:33 -04:00
|
|
|
global $post, $woocommerce;
|
2021-09-20 01:52:52 -04:00
|
|
|
if (post_password_required()) {
|
2020-12-14 07:14:05 -05:00
|
|
|
echo '<div class="mep-events-wrapper">';
|
|
|
|
echo get_the_password_form(); // WPCS: XSS ok.
|
|
|
|
echo '</div>';
|
2021-09-20 01:52:52 -04:00
|
|
|
} else {
|
|
|
|
$event_meta = get_post_custom(get_the_id());
|
|
|
|
$author_terms = get_the_terms(get_the_id(), 'mep_org');
|
|
|
|
$book_count = get_post_meta(get_the_id(), 'total_booking', true);
|
|
|
|
$user_api = mep_get_option('google-map-api', 'general_setting_sec', '');
|
|
|
|
$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]);
|
|
|
|
$global_template = mep_get_option('mep_global_single_template', 'general_setting_sec', 'default-theme.php');
|
|
|
|
$current_template = $event_meta['mep_event_template'][0];
|
|
|
|
$_current_template = $current_template ? $current_template : $global_template;
|
|
|
|
$currency_pos = get_option('woocommerce_currency_pos');
|
|
|
|
do_action('mep_event_single_page_after_header');
|
2018-02-05 02:05:26 -05:00
|
|
|
?>
|
2021-09-20 01:52:52 -04:00
|
|
|
<div class="mep-events-wrapper wrapper">
|
2021-10-19 07:29:03 -04:00
|
|
|
<div class="mep-events-container">
|
2021-09-20 01:52:52 -04:00
|
|
|
<?php
|
|
|
|
if (!class_exists('WC_Bundles')) {
|
|
|
|
do_action('woocommerce_before_single_product');
|
|
|
|
}
|
|
|
|
$theme_name = "/themes/$_current_template";
|
|
|
|
require_once(mep_template_file_path($theme_name));
|
|
|
|
if (comments_open() || get_comments_number()) {
|
|
|
|
comments_template();
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
<div class="mep-related-events-sec">
|
|
|
|
<?php do_action('after-single-events'); ?>
|
|
|
|
</div>
|
2020-11-05 07:16:20 -05:00
|
|
|
|
2021-09-20 01:52:52 -04:00
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
do_action('mep_event_single_template_end', get_the_id());
|
2020-12-13 07:25:42 -05:00
|
|
|
do_action('mep_event_single_page_before_footer');
|
|
|
|
}
|
2021-09-20 01:52:52 -04:00
|
|
|
get_footer();
|