|
|
|
@ -3,28 +3,28 @@ if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access pages directly.
|
|
|
|
|
add_action( 'add_meta_boxes', 'mep_event_meta_box_add' );
|
|
|
|
|
function mep_event_meta_box_add(){
|
|
|
|
|
|
|
|
|
|
add_meta_box( 'mep-event-meta', __('Event Venue','mage-eventpress'), 'mep_event_venue_meta_box_cb', 'mep_events', 'normal', 'high' );
|
|
|
|
|
add_meta_box( 'mep-event-meta', __('<span class="dashicons dashicons-location" style="color:green; padding-right:10px;"></span>Event Venue','mage-eventpress'), 'mep_event_venue_meta_box_cb', 'mep_events', 'normal', 'high' );
|
|
|
|
|
|
|
|
|
|
add_meta_box( 'mep-event-price', __('Event Price (Event Base price, It will not work if you add Event Ticket type Price)','mage-eventpress'), 'mep_event_price_meta_box_cb', 'mep_events', 'normal', 'high' );
|
|
|
|
|
|
|
|
|
|
add_meta_box( 'mep-event-extra-price', __('Event Extra Service (Extra Service as Product that you can sell and it is not included on event package)','mage-eventpress'), 'mep_event_extra_price_option', 'mep_events', 'normal', 'high' );
|
|
|
|
|
add_meta_box( 'mep-event-extra-price', __('<span class="dashicons dashicons-awards" style="color:green; padding-right:10px;"></span>Event Extra Service (Extra Service as Product that you can sell and it is not included on event package)','mage-eventpress'), 'mep_event_extra_price_option', 'mep_events', 'normal', 'high' );
|
|
|
|
|
|
|
|
|
|
add_meta_box( 'mep-event-ticket-type', __('Event Ticket Type','mage-eventpress'), 'mep_event_ticket_type', 'mep_events', 'normal', 'high' );
|
|
|
|
|
add_meta_box( 'mep-event-ticket-type', __('<span class="dashicons dashicons-buddicons-tracking" style="color:green; padding-right:10px;"></span>Event Ticket Type and Pricing','mage-eventpress'), 'mep_event_ticket_type', 'mep_events', 'normal', 'high' );
|
|
|
|
|
|
|
|
|
|
add_meta_box( 'mep-event-date', __('Event Date & Time','mage-eventpress'), 'mep_event_date_meta_box_cb', 'mep_events', 'normal', 'high' );
|
|
|
|
|
add_meta_box( 'mep-event-date', __('<span class="dashicons dashicons-calendar-alt" style="color:green; padding-right:10px;"></span>Event Date & Time','mage-eventpress'), 'mep_event_date_meta_box_cb', 'mep_events', 'normal', 'high' );
|
|
|
|
|
|
|
|
|
|
add_meta_box( 'mep-event-emails', __('Event Email text','mage-eventpress'), 'mep_event_email_meta_box_cb', 'mep_events', 'normal', 'high' );
|
|
|
|
|
add_meta_box( 'mep-event-emails', __('<span class="dashicons dashicons-email-alt" style="color:green; padding-right:10px;"></span>Event Email text','mage-eventpress'), 'mep_event_email_meta_box_cb', 'mep_events', 'normal', 'high' );
|
|
|
|
|
|
|
|
|
|
add_meta_box( 'mep-event-template', __('Template','mage-eventpress'), 'mep_event_template_meta_box_cb', 'mep_events', 'side', 'low' );
|
|
|
|
|
|
|
|
|
|
add_meta_box( 'mep-event-faq-box', __('Event F.A.Q','mage-eventpress'), 'mep_event_faq_meta_box_cb', 'mep_events', 'normal', 'high' );
|
|
|
|
|
add_meta_box( 'mep-event-faq-box', __('<span class="dashicons dashicons-info" style="color:green; padding-right:10px;"></span>Event F.A.Q','mage-eventpress'), 'mep_event_faq_meta_box_cb', 'mep_events', 'normal', 'high' );
|
|
|
|
|
|
|
|
|
|
add_meta_box( 'mep-event-reg-on-off', __('Registration Status','mage-eventpress'), 'mep_event_change_reg_status_cb', 'mep_events', 'side', 'low' );
|
|
|
|
|
|
|
|
|
|
add_meta_box( 'mep-event-available-set-on-off', __('Show Available Seat Count?','mage-eventpress'), 'mep_event_available_seat_cb', 'mep_events', 'side', 'low' );
|
|
|
|
|
|
|
|
|
|
add_meta_box( 'mep-event-day-details', __('Event Daywise Details','mage-eventpress'), 'mep_event_day_details_cb', 'mep_events', 'normal', 'high' );
|
|
|
|
|
add_meta_box( 'mep-event-day-details', __('Event Daywise Details','mage-eventpress'), 'mep_event_day_details_cb', 'mep_events', 'normal', 'high' );
|
|
|
|
|
add_meta_box( 'mep-event-day-details', __('<span class="dashicons dashicons-analytics" style="color:green; padding-right:10px;"></span>Event Daywise Details','mage-eventpress'), 'mep_event_day_details_cb', 'mep_events', 'normal', 'high' );
|
|
|
|
|
// add_meta_box( 'mep-event-day-details', __('Event Daywise Details','mage-eventpress'), 'mep_event_day_details_cb', 'mep_events', 'normal', 'high' );
|
|
|
|
|
|
|
|
|
|
if(get_option( 'woocommerce_calc_taxes' )=='yes'){
|
|
|
|
|
add_meta_box( 'mep-event-tax-sec', __('Event Tax','mage-eventpress'), 'mep_event_tax_cb', 'mep_events', 'side', 'low' );
|
|
|
|
@ -237,7 +237,7 @@ $map_type = mep_get_option( 'mep_google_map_type', 'general_setting_sec', 'ifram
|
|
|
|
|
|
|
|
|
|
<div class='sec'>
|
|
|
|
|
<label for="mep_ev_2"> <?php _e('Location/Venue:','mage-eventpress'); ?> </label>
|
|
|
|
|
<span><input id='mep_ev_2' type="text" name='mep_location_venue' value='<?php echo mep_get_event_locaion_item($post->ID,'mep_location_venue'); //if(array_key_exists('mep_location_venue', $values)){ echo $values['mep_location_venue'][0]; } ?>'> </span>
|
|
|
|
|
<span><input id='mep_ev_2' type="text" name='mep_location_venue' placeholder="Ex: Newyork Meeting Center" value='<?php echo mep_get_event_locaion_item($post->ID,'mep_location_venue'); ?>'> </span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -245,35 +245,35 @@ $map_type = mep_get_option( 'mep_google_map_type', 'general_setting_sec', 'ifram
|
|
|
|
|
|
|
|
|
|
<div class='sec'>
|
|
|
|
|
<label for="mep_ev_3"> <?php _e('Street:','mage-eventpress'); ?> </label>
|
|
|
|
|
<span><input id='mep_ev_3' type="text" name='mep_street' value='<?php echo mep_get_event_locaion_item($post->ID,'mep_street'); //if(array_key_exists('mep_street', $values)){ echo $values['mep_street'][0]; } ?>'> </span>
|
|
|
|
|
<span><input id='mep_ev_3' type="text" name='mep_street' placeholder="Ex: 10 E 33rd St" value='<?php echo mep_get_event_locaion_item($post->ID,'mep_street'); ?>'> </span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class='sec'>
|
|
|
|
|
<label for="mep_ev_4"> <?php _e('City:','mage-eventpress'); ?> </label>
|
|
|
|
|
<span><input id='mep_ev_4' type="text" name='mep_city' value='<?php echo mep_get_event_locaion_item($post->ID,'mep_city'); //if(array_key_exists('mep_city', $values)){ echo $values['mep_city'][0]; } ?>'> </span>
|
|
|
|
|
<span><input id='mep_ev_4' type="text" name='mep_city' placeholder="Ex: New York" value='<?php echo mep_get_event_locaion_item($post->ID,'mep_city'); ?>'> </span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class='sec'>
|
|
|
|
|
<label for="mep_ev_5"> <?php _e('State:','mage-eventpress'); ?> </label>
|
|
|
|
|
<span><input id='mep_ev_5' type="text" name='mep_state' value='<?php echo mep_get_event_locaion_item($post->ID,'mep_state'); //if(array_key_exists('mep_state', $values)){ echo $values['mep_state'][0]; } ?>'> </span>
|
|
|
|
|
<span><input id='mep_ev_5' type="text" name='mep_state' placeholder="Ex: NY" value='<?php echo mep_get_event_locaion_item($post->ID,'mep_state'); ?>'> </span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class='sec'>
|
|
|
|
|
<label for="mep_ev_6"> <?php _e('Postcode:','mage-eventpress'); ?> </label>
|
|
|
|
|
<span><input id='mep_ev_6' type="text" name='mep_postcode' value='<?php echo mep_get_event_locaion_item($post->ID,'mep_postcode'); //if(array_key_exists('mep_postcode', $values)){ echo $values['mep_postcode'][0]; } ?>'> </span>
|
|
|
|
|
<span><input id='mep_ev_6' type="text" name='mep_postcode' placeholder="Ex: 10016" value='<?php echo mep_get_event_locaion_item($post->ID,'mep_postcode'); ?>'> </span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class='sec'>
|
|
|
|
|
<label for="mep_ev_7"> <?php _e('Country:','mage-eventpress'); ?> </label>
|
|
|
|
|
<span><input id='mep_ev_7' type="text" name='mep_country' value='<?php echo mep_get_event_locaion_item($post->ID,'mep_country'); //if(array_key_exists('mep_country', $values)){ echo $values['mep_country'][0]; } ?>'> </span>
|
|
|
|
|
<span><input id='mep_ev_7' type="text" name='mep_country' placeholder="Ex: USA" value='<?php echo mep_get_event_locaion_item($post->ID,'mep_country'); ?>'> </span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class='sec'>
|
|
|
|
|
<label for="mep_ev_989"> <?php _e('Show Google Map:','mage-eventpress'); ?> </label>
|
|
|
|
@ -574,7 +574,9 @@ function mep_event_faq_meta_box_cb() {
|
|
|
|
|
<div id='mep_event_faq_r' class="">
|
|
|
|
|
<input placeholder="FAQ Title" type="text" class="mep-faq-input" name="mep_faq_title[]">
|
|
|
|
|
<textarea placeholder="<?php _e('FAQ Contents','mage-eventpress'); ?>" name="mep_faq_content[]" id="" cols="50" rows="4" class="mep-faq-input"></textarea>
|
|
|
|
|
<a class="button remove-faq-row" href="#"><?php _e('Remove','mage-eventpress'); ?></a>
|
|
|
|
|
|
|
|
|
|
<button class="button remove-faq-row"><span class="dashicons dashicons-trash" style="margin-top: 3px;color: red;"></span><?php _e('Remove','mage-eventpress'); ?></button>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
@ -582,7 +584,11 @@ function mep_event_faq_meta_box_cb() {
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
<p><a id="add-faq-row" class="button" href="#"><?php _e('Add New F.A.Q','mage-eventpress'); ?></a></p>
|
|
|
|
|
<p>
|
|
|
|
|
<button id="add-faq-row" class="button " style="background:green; color:white;"><span class="dashicons dashicons-plus-alt" style="margin-top: 3px;color: white;"></span><?php _e('Add New F.A.Q','mage-eventpress'); ?></button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
}
|
|
|
|
@ -705,7 +711,10 @@ function mep_event_day_details_cb() {
|
|
|
|
|
<div id='mep_event_day_r' class="">
|
|
|
|
|
<input placeholder="Day Title" type="text" class="mep-faq-input" name="mep_day_title[]">
|
|
|
|
|
<textarea placeholder="<?php _e('Day Details','mage-eventpress'); ?>" name="mep_day_content[]" id="" cols="50" rows="4" class="mep-faq-input"></textarea>
|
|
|
|
|
<a class="button remove-day-row" href="#"><?php _e('Remove','mage-eventpress'); ?></a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<button class="button remove-day-row"><span class="dashicons dashicons-trash" style="margin-top: 3px;color: red;"></span><?php _e('Remove','mage-eventpress'); ?></button>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
@ -713,7 +722,11 @@ function mep_event_day_details_cb() {
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
<p><a id="add-day-row" class="button" href="#"><?php _e('Add New Day','mage-eventpress'); ?></a></p>
|
|
|
|
|
<p>
|
|
|
|
|
|
|
|
|
|
<button id="add-day-row" class="button" style="background:green; color:white;"><span class="dashicons dashicons-plus-alt" style="margin-top: 3px;color: white;"></span><?php _e('Add New Day','mage-eventpress'); ?></button>
|
|
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
}
|
|
|
|
@ -817,11 +830,12 @@ function mep_event_extra_price_option() {
|
|
|
|
|
$qty_type = esc_attr( $field['option_qty_type'] );
|
|
|
|
|
?>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><input type="text" class="widefat" name="option_name[]" value="<?php if($field['option_name'] != '') echo esc_attr( $field['option_name'] ); ?>" /></td>
|
|
|
|
|
<td><input type="text" class="widefat" name="option_name[]" placeholder="Ex: Cap" value="<?php if($field['option_name'] != '') echo esc_attr( $field['option_name'] ); ?>" /></td>
|
|
|
|
|
|
|
|
|
|
<td><input type="number" step="0.01" class="widefat" name="option_price[]" value="<?php if ($field['option_price'] != '') echo esc_attr( $field['option_price'] ); else echo ''; ?>" /></td>
|
|
|
|
|
<td><input type="number" step="0.01" class="widefat" name="option_price[]"
|
|
|
|
|
placeholder="Ex: 10" value="<?php if ($field['option_price'] != '') echo esc_attr( $field['option_price'] ); else echo ''; ?>" /></td>
|
|
|
|
|
|
|
|
|
|
<td><input type="number" class="widefat" name="option_qty[]" value="<?php if ($field['option_qty'] != '') echo esc_attr( $field['option_qty'] ); else echo ''; ?>" /></td>
|
|
|
|
|
<td><input type="number" class="widefat" name="option_qty[]" placeholder="Ex: 100" value="<?php if ($field['option_qty'] != '') echo esc_attr( $field['option_qty'] ); else echo '' ; ?>" /></td>
|
|
|
|
|
|
|
|
|
|
<td align="center">
|
|
|
|
|
<select name="option_qty_type[]" id="mep_ev_9800kj8" class=''>
|
|
|
|
@ -829,7 +843,10 @@ function mep_event_extra_price_option() {
|
|
|
|
|
<option value="dropdown" <?php if($qty_type=='dropdown'){ echo "Selected"; } ?>><?php _e('Dropdown List','mage-eventpress'); ?></option>
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
|
|
|
|
<td><a class="button remove-row" href="#"><?php _e('Remove','mage-eventpress'); ?></a></td>
|
|
|
|
|
<td>
|
|
|
|
|
<button class="button remove-row"><span class="dashicons dashicons-trash" style="margin-top: 3px;color: red;"></span><?php _e('Remove','mage-eventpress'); ?></button>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php
|
|
|
|
|
}
|
|
|
|
@ -840,21 +857,33 @@ function mep_event_extra_price_option() {
|
|
|
|
|
|
|
|
|
|
<!-- empty hidden one for jQuery -->
|
|
|
|
|
<tr class="empty-row screen-reader-text">
|
|
|
|
|
<td><input type="text" class="widefat" name="option_name[]" /></td>
|
|
|
|
|
<td><input type="number" class="widefat" step="0.01" name="option_price[]" value="" /></td>
|
|
|
|
|
<td><input type="number" class="widefat" name="option_qty[]" value="" /></td>
|
|
|
|
|
<td><input type="text" class="widefat" name="option_name[]" placeholder="Ex: Cap" /></td>
|
|
|
|
|
<td><input type="number" class="widefat" step="0.01" name="option_price[]" placeholder="Ex: 10" value="" /></td>
|
|
|
|
|
<td><input type="number" class="widefat" name="option_qty[]" placeholder="Ex: 100" value="" /></td>
|
|
|
|
|
|
|
|
|
|
<td><select name="option_qty_type[]" id="mep_ev_9800kj8" class=''>
|
|
|
|
|
<option value=""><?php _e('Please Select Type','mage-eventpress'); ?></option>
|
|
|
|
|
<option value="inputbox"><?php _e('Input Box','mage-eventpress'); ?></option>
|
|
|
|
|
<option value="dropdown"><?php _e('Dropdown List','mage-eventpress'); ?></option>
|
|
|
|
|
</select></td>
|
|
|
|
|
<td><a class="button remove-row" href="#"><?php _e('Remove','mage-eventpress'); ?></a></td>
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<button class="button remove-row"><span class="dashicons dashicons-trash" style="margin-top: 3px;color: red;"></span><?php _e('Remove','mage-eventpress'); ?></button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
<p><a id="add-row" class="button" href="#"><?php _e('Add Extra Price','mage-eventpress'); ?></a></p>
|
|
|
|
|
<p>
|
|
|
|
|
|
|
|
|
|
<button id="add-row" class="button" style="background:green; color:white;"><span class="dashicons dashicons-plus-alt" style="margin-top: 3px;color: white;"></span><?php _e('Add Extra Price','mage-eventpress'); ?></button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
<?php
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -910,22 +939,27 @@ function mep_event_ticket_type() {
|
|
|
|
|
|
|
|
|
|
foreach ( $mep_event_ticket_type as $field ) {
|
|
|
|
|
$qty_t_type = esc_attr( $field['option_qty_t_type'] );
|
|
|
|
|
$opt_qty = isset($field['option_qty_t']) ? $field['option_qty_t'] : 0;
|
|
|
|
|
$opt_rst_qty = isset($field['option_rsv_t']) ? $field['option_rsv_t'] : 0;
|
|
|
|
|
?>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><input type="text" class="widefat" name="option_name_t[]" value="<?php if($field['option_name_t'] != '') echo esc_attr( $field['option_name_t'] ); ?>" /></td>
|
|
|
|
|
<td><input type="text" class="widefat" name="option_name_t[]" placeholder="Ex: Adult" value="<?php if($field['option_name_t'] != '') echo esc_attr( $field['option_name_t'] ); ?>" /></td>
|
|
|
|
|
|
|
|
|
|
<td><input type="number" step="0.01" class="widefat" name="option_price_t[]" value="<?php if ($field['option_price_t'] != '') echo esc_attr( $field['option_price_t'] ); else echo ''; ?>" /></td>
|
|
|
|
|
<td><input type="number" step="0.01" class="widefat" name="option_price_t[]" placeholder="Ex: 10" value="<?php if ($field['option_price_t'] != '') echo esc_attr( $field['option_price_t'] ); else echo ''; ?>" /></td>
|
|
|
|
|
|
|
|
|
|
<td><input type="number" class="widefat" name="option_qty_t[]" value="<?php if ($field['option_qty_t'] != '') echo esc_attr( $field['option_qty_t'] ); else echo ''; ?>" /></td>
|
|
|
|
|
<td><input type="number" class="widefat" name="option_qty_t[]" placeholder="Ex: 500" value="<?php if(isset($field['option_qty_t'])){ echo $field['option_qty_t']; }else{ echo 0; } ?>" /></td>
|
|
|
|
|
|
|
|
|
|
<td><input type="number" class="widefat" name="option_rsv_t[]" value="<?php if ($field['option_rsv_t'] != '') echo esc_attr( $field['option_rsv_t'] ); else echo ''; ?>" /></td>
|
|
|
|
|
<td><input type="number" class="widefat" name="option_rsv_t[]" placeholder="Ex: 5" value="<?php if(isset($field['option_rsv_t'])){ echo $field['option_rsv_t']; }else{ echo 0; } ?>" /></td>
|
|
|
|
|
|
|
|
|
|
<td><select name="option_qty_t_type[]" id="mep_ev_9800kj8" class=''>
|
|
|
|
|
<option value="inputbox" <?php if($qty_t_type=='inputbox'){ echo "Selected"; } ?>><?php _e('Input Box','mage-eventpress'); ?></option>
|
|
|
|
|
<option value="dropdown" <?php if($qty_t_type=='dropdown'){ echo "Selected"; } ?>><?php _e('Dropdown List','mage-eventpress'); ?></option>
|
|
|
|
|
</select></td>
|
|
|
|
|
|
|
|
|
|
<td><a class="button remove-row-t" href="#"><?php _e('Remove','mage-eventpress'); ?></a></td>
|
|
|
|
|
<td>
|
|
|
|
|
<button class="button remove-row-t"><span class="dashicons dashicons-trash" style="margin-top: 3px;color: red;"></span><?php _e('Remove','mage-eventpress'); ?></button>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php
|
|
|
|
|
}
|
|
|
|
@ -936,16 +970,24 @@ function mep_event_ticket_type() {
|
|
|
|
|
|
|
|
|
|
<!-- empty hidden one for jQuery -->
|
|
|
|
|
<tr class="empty-row-t screen-reader-text">
|
|
|
|
|
<td><input type="text" class="widefat" name="option_name_t[]" /></td>
|
|
|
|
|
<td><input type="number" class="widefat" step="0.01" name="option_price_t[]" value="" /></td>
|
|
|
|
|
<td><input type="number" class="widefat" name="option_qty_t[]" value="" /></td>
|
|
|
|
|
<td><input type="number" class="widefat" name="option_rsv_t[]" value="" /></td>
|
|
|
|
|
<td><input type="text" class="widefat" name="option_name_t[]" placeholder="Ex: Adult" /></td>
|
|
|
|
|
<td><input type="number" class="widefat" step="0.01" name="option_price_t[]" placeholder="Ex: 10" value="" /></td>
|
|
|
|
|
<td><input type="number" class="widefat" name="option_qty_t[]" placeholder="Ex: 15" value="" /></td>
|
|
|
|
|
<td><input type="number" class="widefat" name="option_rsv_t[]" placeholder="Ex: 5" value="" /></td>
|
|
|
|
|
<td><select name="option_qty_t_type[]" id="mep_ev_9800kj8" class=''><option value=""><?php _e('Please Select Type','mage-eventpress'); ?></option><option value="inputbox"><?php _e('Input Box','mage-eventpress'); ?></option><option value="dropdown"><?php _e('Dropdown List','mage-eventpress'); ?></option></select></td>
|
|
|
|
|
<td><a class="button remove-row-t" href="#"><?php _e('Remove','mage-eventpress'); ?></a></td>
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
|
|
<button class="button remove-row-t"><span class="dashicons dashicons-trash" style="margin-top: 3px;color: red;"></span><?php _e('Remove','mage-eventpress'); ?></button>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
<p><a id="add-row-t" class="button" href="#"><?php _e('Add New Ticket Type','mage-eventpress'); ?></a></p>
|
|
|
|
|
<p>
|
|
|
|
|
|
|
|
|
|
<button id="add-row-t" class="button" style="background:green; color:white;"><span class="dashicons dashicons-plus-alt" style="margin-top: 3px;color: white;"></span><?php _e('Add New Ticket Type','mage-eventpress'); ?></button>
|
|
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
<?php
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -969,7 +1011,7 @@ $more_date = get_post_meta($post->ID, 'mep_event_more_date', true);
|
|
|
|
|
|
|
|
|
|
<div class='sec'>
|
|
|
|
|
<label for="event_start_date"> <?php _e('Start Date & Time:','mage-eventpress'); ?> </label>
|
|
|
|
|
<span><input class='event_start' id='event_start_date' type="text" name='mep_event_start_date' value='<?php if(array_key_exists('mep_event_start_date', $values)){ echo $values['mep_event_start_date'][0]; } ?>'> </span>
|
|
|
|
|
<span><input class='event_start' id='event_start_date' type="text" name='mep_event_start_date' placeholder="YYYY-MM-DD" value='<?php if(array_key_exists('mep_event_start_date', $values)){ echo $values['mep_event_start_date'][0]; } ?>'> </span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -991,7 +1033,7 @@ $more_date = get_post_meta($post->ID, 'mep_event_more_date', true);
|
|
|
|
|
|
|
|
|
|
<div class='sec'>
|
|
|
|
|
<label for="event_end_date"> <?php _e('End Date & Time:','mage-eventpress'); ?> </label>
|
|
|
|
|
<span><input class='event_end' id='event_end_date' type="text" name='mep_event_end_date' value='<?php if(array_key_exists('mep_event_end_date', $values)){ echo $values['mep_event_end_date'][0]; } ?>'> </span>
|
|
|
|
|
<span><input class='event_end' id='event_end_date' type="text" name='mep_event_end_date' placeholder="YYYY-MM-DD" value='<?php if(array_key_exists('mep_event_end_date', $values)){ echo $values['mep_event_end_date'][0]; } ?>'> </span>
|
|
|
|
|
</div>
|
|
|
|
|
<?php
|
|
|
|
|
}
|
|
|
|
|