v 3.9.9 file update
This commit is contained in:
parent
6731a9b71e
commit
438872ed09
|
@ -9,11 +9,10 @@ if (!function_exists('mep_ev_org')) {
|
||||||
{
|
{
|
||||||
global $post, $author_terms;
|
global $post, $author_terms;
|
||||||
ob_start();
|
ob_start();
|
||||||
if ($author_terms) {
|
$org = get_the_terms($event_id, 'mep_org');
|
||||||
$org = get_the_terms($event_id, 'mep_org');
|
if(!empty($org)){
|
||||||
require(mep_template_file_path('single/organizer.php'));
|
require(mep_template_file_path('single/organizer.php'));
|
||||||
|
}
|
||||||
}
|
|
||||||
$content = ob_get_clean();
|
$content = ob_get_clean();
|
||||||
echo apply_filters('mage_event_single_org_name', $content, $event_id);
|
echo apply_filters('mage_event_single_org_name', $content, $event_id);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
<?php
|
<?php if ( wp_is_block_theme() ) { ?>
|
||||||
if ( wp_is_block_theme() ) {
|
|
||||||
// Code for block themes goes here.
|
|
||||||
?>
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html <?php language_attributes(); ?>>
|
<html <?php language_attributes(); ?>>
|
||||||
<head>
|
<head>
|
||||||
|
@ -14,8 +11,7 @@ if ( wp_is_block_theme() ) {
|
||||||
</div>
|
</div>
|
||||||
<!-- /wp:group -->'
|
<!-- /wp:group -->'
|
||||||
);
|
);
|
||||||
?>
|
wp_head(); ?>
|
||||||
<?php wp_head(); ?>
|
|
||||||
</head>
|
</head>
|
||||||
<body <?php body_class(); ?>>
|
<body <?php body_class(); ?>>
|
||||||
<?php wp_body_open(); ?>
|
<?php wp_body_open(); ?>
|
||||||
|
@ -24,17 +20,18 @@ if ( wp_is_block_theme() ) {
|
||||||
<?php block_header_area(); ?>
|
<?php block_header_area(); ?>
|
||||||
</header>
|
</header>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// Code for classic themes goes here.
|
|
||||||
get_header();
|
get_header();
|
||||||
|
the_post();
|
||||||
}
|
}
|
||||||
|
|
||||||
$event_id = get_the_id();
|
|
||||||
global $event_id;
|
$event_id = get_the_id();
|
||||||
the_post();
|
global $event_id, $post, $woocommerce;
|
||||||
global $post, $woocommerce;
|
$event_id = !empty($event_id) ? $event_id : $post->ID;
|
||||||
|
$_the_event_id = $event_id;
|
||||||
|
|
||||||
if (post_password_required()) {
|
if (post_password_required()) {
|
||||||
?>
|
?>
|
||||||
<div class="mep-events-wrapper">
|
<div class="mep-events-wrapper">
|
||||||
|
@ -64,7 +61,7 @@ if (post_password_required()) {
|
||||||
$current_template = $event_meta['mep_event_template'][0];
|
$current_template = $event_meta['mep_event_template'][0];
|
||||||
$_current_template = $current_template ? $current_template : $global_template;
|
$_current_template = $current_template ? $current_template : $global_template;
|
||||||
$currency_pos = get_option('woocommerce_currency_pos');
|
$currency_pos = get_option('woocommerce_currency_pos');
|
||||||
do_action('mep_event_single_page_after_header',$event_id);
|
do_action('mep_event_single_page_after_header',$_the_event_id);
|
||||||
?>
|
?>
|
||||||
<div class="mep-events-wrapper wrapper">
|
<div class="mep-events-wrapper wrapper">
|
||||||
<div class="mep-events-container">
|
<div class="mep-events-container">
|
||||||
|
@ -90,8 +87,9 @@ if (post_password_required()) {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
do_action('mep_event_single_template_end', $event_id);
|
// echo $_the_event_id;
|
||||||
do_action('mep_event_single_page_before_footer', $event_id);
|
do_action('mep_event_single_template_end', $_the_event_id);
|
||||||
|
do_action('mep_event_single_page_before_footer', $_the_event_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( wp_is_block_theme() ) {
|
if ( wp_is_block_theme() ) {
|
||||||
|
@ -106,4 +104,3 @@ if ( wp_is_block_theme() ) {
|
||||||
} else {
|
} else {
|
||||||
get_footer();
|
get_footer();
|
||||||
}
|
}
|
||||||
?>
|
|
|
@ -1,25 +1,17 @@
|
||||||
<p>
|
<p>
|
||||||
<?php echo mep_get_option('mep_by_text', 'label_setting_sec') ? mep_get_option('mep_by_text', 'label_setting_sec') : esc_html__('By:','mage-eventpress'); ?>
|
<?php
|
||||||
<?php
|
echo mep_get_option('mep_by_text', 'label_setting_sec') ? mep_get_option('mep_by_text', 'label_setting_sec') : esc_html__('By:','mage-eventpress');
|
||||||
$count_term = sizeof($org);
|
$count_term = sizeof($org);
|
||||||
$count = 1;
|
$count = 1;
|
||||||
if( $count_term > 1){
|
if( $count_term > 1){
|
||||||
foreach ($org as $_org) {
|
foreach ($org as $_org) {
|
||||||
?>
|
?>
|
||||||
<a href="<?php echo get_term_link( $_org->term_id, 'mep_org' ); ?>">
|
<a href="<?php echo get_term_link( $_org->term_id, 'mep_org' ); ?>"><?php echo esc_html($_org->name); if($count_term == $count){ }else{ echo ', '; } ?></a>
|
||||||
<?php echo esc_html($_org->name); if($count_term == $count){
|
<?php
|
||||||
|
|
||||||
}else{
|
|
||||||
echo ', ';
|
|
||||||
} ?>
|
|
||||||
</a><?php
|
|
||||||
$count++;
|
$count++;
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
?>
|
?>
|
||||||
|
<a href="<?php echo get_term_link( $org[0]->term_id, 'mep_org' ); ?>"><?php echo esc_html($org[0]->name); ?></a>
|
||||||
<a href="<?php echo get_term_link( $author_terms[0]->term_id, 'mep_org' ); ?>">
|
|
||||||
<?php echo esc_html($author_terms[0]->name); ?>
|
|
||||||
</a>
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</p>
|
</p>
|
|
@ -12,55 +12,58 @@ $hide_schedule_details = mep_get_option('mep_event_hide_event_schedule_deta
|
||||||
$hide_share_details = mep_get_option('mep_event_hide_share_this_details', 'single_event_setting_sec', 'no');
|
$hide_share_details = mep_get_option('mep_event_hide_share_this_details', 'single_event_setting_sec', 'no');
|
||||||
$hide_calendar_details = mep_get_option('mep_event_hide_calendar_details', 'single_event_setting_sec', 'no');
|
$hide_calendar_details = mep_get_option('mep_event_hide_calendar_details', 'single_event_setting_sec', 'no');
|
||||||
$speaker_status = mep_get_option('mep_enable_speaker_list', 'single_event_setting_sec', 'no');
|
$speaker_status = mep_get_option('mep_enable_speaker_list', 'single_event_setting_sec', 'no');
|
||||||
|
|
||||||
|
$_the_event_id = $event_id;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="mep-default-theme mep_flex default_theme">
|
<div class="mep-default-theme mep_flex default_theme">
|
||||||
<div class="mep-default-content">
|
<div class="mep-default-content">
|
||||||
<div class="mep-default-title">
|
<div class="mep-default-title">
|
||||||
<?php do_action('mep_event_title', $event_id); ?>
|
<?php do_action('mep_event_title', $_the_event_id); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="mep-default-feature-image">
|
<div class="mep-default-feature-image">
|
||||||
<?php do_action('mep_event_thumbnail', $event_id); ?>
|
<?php do_action('mep_event_thumbnail', $_the_event_id); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="mep-default-feature-content">
|
<div class="mep-default-feature-content">
|
||||||
<?php do_action('mep_event_details', $event_id); ?>
|
<?php do_action('mep_event_details', $_the_event_id); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="mep-default-feature-cart-sec">
|
<div class="mep-default-feature-cart-sec">
|
||||||
<?php do_action('mep_add_to_cart',$event_id) ?>
|
<?php do_action('mep_add_to_cart',$_the_event_id) ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="mep-default-feature-faq-sec">
|
<div class="mep-default-feature-faq-sec">
|
||||||
<?php do_action('mep_event_faq',$event_id); ?>
|
<?php do_action('mep_event_faq',$_the_event_id); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mep-default-sidebar">
|
<div class="mep-default-sidebar">
|
||||||
<div class="df-sidebar-part">
|
<div class="df-sidebar-part">
|
||||||
<?php if ($hide_total_seat_details == 'no') { ?>
|
<?php if ($hide_total_seat_details == 'no') { ?>
|
||||||
<div class="mep-default-sidrbar-price-seat">
|
<div class="mep-default-sidrbar-price-seat">
|
||||||
<div class="df-seat"><?php do_action('mep_event_seat', $event_id); ?></div>
|
<div class="df-seat"><?php do_action('mep_event_seat', $_the_event_id); ?></div>
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php if ($hide_org_by_details == 'no') { ?>
|
<?php if ($hide_org_by_details == 'no') { ?>
|
||||||
<div class="mep-default-sidrbar-meta">
|
<div class="mep-default-sidrbar-meta">
|
||||||
<i class="far fa-list-alt"></i> <?php do_action('mep_event_organizer', $event_id); ?>
|
<i class="far fa-list-alt"></i> <?php do_action('mep_event_organizer', $_the_event_id); ?>
|
||||||
</div>
|
</div>
|
||||||
<?php } if($speaker_status == 'yes'){ ?>
|
<?php } if($speaker_status == 'yes'){ ?>
|
||||||
<div class="mep-default-sidebar-speaker-list">
|
<div class="mep-default-sidebar-speaker-list">
|
||||||
<?php do_action('mep_event_speakers_list',$event_id); ?>
|
<?php do_action('mep_event_speakers_list',$_the_event_id); ?>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
if ($hide_schedule_details == 'no') { ?>
|
if ($hide_schedule_details == 'no') { ?>
|
||||||
<div class="mep-default-sidrbar-events-schedule">
|
<div class="mep-default-sidrbar-events-schedule">
|
||||||
<?php do_action('mep_event_date_default_theme',$event_id); ?>
|
<?php do_action('mep_event_date_default_theme',$_the_event_id); ?>
|
||||||
</div>
|
</div>
|
||||||
<?php }
|
<?php }
|
||||||
if ($hide_share_details == 'no') { ?>
|
if ($hide_share_details == 'no') { ?>
|
||||||
<div class="mep-default-sidrbar-social">
|
<div class="mep-default-sidrbar-social">
|
||||||
<?php do_action('mep_event_social_share', $event_id); ?>
|
<?php do_action('mep_event_social_share', $_the_event_id); ?>
|
||||||
</div>
|
</div>
|
||||||
<?php }
|
<?php }
|
||||||
if ($hide_calendar_details == 'no') { ?>
|
if ($hide_calendar_details == 'no') { ?>
|
||||||
<div class="mep-default-sidrbar-calender-btn">
|
<div class="mep-default-sidrbar-calender-btn">
|
||||||
<?php do_action('mep_event_add_calender',$event_id); ?>
|
<?php do_action('mep_event_add_calender',$_the_event_id); ?>
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue