v 3.4.3 with end date fix
This commit is contained in:
parent
937d110d51
commit
f3f769fe74
|
@ -476,3 +476,5 @@ label.mp_event_virtual_type_des textarea{width:100%;}
|
|||
div#mp_event_all_info_in_tab .handle-actions.hide-if-no-js {
|
||||
display: none;
|
||||
}
|
||||
div.sell_expire_date{display: -webkit-flex;display: flex;}
|
||||
div.sell_expire_date>*{-webkit-flex:1;flex: 1;font-size: 10px !important;}
|
|
@ -440,9 +440,13 @@ class MP_Event_All_Info_In_One
|
|||
} ?>" /></td>
|
||||
|
||||
<?php do_action('mep_add_extra_input_box', $field) ?>
|
||||
<td><input style='width:220px;' type="datetime-local" id="ticket_sale_start" value='<?php if ($field['option_sale_end_date_t'] != '') {
|
||||
echo esc_attr($field['option_sale_end_date_t']);
|
||||
} ?>' name="option_sale_end_date_t[]"></td>
|
||||
<td>
|
||||
<div class="sell_expire_date">
|
||||
<input type="date" id="ticket_sale_start_date" value='<?php if ($field['option_sale_end_date_t'] != '') { echo esc_attr(date('Y-m-d',strtotime($field['option_sale_end_date_t']))); } ?>' name="option_sale_end_date[]" />
|
||||
|
||||
<input type="time" id="ticket_sale_start_time" value='<?php if ($field['option_sale_end_date_t'] != '') { echo esc_attr(date('H:i',strtotime($field['option_sale_end_date_t']))); } ?>' name="option_sale_end_time[]" />
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<select name="option_qty_t_type[]" class='mp_formControl'>
|
||||
<option value="inputbox" <?php if ($qty_t_type == 'inputbox') {
|
||||
|
@ -476,6 +480,12 @@ class MP_Event_All_Info_In_One
|
|||
<td><input type="number" size="2" pattern="[0-9]*" class="mp_formControl" name="option_default_qty_t[]" placeholder="Ex: 1" value="" /></td>
|
||||
<?php echo $option_rsv_t = '<td><input type="number" class="mp_formControl" name="option_rsv_t[]" placeholder="Ex: 5" value=""/></td>' ?>
|
||||
<?php apply_filters('mep_add_field_to_ticket_type', $option_rsv_t); ?>
|
||||
<td>
|
||||
<div class="sell_expire_date">
|
||||
<input type="date" id="ticket_sale_start_date" value='' name="option_sale_end_date[]" />
|
||||
<input type="time" id="ticket_sale_start_time" value='' name="option_sale_end_time[]" />
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<select name="option_qty_t_type[]" class='mp_formControl'>
|
||||
<option value=''><?php _e('Please Select', 'mage-eventpress'); ?></option>
|
||||
|
@ -1032,7 +1042,8 @@ function mep_events_ticket_type_save($post_id)
|
|||
$dflt_qty = $_POST['option_default_qty_t'] ? $_POST['option_default_qty_t'] : array();
|
||||
$rsv = $_POST['option_rsv_t'] ? $_POST['option_rsv_t'] : array();
|
||||
$qty_type = $_POST['option_qty_t_type'] ? $_POST['option_qty_t_type'] : array();
|
||||
$sale_end = $_POST['option_sale_end_date_t'] ? $_POST['option_sale_end_date_t'] : array();
|
||||
$sale_end_date = $_POST['option_sale_end_date'] ? $_POST['option_sale_end_date'] : array();
|
||||
$sale_end_time = $_POST['option_sale_end_time'] ? $_POST['option_sale_end_time'] : array();
|
||||
|
||||
$count = count($names);
|
||||
|
||||
|
@ -1062,8 +1073,16 @@ function mep_events_ticket_type_save($post_id)
|
|||
$new[$i]['option_qty_t_type'] = stripslashes(strip_tags($qty_type[$i]));
|
||||
endif;
|
||||
|
||||
if ($sale_end[$i] != '') :
|
||||
$new[$i]['option_sale_end_date_t'] = stripslashes(strip_tags($sale_end[$i]));
|
||||
if ($sale_end_date[$i] != '') :
|
||||
$new[$i]['option_sale_end_date'] = stripslashes(strip_tags($sale_end_date[$i]));
|
||||
endif;
|
||||
|
||||
if ($sale_end_time[$i] != '') :
|
||||
$new[$i]['option_sale_end_time'] = stripslashes(strip_tags($sale_end_time[$i]));
|
||||
endif;
|
||||
|
||||
if ($sale_end_date[$i] != '') :
|
||||
$new[$i]['option_sale_end_date_t'] = stripslashes(strip_tags($sale_end_date[$i].' '.$sale_end_time[$i]));
|
||||
endif;
|
||||
|
||||
}
|
||||
|
|
|
@ -91,105 +91,13 @@ if($ticket_user_id == $current_user_id || in_array( 'administrator', (array) $u
|
|||
text-transform: capitalize;
|
||||
padding: 20px;
|
||||
}
|
||||
<?php do_action('mep_attendee_details_page_style',get_the_id()); ?>
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="mep-wrapper">
|
||||
<div class="mep-reg-user-details">
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="2" align="center">
|
||||
<center>
|
||||
<?php echo get_avatar( $values['ea_email'][0], 128 ); ?>
|
||||
<h2><?php echo $values['ea_name'][0]; ?></h2>
|
||||
<?php do_action('mep_qr_code_checkin_btn',$values['ea_user_id'][0],get_the_id()); ?>
|
||||
<h4><?php echo $values['ea_event_name'][0]; ?></h4>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<?php do_action('mep_attendee_table_row_start',get_the_id()); ?>
|
||||
<tr>
|
||||
<td><?php _e('Ticket No','mage-eventpress'); ?></td>
|
||||
<td><?php echo $values['ea_user_id'][0].$values['ea_order_id'][0].get_the_id(); ?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><?php _e('Order ID','mage-eventpress'); ?></td>
|
||||
<td><?php echo $values['ea_order_id'][0]; ?></td>
|
||||
</tr>
|
||||
<?php if($values['ea_email'][0]){ ?>
|
||||
<tr>
|
||||
<td><?php _e('Email','mage-eventpress'); ?></td>
|
||||
<td><?php echo $values['ea_email'][0]; ?></td>
|
||||
</tr>
|
||||
<?php } if($values['ea_phone'][0]){ ?>
|
||||
<tr>
|
||||
<td><?php _e('Phone','mage-eventpress'); ?></td>
|
||||
<td><?php echo $values['ea_phone'][0]; ?></td>
|
||||
</tr>
|
||||
<?php } if($values['ea_address_1'][0]){ ?>
|
||||
<tr>
|
||||
<td><?php _e('Address','mage-eventpress'); ?></td>
|
||||
<td><?php echo $values['ea_address_1'][0]; ?> </td>
|
||||
</tr>
|
||||
<?php } if($values['ea_desg'][0]){ ?>
|
||||
<tr>
|
||||
<td><?php _e('Designation','mage-eventpress'); ?></td>
|
||||
<td><?php echo $values['ea_desg'][0]; ?></td>
|
||||
</tr>
|
||||
<?php } if($values['ea_company'][0]){ ?>
|
||||
<tr>
|
||||
<td><?php _e('Company','mage-eventpress'); ?></td>
|
||||
<td><?php echo $values['ea_company'][0]; ?></td>
|
||||
</tr>
|
||||
<?php } if($values['ea_website'][0]){ ?>
|
||||
<tr>
|
||||
<td><?php _e('Website','mage-eventpress'); ?></td>
|
||||
<td><?php echo $values['ea_website'][0]; ?> </td>
|
||||
</tr>
|
||||
<?php } if($values['ea_gender'][0]){ ?>
|
||||
<tr>
|
||||
<td><?php _e('Gender','mage-eventpress'); ?></td>
|
||||
<td><?php echo $values['ea_gender'][0]; ?> </td>
|
||||
</tr>
|
||||
|
||||
<?php } if($values['ea_vegetarian'][0]){ ?>
|
||||
<tr>
|
||||
<td><?php _e('Vegetarian','mage-eventpress'); ?></td>
|
||||
<td><?php echo $values['ea_vegetarian'][0]; ?> </td>
|
||||
</tr>
|
||||
|
||||
|
||||
<?php } if($values['ea_tshirtsize'][0]){ ?>
|
||||
<tr>
|
||||
<td><?php _e('T Shirt Size','mage-eventpress'); ?></td>
|
||||
<td><?php echo $values['ea_tshirtsize'][0]; ?> </td>
|
||||
</tr>
|
||||
<?php } if($values['ea_ticket_type'][0]){ ?>
|
||||
<tr>
|
||||
<td><?php _e('Ticket Type','mage-eventpress'); ?></td>
|
||||
<td><?php echo $values['ea_ticket_type'][0]; ?> </td>
|
||||
</tr>
|
||||
<?php }
|
||||
$reg_form_id = mep_fb_get_reg_form_id($values['ea_event_id'][0]);
|
||||
$mep_form_builder_data = get_post_meta($reg_form_id, 'mep_form_builder_data', true) ? get_post_meta($reg_form_id, 'mep_form_builder_data', true) : [];
|
||||
if (sizeof($mep_form_builder_data) > 0 ) {
|
||||
foreach ( $mep_form_builder_data as $_field ) {
|
||||
$vname = "ea_".$_field['mep_fbc_id'];
|
||||
$vals = $values[$vname][0];
|
||||
if($vals){
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $_field['mep_fbc_label']; ?></td>
|
||||
<td><?php echo $vals; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
}
|
||||
do_action('mep_attendee_table_row_end',get_the_id());
|
||||
?>
|
||||
</table>
|
||||
<?php do_action('mep_attendee_details_page',get_the_id()); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
|
|
|
@ -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.4.2
|
||||
* Version: 3.4.3
|
||||
* Author: MagePeople Team
|
||||
* Author URI: http://www.mage-people.com/
|
||||
* Text Domain: mage-eventpress
|
||||
|
|
Loading…
Reference in New Issue