mage-eventpress/templates/themes/default-theme.php

135 lines
6.9 KiB
PHP
Raw Normal View History

2018-07-02 05:44:24 -04:00
<?php
// Template Name: Default Theme
// Settings Value :::::::::::::::::::::::::::::::::::::::;
2024-01-25 02:52:44 -05:00
$event_id = empty($event_id) ? get_the_id() : $event_id;
2022-04-12 01:00:35 -04:00
$hide_date_details = mep_get_option('mep_event_hide_date_from_details', 'single_event_setting_sec', 'no');
$hide_time_details = mep_get_option('mep_event_hide_time_from_details', 'single_event_setting_sec', 'no');
$hide_location_details = mep_get_option('mep_event_hide_location_from_details', 'single_event_setting_sec', 'no');
$hide_total_seat_details = mep_get_option('mep_event_hide_total_seat_from_details', 'single_event_setting_sec', 'no');
$hide_org_by_details = mep_get_option('mep_event_hide_org_from_details', 'single_event_setting_sec', 'no');
$hide_address_details = mep_get_option('mep_event_hide_address_from_details', 'single_event_setting_sec', 'no');
$hide_schedule_details = mep_get_option('mep_event_hide_event_schedule_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');
$speaker_status = mep_get_option('mep_enable_speaker_list', 'single_event_setting_sec', 'no');
$event_date_icon = mep_get_option('mep_event_date_icon', 'icon_setting_sec', 'fa fa-calendar');
$event_time_icon = mep_get_option('mep_event_time_icon', 'icon_setting_sec', 'fas fa-clock');
$event_location_icon = mep_get_option('mep_event_location_icon', 'icon_setting_sec', 'fas fa-map-marker-alt');
$event_organizer_icon = mep_get_option('mep_event_organizer_icon', 'icon_setting_sec', 'far fa-list-alt');
2023-07-24 22:16:45 -04:00
$show_google_map_location = get_post_meta($event_id,'mep_sgm',true) ? get_post_meta($event_id,'mep_sgm',true) : 'no';
// echo $event_id;
2018-07-02 05:44:24 -04:00
?>
2020-01-22 07:15:24 -05:00
<div class="mep-default-theme mep_flex default_theme">
2019-07-18 07:51:42 -04:00
<div class="mep-default-content">
<div class="mep-default-title">
2023-07-24 22:16:45 -04:00
<?php do_action('mep_event_title', $event_id); ?>
2019-07-18 07:51:42 -04:00
</div>
<div class="mep-default-feature-image">
2023-07-24 22:16:45 -04:00
<?php do_action('mep_event_thumbnail', $event_id); ?>
2019-07-18 07:51:42 -04:00
</div>
<div class="mep-default-feature-date-location">
2020-01-22 07:15:24 -05:00
<?php if ($hide_date_details == 'no') { ?>
<div class="mep-default-feature-date">
2022-04-12 01:00:35 -04:00
<div class="df-ico"><i class="<?php echo $event_date_icon; ?>"></i></div>
2020-01-22 07:15:24 -05:00
<div class='df-dtl'>
<h3>
2023-07-24 22:16:45 -04:00
<?php
2023-08-29 02:17:31 -04:00
echo mep_get_option('mep_event_date_text', 'label_setting_sec', __('Event Date:', 'mage-eventpress'));
2023-07-24 22:16:45 -04:00
?>
2020-01-22 07:15:24 -05:00
</h3>
2023-07-24 22:16:45 -04:00
<?php do_action('mep_event_date_only',$event_id); ?>
2020-01-22 07:15:24 -05:00
</div>
2019-07-18 07:51:42 -04:00
</div>
2020-01-22 07:15:24 -05:00
<?php }
if ($hide_time_details == 'no') { ?>
<div class="mep-default-feature-time">
2022-04-12 01:00:35 -04:00
<div class="df-ico"><i class="<?php echo $event_time_icon; ?>"></i></div>
2020-01-22 07:15:24 -05:00
<div class='df-dtl'>
<h3>
2023-08-29 02:17:31 -04:00
<?php echo mep_get_option('mep_event_time_text', 'label_setting_sec', __('Event Time:', 'mage-eventpress')); ?>
2020-01-22 07:15:24 -05:00
</h3>
2023-07-24 22:16:45 -04:00
<?php do_action('mep_event_time_only',$event_id); ?>
2020-01-22 07:15:24 -05:00
</div>
2019-07-18 07:51:42 -04:00
</div>
2020-01-22 07:15:24 -05:00
<?php }
2023-07-24 22:16:45 -04:00
if ($hide_location_details == 'no' ) { ?>
2020-01-22 07:15:24 -05:00
<div class="mep-default-feature-location">
2022-04-12 01:00:35 -04:00
<div class="df-ico"><i class="<?php echo $event_location_icon; ?>"></i></div>
2020-01-22 07:15:24 -05:00
<div class='df-dtl'>
<h3>
2023-08-29 02:17:31 -04:00
<?php echo mep_get_option('mep_event_location_text', 'label_setting_sec', __('Event Location:', 'mage-eventpress')); ?>
2020-01-22 07:15:24 -05:00
</h3>
2023-07-24 22:16:45 -04:00
<p><?php do_action('mep_event_location_venue', $event_id); ?>
2020-10-26 07:41:46 -04:00
<?php //do_action('mep_event_location_city'); ?> </p>
2020-01-22 07:15:24 -05:00
</div>
2019-07-18 07:51:42 -04:00
</div>
<?php } ?>
2019-07-18 07:51:42 -04:00
</div>
<div class="mep-default-feature-content">
2023-07-24 22:16:45 -04:00
<?php do_action('mep_event_details', $event_id); ?>
2019-07-18 07:51:42 -04:00
</div>
<div class="mep-default-feature-cart-sec">
2023-07-24 22:16:45 -04:00
<?php do_action('mep_add_to_cart', $event_id) ?>
2019-07-18 07:51:42 -04:00
</div>
2018-07-05 06:10:06 -04:00
2019-07-18 07:51:42 -04:00
<div class="mep-default-feature-faq-sec">
2023-07-24 22:16:45 -04:00
<?php do_action('mep_event_faq',$event_id); ?>
2019-07-18 07:51:42 -04:00
</div>
2018-07-05 06:10:06 -04:00
2019-07-18 07:51:42 -04:00
</div>
<div class="mep-default-sidebar">
2023-07-24 22:16:45 -04:00
<?php if ($hide_location_details == 'no' && $show_google_map_location != 'no') { ?>
2019-07-18 07:51:42 -04:00
<div class="mep-default-sidrbar-map">
2020-01-22 07:15:24 -05:00
<h3>
2023-08-29 02:17:31 -04:00
<?php echo mep_get_option('mep_event_location_text', 'label_setting_sec', __('Event Location:', 'mage-eventpress')); ?>
2019-07-18 07:51:42 -04:00
</h3>
2023-07-24 22:16:45 -04:00
<?php do_action('mep_event_map',$event_id); ?>
2019-07-18 07:51:42 -04:00
</div>
2023-07-24 22:16:45 -04:00
<?php } ?>
2019-07-18 07:51:42 -04:00
<div class="df-sidebar-part">
2020-01-22 07:15:24 -05:00
<?php if ($hide_total_seat_details == 'no') { ?>
<div class="mep-default-sidrbar-price-seat">
2023-07-24 22:16:45 -04:00
<div class="df-seat"><?php do_action('mep_event_seat', $event_id); ?></div>
2020-01-22 07:15:24 -05:00
</div>
<?php } ?>
2023-07-24 22:16:45 -04:00
<?php if ($hide_org_by_details == 'no' && has_term('','mep_org',$event_id)) { ?>
2020-01-22 07:15:24 -05:00
<div class="mep-default-sidrbar-meta">
2023-07-24 22:16:45 -04:00
<i class="<?php echo $event_organizer_icon; ?>"></i> <?php do_action('mep_event_organizer', $event_id); ?>
2020-01-22 07:15:24 -05:00
</div>
<?php }
2020-04-28 06:37:33 -04:00
2020-01-22 07:15:24 -05:00
if ($hide_address_details == 'no') { ?>
<div class="mep-default-sidrbar-address">
2023-07-24 22:16:45 -04:00
<?php do_action('mep_event_address_list_sidebar',$event_id); ?>
2020-01-22 07:15:24 -05:00
</div>
<?php }
if ($hide_schedule_details == 'no') { ?>
<div class="mep-default-sidrbar-events-schedule">
2023-07-24 22:16:45 -04:00
<?php do_action('mep_event_date_default_theme',$event_id); ?>
2020-01-22 07:15:24 -05:00
</div>
<?php }
if ($hide_share_details == 'no') { ?>
<div class="mep-default-sidrbar-social">
2023-07-24 22:16:45 -04:00
<?php do_action('mep_event_social_share', $event_id); ?>
2020-01-22 07:15:24 -05:00
</div>
<?php }
2020-04-28 06:37:33 -04:00
if($speaker_status == 'yes'){ ?>
<div class="mep-default-sidebar-speaker-list">
2023-07-24 22:16:45 -04:00
<?php do_action('mep_event_speakers_list',$event_id); ?>
2020-04-28 06:37:33 -04:00
</div>
<?php
}
2020-01-22 07:15:24 -05:00
if ($hide_calendar_details == 'no') { ?>
<div class="mep-default-sidrbar-calender-btn">
2023-07-24 22:16:45 -04:00
<?php do_action('mep_event_add_calender',$event_id); ?>
2020-01-22 07:15:24 -05:00
</div>
2023-06-08 03:41:25 -04:00
<?php }
2021-02-25 06:55:25 -05:00
dynamic_sidebar('mep_default_sidebar');
2023-06-08 03:41:25 -04:00
2021-02-25 06:55:25 -05:00
?>
2019-07-18 07:51:42 -04:00
</div>
</div>
2023-07-24 22:16:45 -04:00
</div>