version 2.6.9 released
This commit is contained in:
parent
1372bb20a0
commit
683bb3b947
|
@ -200,4 +200,13 @@ input:checked + .slider:before {
|
|||
|
||||
.slider.round:before {
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
div#mep-event-price {
|
||||
border: 5px solid red;
|
||||
}
|
||||
|
||||
div#mep-event-price h2 {
|
||||
background: red;
|
||||
color: #fff;
|
||||
}
|
|
@ -1128,10 +1128,42 @@ ul#mep_add_calender_links {
|
|||
display: none;
|
||||
}
|
||||
|
||||
.mep-default-sidrbar-events-schedule {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
margin: 30px 0;
|
||||
}
|
||||
|
||||
.mep-default-sidrbar-events-schedule h3 {
|
||||
text-align: left;
|
||||
text-transform: capitalize;
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
color: #6d7982;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.mep-default-sidrbar-events-schedule ul {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.mep-default-sidrbar-events-schedule ul li {
|
||||
text-align: left;
|
||||
border-bottom: 1px dashed #ddd;
|
||||
padding: 5px 5px;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.mep-default-sidrbar-events-schedule ul li i {
|
||||
color: #fff;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
text-align: center;
|
||||
border-radius: 100%;
|
||||
padding-top: 2px;
|
||||
}
|
||||
/*Default Theme Styles*/
|
||||
.mep-default-theme {
|
||||
overflow: hidden;
|
||||
|
|
|
@ -78,9 +78,11 @@ function mep_event_change_reg_status_cb($post){
|
|||
|
||||
|
||||
function mep_event_tax_cb($post){
|
||||
|
||||
$values = get_post_custom( $post->ID );
|
||||
wp_nonce_field( 'mep_event_reg_btn_nonce', 'mep_event_reg_btn_nonce' );
|
||||
echo $values['_tax_status'][0];
|
||||
wp_nonce_field( 'mep_event_reg_btn_nonce', 'mep_event_reg_btn_nonce' );
|
||||
$check_values = isset($values['_tax_status'][0]) ? $values['_tax_status'][0] : "";
|
||||
echo $check_values;
|
||||
|
||||
if(array_key_exists('_tax_status', $values)){ $tx_status = $values['_tax_status'][0]; }else{ $tx_status = ''; }
|
||||
|
||||
|
@ -483,11 +485,16 @@ $values = get_post_custom( $post->ID );
|
|||
</table>
|
||||
|
||||
|
||||
<p style="
|
||||
text-align: center;
|
||||
font-size: 16px;
|
||||
color: red;
|
||||
"><span class="dashicons dashicons-dismiss"></span>
|
||||
|
||||
Caution:
|
||||
Please Do not use this, use <span style='color:green'><b>Event Ticket Type</b></span> feaure instead of this section. This section will be depriciated in next release version 2.7, If you already using this section we strongly recommended please move to <span style='color:green'><b>Event Ticket Type</b></span> section instead of this. On 1 Aug 2019 version 2.7.0 will be released.
|
||||
|
||||
|
||||
|
||||
|
||||
</p>
|
||||
<?php
|
||||
}
|
||||
|
||||
|
@ -960,13 +967,13 @@ $more_date = get_post_meta($post->ID, 'mep_event_more_date', true);
|
|||
<div class="sec">
|
||||
<table width="100%" class="mama">
|
||||
<tr >
|
||||
<td><input placeholder="Day 2 (Use this only if you have same event multiple day)" type="text" class='event_more_date' name="event_more_date[]" value="<?php if(array_key_exists('mep_event_more_date', $values)){ echo $more_date[0]['event_more_date']; } ?>" /></td>
|
||||
<td><input placeholder="Day 2 (Use this only if you have same event multiple day)" type="text" class='event_more_date' name="event_more_date[]" value="<?php if(array_key_exists('mep_event_more_date', $values)){ if(!empty($more_date[0]['event_more_date'])){ echo $more_date[0]['event_more_date']; } } ?>" /></td>
|
||||
</tr>
|
||||
<tr >
|
||||
<td><input placeholder="Day 3(Use this only if you have same event multiple day)" type="text" class='event_more_date' name="event_more_date[]" value="<?php if(array_key_exists('mep_event_more_date', $values)){ echo $more_date[1]['event_more_date']; } ?>" /></td>
|
||||
<td><input placeholder="Day 3(Use this only if you have same event multiple day)" type="text" class='event_more_date' name="event_more_date[]" value="<?php if(array_key_exists('mep_event_more_date', $values)){ if(!empty($more_date[1]['event_more_date'])){ echo $more_date[1]['event_more_date']; } } ?>" /></td>
|
||||
</tr>
|
||||
<tr >
|
||||
<td><input placeholder="Day 4(Use this only if you have same event multiple day)" type="text" class='event_more_date' name="event_more_date[]" value="<?php if(array_key_exists('mep_event_more_date', $values)){ echo $more_date[2]['event_more_date']; } ?>" /></td>
|
||||
<td><input placeholder="Day 4(Use this only if you have same event multiple day)" type="text" class='event_more_date' name="event_more_date[]" value="<?php if(array_key_exists('mep_event_more_date', $values)){ if(!empty($more_date[2]['event_more_date'])){ echo $more_date[2]['event_more_date']; } } ?>" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
@ -1242,40 +1249,44 @@ elseif ( empty($mdate) && $oldm )
|
|||
|
||||
//if you get here then it's your post type so do your thing....
|
||||
if(isset($_POST['mep_total_seat'])){
|
||||
$seat = strip_tags($_POST['mep_total_seat']);
|
||||
$rsvs = strip_tags($_POST['mep_rsv_seat']);
|
||||
$mep_location_venue = strip_tags($_POST['mep_location_venue']);
|
||||
$mep_street = strip_tags($_POST['mep_street']);
|
||||
$mep_city = strip_tags($_POST['mep_city']);
|
||||
$mep_state = strip_tags($_POST['mep_state']);
|
||||
$mep_postcode = strip_tags($_POST['mep_postcode']);
|
||||
$mep_country = strip_tags($_POST['mep_country']);
|
||||
$mep_price_label = strip_tags($_POST['mep_price_label']);
|
||||
$mep_sqi = strip_tags($_POST['mep_sqi']);
|
||||
$qty_box_type = strip_tags($_POST['qty_box_type']);
|
||||
$mep_sgm = strip_tags($_POST['mep_sgm']);
|
||||
$mep_org_address = strip_tags($_POST['mep_org_address']);
|
||||
$_price = strip_tags($_POST['_price']);
|
||||
|
||||
$seat = isset( $_POST['mep_total_seat'] ) ? strip_tags( $_POST['mep_total_seat'] ) : "";
|
||||
$rsvs = isset( $_POST['mep_rsv_seat'] ) ? strip_tags( $_POST['mep_rsv_seat'] ) : "";
|
||||
$mep_location_venue = isset( $_POST['mep_location_venue'] ) ? strip_tags( $_POST['mep_location_venue'] ) : "";
|
||||
$mep_street = isset( $_POST['mep_street'] ) ? strip_tags( $_POST['mep_street'] ) : "";
|
||||
$mep_city = isset( $_POST['mep_city'] ) ? strip_tags( $_POST['mep_city'] ) : "";
|
||||
$mep_state = isset($_POST['mep_state']) ? strip_tags( $_POST['mep_state'] ) : "";
|
||||
$mep_postcode = isset($_POST['mep_postcode']) ? strip_tags( $_POST['mep_postcode'] ) : "";
|
||||
$mep_country = isset($_POST['mep_country']) ? strip_tags( $_POST['mep_country'] ) : "";
|
||||
$mep_price_label = isset($_POST['mep_price_label']) ? strip_tags( $_POST['mep_price_label'] ) : "";
|
||||
$mep_sqi = isset($_POST['mep_sqi']) ? strip_tags( $_POST['mep_sqi'] ) : "";
|
||||
$qty_box_type = isset($_POST['qty_box_type']) ? strip_tags( $_POST['qty_box_type'] ) : "";
|
||||
$mep_sgm = isset($_POST['mep_sgm']) ? strip_tags( $_POST['mep_sgm'] ) : "";
|
||||
$mep_org_address = isset($_POST['mep_org_address']) ? strip_tags( $_POST['mep_org_address'] ) : "";
|
||||
$_price = isset($_POST['_price']) ? strip_tags( $_POST['_price'] ) : "";
|
||||
|
||||
$mep_event_start_date = strip_tags($_POST['mep_event_start_date']);
|
||||
$mep_event_end_date = strip_tags($_POST['mep_event_end_date']);
|
||||
$mep_event_cc_email_text = strip_tags($_POST['mep_event_cc_email_text']);
|
||||
|
||||
$latitude = strip_tags($_POST['latitude']);
|
||||
$longitude = strip_tags($_POST['longitude']);
|
||||
$location_name = strip_tags($_POST['location_name']);
|
||||
|
||||
$mep_full_name = strip_tags($_POST['mep_full_name']);
|
||||
$mep_reg_email = strip_tags($_POST['mep_reg_email']);
|
||||
$mep_reg_phone = strip_tags($_POST['mep_reg_phone']);
|
||||
$mep_reg_address = strip_tags($_POST['mep_reg_address']);
|
||||
$mep_reg_designation = strip_tags($_POST['mep_reg_designation']);
|
||||
$mep_reg_website = strip_tags($_POST['mep_reg_website']);
|
||||
$mep_reg_veg = strip_tags($_POST['mep_reg_veg']);
|
||||
$mep_reg_company = strip_tags($_POST['mep_reg_company']);
|
||||
$mep_reg_gender = strip_tags($_POST['mep_reg_gender']);
|
||||
$mep_reg_tshirtsize = strip_tags($_POST['mep_reg_tshirtsize']);
|
||||
$mep_reg_tshirtsize_list = strip_tags($_POST['mep_reg_tshirtsize_list']);
|
||||
$mep_event_template = strip_tags($_POST['mep_event_template']);
|
||||
$latitude = isset($_POST['latitude']) ? strip_tags($_POST['latitude']) : "";
|
||||
$longitude = isset($_POST['latitude']) ? strip_tags($_POST['longitude']): "";
|
||||
$location_name = isset($_POST['location_name']) ? strip_tags($_POST['location_name']) : "";
|
||||
|
||||
$mep_full_name = isset($_POST['mep_full_name']) ? strip_tags($_POST['mep_full_name']) : "";
|
||||
$mep_reg_email = isset($_POST['mep_reg_email']) ? strip_tags($_POST['mep_reg_email']) : "";
|
||||
$mep_reg_phone = isset($_POST['mep_reg_phone']) ? strip_tags($_POST['mep_reg_phone']) : "";
|
||||
$mep_reg_address = isset($_POST['mep_reg_address']) ? strip_tags($_POST['mep_reg_address']) : "";
|
||||
$mep_reg_designation = isset($_POST['mep_reg_designation']) ? strip_tags($_POST['mep_reg_designation']) : "";
|
||||
$mep_reg_website = isset($_POST['mep_reg_website']) ? strip_tags($_POST['mep_reg_website']) : "";
|
||||
$mep_reg_veg = isset($_POST['mep_reg_veg']) ? strip_tags($_POST['mep_reg_veg']) : "";
|
||||
$mep_reg_company = isset($_POST['mep_reg_company']) ? strip_tags($_POST['mep_reg_company']) : "";
|
||||
$mep_reg_gender = isset($_POST['mep_reg_gender']) ? strip_tags($_POST['mep_reg_gender']) : "";
|
||||
$mep_reg_tshirtsize = isset($_POST['mep_reg_tshirtsize']) ? strip_tags($_POST['mep_reg_tshirtsize']) : "";
|
||||
$mep_reg_tshirtsize_list = isset($_POST['mep_reg_tshirtsize_list']) ? strip_tags($_POST['mep_reg_tshirtsize_list']) : "";
|
||||
$mep_event_template = isset($_POST['mep_event_template']) ? strip_tags($_POST['mep_event_template']) : "";
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -33,14 +33,14 @@ const myEvents = [
|
|||
$event_meta = get_post_custom(get_the_id());
|
||||
$author_terms = get_the_terms(get_the_id(), 'mep_org');
|
||||
$time = strtotime($event_meta['mep_event_start_date'][0]);
|
||||
$newformat = date('Y-m-d H:i:s',$time);
|
||||
$newformat = date_i18n('Y-m-d H:i:s',$time);
|
||||
|
||||
// echo $newformat;
|
||||
// if(time() < strtotime($newformat)){
|
||||
?>
|
||||
{
|
||||
start: '<?php echo date('Y-m-d H:i',strtotime($event_meta['mep_event_start_date'][0])); ?>',
|
||||
end: '<?php echo date('Y-m-d H:i',strtotime($event_meta['mep_event_end_date'][0])); ?>',
|
||||
start: '<?php echo date_i18n('Y-m-d H:i',strtotime($event_meta['mep_event_start_date'][0])); ?>',
|
||||
end: '<?php echo date_i18n('Y-m-d H:i',strtotime($event_meta['mep_event_end_date'][0])); ?>',
|
||||
title: '<?php the_title(); ?>',
|
||||
url: '<?php the_permalink(); ?>',
|
||||
class: '',
|
||||
|
@ -207,7 +207,7 @@ elseif($org>0){
|
|||
$event_meta = get_post_custom(get_the_id());
|
||||
$author_terms = get_the_terms(get_the_id(), 'mep_org');
|
||||
$time = strtotime($event_meta['mep_event_start_date'][0]);
|
||||
$newformat = date('Y-m-d H:i:s',$time);
|
||||
$newformat = date_i18n('Y-m-d H:i:s',$time);
|
||||
|
||||
$tt = get_the_terms( get_the_id(), 'mep_cat');
|
||||
$torg = get_the_terms( get_the_id(), 'mep_org');
|
||||
|
@ -223,15 +223,15 @@ $available_seat = mep_get_total_available_seat(get_the_id(), $event_meta);
|
|||
<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('d', strtotime($event_meta['mep_event_start_date'][0])); ?></div>
|
||||
<div class="mep-month"><?php echo date('M', strtotime($event_meta['mep_event_start_date'][0])); ?></div>
|
||||
<div class="mep-day"><?php echo date_i18n('d', strtotime($event_meta['mep_event_start_date'][0])); ?></div>
|
||||
<div class="mep-month"><?php echo date_i18n('M', strtotime($event_meta['mep_event_start_date'][0])); ?></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>
|
||||
<?php if($available_seat==0){ do_action('mep_show_waitlist_label'); } ?>
|
||||
<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('h:i A', strtotime($event_meta['mep_event_start_date'][0])); ?> - <?php echo $event_meta['mep_event_end_date'][0]; ?> --></h3>
|
||||
<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['mep_event_start_date'][0])); ?> - <?php echo $event_meta['mep_event_end_date'][0]; ?> --></h3>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
@ -327,7 +327,7 @@ function mep_expire_event_list($atts, $content=null){
|
|||
"org-filter" => "no",
|
||||
"show" => "-1",
|
||||
"pagination" => "no",
|
||||
'sort' => 'ASC'
|
||||
'sort' => 'DESC'
|
||||
);
|
||||
|
||||
$params = shortcode_atts($defaults, $atts);
|
||||
|
@ -461,7 +461,7 @@ elseif($org>0){
|
|||
$event_meta = get_post_custom(get_the_id());
|
||||
$author_terms = get_the_terms(get_the_id(), 'mep_org');
|
||||
$time = strtotime($event_meta['mep_event_start_date'][0]);
|
||||
$newformat = date('Y-m-d H:i:s',$time);
|
||||
$newformat = date_i18n('Y-m-d H:i:s',$time);
|
||||
|
||||
|
||||
//if(time() > strtotime($newformat)){
|
||||
|
@ -475,14 +475,14 @@ $author_terms = get_the_terms(get_the_id(), 'mep_org');
|
|||
<div class="mep_list_thumb">
|
||||
<?php the_post_thumbnail('full'); ?>
|
||||
<div class="mep-ev-start-date">
|
||||
<div class="mep-day"><?php echo date('d', strtotime($event_meta['mep_event_start_date'][0])); ?></div>
|
||||
<div class="mep-month"><?php echo date('M', strtotime($event_meta['mep_event_start_date'][0])); ?></div>
|
||||
<div class="mep-day"><?php echo date_i18n('d', strtotime($event_meta['mep_event_start_date'][0])); ?></div>
|
||||
<div class="mep-month"><?php echo date_i18n('M', strtotime($event_meta['mep_event_start_date'][0])); ?></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('h:i A', strtotime($event_meta['mep_event_start_date'][0])); ?> - <?php echo $event_meta['mep_event_end_date'][0]; ?> --></h3>
|
||||
<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['mep_event_start_date'][0])); ?> - <?php echo $event_meta['mep_event_end_date'][0]; ?> --></h3>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
|
|
@ -15,10 +15,10 @@ $faq_label_text_color = mep_get_option( 'mep_faq_title_text_color', 'style_setti
|
|||
|
||||
?>
|
||||
<style>
|
||||
.mep-ev-start-date, h3.mep_list_date i, .mep-list-footer ul li i, .df-ico i, .mep-default-sidrbar-meta i, .mep-default-sidrbar-address ul li i, .mep-default-sidrbar-social ul li a, .mep-tem3-title-sec{
|
||||
.mep-default-sidrbar-events-schedule ul li i, .mep-ev-start-date, h3.mep_list_date i, .mep-list-footer ul li i, .df-ico i, .mep-default-sidrbar-meta i, .mep-default-sidrbar-address ul li i, .mep-default-sidrbar-social ul li a, .mep-tem3-title-sec{
|
||||
background: <?php echo $base_color; ?>;
|
||||
}
|
||||
.mep_event_list .mep_list_date, .mep-event-theme-1 .mep-social-share li a, .mep-template-2-hamza .mep-social-share li a{
|
||||
.mep-default-sidrbar-events-schedule h3 i, .mep_event_list .mep_list_date, .mep-event-theme-1 .mep-social-share li a, .mep-template-2-hamza .mep-social-share li a{
|
||||
color:<?php echo $base_color; ?>;
|
||||
}
|
||||
.mep_event_list_item:hover {border-color:<?php echo $base_color; ?>;}
|
||||
|
|
|
@ -376,4 +376,11 @@ A. you can create support ticket here with problem details with possible screens
|
|||
*= 2.6.8 =
|
||||
* Update Release:
|
||||
==> Quick fix, Double booking issue fixed.
|
||||
5 July 2019*
|
||||
5 July 2019*
|
||||
|
||||
|
||||
*= 2.6.9 =
|
||||
* Update Release:
|
||||
==> PHP warning fixed
|
||||
==> Date Display
|
||||
18 July 2019*
|
|
@ -6,7 +6,7 @@ function mep_get_event_reg_btn(){
|
|||
global $post,$event_meta;
|
||||
$post_id = $post->ID;
|
||||
$event_meta = get_post_custom($post_id);
|
||||
$event_expire_date = $event_meta['mep_event_start_date'][0];
|
||||
$event_expire_date = $event_meta[mep_get_option( 'mep_event_expire_on_datetime', 'general_setting_sec', 'mep_event_start_date' )][0];
|
||||
$event_sqi = $event_meta['mep_sqi'][0];
|
||||
$mep_full_name = strip_tags($event_meta['mep_full_name'][0]);
|
||||
$mep_reg_email = strip_tags($event_meta['mep_reg_email'][0]);
|
||||
|
@ -59,6 +59,29 @@ if($mep_event_ticket_type){
|
|||
}else{
|
||||
$seat_left = $seat_left;
|
||||
}
|
||||
|
||||
|
||||
$current = current_time('Y-m-d H:i:s');
|
||||
$time = strtotime($event_expire_date);
|
||||
$newformat = date('Y-m-d H:i:s',$time);
|
||||
|
||||
date_default_timezone_set(get_option('timezone_string'));
|
||||
|
||||
$datetime1 = new DateTime($newformat);
|
||||
$datetime2 = new DateTime($current);
|
||||
|
||||
$interval = date_diff($datetime2, $datetime1);
|
||||
|
||||
// $days = $interval->days;
|
||||
// $hours = $interval->h;
|
||||
// $minutes = $interval->i;
|
||||
// if($days>0){ $dd = $days." days "; }else{ $dd=""; }
|
||||
// if($hours>0){ $hh = $hours." hours "; }else{ $hh=""; }
|
||||
// if($minutes>0){ $mm = $minutes." minutes "; }else{ $mm=""; }
|
||||
// echo "<span class='active'>$dd $hh $mm</span>";
|
||||
|
||||
|
||||
|
||||
if(time() > strtotime($newformat)){
|
||||
?>
|
||||
<span class=event-expire-btn>
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
<?php
|
||||
add_action('mep_event_date','mep_ev_datetime');
|
||||
|
||||
|
||||
function mep_ev_datetime(){
|
||||
global $event_meta;
|
||||
if(array_key_exists('mep_event_more_date', $event_meta)){
|
||||
|
@ -9,7 +7,6 @@ global $event_meta;
|
|||
}else{
|
||||
$more_date = '';
|
||||
}
|
||||
|
||||
?>
|
||||
<p><?php mep_get_full_time_and_date($event_meta['mep_event_start_date'][0]); if($more_date){ foreach ($more_date as $md) {
|
||||
echo " - "; mep_get_full_time_and_date($md['event_more_date']);
|
||||
|
@ -18,6 +15,31 @@ global $event_meta;
|
|||
}
|
||||
|
||||
|
||||
add_action('mep_event_date_default_theme','mep_date_in_default_theme');
|
||||
|
||||
function mep_date_in_default_theme(){
|
||||
global $event_meta;
|
||||
if ( array_key_exists( 'mep_event_more_date', $event_meta ) ) {
|
||||
$more_date = unserialize( $event_meta['mep_event_more_date'][0] );
|
||||
} else {
|
||||
$more_date = '';
|
||||
}
|
||||
?>
|
||||
<h3><i class="fa fa-calendar"></i> <?php echo esc_html( 'Event schedule details', 'mage-eventpress' ); ?></h3>
|
||||
<?php
|
||||
if($more_date){
|
||||
mep_get_all_date_time( $event_meta['mep_event_start_date'][0], $more_date, $event_meta['mep_event_end_date'][0]);
|
||||
}else{
|
||||
echo get_single_date_time( $event_meta['mep_event_start_date'][0], $event_meta['mep_event_end_date'][0]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
add_action('mep_event_date_only','mep_ev_date');
|
||||
function mep_ev_date(){
|
||||
|
@ -27,6 +49,7 @@ global $event_meta;
|
|||
<?php
|
||||
}
|
||||
|
||||
|
||||
add_action('mep_event_time_only','mep_ev_time');
|
||||
function mep_ev_time(){
|
||||
global $event_meta;
|
||||
|
@ -35,9 +58,6 @@ global $event_meta;
|
|||
<?php
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function mep_ev_time_ticket($event_meta){
|
||||
// global $event_meta;
|
||||
?>
|
||||
|
@ -50,4 +70,6 @@ function mep_ev_date_ticket($event_meta){
|
|||
?>
|
||||
<?php echo date_i18n('d M Y', strtotime($event_meta['mep_event_start_date'][0])); ?>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -3,88 +3,96 @@
|
|||
?>
|
||||
|
||||
<div class="mep-default-theme">
|
||||
<div class="mep-default-content">
|
||||
<div class="mep-default-title">
|
||||
<?php do_action('mep_event_title'); ?>
|
||||
</div>
|
||||
<div class="mep-default-feature-image">
|
||||
<?php do_action('mep_event_thumbnail'); ?>
|
||||
</div>
|
||||
<div class="mep-default-feature-date-location">
|
||||
<div class="mep-default-feature-date">
|
||||
<div class="df-ico"><i class="fa fa-calendar"></i></div>
|
||||
<div class='df-dtl'>
|
||||
<h3>
|
||||
<?php echo mep_get_option('mep_event_date_text', 'label_setting_sec') ? mep_get_option('mep_event_date_text', 'label_setting_sec') : _e('Event Date:','mage-eventpress'); ?>
|
||||
</h3>
|
||||
<?php do_action('mep_event_date_only'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mep-default-feature-time">
|
||||
<div class="df-ico"><i class="fa fa-clock-o"></i></div>
|
||||
<div class='df-dtl'>
|
||||
<h3>
|
||||
<?php echo mep_get_option('mep_event_time_text', 'label_setting_sec') ? mep_get_option('mep_event_time_text', 'label_setting_sec') : _e('Event Time:','mage-eventpress'); ?>
|
||||
</h3>
|
||||
<?php do_action('mep_event_time_only'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mep-default-feature-location">
|
||||
<div class="df-ico"><i class="fa fa-map-marker"></i></div>
|
||||
<div class='df-dtl'>
|
||||
<h3>
|
||||
<?php echo mep_get_option('mep_event_location_text', 'label_setting_sec') ? mep_get_option('mep_event_location_text', 'label_setting_sec') : _e('Event Location:','mage-eventpress'); ?>
|
||||
</h3>
|
||||
<p><?php do_action('mep_event_location_venue'); ?>, <?php do_action('mep_event_location_city'); ?> </p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mep-default-feature-content">
|
||||
<?php do_action('mep_event_details'); ?>
|
||||
</div>
|
||||
<div class="mep-default-feature-cart-sec">
|
||||
<?php do_action('mep_add_to_cart') ?>
|
||||
</div>
|
||||
<div class="mep-default-content">
|
||||
<div class="mep-default-title">
|
||||
<?php do_action( 'mep_event_title' ); ?>
|
||||
</div>
|
||||
<div class="mep-default-feature-image">
|
||||
<?php do_action( 'mep_event_thumbnail' ); ?>
|
||||
</div>
|
||||
<div class="mep-default-feature-date-location">
|
||||
<div class="mep-default-feature-date">
|
||||
<div class="df-ico"><i class="fa fa-calendar"></i></div>
|
||||
<div class='df-dtl'>
|
||||
<h3>
|
||||
<?php echo mep_get_option( 'mep_event_date_text', 'label_setting_sec' ) ? mep_get_option( 'mep_event_date_text', 'label_setting_sec' ) : _e( 'Event Date:', 'mage-eventpress' ); ?>
|
||||
</h3>
|
||||
<?php do_action( 'mep_event_date_only' ); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mep-default-feature-time">
|
||||
<div class="df-ico"><i class="fa fa-clock-o"></i></div>
|
||||
<div class='df-dtl'>
|
||||
<h3>
|
||||
<?php echo mep_get_option( 'mep_event_time_text', 'label_setting_sec' ) ? mep_get_option( 'mep_event_time_text', 'label_setting_sec' ) : _e( 'Event Time:', 'mage-eventpress' ); ?>
|
||||
</h3>
|
||||
<?php do_action( 'mep_event_time_only' ); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mep-default-feature-location">
|
||||
<div class="df-ico"><i class="fa fa-map-marker"></i></div>
|
||||
<div class='df-dtl'>
|
||||
<h3>
|
||||
<?php echo mep_get_option( 'mep_event_location_text', 'label_setting_sec' ) ? mep_get_option( 'mep_event_location_text', 'label_setting_sec' ) : _e( 'Event Location:', 'mage-eventpress' ); ?>
|
||||
</h3>
|
||||
<p><?php do_action( 'mep_event_location_venue' ); ?>
|
||||
, <?php do_action( 'mep_event_location_city' ); ?> </p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mep-default-feature-content">
|
||||
<?php do_action( 'mep_event_details' ); ?>
|
||||
</div>
|
||||
<div class="mep-default-feature-cart-sec">
|
||||
<?php do_action( 'mep_add_to_cart' ) ?>
|
||||
</div>
|
||||
|
||||
<div class="mep-default-feature-faq-sec">
|
||||
<?php do_action('mep_event_faq'); ?>
|
||||
</div>
|
||||
<div class="mep-default-feature-faq-sec">
|
||||
<?php do_action( 'mep_event_faq' ); ?>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="mep-default-sidebar">
|
||||
<div class="mep-default-sidrbar-map">
|
||||
<h3><?php echo mep_get_option( 'mep_event_location_text', 'label_setting_sec' ) ? mep_get_option( 'mep_event_location_text', 'label_setting_sec' ) : _e( 'Event Location:', 'mage-eventpress' ); ?>
|
||||
</h3>
|
||||
</h3>
|
||||
<?php do_action( 'mep_event_map' ); ?>
|
||||
</div>
|
||||
<div class="df-sidebar-part">
|
||||
<div class="mep-default-sidrbar-price-seat">
|
||||
<div class="df-price"><?php do_action( 'mep_event_price' ); ?></div>
|
||||
<div class="df-seat"><?php do_action( 'mep_event_seat' ); ?></div>
|
||||
</div>
|
||||
<div class="mep-default-sidrbar-meta">
|
||||
<i class="fa fa-link"></i> <?php do_action( 'mep_event_organizer' ); ?>
|
||||
</div>
|
||||
<div class="mep-default-sidrbar-address">
|
||||
<ul>
|
||||
<li><i class="fa fa-arrow-circle-right"></i> <?php do_action( 'mep_event_location_venue' ); ?></li>
|
||||
<li><i class="fa fa-arrow-circle-right"></i> <?php do_action( 'mep_event_location_street' ); ?></li>
|
||||
<li><i class="fa fa-arrow-circle-right"></i> <?php do_action( 'mep_event_location_city' ); ?></li>
|
||||
<li><i class="fa fa-arrow-circle-right"></i> <?php do_action( 'mep_event_location_state' ); ?></li>
|
||||
<li><i class="fa fa-arrow-circle-right"></i> <?php do_action( 'mep_event_location_country' ); ?>
|
||||
</li>
|
||||
<!-- <li><i class="fa fa-arrow-circle-right"></i> -->
|
||||
<?php //do_action('mep_event_date'); ?><!--</li>-->
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="mep-default-sidebar">
|
||||
<div class="mep-default-sidrbar-map">
|
||||
<h3><?php echo mep_get_option('mep_event_location_text', 'label_setting_sec') ? mep_get_option('mep_event_location_text', 'label_setting_sec') : _e('Event Location:','mage-eventpress'); ?>
|
||||
</h3>
|
||||
</h3>
|
||||
<?php do_action('mep_event_map'); ?>
|
||||
</div>
|
||||
<div class="df-sidebar-part">
|
||||
<div class="mep-default-sidrbar-price-seat">
|
||||
<div class="df-price"><?php do_action('mep_event_price'); ?></div>
|
||||
<div class="df-seat"><?php do_action('mep_event_seat'); ?></div>
|
||||
</div>
|
||||
<div class="mep-default-sidrbar-meta">
|
||||
<i class="fa fa-link"></i> <?php do_action('mep_event_organizer'); ?>
|
||||
</div>
|
||||
<div class="mep-default-sidrbar-address">
|
||||
<ul>
|
||||
<li><i class="fa fa-arrow-circle-right"></i> <?php do_action('mep_event_location_venue'); ?></li>
|
||||
<li><i class="fa fa-arrow-circle-right"></i> <?php do_action('mep_event_location_street'); ?></li>
|
||||
<li><i class="fa fa-arrow-circle-right"></i> <?php do_action('mep_event_location_city'); ?></li>
|
||||
<li><i class="fa fa-arrow-circle-right"></i> <?php do_action('mep_event_location_state'); ?></li>
|
||||
<li><i class="fa fa-arrow-circle-right"></i> <?php do_action('mep_event_location_country'); ?></li>
|
||||
<li><i class="fa fa-arrow-circle-right"></i> <?php do_action('mep_event_date'); ?></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="mep-default-sidrbar-social">
|
||||
<?php do_action('mep_event_social_share'); ?>
|
||||
</div>
|
||||
<div class="mep-default-sidrbar-calender-btn">
|
||||
<?php do_action('mep_event_add_calender'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mep-default-sidrbar-events-schedule">
|
||||
<?php do_action( 'mep_event_date_default_theme' ); ?>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mep-default-sidrbar-social">
|
||||
<?php do_action( 'mep_event_social_share' ); ?>
|
||||
</div>
|
||||
<div class="mep-default-sidrbar-calender-btn">
|
||||
<?php do_action( 'mep_event_add_calender' ); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -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: 2.6.8
|
||||
* Version: 2.6.9
|
||||
* Author: MagePeople Team
|
||||
* Author URI: http://www.mage-people.com/
|
||||
* Text Domain: mage-eventpress
|
||||
|
@ -1075,7 +1075,43 @@ function mep_event_org_location_item($event_id,$item_name){
|
|||
}
|
||||
}
|
||||
|
||||
function mep_get_all_date_time( $start_datetime, $more_datetime, $end_datetime ) {
|
||||
ob_start();
|
||||
?>
|
||||
<ul>
|
||||
<li><i class="fa fa-calendar"></i> <?php echo date_i18n( 'l,d M Y', strtotime( $start_datetime ) ); ?> <i class="fa fa-clock-o"></i> <?php echo date_i18n( 'h:i A', strtotime( $start_datetime ) ); ?></li>
|
||||
<?php
|
||||
foreach ( $more_datetime as $_more_datetime ) {
|
||||
?>
|
||||
<li><i class="fa fa-calendar"></i> <?php echo date_i18n( 'l,d M Y', strtotime( $_more_datetime['event_more_date'] ) ); ?> <i class="fa fa-clock-o"></i> <?php echo date_i18n( 'h:i A', strtotime( $_more_datetime['event_more_date'] ) ) ?></li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<li><i class="fa fa-calendar"></i> <?php echo date_i18n( 'l,d M Y', strtotime( $end_datetime ) ); ?> <i class="fa fa-clock-o"></i> <?php echo date_i18n( 'h:i A', strtotime( $end_datetime ) ); ?> <span style='font-size: 12px;font-weight: bold;'>(<?php _e('End','mage-eventpress'); ?>)</span></li>
|
||||
</ul>
|
||||
<?php
|
||||
$content = ob_get_clean();
|
||||
echo $content;
|
||||
}
|
||||
|
||||
function get_single_date_time( $start_datetime, $end_datetime ) {
|
||||
|
||||
$start_date = date_i18n( 'Y-m-d', strtotime( $start_datetime ) );
|
||||
$end_date = date_i18n( 'Y-m-d', strtotime( $end_datetime ) );
|
||||
|
||||
$nameOfDay = date_i18n( 'l,d M Y', strtotime( $start_date ) );
|
||||
$nameOfDayEnd = date_i18n( 'l,d M Y', strtotime( $end_date ) );
|
||||
|
||||
$start_time = date_i18n( 'h:i A', strtotime( $start_datetime ) );
|
||||
$end_time = date_i18n( 'h:i A', strtotime( $end_datetime ) );
|
||||
|
||||
if ( $start_date == $end_date ) {
|
||||
return $nameOfDay . " " . $start_time . " - " . $end_time;
|
||||
} else {
|
||||
return $nameOfDay . " " . $start_time . " " . $nameOfDayEnd . " " . $end_time;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -1360,7 +1396,7 @@ function mep_get_event_total_seat($event_id){
|
|||
<?php
|
||||
|
||||
}else{
|
||||
if($event_meta['mep_total_seat'][0]){ ?>
|
||||
if(isset($event_meta['mep_total_seat'][0])){ ?>
|
||||
<span style="background: #dc3232;color: #fff;padding: 5px 10px;"> <?php echo ($event_meta['mep_total_seat'][0]- $total_book); ?>/<?php echo $event_meta['mep_total_seat'][0]; ?></span>
|
||||
<?php }
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue