version
This commit is contained in:
parent
17450d98b5
commit
4e84398bf9
|
@ -1435,6 +1435,27 @@ h4.mep-cart-table-title {
|
|||
margin: -26px 0 0;
|
||||
padding: 0 0 0 25px;
|
||||
}
|
||||
|
||||
|
||||
.mep-ev-waitlist-active{
|
||||
padding: 10px;
|
||||
position: absolute;
|
||||
right: 0px;
|
||||
top: 0px;
|
||||
border-radius: 10px 0px 0px 10px;
|
||||
}
|
||||
.mep-ev-waitlist-active h2{
|
||||
font-size: 18px;
|
||||
color: #fff !important;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* Responsive CSS
|
||||
=====================================================================*/
|
||||
@media only screen and (min-width: 768px) and (max-width: 990px) {
|
||||
|
|
|
@ -764,7 +764,6 @@ function mep_event_ticket_type() {
|
|||
function mep_event_date_meta_box_cb($post){
|
||||
$values = get_post_custom( $post->ID );
|
||||
$more_date = get_post_meta($post->ID, 'mep_event_more_date', true);
|
||||
// print_r($values);
|
||||
?>
|
||||
|
||||
<div class='sec'>
|
||||
|
@ -776,13 +775,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" 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" type="text" class='event_more_date' name="event_more_date[]" value="<?php echo $more_date[0]['event_more_date']; ?>" /></td>
|
||||
</tr>
|
||||
<tr >
|
||||
<td><input placeholder="Day 3" 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" type="text" class='event_more_date' name="event_more_date[]" value="<?php echo $more_date[1]['event_more_date']; ?>" /></td>
|
||||
</tr>
|
||||
<tr >
|
||||
<td><input placeholder="Day 4" 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" type="text" class='event_more_date' name="event_more_date[]" value="<?php echo $more_date[2]['event_more_date']; ?>" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
@ -218,6 +218,9 @@ $author_terms = get_the_terms(get_the_id(), 'mep_org');
|
|||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<div class='mep_event_<?php echo $style; ?>_item mix <?php echo $tt[0]->slug; ?> <?php echo $torg[0]->slug; ?>'>
|
||||
<div class="mep_list_thumb">
|
||||
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('full'); ?></a>
|
||||
|
@ -225,6 +228,10 @@ $author_terms = get_the_terms(get_the_id(), 'mep_org');
|
|||
<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>
|
||||
|
||||
<?php do_action('mep_after_waitlist_join_lebel'); ?>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="mep_list_event_details"><a href="<?php the_permalink(); ?>">
|
||||
<div class="mep-list-header">
|
||||
|
|
10
readme.txt
10
readme.txt
|
@ -3,8 +3,8 @@ Contributors: magepeopleteam
|
|||
Tags: event, woocomerce events manager, events manager, Wordpress Events plugin, Events plugin, wp events
|
||||
Requires at least: 4.5
|
||||
Stable tag: trunk
|
||||
Version: 2.1.3
|
||||
Tested up to: 5.0
|
||||
Version: 2.3.4
|
||||
Tested up to: 4.9
|
||||
WC requires at least: 3.0
|
||||
WC tested up to: 3.5.0
|
||||
Requires PHP: 5.6
|
||||
|
@ -281,9 +281,3 @@ You can display the event list on any page by using the ShortCode. Just use this
|
|||
*Update Release:
|
||||
==> France Language Pack Ready.
|
||||
05 Feb 2019*
|
||||
|
||||
|
||||
*= 2.3.3 =
|
||||
*Update Release:
|
||||
==> Payment issue fixed, Multidate features added
|
||||
19 Feb 2019*
|
|
@ -899,3 +899,36 @@ $org_id = $org_arr[0]->term_id;
|
|||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function mep_get_total_available_seat($event_id, $event_meta){
|
||||
$book_count = get_post_meta(get_the_id(),'total_booking', true);
|
||||
if($book_count){ $total_book = $book_count; }else{ $total_book = 0; }
|
||||
$simple_rsv = $event_meta['mep_rsv_seat'][0];
|
||||
if($simple_rsv){
|
||||
$simple_rsv = $simple_rsv;
|
||||
}else{
|
||||
$simple_rsv = 0;
|
||||
}
|
||||
$total_book = ($total_book + $simple_rsv);
|
||||
$mep_event_ticket_type = get_post_meta(get_the_id(), 'mep_event_ticket_type', true);
|
||||
if($mep_event_ticket_type){
|
||||
$stc = 0;
|
||||
$leftt = 0;
|
||||
$res = 0;
|
||||
foreach ( $mep_event_ticket_type as $field ) {
|
||||
$qm = $field['option_name_t'];
|
||||
$tesqn = get_the_id().str_replace(' ', '', $qm);
|
||||
$tesq = get_post_meta(get_the_id(),"mep_xtra_$tesqn",true);
|
||||
$stc = $stc+$field['option_qty_t'];
|
||||
$res = $res + (int)$field['option_rsv_t'];
|
||||
$res = (int)$res;
|
||||
$llft = ($field['option_qty_t'] - (int)$tesq);
|
||||
$leftt = ($leftt+$llft);
|
||||
}
|
||||
$leftt = $leftt-$res;
|
||||
}else{
|
||||
$leftt = $event_meta['mep_total_seat'][0]- $total_book;
|
||||
}
|
||||
return $leftt;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue