Version 3.1.4 released

This commit is contained in:
magepeopleteam 2020-02-26 11:32:28 +00:00
parent a550294b50
commit 3c31accf4c
8 changed files with 189 additions and 137 deletions

View File

@ -321,6 +321,50 @@ h3.mep_list_date {font-size: 16px; font-style: italic;font-weight: bold;color: #
/********Category filter***********/
.mep_cat-details div.mep_event_list_item{}
button.single_add_to_cart_button.button.alt.btn-mep-event-cart { cursor: pointer; }
/* Code By Mahin */
ul.event-custom-price li ul {
padding: 10px;
margin: 10px 0;
list-style: none;
border: 1px solid #ddd;
background: #fbfbfb;
}
.mep-multidate-ribbon {
background: #61a232;
color: #fff;
width: auto;
text-align: center;
padding: 0px 10px;
position: absolute;
top: 0;
bottom: auto;
right: 0;
}
.my_account_orders.account-orders-table .wbtm-download {
display: none;
}
.mep-user-ticket-list table {
width: 100%;
border: 1px solid #ddd;
}
.mep-user-ticket-list table tr {
border-bottom: 1px solid #ddd;
padding: 10px 0;
}
.mep-user-ticket-list table tr td {
padding: 10px 3px;
}
.mep-user-ticket-list table tr th {
background: #ddd;
padding: 10px 5px;
text-align: left;
}
/******Responsive*******/
@media only screen and (max-width: 1199px) {
/********Default Theme***********/

View File

@ -126,10 +126,8 @@ class MAGE_Events_Setting_Controls {
'label' => __( 'Event Time Format', 'mage-eventpress' ),
'desc' => __( 'Please select what format time you want to display in event fronntend.', 'mage-eventpress' ),
'type' => 'select',
'default' => '12',
'default' => 'wtss',
'options' => array(
'12' => '12 Hour',
'24' => '24 Hour',
'wtss' => 'WordPress TimeStamp Settings'
)
),

View File

@ -123,11 +123,11 @@ if(isset($_POST['mep_event_ticket_type'])){
$ticket_type_arr = array();
if(is_array($mep_event_ticket_type) && sizeof($mep_event_ticket_type) > 0){
foreach($mep_event_ticket_type as $_type){
// echo $_type['option_name_t'];
$cart_arr = $new[$cnt];
// print_r($cart_arr);
$cart_arr = $new[$cnt];
$name_key = array_search($_type['option_name_t'],$cart_arr);
$qty_key = array_search($_type['option_qty_t'],$cart_arr);
if(is_array($name_key)){
$total_found = count($name_key);
}else{
@ -200,7 +200,7 @@ if (get_post_type($eid) == 'mep_events') {
function mep_display_custom_fields_text_cart( $item_data, $cart_item ) {
$mep_events_extra_prices = $cart_item['event_extra_option'];
// print_r($cart_item);
$eid = $cart_item['event_id'];
if (get_post_type($eid) == 'mep_events') {
@ -209,6 +209,11 @@ if (get_post_type($eid) == 'mep_events') {
$event_extra_service = $cart_item['event_extra_service'];
$event_recurring_date = $cart_item['event_recurring_date'];
// echo '<pre>';
// print_r($user_info);
$recurring = get_post_meta($eid, 'mep_enable_recurring', true) ? get_post_meta($eid, 'mep_enable_recurring', true) : 'no';
echo "<ul class='event-custom-price'>";
@ -224,14 +229,30 @@ if($recurring == 'yes'){
}else{
if(is_array($user_info) && sizeof($user_info) > 0){
echo '<li>';
foreach($user_info as $userinf){
?>
<li><?php _e('Event Date','mage-eventpress'); ?>: <?php echo date('D, d M Y',strtotime($userinf['user_event_date'])); ?></li>
<ul>
<?php if($userinf['user_name']){ ?> <li><?php _e('Name: ','mage-eventpress'); echo $userinf['user_name']; ?></li> <?php } ?>
<?php if($userinf['user_email']){ ?> <li><?php _e('Email: ','mage-eventpress'); echo $userinf['user_email']; ?></li> <?php } ?>
<?php if($userinf['user_phone']){ ?> <li><?php _e('Phone: ','mage-eventpress'); echo $userinf['user_phone']; ?></li> <?php } ?>
<?php if($userinf['user_address']){ ?> <li><?php _e('Address: ','mage-eventpress'); echo $userinf['user_address']; ?></li> <?php } ?>
<?php if($userinf['user_gender']){ ?> <li><?php _e('Gender: ','mage-eventpress'); echo $userinf['user_gender']; ?></li> <?php } ?>
<?php if($userinf['user_tshirtsize']){ ?> <li><?php _e('T-Shirt Size: ','mage-eventpress'); echo $userinf['user_tshirtsize']; ?></li> <?php } ?>
<?php if($userinf['user_company']){ ?> <li><?php _e('Company: ','mage-eventpress'); echo $userinf['user_company']; ?></li> <?php } ?>
<?php if($userinf['user_designation']){ ?> <li><?php _e('Designation: ','mage-eventpress'); echo $userinf['user_designation']; ?></li> <?php } ?>
<?php if($userinf['user_website']){ ?> <li><?php _e('Website: ','mage-eventpress'); echo $userinf['user_website']; ?></li> <?php } ?>
<?php if($userinf['user_vegetarian']){ ?> <li><?php _e('Vegetarian: ','mage-eventpress'); echo $userinf['user_vegetarian']; ?></li> <?php } ?>
<?php if($userinf['user_ticket_type']){ ?> <li><?php _e('Ticket Type: ','mage-eventpress'); echo $userinf['user_ticket_type']; ?></li> <?php } ?>
<li><?php _e('Event Date:','mage-eventpress'); ?> <?php echo get_mep_datetime($userinf['user_event_date'], 'date-time-text'); ?></li>
</ul>
<?php
}
echo '</li>';
}else{
?>
<li><?php _e('Event Date','mage-eventpress'); ?>: <?php echo date('D, d M Y',strtotime($cart_item['event_cart_date'])); ?></li>
<li><?php _e('Event Date','mage-eventpress'); ?>: <?php echo get_mep_datetime($cart_item['event_cart_date'], 'date-time-text'); ?></li>
<?php
}
@ -316,19 +337,12 @@ function mep_add_custom_fields_text_to_order_items( $item, $cart_item_key, $valu
$event_ticket_qty = " ";
}
$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;
$product_id = $values['product_id'];
$cart_location = $values['event_cart_location'];
$event_extra_service = $values['event_extra_service'];
$ticket_type_arr = $values['event_ticket_info'];
$cart_date = $values['event_cart_date'];
$form_position = mep_get_option( 'mep_user_form_position', 'general_attendee_sec', 'details_page' );
@ -340,8 +354,8 @@ function mep_add_custom_fields_text_to_order_items( $item, $cart_item_key, $valu
$recurring = get_post_meta($eid, 'mep_enable_recurring', true) ? get_post_meta($eid, 'mep_enable_recurring', true) : 'no';
if($recurring == 'yes'){
$event_recurring_date = $values['event_recurring_date'];
$event_recurring_date_arr = $values['event_recurring_date_arr'];
$event_recurring_date = $values['event_recurring_date'];
$event_recurring_date_arr = $values['event_recurring_date_arr'];
if(is_array($event_recurring_date) && sizeof($event_recurring_date) > 0){
foreach($event_recurring_date as $_event_recurring_date){
$item->add_meta_data('Date',get_mep_datetime($_event_recurring_date, 'date-time-text'));
@ -351,28 +365,29 @@ function mep_add_custom_fields_text_to_order_items( $item, $cart_item_key, $valu
$event_recurring_date_arr = array();
$item->add_meta_data('Date',get_mep_datetime($cart_date, 'date-time-text'));
}
$item->add_meta_data('_recurring_date_arr',$event_recurring_date_arr);
$item->add_meta_data('Location',$cart_location);
$item->add_meta_data('_event_ticket_info',$values['event_ticket_info']);
$item->add_meta_data('Location',$cart_location);
$item->add_meta_data('_event_ticket_info',$values['event_ticket_info']);
if(is_array($ticket_type_arr) && sizeof($ticket_type_arr) > 0){
foreach($ticket_type_arr as $ticket){
$ticket_type_name = $ticket['ticket_name']." - ".wc_price($ticket['ticket_price']).' x '.$ticket['ticket_qty'].' = ';
$ticket_type_val= wc_price($ticket['ticket_price'] * $ticket['ticket_qty']);
$item->add_meta_data($ticket_type_name, $ticket_type_val );
}
}
if(is_array($ticket_type_arr) && sizeof($ticket_type_arr) > 0){
foreach($ticket_type_arr as $ticket){
$ticket_type_name = $ticket['ticket_name']." - ".wc_price($ticket['ticket_price']).' x '.$ticket['ticket_qty'].' = ';
$ticket_type_val= wc_price($ticket['ticket_price'] * $ticket['ticket_qty']);
$item->add_meta_data($ticket_type_name, $ticket_type_val );
}
}
if(is_array($event_extra_service) && sizeof($event_extra_service) > 0){
foreach($event_extra_service as $extra_service){
$service_type_name = $extra_service['service_name']." - ".wc_price($extra_service['service_price']).' x '.$extra_service['service_qty'].' = ';
$service_type_val= wc_price($extra_service['service_price'] * $extra_service['service_qty']);
$item->add_meta_data($service_type_name, $service_type_val );
}
}
if(is_array($event_extra_service) && sizeof($event_extra_service) > 0){
foreach($event_extra_service as $extra_service){
$service_type_name = $extra_service['service_name']." - ".wc_price($extra_service['service_price']).' x '.$extra_service['service_qty'].' = ';
$service_type_val= wc_price($extra_service['service_price'] * $extra_service['service_qty']);
$item->add_meta_data($service_type_name, $service_type_val );
}
}
if($event_ticket_type){

View File

@ -924,7 +924,7 @@ function mep_get_all_tax_list($current_tax=null){
function mep_calender_date($datetime){
$time = strtotime($datetime);
$newdate = date('Ymd',$time);
$newdate = date_i18n('Ymd',$time);
$newtime = date('Hi',$time);
$newformat = $newdate."T".$newtime."00";
return $newformat;
@ -945,16 +945,21 @@ function mep_get_all_tax_list($current_tax=null){
<div id="mep_add_calender_button" class='mep-add-calender'><i class="fa fa-calendar"></i><?php _e(mep_get_label($pid,'mep_calender_btn_text','Add Calendar'),'mage-eventpress'); ?></div>
<ul id="mep_add_calender_links">
<li><a href="http://www.google.com/calendar/event?
action=TEMPLATE&text=<?php echo $event->post_title; ?>&dates=<?php echo mep_calender_date($event_start); ?>/<?php echo mep_calender_date($event_end); ?>&details=<?php echo substr(strip_tags($event->post_content),0,1000); ?>&location=<?php echo $location; ?>&trp=false&sprop=&sprop=name:'" target="_blank" class='mep-add-calender' rel="nofollow">Google</a></li>
<li><a href="https://calendar.yahoo.com/?v=60&view=d&type=20&title=<?php echo $event->post_title; ?>&st=<?php echo mep_calender_date($event_start); ?>&et=<?php echo mep_calender_date($event_end); ?>&desc=<?php echo substr(strip_tags($event->post_content),0,1000); ?>&in_loc=<?php echo $location; ?>&uid=" target="_blank" class='mep-add-calender' rel="nofollow">Yahoo</a></li>
<li><a href ="https://outlook.live.com/owa/?path=/calendar/view/Month&rru=addevent&dtstart=<?php echo mep_calender_date($event_start); ?>&dtend=<?php echo mep_calender_date($event_end); ?>&subject=<?php echo $event->post_title; ?>" target="_blank" class='mep-add-calender' rel="nofollow">Outlook</a></li>
<li><a href="https://webapps.genprod.com/wa/cal/download-ics.php?date_end=<?php echo mep_calender_date($event_end); ?>&date_start=<?php echo mep_calender_date($event_start); ?>&summary=<?php echo $event->post_title; ?>&location=<?php echo $location; ?>&description=<?php echo substr(strip_tags($event->post_content),0,1000); ?>" class='mep-add-calender'>APPlE</a></li>
<li><a href="https://calendar.google.com/calendar/r/eventedit?text=<?php echo $event->post_title; ?>&dates=<?php echo mep_calender_date($event_start); ?>/<?php echo mep_calender_date($event_end); ?>&details=<?php echo substr(strip_tags($event->post_content),0,1000); ?>&location=<?php echo $location; ?>&sf=true" rel="noopener noreferrer" target='_blank' class='mep-add-calender' rel="nofollow">Google</a></li>
<li><a href="https://calendar.yahoo.com/?v=60&view=d&type=20&title=<?php echo $event->post_title; ?>&st=<?php echo mep_calender_date($event_start); ?>&et=<?php echo mep_calender_date($event_end); ?>&desc=<?php echo substr(strip_tags($event->post_content),0,1000); ?>&in_loc=<?php echo $location; ?>&uid=" rel="noopener noreferrer" target='_blank' class='mep-add-calender' rel="nofollow">Yahoo</a></li>
<li><a href ="https://outlook.live.com/owa/?path=/calendar/view/Month&rru=addevent&startdt=<?php echo mep_calender_date($event_start); ?>&enddt=<?php echo mep_calender_date($event_end); ?>&subject=<?php echo $event->post_title; ?>" rel="noopener noreferrer" target='_blank' class='mep-add-calender' rel="nofollow">Outlook</a></li>
<li><a href="https://webapps.genprod.com/wa/cal/download-ics.php?date_end=<?php echo mep_calender_date($event_end); ?>&date_start=<?php echo mep_calender_date($event_start); ?>&summary=<?php echo $event->post_title; ?>&location=<?php echo $location; ?>&description=<?php echo substr(strip_tags($event->post_content),0,1000); ?>" rel="noopener noreferrer" target='_blank' class='mep-add-calender'>Apple</a></li>
</ul>
@ -1302,13 +1307,13 @@ function mep_get_all_tax_list($current_tax=null){
//echo $date_format = get_option( 'date_format' );
$time_format = get_option( 'time_format' );
if($user_set_format==12){
echo wp_date('h:i A', strtotime($datetime));
echo date('h:i A', strtotime($datetime));
}
if($user_set_format==24){
echo wp_date('H:i', strtotime($datetime));
echo date('H:i', strtotime($datetime));
}
if($user_set_format=='wtss'){
echo wp_date($time_format, strtotime($datetime));
echo date($time_format, strtotime($datetime));
}
}
@ -1362,20 +1367,20 @@ function mep_get_all_tax_list($current_tax=null){
$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','wtss');
?>
<ul>
<?php if($user_set_format==12){ ?>
<?php $timeformatassettings = 'h:i A'; ?>
<li><i class="fa fa-calendar"></i> <?php echo date_i18n($date_format, strtotime( $start_datetime ) ); ?> <i class="fa fa-clock-o"></i> <?php echo date_i18n( 'h:i A', strtotime( $start_datetime ) ); ?></li>
<li><i class="fa fa-calendar"></i> <?php echo date_i18n($date_format, strtotime( $start_datetime ) ); ?> <i class="fa fa-clock-o"></i> <?php echo date( 'h:i A', strtotime( $start_datetime ) ); ?></li>
<?php } ?>
<?php if($user_set_format==24){ ?>
<?php $timeformatassettings = 'H:i'; ?>
<li><i class="fa fa-calendar"></i> <?php echo date_i18n($date_format, strtotime( $start_datetime ) ); ?> <i class="fa fa-clock-o"></i> <?php echo date_i18n( 'H:i', strtotime( $start_datetime ) ); ?></li>
<li><i class="fa fa-calendar"></i> <?php echo date_i18n($date_format, strtotime( $start_datetime ) ); ?> <i class="fa fa-clock-o"></i> <?php echo date( 'H:i', strtotime( $start_datetime ) ); ?></li>
<?php } ?>
<?php if($user_set_format=='wtss'){ ?>
<?php $timeformatassettings = get_option( 'time_format' ); ?>
<li><i class="fa fa-calendar"></i> <?php echo date_i18n($date_format, strtotime( $start_datetime ) ); ?> <i class="fa fa-clock-o"></i> <?php echo date_i18n( $time_format, strtotime( $start_datetime ) ); } ?></li>
<li><i class="fa fa-calendar"></i> <?php echo date_i18n($date_format, strtotime( $start_datetime ) ); ?> <i class="fa fa-clock-o"></i> <?php echo date( $time_format, strtotime( $start_datetime ) ); } ?></li>
}
}
@ -1402,9 +1407,7 @@ function mep_get_all_tax_list($current_tax=null){
}
?>
<li><i class="fa fa-calendar"></i> <?php echo date_i18n($date_format, strtotime( $end_datetime ) ); ?> <i class="fa fa-clock-o"></i> <?php echo date_i18n($timeformatassettings, strtotime( $end_datetime ) ); ?> <span style='font-size: 12px;font-weight: bold;'>(<?php _e('End','mage-eventpress'); ?>)</span></li>
<li><i class="fa fa-calendar"></i> <?php echo date_i18n($date_format, strtotime( $end_datetime ) ); ?> <i class="fa fa-clock-o"></i> <?php echo date($timeformatassettings, strtotime( $end_datetime ) ); ?> <span style='font-size: 12px;font-weight: bold;'>(<?php _e('End','mage-eventpress'); ?>)</span></li>
</ul>
<?php
$content = ob_get_clean();
@ -2011,57 +2014,33 @@ function mep_get_all_tax_list($current_tax=null){
}
function get_mep_datetime($date,$type){
$user_set_format = mep_get_option( 'mep_event_time_format','general_setting_sec','wtss');
$date_format = get_option( 'date_format' );
$time_format = get_option( 'time_format' );
$wpdatesettings = $date_format.' '.$time_format;
$timestamp = strtotime( $date );
if($type == 'date'){
if($user_set_format == 'wtss'){
return wp_date( $date_format, strtotime( $date ) );
}else{
return wp_date( 'Y-m-d', strtotime( $date ) );
}
return date_i18n( $date_format, $timestamp );
}
if($type == 'date-time'){
if($user_set_format == 12){
return wp_date( 'Y-m-d h:i A', strtotime( $date ) );
}elseif($user_set_format == 24){
return wp_date( 'Y-m-d H:i', strtotime( $date ) );
}elseif($user_set_format == 'wtss'){
return wp_date( $wpdatesettings, strtotime( $date ) );
}
return date_i18n( $wpdatesettings, $timestamp );
}
if($type == 'date-text'){
if($user_set_format == 12){
return wp_date( 'd,D M Y', strtotime( $date ) );
}elseif($user_set_format == 'wtss'){
return wp_date( $date_format, strtotime( $date ) );
}else{
return wp_date( 'd, D M Y', strtotime( $date ) );
}
return date_i18n( $date_format, $timestamp );
}
if($type == 'date-time-text'){
if($user_set_format == 12){
return wp_date( 'd, D M Y h:i A', strtotime( $date ) );
}elseif($user_set_format == 'wtss'){
return wp_date( $wpdatesettings, strtotime( $date ) );
}else{
return wp_date( 'd, D M Y H:i', strtotime( $date ) );
}
return date_i18n( $wpdatesettings, $timestamp );
}
if($type == 'time'){
if($user_set_format == 12){
return date( 'h:i A', strtotime( $date ) );
}elseif($user_set_format == 'wtss'){
return date( $time_format, strtotime( $date ) );
}else{
return date( 'H:i', strtotime( $date ) );
}
}
if($type == 'day'){
return date_i18n( 'd', $timestamp );
}
if($type == 'month'){
return date_i18n( 'M', $timestamp );
}
}
@ -2092,9 +2071,7 @@ function mep_get_all_tax_list($current_tax=null){
update_post_meta( $pid, '_virtual', 'yes' );
$terms = array( 'exclude-from-catalog', 'exclude-from-search' );
wp_set_object_terms( $pid, $terms, 'product_visibility' );
update_post_meta( $post_id, 'check_if_run_once', true );
//die();
}
}
add_action( 'wp_insert_post', 'mep_on_post_publish', 10, 3 );

View File

@ -46,9 +46,6 @@ $event_expire_on = mep_get_option( 'mep_event_expire_on_datetimes', 'general_
$author_terms = get_the_terms(get_the_id(), 'mep_org');
$time = strtotime($event_meta['event_start_date'][0] . ' ' . $event_meta['event_start_time'][0]);
$newformat = date_i18n('Y-m-d H:i:s', $time);
// echo $newformat;
// if(time() < strtotime($newformat)){
?>
{
start: '<?php echo date_i18n('Y-m-d H:i', strtotime($event_meta['event_start_date'][0] . ' ' . $event_meta['event_start_time'][0])); ?>',
@ -58,7 +55,25 @@ $event_expire_on = mep_get_option( 'mep_event_expire_on_datetimes', 'general_
class: '',
color: '#000',
data: {}
},<?php //if ($i == $count) { echo "";}else{ echo ","; } ?><?php $i++; } wp_reset_postdata(); ?>]
},
<?php
$event_multidate = maybe_unserialize($event_meta['mep_event_more_date'][0]);
if(is_array($event_multidate) && sizeof($event_multidate) >0){
foreach($event_multidate as $_event_multidate){
?>
{
start: '<?php echo date_i18n('Y-m-d H:i', strtotime($_event_multidate['event_more_start_date'] . ' ' . $_event_multidate['event_more_start_time'])); ?>',
end: '<?php echo date_i18n('Y-m-d H:i', strtotime($_event_multidate['event_more_end_date'] . ' ' . $_event_multidate['event_more_end_time'])); ?>',
title: '<?php the_title(); ?>',
url: '<?php the_permalink(); ?>',
class: '',
color: '#000',
data: {}
},
<?php } } $i++; } wp_reset_postdata(); ?>]
jQuery('.event-calendar').equinox({
events: myEvents
@ -230,6 +245,11 @@ function mep_event_list($atts, $content = null){
$org_class = mep_get_term_as_class(get_the_id(), 'mep_org');
$cat_class = mep_get_term_as_class(get_the_id(), 'mep_cat');
$event_multidate = maybe_unserialize($event_meta['mep_event_more_date'][0]);
$available_seat = mep_get_total_available_seat(get_the_id(), $event_meta);
if ($style == 'grid') {
@ -258,9 +278,15 @@ function mep_event_list($atts, $content = null){
<div class="mep_list_thumb">
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('full'); ?></a>
<div class="mep-ev-start-date">
<div class="mep-day"><?php echo date_i18n('d', strtotime($event_meta['event_start_date'][0])); ?></div>
<div class="mep-month"><?php echo date_i18n('M', strtotime($event_meta['event_start_date'][0])); ?></div>
<div class="mep-day"><?php echo get_mep_datetime($event_meta['event_start_datetime'][0],'day'); ?></div>
<div class="mep-month"><?php echo get_mep_datetime($event_meta['event_start_datetime'][0],'month'); ?></div>
</div>
<?php if(is_array($event_multidate) && sizeof($event_multidate) >0){ ?>
<div class='mep-multidate-ribbon mep-tem3-title-sec'>
<span><?php _e('Multi Date Event','mage-eventpress'); ?></span>
</div>
<?php } ?>
</div>
<div class="mep_list_event_details">
<a href="<?php the_permalink(); ?>">
@ -271,7 +297,7 @@ function mep_event_list($atts, $content = null){
} ?>
<h3 class='mep_list_date'> <?php if ($show_price == 'yes') {
echo $show_price_label . " " . mep_event_list_price(get_the_id());
} ?><!-- <i class="fa fa-calendar"></i> <?php echo date_i18n('h:i A', strtotime($event_meta['event_start_date'][0] . ' ' . $event_meta['event_start_time'][0])); ?> - <?php echo $event_meta['event_end_time'][0]; ?> --></h3>
} ?></h3>
</div>
<?php
@ -538,14 +564,14 @@ function mep_expire_event_list($atts, $content = null)
<div class="mep_list_thumb">
<?php the_post_thumbnail('full'); ?>
<div class="mep-ev-start-date">
<div class="mep-day"><?php echo date_i18n('d', strtotime($event_meta['event_start_date'][0])); ?></div>
<div class="mep-month"><?php echo date_i18n('M', strtotime($event_meta['event_start_date'][0])); ?></div>
<div class="mep-day"><?php echo get_mep_datetime($event_meta['event_start_datetime'][0],'day'); ?></div>
<div class="mep-month"><?php echo get_mep_datetime($event_meta['event_start_datetime'][0],'month'); ?></div>
</div>
</div>
<div class="mep_list_event_details"><a href="<?php the_permalink(); ?>">
<div class="mep-list-header">
<h2 class='mep_list_title'><?php the_title(); ?></h2>
<h3 class='mep_list_date'> Price Start from: <?php echo mep_event_list_price(get_the_id()); ?><!-- <i class="fa fa-calendar"></i> <?php echo date_i18n('h:i A', strtotime($event_meta['event_start_date'][0] . ' ' . $event_meta['event_start_time'][0])); ?> - <?php echo $event_meta['event_end_date'][0] . ' ' . $event_meta['event_end_time'][0]; ?> --></h3>
<h3 class='mep_list_date'> Price Start from: <?php echo mep_event_list_price(get_the_id()); ?></h3>
</div>
<?php
@ -787,8 +813,8 @@ function mep_event_onepage_list($atts, $content = null)
<div class="mep_list_thumb">
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('full'); ?></a>
<div class="mep-ev-start-date">
<div class="mep-day"><?php echo date_i18n('d', strtotime($event_meta['event_start_date'][0])); ?></div>
<div class="mep-month"><?php echo date_i18n('M', strtotime($event_meta['event_start_date'][0])); ?></div>
<div class="mep-day"><?php echo get_mep_datetime($event_meta['event_start_datetime'][0],'day'); ?></div>
<div class="mep-month"><?php echo get_mep_datetime($event_meta['event_start_datetime'][0],'month'); ?></div>
</div>
</div>
<div class="mep_list_event_details"><a href="<?php the_permalink(); ?>">
@ -799,7 +825,7 @@ function mep_event_onepage_list($atts, $content = null)
} ?>
<h3 class='mep_list_date'> <?php if ($show_price == 'yes') {
echo $show_price_label . " " . mep_event_list_price(get_the_id());
} ?><!-- <i class="fa fa-calendar"></i> <?php echo date_i18n('h:i A', strtotime($event_meta['event_start_time'][0])); ?> - <?php echo $event_meta['event_end_date'][0]; ?> --></h3>
} ?></h3>
</div>
<div class="mep-list-footer">

View File

@ -6,9 +6,7 @@ function mep_ev_datetime()
$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_date = $event_meta['event_end_date'][0];
$end_time = $event_meta['event_end_time'][0];
@ -30,7 +28,6 @@ function mep_ev_datetime()
echo get_mep_datetime($end_datetime, 'date-text') . ' - ';
}
echo get_mep_datetime($end_datetime, 'time'); ?></p>,
<?php
}
foreach ($more_date as $_more_date) {
@ -88,17 +85,15 @@ add_action('mep_event_date_default_theme', 'mep_date_in_default_theme');
function mep_date_in_default_theme(){
global $event_meta;
$start_datetime = $event_meta['event_start_date'][0] . ' ' . $event_meta['event_start_time'][0];
$start_datetime = $event_meta['event_start_datetime'][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_datetime'][0];
$end_date = $event_meta['event_end_date'][0];
$end_time = $event_meta['event_end_time'][0];
// echo date('H:i A',strtotime($end_datetime));
$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';
$cn = 1;
@ -180,11 +175,11 @@ add_action('mep_event_date_only', 'mep_ev_date');
function mep_ev_date()
{
global $event_meta;
$start_datetime = $event_meta['event_start_date'][0] . ' ' . $event_meta['event_start_time'][0];
$start_datetime = $event_meta['event_start_datetime'][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_datetime'][0];
$end_date = $event_meta['event_end_date'][0];
$end_time = $event_meta['event_end_time'][0];
@ -265,30 +260,14 @@ function mep_ev_time()
<p><?php echo get_mep_datetime($start_datetime, 'time'); ?></p>
<?php
}
}
function mep_ev_time_ticket($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];
$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];
mep_get_only_time($start_datetime);
function mep_ev_time_ticket($event_meta){
$start_datetime = $event_meta['event_start_datetime'][0];
echo get_mep_datetime($start_datetime, 'time');
}
function mep_ev_date_ticket($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];
$end_datetime = $event_meta['event_end_date'][0] . ' ' . $event_meta['event_end_time'][0];
$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));
$start_datetime = $event_meta['event_start_datetime'][0];
echo get_mep_datetime($start_datetime, 'date-text');
}

View File

@ -384,4 +384,17 @@ CatID & OrgID Column Added
Some Bug Fixed
Code Improved
Expire Event List Shortcode issue fixed
05 Feb 2020*
= 3.1.4 =
* Update Release:
Multi Date Ribbon added into Event list
Multi Date added into Event calendar
Date & Time Formating set to WordPress Default timestamp
Add to Calendar Links not working issue fixed
Attendee Info now showing into cart
Code Improved
CSS issue fixed
... More
05 Feb 2020*

View File

@ -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.1.2
* Version: 3.1.4
* Author: MagePeople Team
* Author URI: http://www.mage-people.com/
* Text Domain: mage-eventpress