version 2.6.6 released
This commit is contained in:
parent
e6f805a5e0
commit
8cd03fae32
|
@ -315,6 +315,7 @@ class MAGE_Events_Setting_Controls {
|
|||
'type' => 'text',
|
||||
'default' => ''
|
||||
),
|
||||
|
||||
array(
|
||||
'name' => 'mep_no_ticket_selected_text',
|
||||
'label' => __('No Ticket Selected!', 'mage-eventpress' ),
|
||||
|
@ -322,9 +323,30 @@ class MAGE_Events_Setting_Controls {
|
|||
'type' => 'text',
|
||||
'default' => ''
|
||||
),
|
||||
|
||||
array(
|
||||
'name' => 'mep_no_seat_available_text',
|
||||
'label' => __('No Seat Available', 'mage-eventpress' ),
|
||||
'desc' => __( 'Enter the text which you want to display as No Seat Available.', 'mage-eventpress' ),
|
||||
'type' => 'text',
|
||||
'default' => ''
|
||||
),
|
||||
|
||||
array(
|
||||
'name' => 'mep_not_available_text',
|
||||
'label' => __('Not Available', 'mage-eventpress' ),
|
||||
'desc' => __( 'Enter the text which you want to display as Not Available.', 'mage-eventpress' ),
|
||||
'type' => 'text',
|
||||
'default' => ''
|
||||
),
|
||||
|
||||
|
||||
|
||||
array(
|
||||
'name' => 'mep_event_expired_text',
|
||||
'label' => __('Event Expired', 'mage-eventpress' ),
|
||||
'desc' => __( 'Enter the text which you want to display as Event Expired.', 'mage-eventpress' ),
|
||||
'type' => 'text',
|
||||
'default' => ''
|
||||
),
|
||||
),
|
||||
'style_setting_sec' => array(
|
||||
array(
|
||||
|
|
|
@ -210,11 +210,17 @@ $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);
|
||||
|
||||
$tt = get_the_terms( get_the_id(), 'mep_cat');
|
||||
$torg = get_the_terms( get_the_id(), 'mep_org');
|
||||
$available_seat = mep_get_total_available_seat(get_the_id(), $event_meta);
|
||||
$tt = get_the_terms( get_the_id(), 'mep_cat');
|
||||
$torg = get_the_terms( get_the_id(), 'mep_org');
|
||||
|
||||
|
||||
$org_class = mep_get_term_as_class(get_the_id(),'mep_org');
|
||||
$cat_class = mep_get_term_as_class(get_the_id(),'mep_cat');
|
||||
|
||||
|
||||
$available_seat = mep_get_total_available_seat(get_the_id(), $event_meta);
|
||||
?>
|
||||
<div class='mep_event_<?php echo $style; ?>_item mix <?php if($tt){ echo $tt[0]->slug; } ?> <?php if($torg){ echo $torg[0]->slug; } ?>'>
|
||||
<div class='mep_event_<?php echo $style; ?>_item mix <?php if($tt){ echo $org_class; } ?> <?php if($torg){ echo $cat_class; } ?>'>
|
||||
<div class="mep_list_thumb">
|
||||
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('full'); ?></a>
|
||||
<div class="mep-ev-start-date">
|
||||
|
@ -523,20 +529,11 @@ if($style=='list'){
|
|||
</div>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//}
|
||||
}
|
||||
wp_reset_postdata();
|
||||
if($pagination=='yes'){
|
||||
?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12"><?php
|
||||
$pargs = array(
|
||||
|
@ -548,10 +545,6 @@ if($pagination=='yes'){
|
|||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
|
|
16
readme.txt
16
readme.txt
|
@ -347,4 +347,18 @@ A. you can create support ticket here with problem details with possible screens
|
|||
*Update Release:
|
||||
==> Booking counting duplicating issue fixed in free event.
|
||||
==> Add new feature Reset Booking count option.
|
||||
19 June 2019*
|
||||
19 June 2019*
|
||||
|
||||
|
||||
*= 2.6.5 =
|
||||
*Update Release:
|
||||
==> Fixed Security issue in Attandee Page
|
||||
15 June 2019*
|
||||
|
||||
|
||||
*= 2.6.6 =
|
||||
*Update Release:
|
||||
==> Added new strings into Translation setting page
|
||||
==> Fixed event details page not showing in some theme issue
|
||||
==> Mixitup Filter for multiple sub category issue fixed
|
||||
1 July 2019*
|
|
@ -62,14 +62,14 @@ if($mep_event_ticket_type){
|
|||
if(time() > strtotime($newformat)){
|
||||
?>
|
||||
<span class=event-expire-btn>
|
||||
<?php _e('Event Expired','mage-eventpress'); ?>
|
||||
<?php echo mep_get_option('mep_event_expired_text', 'label_setting_sec') ? mep_get_option('mep_event_expired_text', 'label_setting_sec') : _e('Event Expired','mage-eventpress'); ?>
|
||||
</span>
|
||||
<?php
|
||||
}
|
||||
elseif($seat_left<=0){
|
||||
?>
|
||||
<span class=event-expire-btn>
|
||||
<?php _e('No Seat Available','mage-eventpress'); ?>
|
||||
<?php echo mep_get_option('mep_no_seat_available_text', 'label_setting_sec') ? mep_get_option('mep_no_seat_available_text', 'label_setting_sec') : _e('No Seat Available','mage-eventpress'); ?>
|
||||
</span>
|
||||
<?php
|
||||
do_action('mep_after_no_seat_notice');
|
||||
|
@ -77,9 +77,9 @@ elseif($seat_left<=0){
|
|||
else{
|
||||
|
||||
if(array_key_exists('mep_rsv_seat', $event_meta)){
|
||||
$simple_rsv = $event_meta['mep_rsv_seat'][0];
|
||||
$simple_rsv = $event_meta['mep_rsv_seat'][0];
|
||||
}else{
|
||||
$simple_rsv = '';
|
||||
$simple_rsv = '';
|
||||
}
|
||||
if($simple_rsv){
|
||||
$simple_rsv = $simple_rsv;
|
||||
|
|
|
@ -3,26 +3,33 @@ add_action('mep_event_details','mep_ev_details');
|
|||
|
||||
|
||||
function mep_ev_details(){
|
||||
global $post, $event_meta;
|
||||
the_content();
|
||||
global $post, $event_meta;
|
||||
// the_content();
|
||||
|
||||
$content_event = get_post($post->ID);
|
||||
$content = $content_event->post_content;
|
||||
$content = apply_filters('the_content', $content);
|
||||
$content = str_replace(']]>', ']]>', $content);
|
||||
echo $content;
|
||||
|
||||
$mep_event_day = get_post_meta($post->ID, 'mep_event_day', true);
|
||||
|
||||
if ( $mep_event_day ){
|
||||
echo '<div class="mep-day-details-section">';
|
||||
echo '<h4>Event Days</h4>';
|
||||
echo '<div class="mep-day-details-section">';
|
||||
echo '<h4>Event Days</h4>';
|
||||
foreach ( $mep_event_day as $field ) {
|
||||
|
||||
?>
|
||||
<div class="mep-day-title">
|
||||
<?php echo $field['mep_day_title']; ?>
|
||||
</div>
|
||||
<div class="mep-day-details">
|
||||
<p><?php echo $field['mep_day_content']; ?></p>
|
||||
</div>
|
||||
<?php
|
||||
?>
|
||||
<div class="mep-day-title">
|
||||
<?php echo $field['mep_day_title']; ?>
|
||||
</div>
|
||||
<div class="mep-day-details">
|
||||
<p><?php echo $field['mep_day_content']; ?></p>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
}
|
||||
echo '</div>';
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
}
|
|
@ -42,7 +42,7 @@ if($qty_type=='dropdown'){ ?>
|
|||
</select>
|
||||
<?php }else{ ?>
|
||||
<input id="eventpx" <?php //if($ext_left<=0){ echo "disabled"; } ?> size="4" pattern="[0-9]*" inputmode="numeric" type="number" class='extra-qty-box' name='option_qty[]' data-price='<?php echo $field['option_price']; ?>' value='0' min="0" max="<?php echo $ext_left; ?>">
|
||||
<?php } }else{ _e('Not Available','mage-eventpress'); }?>
|
||||
<?php } }else{ echo mep_get_option('mep_not_available_text', 'label_setting_sec') ? mep_get_option('mep_not_available_text', 'label_setting_sec') : _e('Not Available','mage-eventpress'); } ?>
|
||||
</td>
|
||||
<td><?php echo wc_price($field['option_price']); if($ext_left>0){ ?>
|
||||
<p style="display: none;" class="price_jq"><?php echo $field['option_price']; ?></p>
|
||||
|
|
|
@ -50,7 +50,7 @@ if($qty_t_type=='dropdown'){ ?>
|
|||
</select>
|
||||
<?php }else{ ?>
|
||||
<input id="eventpxtp_<?php echo $count; ?>" <?php //if($ext_left<=0){ echo "disabled"; } ?> size="4" pattern="[0-9]*" inputmode="numeric" type="number" class='extra-qty-box etp' name='option_qty[]' data-price='<?php echo $field['option_price_t']; ?>' value='0' min="0" max="<?php echo $llft; ?>">
|
||||
<?php } }else{ _e('No Seat Available','mage-eventpress'); } ?>
|
||||
<?php } }else{ echo mep_get_option('mep_no_seat_available_text', 'label_setting_sec') ? mep_get_option('mep_no_seat_available_text', 'label_setting_sec') : _e('No Seat Available','mage-eventpress'); } ?>
|
||||
</td>
|
||||
<td class="ticket-price"><span class="tkt-pric">
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ do_action('mep_event_extra_service');
|
|||
else{
|
||||
?>
|
||||
<span class=event-expire-btn>
|
||||
<?php _e('No Seat Available','mage-eventpress'); ?>
|
||||
<?php echo mep_get_option('mep_no_seat_available_text', 'label_setting_sec') ? mep_get_option('mep_no_seat_available_text', 'label_setting_sec') : _e('No Seat Available','mage-eventpress'); ?>
|
||||
</span>
|
||||
<?php
|
||||
do_action('mep_after_no_seat_notice');
|
||||
|
|
|
@ -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.5
|
||||
* Version: 2.6.6
|
||||
* Author: MagePeople Team
|
||||
* Author URI: http://www.mage-people.com/
|
||||
* Text Domain: mage-eventpress
|
||||
|
@ -1420,6 +1420,15 @@ function mep_mep_events_column( $column, $post_id ) {
|
|||
}
|
||||
|
||||
|
||||
function mep_get_term_as_class($post_id,$taxonomy){
|
||||
$tt = get_the_terms($post_id,$taxonomy);
|
||||
$t_class = array();
|
||||
foreach($tt as $tclass){
|
||||
$t_class[] = $tclass->slug;
|
||||
}
|
||||
$main_class = implode(' ',$t_class);
|
||||
return $main_class;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue