2023-08-07 01:37:33 -04:00
|
|
|
<?php if ( wp_is_block_theme() ) { ?>
|
2023-07-24 22:16:45 -04:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html <?php language_attributes(); ?>>
|
|
|
|
<head>
|
|
|
|
<meta charset="<?php bloginfo( 'charset' ); ?>">
|
|
|
|
<?php
|
|
|
|
$block_content = do_blocks( '
|
|
|
|
<!-- wp:group {"layout":{"type":"constrained"}} -->
|
|
|
|
<div class="wp-block-group">
|
|
|
|
<!-- wp:post-content /-->
|
|
|
|
</div>
|
|
|
|
<!-- /wp:group -->'
|
|
|
|
);
|
2023-08-07 01:37:33 -04:00
|
|
|
wp_head(); ?>
|
2023-07-24 22:16:45 -04:00
|
|
|
</head>
|
|
|
|
<body <?php body_class(); ?>>
|
|
|
|
<?php wp_body_open(); ?>
|
|
|
|
<div class="wp-site-blocks">
|
|
|
|
<header class="wp-block-template-part site-header">
|
|
|
|
<?php block_header_area(); ?>
|
|
|
|
</header>
|
|
|
|
</div>
|
2023-08-07 01:37:33 -04:00
|
|
|
<?php
|
2023-07-24 22:16:45 -04:00
|
|
|
} else {
|
2023-08-07 01:37:33 -04:00
|
|
|
get_header();
|
|
|
|
the_post();
|
2023-07-24 22:16:45 -04:00
|
|
|
}
|
|
|
|
|
2023-08-07 01:37:33 -04:00
|
|
|
|
|
|
|
$event_id = get_the_id();
|
|
|
|
global $event_id, $post, $woocommerce;
|
|
|
|
$event_id = !empty($event_id) ? $event_id : $post->ID;
|
|
|
|
$_the_event_id = $event_id;
|
|
|
|
|
2021-09-20 01:52:52 -04:00
|
|
|
if (post_password_required()) {
|
2021-10-31 07:01:04 -04:00
|
|
|
?>
|
|
|
|
<div class="mep-events-wrapper">
|
|
|
|
<?php echo get_the_password_form();?>
|
|
|
|
</div>
|
|
|
|
<?php
|
2021-09-20 01:52:52 -04:00
|
|
|
} else {
|
2023-07-24 22:16:45 -04:00
|
|
|
// echo $event_id;
|
|
|
|
$event_meta = get_post_custom($event_id);
|
|
|
|
|
|
|
|
// print_r($event_meta);
|
|
|
|
|
|
|
|
$author_terms = get_the_terms($event_id, 'mep_org');
|
|
|
|
$book_count = get_post_meta($event_id, 'total_booking', true);
|
2021-09-20 01:52:52 -04:00
|
|
|
$user_api = mep_get_option('google-map-api', 'general_setting_sec', '');
|
2021-10-29 17:14:29 -04:00
|
|
|
$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]);
|
2022-04-12 01:00:35 -04:00
|
|
|
$global_template = mep_get_option('mep_global_single_template', 'single_event_setting_sec', 'default-theme.php');
|
2021-09-20 01:52:52 -04:00
|
|
|
$current_template = $event_meta['mep_event_template'][0];
|
|
|
|
$_current_template = $current_template ? $current_template : $global_template;
|
|
|
|
$currency_pos = get_option('woocommerce_currency_pos');
|
2023-08-07 01:37:33 -04:00
|
|
|
do_action('mep_event_single_page_after_header',$_the_event_id);
|
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')) {
|
2023-01-18 23:46:01 -05:00
|
|
|
if (!class_exists('WEPOF_Extra_Product_Options')) {
|
2023-02-07 22:12:53 -05:00
|
|
|
if (!class_exists('WC_Advanced_Country_Restrictions_Dist')) {
|
|
|
|
if ( ! class_exists( 'WC_Google_Analytics_Integration' ) ) {
|
2023-01-18 23:46:01 -05:00
|
|
|
do_action('woocommerce_before_single_product');
|
2023-02-07 22:12:53 -05:00
|
|
|
}
|
2023-01-18 23:46:01 -05:00
|
|
|
}
|
2023-01-09 22:45:15 -05:00
|
|
|
}
|
2021-09-20 01:52:52 -04:00
|
|
|
}
|
|
|
|
$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>
|
|
|
|
</div>
|
|
|
|
<?php
|
2023-08-07 01:37:33 -04:00
|
|
|
// echo $_the_event_id;
|
|
|
|
do_action('mep_event_single_template_end', $_the_event_id);
|
|
|
|
do_action('mep_event_single_page_before_footer', $_the_event_id);
|
2020-12-13 07:25:42 -05:00
|
|
|
}
|
2023-07-24 22:16:45 -04:00
|
|
|
|
|
|
|
if ( wp_is_block_theme() ) {
|
|
|
|
// Code for block themes goes here.
|
|
|
|
?>
|
|
|
|
<footer class="wp-block-template-part">
|
|
|
|
<?php block_footer_area(); ?>
|
|
|
|
</footer>
|
|
|
|
<?php wp_footer(); ?>
|
|
|
|
</body>
|
|
|
|
<?php
|
|
|
|
} else {
|
|
|
|
get_footer();
|
2023-08-07 01:37:33 -04:00
|
|
|
}
|