version 3.0.1 released with some bug fixed
This commit is contained in:
parent
4531a4be49
commit
1a74aafd6b
|
@ -7,7 +7,9 @@
|
|||
border: 0px solid #ddd;
|
||||
padding: 0px;
|
||||
max-width: 1170px;
|
||||
margin: 0 auto;
|
||||
margin: 20px auto;
|
||||
background: #fff;
|
||||
padding: 20px;
|
||||
}
|
||||
.mep-event-detailsss {
|
||||
border: 1px solid #ddd;
|
||||
|
|
|
@ -149,8 +149,8 @@ class MAGE_Events_Setting_Controls {
|
|||
'type' => 'select',
|
||||
'default' => 'mep_event_start_date',
|
||||
'options' => array(
|
||||
'mep_event_start_date' => 'Event Start Time',
|
||||
'mep_event_end_date' => 'Event End Time'
|
||||
'event_start_date' => 'Event Start Time',
|
||||
'event_end_date' => 'Event End Time'
|
||||
)
|
||||
),
|
||||
|
||||
|
@ -253,8 +253,8 @@ class MAGE_Events_Setting_Controls {
|
|||
),
|
||||
|
||||
array(
|
||||
'name' => 'mep_event_hide_event_by_from_details',
|
||||
'label' => __( 'Hide Event by Section from Details page ?', 'mage-eventpress' ),
|
||||
'name' => 'mep_event_hide_org_from_details',
|
||||
'label' => __( 'Hide "Org By" Section from Details page ?', 'mage-eventpress' ),
|
||||
'desc' => __( 'Select yes to Event by Section from details.', 'mage-eventpress' ),
|
||||
'type' => 'select',
|
||||
'default' => 'no',
|
||||
|
@ -301,8 +301,8 @@ class MAGE_Events_Setting_Controls {
|
|||
),
|
||||
|
||||
array(
|
||||
'name' => 'mep_event_hide_google_map_details',
|
||||
'label' => __( 'Hide Event Google map from Details page ?', 'mage-eventpress' ),
|
||||
'name' => 'mep_event_hide_calendar_details',
|
||||
'label' => __( 'Hide Add Calendar Button from Details page ?', 'mage-eventpress' ),
|
||||
'desc' => __( 'Select yes to Event google map Section from details.', 'mage-eventpress' ),
|
||||
'type' => 'select',
|
||||
'default' => 'no',
|
||||
|
|
|
@ -127,9 +127,11 @@ foreach ($terms as $_terms) {
|
|||
<?php } if($org_f=='yes'){ ?>
|
||||
<div class="mep-events-cats-list">
|
||||
<?php
|
||||
$terms = get_terms( array(
|
||||
'taxonomy' => 'mep_org'
|
||||
) );
|
||||
$terms = get_terms(
|
||||
array(
|
||||
'taxonomy' => 'mep_org'
|
||||
)
|
||||
);
|
||||
?>
|
||||
<div class="mep-event-cat-controls">
|
||||
<button type="button" class="mep-cat-control" data-filter="all"><?php _e('All','mage-eventpress'); ?></button><?php
|
||||
|
@ -144,10 +146,15 @@ foreach ($terms as $_terms) {
|
|||
<div class="mep_event_list_sec">
|
||||
<?php
|
||||
$now = current_time('Y-m-d H:i:s');
|
||||
$show_price = mep_get_option( 'mep_event_price_show', 'general_setting_sec', 'yes');
|
||||
$show_price_label = mep_get_option( 'event-price-label', 'general_setting_sec', 'Price Starts from:');
|
||||
$paged = get_query_var("paged")?get_query_var("paged"):1;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$show_price = mep_get_option( 'mep_event_price_show', 'general_setting_sec', 'yes');
|
||||
$show_price_label = mep_get_option( 'event-price-label', 'general_setting_sec', 'Price Starts from:');
|
||||
$paged = get_query_var("paged")?get_query_var("paged"):1;
|
||||
|
||||
if($cat>0){
|
||||
$args_search_qqq = array (
|
||||
|
@ -235,6 +242,7 @@ $cat_class = mep_get_term_as_class(get_the_id(),'mep_cat');
|
|||
|
||||
|
||||
$available_seat = mep_get_total_available_seat(get_the_id(), $event_meta);
|
||||
if($style == 'grid'){
|
||||
if ($column == 2){
|
||||
$columnNumber = 'two_column';
|
||||
} elseif ($column == 3){
|
||||
|
@ -243,7 +251,11 @@ $available_seat = mep_get_total_available_seat(get_the_id(), $event_meta);
|
|||
$columnNumber = 'four_column';
|
||||
}else{
|
||||
$columnNumber = 'two_column';
|
||||
}
|
||||
}
|
||||
}else{
|
||||
$columnNumber = 'one_column';
|
||||
}
|
||||
|
||||
?>
|
||||
<div class='<?php echo $columnNumber; ?> mep_event_<?php echo $style; ?>_item mix <?php if($tt){ echo 'mage-'.$org_class; } ?> <?php if($torg){ echo 'mage-'.$cat_class; } ?>'>
|
||||
<div class="mep_list_thumb">
|
||||
|
@ -266,10 +278,22 @@ if($style=='list'){
|
|||
<div class="mep-event-excerpt">
|
||||
<?php the_excerpt(); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php }
|
||||
|
||||
|
||||
// List Settings Values::::::::::::::::::::::::
|
||||
$hide_org_list = mep_get_option( 'mep_event_hide_organizer_list', 'general_setting_sec', 'no');
|
||||
$hide_location_list = mep_get_option( 'mep_event_hide_location_list', 'general_setting_sec', 'no');
|
||||
$hide_time_list = mep_get_option( 'mep_event_hide_time_list', 'general_setting_sec', 'no');
|
||||
$hide_only_end_time_list = mep_get_option( 'mep_event_hide_end_time_list', 'general_setting_sec', 'no');
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<div class="mep-list-footer">
|
||||
<ul>
|
||||
<?php if($hide_org_list == 'no'){ ?>
|
||||
<li>
|
||||
<div class="evl-ico"><i class="fa fa-university"></i> </div>
|
||||
<div class="evl-cc">
|
||||
|
@ -279,6 +303,8 @@ if($style=='list'){
|
|||
<h6><?php if($author_terms){ echo $author_terms[0]->name; } ?></h6>
|
||||
</div>
|
||||
</li>
|
||||
<?php } if($hide_location_list == 'no'){ ?>
|
||||
|
||||
<li>
|
||||
<div class="evl-ico"><i class="fa fa-location-arrow"></i> </div>
|
||||
<div class="evl-cc">
|
||||
|
@ -288,16 +314,18 @@ if($style=='list'){
|
|||
</h5>
|
||||
<h6><?php mep_get_event_city(get_the_id()); ?></h6>
|
||||
</div>
|
||||
</li>
|
||||
</li>
|
||||
<?php } if($hide_time_list == 'no'){ ?>
|
||||
<li>
|
||||
<div class="evl-ico"><i class="fa fa-calendar"></i> </div>
|
||||
<div class="evl-cc">
|
||||
<h5>
|
||||
<?php echo mep_get_option('mep_time_text', 'label_setting_sec') ? mep_get_option('mep_time_text', 'label_setting_sec') : _e('Time:','mage-eventpress'); ?>
|
||||
</h5>
|
||||
<h6><?php mep_get_only_time($event_meta['event_start_time'][0]); ?> - <?php mep_get_only_time($event_meta['event_end_time'][0]); ?></h6>
|
||||
<h6><?php mep_get_only_time($event_meta['event_start_time'][0]); if($hide_only_end_time_list == 'no'){ ?> - <?php mep_get_only_time($event_meta['event_end_time'][0]); } ?></h6>
|
||||
</div>
|
||||
</li>
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div></a>
|
||||
</div>
|
||||
|
|
|
@ -1,20 +1,24 @@
|
|||
jQuery(document).ready(function($){
|
||||
var startDateTextBox = jQuery('.event_start');
|
||||
var endDateTextBox = jQuery('.event_end');
|
||||
jQuery.timepicker.datetimeRange(
|
||||
startDateTextBox,
|
||||
endDateTextBox,
|
||||
{
|
||||
minInterval: (1000*60*60), // 1hr
|
||||
dateFormat: 'yy-mm-dd',
|
||||
timeFormat: 'HH:mm',
|
||||
start: {}, // start picker options
|
||||
end: {} // end picker options
|
||||
}
|
||||
);
|
||||
});
|
||||
jQuery('.event_more_date').datetimepicker({
|
||||
dateFormat: 'yy-mm-dd',
|
||||
timeFormat: "HH:mm"
|
||||
// minDate:0
|
||||
});
|
||||
// var startDateTextBox = jQuery('.event_start');
|
||||
// var endDateTextBox = jQuery('.event_end');
|
||||
// jQuery.timepicker.datetimeRange(
|
||||
// startDateTextBox,
|
||||
// endDateTextBox,
|
||||
// {
|
||||
// minInterval: (1000*60*60), // 1hr
|
||||
// dateFormat: 'yy-mm-dd',
|
||||
// timeFormat: 'HH:mm',
|
||||
// start: {}, // start picker options
|
||||
// end: {} // end picker options
|
||||
// }
|
||||
// );
|
||||
|
||||
|
||||
// jQuery('.event_more_date').datetimepicker({
|
||||
// dateFormat: 'yy-mm-dd',
|
||||
// timeFormat: "HH:mm"
|
||||
// // minDate:0
|
||||
// });
|
||||
|
||||
|
||||
});
|
12
readme.txt
12
readme.txt
|
@ -4,7 +4,7 @@ Tags: event, woocomerce events manager, events manager, Wordpress Events plugin,
|
|||
Requires at least: 4.5
|
||||
Stable tag: trunk
|
||||
Version: 2.1.3
|
||||
Tested up to: 5.2
|
||||
Tested up to: 5.3
|
||||
Requires PHP: 5.6
|
||||
WC requires at least: 3.0
|
||||
WC tested up to: 3.6.3
|
||||
|
@ -424,4 +424,12 @@ A. you can create support ticket here with problem details with possible screens
|
|||
==> Code Improved
|
||||
==> Facebook For Woocommerce Issue Fixed
|
||||
==> Bug Fixed
|
||||
10 Dec 2019*
|
||||
10 Dec 2019*
|
||||
|
||||
|
||||
*= 3.0.1 =
|
||||
* Update Release:
|
||||
==> Shortcode not showing issue fixed
|
||||
==> Timezone issue fixed.
|
||||
==> Time Format issue fixed.
|
||||
15 Dec 2019*
|
|
@ -81,10 +81,11 @@ if($recurring == 'yes'){
|
|||
|
||||
|
||||
|
||||
date_default_timezone_set(get_option('timezone_string'));
|
||||
$default_timezone_val = get_option('timezone_string') ? get_option('timezone_string') : 'UTC';
|
||||
date_default_timezone_set($default_timezone_val);
|
||||
|
||||
$datetime1 = new DateTime($newformat);
|
||||
$datetime2 = new DateTime($current);
|
||||
|
||||
$interval = date_diff($datetime2, $datetime1);
|
||||
|
||||
|
||||
|
|
|
@ -2,14 +2,15 @@
|
|||
add_action('mep_event_date','mep_ev_datetime');
|
||||
function mep_ev_datetime(){
|
||||
global $event_meta;
|
||||
$start_datetime = $event_meta['event_start_date'][0].' '.$event_meta['event_start_time'][0];
|
||||
$start_date = $event_meta['event_start_date'][0];
|
||||
$start_time = $event_meta['event_start_time'][0];
|
||||
$start_datetime = $event_meta['event_start_date'][0].' '.$event_meta['event_start_time'][0];
|
||||
$start_date = $event_meta['event_start_date'][0];
|
||||
$start_time = $event_meta['event_start_time'][0];
|
||||
|
||||
$end_datetime = $event_meta['event_end_date'][0].' '.$event_meta['event_end_time'][0];
|
||||
$end_datetime = $event_meta['event_end_date'][0].' '.$event_meta['event_end_time'][0];
|
||||
|
||||
$end_date = $event_meta['event_end_date'][0];
|
||||
$end_time = $event_meta['event_end_time'][0];
|
||||
|
||||
if ( array_key_exists( 'mep_event_more_date', $event_meta ) ) {
|
||||
$more_date = unserialize( $event_meta['mep_event_more_date'][0] );
|
||||
} else {
|
||||
|
@ -17,7 +18,7 @@ global $event_meta;
|
|||
}
|
||||
|
||||
$recurring = get_post_meta(get_the_id(), 'mep_enable_recurring', true) ? get_post_meta(get_the_id(), 'mep_enable_recurring', true) : 'no';
|
||||
$mep_show_upcoming_event = get_post_meta(get_the_id(), 'mep_show_upcoming_event', true) ? get_post_meta(get_the_id(), 'mep_show_upcoming_event', true) : 'no';
|
||||
$mep_show_upcoming_event = get_post_meta(get_the_id(), 'mep_show_upcoming_event', true) ? get_post_meta(get_the_id(), 'mep_show_upcoming_event', true) : 'no';
|
||||
$cn = 1;
|
||||
|
||||
if($recurring == 'yes'){
|
||||
|
@ -188,7 +189,7 @@ foreach($more_date as $ev_date){
|
|||
}
|
||||
if($cn == $cnt){
|
||||
?>
|
||||
<p><?php echo date_i18n('d M Y', strtotime($ev_date)); ?> </p>
|
||||
<p><?php echo get_mep_datetime($ev_date,'date-text'); ?></p>
|
||||
<?php
|
||||
$cn++;
|
||||
}
|
||||
|
@ -196,7 +197,7 @@ foreach($more_date as $ev_date){
|
|||
}
|
||||
}else{
|
||||
?>
|
||||
<p><?php echo date_i18n('d M Y', strtotime($start_datetime)); ?> </p>
|
||||
<p><?php echo get_mep_datetime($start_datetime,'date-text'); ?></p>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
@ -271,5 +272,6 @@ function mep_ev_date_ticket($event_meta){
|
|||
|
||||
$end_date = $_more_date['event_end_date'][0];
|
||||
$end_time = $event_meta['event_end_time'][0];
|
||||
echo date_i18n('d M Y', strtotime($start_datetime));
|
||||
//echo date_i18n('d M Y', strtotime($start_datetime));
|
||||
echo get_mep_datetime($start_datetime,'date-text');
|
||||
}
|
|
@ -1,5 +1,17 @@
|
|||
<?php
|
||||
// Template Name: Default Theme
|
||||
|
||||
// Settings Value :::::::::::::::::::::::::::::::::::::::;
|
||||
$hide_date_details = mep_get_option( 'mep_event_hide_date_from_details', 'general_setting_sec', 'no');
|
||||
$hide_time_details = mep_get_option( 'mep_event_hide_time_from_details', 'general_setting_sec', 'no');
|
||||
$hide_location_details = mep_get_option( 'mep_event_hide_location_from_details', 'general_setting_sec', 'no');
|
||||
$hide_total_seat_details = mep_get_option( 'mep_event_hide_total_seat_from_details', 'general_setting_sec', 'no');
|
||||
$hide_org_by_details = mep_get_option( 'mep_event_hide_org_from_details', 'general_setting_sec', 'no');
|
||||
$hide_address_details = mep_get_option( 'mep_event_hide_address_from_details', 'general_setting_sec', 'no');
|
||||
$hide_schedule_details = mep_get_option( 'mep_event_hide_event_schedule_details', 'general_setting_sec', 'no');
|
||||
$hide_share_details = mep_get_option( 'mep_event_hide_share_this_details', 'general_setting_sec', 'no');
|
||||
$hide_calendar_details = mep_get_option( 'mep_event_hide_calendar_details', 'general_setting_sec', 'no');
|
||||
|
||||
?>
|
||||
|
||||
<div class="mep-default-theme">
|
||||
|
@ -11,6 +23,7 @@
|
|||
<?php do_action( 'mep_event_thumbnail' ); ?>
|
||||
</div>
|
||||
<div class="mep-default-feature-date-location">
|
||||
<?php if($hide_date_details == 'no'){ ?>
|
||||
<div class="mep-default-feature-date">
|
||||
<div class="df-ico"><i class="fa fa-calendar"></i></div>
|
||||
<div class='df-dtl'>
|
||||
|
@ -20,6 +33,7 @@
|
|||
<?php do_action( 'mep_event_date_only' ); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php } if($hide_time_details == 'no'){ ?>
|
||||
<div class="mep-default-feature-time">
|
||||
<div class="df-ico"><i class="fa fa-clock-o"></i></div>
|
||||
<div class='df-dtl'>
|
||||
|
@ -29,6 +43,7 @@
|
|||
<?php do_action( 'mep_event_time_only' ); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php } if($hide_location_details == 'no'){ ?>
|
||||
<div class="mep-default-feature-location">
|
||||
<div class="df-ico"><i class="fa fa-map-marker"></i></div>
|
||||
<div class='df-dtl'>
|
||||
|
@ -39,6 +54,7 @@
|
|||
, <?php do_action( 'mep_event_location_city' ); ?> </p>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="mep-default-feature-content">
|
||||
<?php do_action( 'mep_event_details' ); ?>
|
||||
|
@ -62,12 +78,17 @@
|
|||
</div>
|
||||
<div class="df-sidebar-part">
|
||||
<div class="mep-default-sidrbar-price-seat">
|
||||
|
||||
<div class="df-price"><?php do_action( 'mep_event_price' ); ?></div>
|
||||
<?php if($hide_total_seat_details == 'no'){ ?>
|
||||
<div class="df-seat"><?php do_action( 'mep_event_seat' ); ?></div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php if($hide_org_by_details == 'no'){ ?>
|
||||
<div class="mep-default-sidrbar-meta">
|
||||
<i class="fa fa-link"></i> <?php do_action( 'mep_event_organizer' ); ?>
|
||||
</div>
|
||||
<?php } if($hide_address_details == 'no'){ ?>
|
||||
<div class="mep-default-sidrbar-address">
|
||||
<ul>
|
||||
<li><i class="fa fa-arrow-circle-right"></i> <?php do_action( 'mep_event_location_venue' ); ?></li>
|
||||
|
@ -80,19 +101,19 @@
|
|||
<?php //do_action('mep_event_date'); ?><!--</li>-->
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<?php } if($hide_schedule_details == 'no'){ ?>
|
||||
<div class="mep-default-sidrbar-events-schedule">
|
||||
<?php do_action( 'mep_event_date_default_theme' ); ?>
|
||||
</div>
|
||||
|
||||
|
||||
<?php } if($hide_share_details == 'no'){ ?>
|
||||
<div class="mep-default-sidrbar-social">
|
||||
<?php do_action( 'mep_event_social_share' ); ?>
|
||||
</div>
|
||||
<?php } if($hide_calendar_details == 'no'){?>
|
||||
<div class="mep-default-sidrbar-calender-btn">
|
||||
<?php do_action( 'mep_event_add_calender' ); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -1,5 +1,17 @@
|
|||
<?php
|
||||
// Template Name: Springfield
|
||||
|
||||
// Settings Value :::::::::::::::::::::::::::::::::::::::;
|
||||
$hide_date_details = mep_get_option( 'mep_event_hide_date_from_details', 'general_setting_sec', 'no');
|
||||
$hide_time_details = mep_get_option( 'mep_event_hide_time_from_details', 'general_setting_sec', 'no');
|
||||
$hide_location_details = mep_get_option( 'mep_event_hide_location_from_details', 'general_setting_sec', 'no');
|
||||
$hide_total_seat_details = mep_get_option( 'mep_event_hide_total_seat_from_details', 'general_setting_sec', 'no');
|
||||
$hide_org_by_details = mep_get_option( 'mep_event_hide_org_from_details', 'general_setting_sec', 'no');
|
||||
$hide_address_details = mep_get_option( 'mep_event_hide_address_from_details', 'general_setting_sec', 'no');
|
||||
$hide_schedule_details = mep_get_option( 'mep_event_hide_event_schedule_details', 'general_setting_sec', 'no');
|
||||
$hide_share_details = mep_get_option( 'mep_event_hide_share_this_details', 'general_setting_sec', 'no');
|
||||
$hide_calendar_details = mep_get_option( 'mep_event_hide_calendar_details', 'general_setting_sec', 'no');
|
||||
|
||||
?>
|
||||
<div class="mep-event-detailsss mep-event-theme-1">
|
||||
<div class="mep-top-part">
|
||||
|
@ -9,23 +21,25 @@
|
|||
<div class="mep-right-col">
|
||||
<div class="mep-event-title-header">
|
||||
<?php do_action('mep_event_title'); ?>
|
||||
<?php do_action('mep_event_organizer'); ?>
|
||||
<?php if($hide_org_by_details == 'no') do_action('mep_event_organizer'); ?>
|
||||
<?php do_action('mep_event_price'); ?>
|
||||
<?php do_action('mep_event_seat'); ?>
|
||||
<?php do_action('mep_event_add_calender'); ?>
|
||||
<?php if($hide_total_seat_details == 'no') do_action('mep_event_seat'); ?>
|
||||
<?php if($hide_calendar_details == 'no') do_action('mep_event_add_calender'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php do_action('mep_event_map'); ?>
|
||||
<div class="mep-btn-part">
|
||||
<div class="mep-left-col">
|
||||
<?php do_action('mep_event_social_share'); ?>
|
||||
<?php if($hide_share_details == 'no') do_action('mep_event_social_share'); ?>
|
||||
</div>
|
||||
<div class="mep-right-col">
|
||||
<?php if($hide_schedule_details == 'no'){ ?>
|
||||
<div class="mep-event-datetime">
|
||||
<h3><?php _e('Date and Time:','mage-eventpress'); ?></h3>
|
||||
<?php do_action('mep_event_date'); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mep-content-part">
|
||||
|
@ -43,11 +57,13 @@
|
|||
<div class="cart-btn-sec">
|
||||
<?php do_action('mep_add_to_cart') ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php if($hide_location_details == 'no'){ ?>
|
||||
<div class="mep-event-location">
|
||||
<h3><?php _e('Event Location:','mage-eventpress'); ?></h3>
|
||||
<?php do_action('mep_event_location') ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -1,27 +1,43 @@
|
|||
<?php
|
||||
// Template Name: Franklin
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// Settings Value :::::::::::::::::::::::::::::::::::::::;
|
||||
$hide_date_details = mep_get_option( 'mep_event_hide_date_from_details', 'general_setting_sec', 'no');
|
||||
$hide_time_details = mep_get_option( 'mep_event_hide_time_from_details', 'general_setting_sec', 'no');
|
||||
$hide_location_details = mep_get_option( 'mep_event_hide_location_from_details', 'general_setting_sec', 'no');
|
||||
$hide_total_seat_details = mep_get_option( 'mep_event_hide_total_seat_from_details', 'general_setting_sec', 'no');
|
||||
$hide_org_by_details = mep_get_option( 'mep_event_hide_org_from_details', 'general_setting_sec', 'no');
|
||||
$hide_address_details = mep_get_option( 'mep_event_hide_address_from_details', 'general_setting_sec', 'no');
|
||||
$hide_schedule_details = mep_get_option( 'mep_event_hide_event_schedule_details', 'general_setting_sec', 'no');
|
||||
$hide_share_details = mep_get_option( 'mep_event_hide_share_this_details', 'general_setting_sec', 'no');
|
||||
$hide_calendar_details = mep_get_option( 'mep_event_hide_calendar_details', 'general_setting_sec', 'no');
|
||||
|
||||
?>
|
||||
<div class="mep-template-2-hamza">
|
||||
<div class="mep-tem2-title">
|
||||
<?php do_action('mep_event_title'); ?>
|
||||
</div>
|
||||
|
||||
<?php if($hide_schedule_details == 'no'){ ?>
|
||||
<div class="mep-tem2-date">
|
||||
<?php do_action('mep_event_date'); ?>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
<div class="mep-tem2-thumbnail">
|
||||
<?php do_action('mep_event_thumbnail'); ?>
|
||||
</div>
|
||||
|
||||
<div class="mep-tem2-details">
|
||||
<?php do_action('mep_event_details'); ?>
|
||||
<?php do_action('mep_event_add_calender'); ?>
|
||||
<?php if($hide_calendar_details == 'no') do_action('mep_event_add_calender'); ?>
|
||||
</div>
|
||||
<div class="tem2-carts">
|
||||
<div class="tem2-cart-sec">
|
||||
<?php do_action('mep_event_price'); ?>
|
||||
<?php do_action('mep_event_seat'); ?>
|
||||
<?php if($hide_total_seat_details == 'no') do_action('mep_event_seat'); ?>
|
||||
<?php do_action('mep_add_to_cart') ?>
|
||||
</div>
|
||||
<div class="tem2-faq-sec">
|
||||
|
@ -30,17 +46,19 @@
|
|||
</div>
|
||||
<div class="mep-tem2-venue">
|
||||
<div class="tm2-location">
|
||||
<?php if($hide_org_by_details == 'no'){ ?>
|
||||
<h3><?php _e('Organizer:','mage-eventpress'); ?></h3>
|
||||
<?php do_action('mep_event_organizer'); ?>
|
||||
<?php do_action('mep_event_organizer'); } if($hide_address_details == 'no'){ ?>
|
||||
<h3><?php _e('Venue:','mage-eventpress'); ?></h3>
|
||||
<?php do_action('mep_event_location') ?>
|
||||
<?php do_action('mep_event_location'); } ?>
|
||||
</div>
|
||||
<div class="tm2-map">
|
||||
<?php do_action('mep_event_map'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php if($hide_share_details == 'no'){ ?>
|
||||
<div class="tm2-share-button">
|
||||
<?php do_action('mep_event_social_share'); ?>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
|
@ -1,5 +1,21 @@
|
|||
<?php
|
||||
// Template Name: Bristol
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// Settings Value :::::::::::::::::::::::::::::::::::::::;
|
||||
$hide_date_details = mep_get_option( 'mep_event_hide_date_from_details', 'general_setting_sec', 'no');
|
||||
$hide_time_details = mep_get_option( 'mep_event_hide_time_from_details', 'general_setting_sec', 'no');
|
||||
$hide_location_details = mep_get_option( 'mep_event_hide_location_from_details', 'general_setting_sec', 'no');
|
||||
$hide_total_seat_details = mep_get_option( 'mep_event_hide_total_seat_from_details', 'general_setting_sec', 'no');
|
||||
$hide_org_by_details = mep_get_option( 'mep_event_hide_org_from_details', 'general_setting_sec', 'no');
|
||||
$hide_address_details = mep_get_option( 'mep_event_hide_address_from_details', 'general_setting_sec', 'no');
|
||||
$hide_schedule_details = mep_get_option( 'mep_event_hide_event_schedule_details', 'general_setting_sec', 'no');
|
||||
$hide_share_details = mep_get_option( 'mep_event_hide_share_this_details', 'general_setting_sec', 'no');
|
||||
$hide_calendar_details = mep_get_option( 'mep_event_hide_calendar_details', 'general_setting_sec', 'no');
|
||||
|
||||
?>
|
||||
<div class="mep-template-3-sahan">
|
||||
<div class="mep-tem3-thumbnail">
|
||||
|
@ -7,8 +23,8 @@
|
|||
</div>
|
||||
<div class="mep-tem3-title-sec">
|
||||
<div class="mep-tem3-title"><?php do_action('mep_event_title'); ?></div>
|
||||
<div class="mep-tem3-datetime"><i class="fa fa-calendar"></i><?php do_action('mep_event_date'); ?></div>
|
||||
<div class="mep-tem3-location"><i class="fa fa-location-arrow"></i><?php do_action('mep_event_location') ?></div>
|
||||
<?php if($hide_schedule_details == 'no'){ ?><div class="mep-tem3-datetime"><i class="fa fa-calendar"></i><?php do_action('mep_event_date'); ?></div><?php } ?>
|
||||
<?php if($hide_location_details == 'no'){ ?><div class="mep-tem3-location"><i class="fa fa-location-arrow"></i><?php do_action('mep_event_location') ?></div><?php } ?>
|
||||
</div>
|
||||
|
||||
<!-- Mid Sec Start -->
|
||||
|
@ -25,9 +41,9 @@
|
|||
<div class="mid-sec-right">
|
||||
<div class="mep-tem3-share-btn">
|
||||
<?php do_action('mep_event_price'); ?>
|
||||
<?php do_action('mep_event_seat'); ?>
|
||||
<?php do_action('mep_event_add_calender'); ?>
|
||||
<?php do_action('mep_event_social_share'); ?>
|
||||
<?php if($hide_total_seat_details == 'no') do_action('mep_event_seat'); ?>
|
||||
<?php if($hide_calendar_details == 'no') do_action('mep_event_add_calender'); ?>
|
||||
<?php if($hide_share_details == 'no') do_action('mep_event_social_share'); ?>
|
||||
</div>
|
||||
<div class="tmep-emplate-3-faq-sec">
|
||||
<?php do_action('mep_event_faq'); ?>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* Plugin Name: Woocommerce Events Manager
|
||||
* Plugin URI: http://mage-people.com
|
||||
* Description: A Complete Event Solution for WordPress by MagePeople..
|
||||
* Version: 3.0.0
|
||||
* Version: 3.0.1
|
||||
* Author: MagePeople Team
|
||||
* Author URI: http://www.mage-people.com/
|
||||
* Text Domain: mage-eventpress
|
||||
|
@ -965,8 +965,9 @@ function mep_get_event_status($startdatetime){
|
|||
$current = current_time('Y-m-d H:i:s');
|
||||
$time = strtotime($startdatetime);
|
||||
$newformat = date('Y-m-d H:i:s',$time);
|
||||
|
||||
date_default_timezone_set(get_option('timezone_string'));
|
||||
$default_timezone_val = get_option('timezone_string') ? get_option('timezone_string') : 'UTC';
|
||||
date_default_timezone_set($default_timezone_val);
|
||||
// date_default_timezone_set(get_option('timezone_string'));
|
||||
|
||||
$datetime1 = new DateTime($newformat);
|
||||
$datetime2 = new DateTime($current);
|
||||
|
@ -1442,7 +1443,7 @@ function mep_get_full_time_and_date($datetime){
|
|||
$date_format = get_option( 'date_format' );
|
||||
$time_format = get_option( 'time_format' );
|
||||
$wpdatesettings = $date_format.' '.$time_format;
|
||||
$user_set_format = mep_get_option( 'mep_event_time_format','general_setting_sec',12);
|
||||
$user_set_format = mep_get_option( 'mep_event_time_format','general_setting_sec',12);
|
||||
|
||||
if($user_set_format==12){
|
||||
echo date_i18n('D, d M Y h:i A', strtotime($datetime));
|
||||
|
@ -2093,32 +2094,53 @@ function mep_event_total_seat($event_id,$type){
|
|||
|
||||
function get_mep_datetime($date,$type){
|
||||
|
||||
$user_set_format = mep_get_option( 'mep_event_time_format','general_setting_sec',12);
|
||||
$user_set_format = mep_get_option( 'mep_event_time_format','general_setting_sec',12);
|
||||
$date_format = get_option( 'date_format' );
|
||||
$time_format = get_option( 'time_format' );
|
||||
$wpdatesettings = $date_format.' '.$time_format;
|
||||
|
||||
|
||||
|
||||
if($type == 'date'){
|
||||
return date_i18n( 'Y-m-d', strtotime( $date ) );
|
||||
if($user_set_format == 'wtss'){
|
||||
return date_i18n( $date_format, strtotime( $date ) );
|
||||
}else{
|
||||
return date_i18n( 'Y-m-d', strtotime( $date ) );
|
||||
}
|
||||
}
|
||||
if($type == 'date-time'){
|
||||
if($user_set_format == 12){
|
||||
return date_i18n( 'Y-m-d h:i A', strtotime( $date ) );
|
||||
}else{
|
||||
}elseif($user_set_format == 24){
|
||||
return date_i18n( 'Y-m-d H:i', strtotime( $date ) );
|
||||
}elseif($user_set_format == 'wtss'){
|
||||
return date_i18n( $wpdatesettings, strtotime( $date ) );
|
||||
}
|
||||
}
|
||||
if($type == 'date-text'){
|
||||
return date_i18n( 'd,D M Y', strtotime( $date ) );
|
||||
if($user_set_format == 12){
|
||||
return date_i18n( 'd,D M Y', strtotime( $date ) );
|
||||
}elseif($user_set_format == 'wtss'){
|
||||
return date_i18n( $date_format, strtotime( $date ) );
|
||||
}else{
|
||||
return date_i18n( 'd, D M Y', strtotime( $date ) );
|
||||
}
|
||||
//return date_i18n( 'd, D M Y', strtotime( $date ) );
|
||||
}
|
||||
if($type == 'date-time-text'){
|
||||
if($user_set_format == 12){
|
||||
return date_i18n( 'd,D M Y h:i A', strtotime( $date ) );
|
||||
return date_i18n( 'd, D M Y h:i A', strtotime( $date ) );
|
||||
}elseif($user_set_format == 'wtss'){
|
||||
return date_i18n( $wpdatesettings, strtotime( $date ) );
|
||||
}else{
|
||||
return date_i18n( 'd,D M Y H:i', strtotime( $date ) );
|
||||
return date_i18n( 'd, D M Y H:i', strtotime( $date ) );
|
||||
}
|
||||
}
|
||||
if($type == 'time'){
|
||||
if($user_set_format == 12){
|
||||
return date( 'h:i A', strtotime( $date ) );
|
||||
}elseif($user_set_format == 'wtss'){
|
||||
return date_i18n( $time_format, strtotime( $date ) );
|
||||
}else{
|
||||
return date( 'H:i', strtotime( $date ) );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue