v 3.9.9 file update

This commit is contained in:
magepeopleteam 2023-08-07 05:37:33 +00:00
parent 6731a9b71e
commit 438872ed09
4 changed files with 41 additions and 50 deletions

View File

@ -9,10 +9,9 @@ if (!function_exists('mep_ev_org')) {
{
global $post, $author_terms;
ob_start();
if ($author_terms) {
$org = get_the_terms($event_id, 'mep_org');
if(!empty($org)){
require(mep_template_file_path('single/organizer.php'));
}
$content = ob_get_clean();
echo apply_filters('mage_event_single_org_name', $content, $event_id);

View File

@ -1,7 +1,4 @@
<?php
if ( wp_is_block_theme() ) {
// Code for block themes goes here.
?>
<?php if ( wp_is_block_theme() ) { ?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
@ -14,8 +11,7 @@ if ( wp_is_block_theme() ) {
</div>
<!-- /wp:group -->'
);
?>
<?php wp_head(); ?>
wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
@ -24,17 +20,18 @@ if ( wp_is_block_theme() ) {
<?php block_header_area(); ?>
</header>
</div>
<?php
<?php
} else {
// Code for classic themes goes here.
get_header();
the_post();
}
$event_id = get_the_id();
global $event_id;
the_post();
global $post, $woocommerce;
global $event_id, $post, $woocommerce;
$event_id = !empty($event_id) ? $event_id : $post->ID;
$_the_event_id = $event_id;
if (post_password_required()) {
?>
<div class="mep-events-wrapper">
@ -64,7 +61,7 @@ if (post_password_required()) {
$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',$event_id);
do_action('mep_event_single_page_after_header',$_the_event_id);
?>
<div class="mep-events-wrapper wrapper">
<div class="mep-events-container">
@ -90,8 +87,9 @@ if (post_password_required()) {
</div>
</div>
<?php
do_action('mep_event_single_template_end', $event_id);
do_action('mep_event_single_page_before_footer', $event_id);
// 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);
}
if ( wp_is_block_theme() ) {
@ -106,4 +104,3 @@ if ( wp_is_block_theme() ) {
} else {
get_footer();
}
?>

View File

@ -1,25 +1,17 @@
<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
$count_term = sizeof($org);
$count = 1;
<?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 = 1;
if( $count_term > 1){
foreach ($org as $_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
<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
$count++;
}
}else{
?>
<a href="<?php echo get_term_link( $author_terms[0]->term_id, 'mep_org' ); ?>">
<?php echo esc_html($author_terms[0]->name); ?>
</a>
<a href="<?php echo get_term_link( $org[0]->term_id, 'mep_org' ); ?>"><?php echo esc_html($org[0]->name); ?></a>
<?php } ?>
</p>

View File

@ -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_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');
$_the_event_id = $event_id;
?>
<div class="mep-default-theme mep_flex default_theme">
<div class="mep-default-content">
<div class="mep-default-title">
<?php do_action('mep_event_title', $event_id); ?>
<?php do_action('mep_event_title', $_the_event_id); ?>
</div>
<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 class="mep-default-feature-content">
<?php do_action('mep_event_details', $event_id); ?>
<?php do_action('mep_event_details', $_the_event_id); ?>
</div>
<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 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 class="mep-default-sidebar">
<div class="df-sidebar-part">
<?php if ($hide_total_seat_details == 'no') { ?>
<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>
<?php } ?>
<?php if ($hide_org_by_details == 'no') { ?>
<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>
<?php } if($speaker_status == 'yes'){ ?>
<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>
<?php
}
if ($hide_schedule_details == 'no') { ?>
<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>
<?php }
if ($hide_share_details == 'no') { ?>
<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>
<?php }
if ($hide_calendar_details == 'no') { ?>
<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>
<?php } ?>
</div>