file update

This commit is contained in:
magepeopleteam 2020-03-01 05:00:56 +00:00
parent 3c31accf4c
commit 6d572a4cb5
3 changed files with 19 additions and 11 deletions

View File

@ -363,7 +363,13 @@ ul.event-custom-price li ul {
padding: 10px 5px; padding: 10px 5px;
text-align: left; text-align: left;
} }
div.mep-default-feature-content p {
color: #3a3a3a;
font-size: 16px;
padding: inherit;
margin: 15px 0;
line-height: 20px;
}
/******Responsive*******/ /******Responsive*******/
@media only screen and (max-width: 1199px) { @media only screen and (max-width: 1199px) {

View File

@ -1972,7 +1972,7 @@ function mep_get_all_tax_list($current_tax=null){
function mep_ticket_sold($event_id){ function mep_ticket_sold($event_id){
$event_start_date = date('Y-m-d',strtotime(get_post_meta($event_id,'event_start_date',true))); $event_start_date = date('Y-m-d',strtotime(get_post_meta($event_id,'event_start_date',true)));
$get_ticket_type_list = get_post_meta($event_id,'mep_event_ticket_type',true); $get_ticket_type_list = get_post_meta($event_id,'mep_event_ticket_type',true) ? get_post_meta($event_id,'mep_event_ticket_type',true) : array();
$recurring = get_post_meta($event_id, 'mep_enable_recurring', true) ? get_post_meta($event_id, 'mep_enable_recurring', true) : 'no'; $recurring = get_post_meta($event_id, 'mep_enable_recurring', true) ? get_post_meta($event_id, 'mep_enable_recurring', true) : 'no';
@ -2017,30 +2017,32 @@ function mep_get_all_tax_list($current_tax=null){
$date_format = get_option( 'date_format' ); $date_format = get_option( 'date_format' );
$time_format = get_option( 'time_format' ); $time_format = get_option( 'time_format' );
$wpdatesettings = $date_format.' '.$time_format; $wpdatesettings = $date_format.' '.$time_format;
$timestamp = strtotime( $date ); $timezone = wp_timezone_string();
$timestamp = strtotime( $date . ' '. $timezone);
if($type == 'date'){ if($type == 'date'){
return date_i18n( $date_format, $timestamp ); return wp_date( $date_format, $timestamp );
} }
if($type == 'date-time'){ if($type == 'date-time'){
return date_i18n( $wpdatesettings, $timestamp ); return wp_date( $wpdatesettings, $timestamp );
} }
if($type == 'date-text'){ if($type == 'date-text'){
return date_i18n( $date_format, $timestamp );
return wp_date( $date_format, $timestamp );
} }
if($type == 'date-time-text'){ if($type == 'date-time-text'){
return date_i18n( $wpdatesettings, $timestamp ); return wp_date( $wpdatesettings, $timestamp );
} }
if($type == 'time'){ if($type == 'time'){
return date( $time_format, strtotime( $date ) ); return date( $time_format, strtotime( $date ) );
} }
if($type == 'day'){ if($type == 'day'){
return date_i18n( 'd', $timestamp ); return wp_date( 'd', $timestamp );
} }
if($type == 'month'){ if($type == 'month'){
return date_i18n( 'M', $timestamp ); return wp_date( 'M', $timestamp );
} }
} }

View File

@ -42,8 +42,8 @@ if($user_api){
<input id="pac-input" name='location_name' value='<?php //echo $values['location_name'][0]; ?>'/> <input id="pac-input" name='location_name' value='<?php //echo $values['location_name'][0]; ?>'/>
<input type="text" class="form-control" style="display: none;" required name="latitude" value=""> <input type="text" class="form-control" style="display: none;" name="latitude" value="">
<input type="text" class="form-control" style="display: none;" required name="longitude" value=""> <input type="text" class="form-control" style="display: none;" name="longitude" value="">
<!-- <div id="map"></div> --> <!-- <div id="map"></div> -->
<?php <?php
$user_api = mep_get_option( 'google-map-api', 'general_setting_sec', ''); $user_api = mep_get_option( 'google-map-api', 'general_setting_sec', '');