3.4.4 released
This commit is contained in:
parent
4ed0c5e5f8
commit
1114f7c910
|
@ -52,7 +52,6 @@ table.atendee-info {
|
|||
height: 250px;
|
||||
}
|
||||
|
||||
|
||||
#infowindow-content .title {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
@ -106,7 +105,7 @@ table.atendee-info {
|
|||
div#mep_event_day_r,
|
||||
div#mep_event_faq_r {
|
||||
display: block;
|
||||
padding:0 15px 15px;
|
||||
padding: 0 15px 15px;
|
||||
}
|
||||
|
||||
.mep-faq-input {
|
||||
|
@ -333,7 +332,7 @@ div#mep_event_list_thumbnail_meta_boxes table td input#enable_global_qty {
|
|||
padding: 0;
|
||||
margin: 0;
|
||||
float: left;
|
||||
order:2;
|
||||
order: 2;
|
||||
}
|
||||
.wrap.mage_settings_panel_wrap {
|
||||
display: block;
|
||||
|
@ -346,7 +345,7 @@ div#mep_event_list_thumbnail_meta_boxes table td input#enable_global_qty {
|
|||
padding: 0;
|
||||
margin: 0;
|
||||
float: left;
|
||||
order:2;
|
||||
order: 2;
|
||||
}
|
||||
.mp_tab_item .item .content input {
|
||||
display: block;
|
||||
|
@ -364,117 +363,126 @@ div#mep_event_list_thumbnail_meta_boxes table td input#enable_global_qty {
|
|||
padding: 10px;
|
||||
min-height: 200px;
|
||||
}
|
||||
#wp-mep_event_cc_email_text-media-buttons button{width:auto !important;}
|
||||
.wrap.mage_settings_panel_wrap #setting-error-tgmpa{order: 0;width: 100%;}
|
||||
#mp_event_all_info_in_tab table.form-table{table-layout: inherit;}
|
||||
#mp_event_all_info_in_tab table.form-table th{width: 35%;}
|
||||
#mp_event_all_info_in_tab table.form-table td{width: 65%;}
|
||||
#wp-mep_event_cc_email_text-media-buttons button {width: auto !important;}
|
||||
.wrap.mage_settings_panel_wrap #setting-error-tgmpa {order: 0;width: 100%;}
|
||||
#mp_event_all_info_in_tab table.form-table {table-layout: inherit;}
|
||||
#mp_event_all_info_in_tab table.form-table th {width: 35%;}
|
||||
#mp_event_all_info_in_tab table.form-table td {width: 65%;}
|
||||
/****************mp_event_all_meta_in_tab********************/
|
||||
iframe#gmap_canvas {width: 100%; height: 300px;}
|
||||
#mp_event_all_info_in_tab{margin: 0 0 35px 0;}
|
||||
#mp_event_all_info_in_tab {margin: 0 0 35px 0;}
|
||||
#mp_event_all_info_in_tab .section-title,
|
||||
#mp_event_all_info_in_tab .mp_event_virtual_type_des,
|
||||
#mp_event_all_info_in_tab label.mp_event_drop_list_hidden,
|
||||
#mp_event_all_info_in_tab .mp_event_custom_form_hidden{display: none;}
|
||||
#mp_event_all_info_in_tab .mp_event_virtual_type_des.active{display:block;}
|
||||
#mp_event_all_info_in_tab .ppof-settings .form-section{padding: 0;}
|
||||
#mp_event_all_info_in_tab .postbox-header{background-color: #007cba;padding: 10px;}
|
||||
#mp_event_all_info_in_tab .postbox-header h2{font-size:20px;font-weight: 600;color:#FFF !important;border: none !important;padding: 0;}
|
||||
#mp_event_all_info_in_tab .postbox-header h2 .dashicons{width: 45px;height: 28px;font-size: 28px;}
|
||||
#mp_event_all_info_in_tab .postbox-header button span{color:#fff;}
|
||||
#mp_event_all_info_in_tab .postbox-header button:hover span{color:#999;}
|
||||
#mp_event_all_info_in_tab .inside{margin: 0;padding: 0;}
|
||||
#mp_event_all_info_in_tab .mp_event_custom_form_hidden {display: none;}
|
||||
#mp_event_all_info_in_tab .mp_event_virtual_type_des.active {display: block;}
|
||||
#mp_event_all_info_in_tab .ppof-settings .form-section {padding: 0;}
|
||||
#mp_event_all_info_in_tab .postbox-header {background-color: #007CBA;padding: 10px;}
|
||||
#mp_event_all_info_in_tab .postbox-header h2 {font-size: 20px;font-weight: 600;color: #FFF !important;border: none !important;padding: 0;}
|
||||
#mp_event_all_info_in_tab .postbox-header h2 .dashicons {width: 45px;height: 28px;font-size: 28px;}
|
||||
#mp_event_all_info_in_tab .postbox-header button span {color: #FFF;}
|
||||
#mp_event_all_info_in_tab .postbox-header button:hover span {color: #999;}
|
||||
#mp_event_all_info_in_tab .inside {margin: 0;padding: 0;}
|
||||
|
||||
#mp_event_all_info_in_tab table{border: 1px solid #ddd;table-layout: fixed;width:100%;border-collapse: inherit;}
|
||||
#mp_event_all_info_in_tab table th{background-color: #f1f1f1;text-align: left;font-size: 15px;padding: 5px 10px;}
|
||||
#mp_event_all_info_in_tab table {border: 1px solid #DDD;width: 100%;border-collapse: collapse;}
|
||||
#mp_event_all_info_in_tab table th {background-color: #f1f1f1;text-align: left;font-size: 15px;padding: 7px 15px;}
|
||||
#mp_event_all_info_in_tab table th,
|
||||
#mp_event_all_info_in_tab table td{border: 1px solid #ddd;position: relative;width: inherit;}
|
||||
#mp_event_all_info_in_tab table td{padding: 5px;}
|
||||
#mp_event_all_info_in_tab table button{width: 100%;}
|
||||
#mp_event_all_info_in_tab table td {border: 1px solid #DDD;width: inherit;min-width: 80px;vertical-align: middle;}
|
||||
#mp_event_all_info_in_tab table td {padding: 5px;}
|
||||
#mp_event_all_info_in_tab table button {width: 100%;}
|
||||
#mp_event_all_info_in_tab table button.remove-day-row,
|
||||
#mp_event_all_info_in_tab table button.remove-faq-row{width: auto;}
|
||||
#mp_event_all_info_in_tab table.mp_form_builder_table .mp_formControl{width: 100%;}
|
||||
#mp_event_all_info_in_tab table button.remove-faq-row {width: auto;}
|
||||
#mp_event_all_info_in_tab table.mp_form_builder_table .mp_formControl {width: 100%;}
|
||||
#add-new-date-row,
|
||||
#mp_event_add_new_form,
|
||||
.mp_event_remove_this_row{background: #007cba !important; font-size: 16px;padding: 5px 20px;color: #fff;border:none;
|
||||
.mp_event_remove_this_row {background: #007CBA !important; font-size: 16px;padding: 5px 20px;color: #FFF;border: none;
|
||||
display: -webkit-flex;display: flex;-webkit-align-items: center;align-items: center;-webkit-justify-content: center;justify-content: center;
|
||||
}
|
||||
.mp_event_remove_this_row{background: darkred !important;}
|
||||
.mp_event_remove_this_row:hover{background: #fff !important;color:red;}
|
||||
.mp_event_remove_this_row {background: darkred !important;}
|
||||
.mp_event_remove_this_row:hover {background: #FFF !important;color: red;}
|
||||
#add-new-date-row span,
|
||||
#mp_event_all_info_in_tab p button span{margin: 0 7px 0 0;}
|
||||
#mp_event_all_info_in_tab p button span {margin: 0 7px 0 0;}
|
||||
|
||||
#mp_event_all_info_in_tab ul{list-style-type: none;margin:0;padding: 0;}
|
||||
#mp_event_all_info_in_tab ul li{display: -webkit-flex;display: flex;-webkit-align-items: center;align-items: center;}
|
||||
#mp_event_all_info_in_tab h5{font-size: 18px;font-weight: 500;margin: 0 0 5px 0;}
|
||||
#mp_event_all_info_in_tab ul {list-style-type: none;margin: 0;padding: 0;}
|
||||
#mp_event_all_info_in_tab ul li {display: -webkit-flex;display: flex;-webkit-align-items: center;align-items: center;}
|
||||
#mp_event_all_info_in_tab h5 {font-size: 18px;font-weight: 500;margin: 0 0 5px 0;}
|
||||
|
||||
#mp_event_all_info_in_tab .mp_ticket_type_table~.mp_form_area label{margin: 15px 0;}
|
||||
#mp_event_all_info_in_tab .mp_tab_details h3{margin: 0 0 15px 0;font-size: 20px;}
|
||||
#mp_event_all_info_in_tab label{position: relative;}
|
||||
|
||||
.mp_event_all_meta_in_tab {display: -webkit-flex;display: flex;min-height: 300px;}
|
||||
.mp_tab_menu {width: 260px;background-color: #f1f1f1;color: #0073aa;font-size: 15px;font-weight: 600;}
|
||||
.mp_tab_menu {width: 200px;background-color: #f1f1f1;color: #0073aa;font-size: 15px;font-weight: 600;}
|
||||
.mp_tab_menu ul {border-top: 1px solid #FFF;}
|
||||
.mp_tab_menu ul li {
|
||||
padding:10px;margin: 0;border-bottom: 1px solid #FFF;cursor: pointer;color:#0073aa; position: relative;
|
||||
padding:10px 5px;margin: 0;border-bottom: 1px solid #FFF;cursor: pointer;color:#0073aa; position: relative;
|
||||
}
|
||||
.mp_tab_menu ul li.active{background-color: #007cba;color: #FFF;font-size: 16px;}
|
||||
.mp_tab_menu ul li:hover {color: #F1ADAD;}
|
||||
.mp_tab_menu ul li.active::after{
|
||||
position: absolute;right: 0;content: '';border: 10px solid transparent;border-right-color: #FFF;
|
||||
}
|
||||
.mp_tab_details {width: calc(100% - 260px);background-color: #FFF;padding: 15px;}
|
||||
.mp_tab_details {width: calc(100% - 200px);background-color: #FFF;padding: 15px;}
|
||||
|
||||
.mp_tab_item {display: none;}
|
||||
|
||||
.mp_form_area {display: -webkit-flex;display: flex;}
|
||||
.mp_form_area > * {-webkit-flex: 1;flex: 1;}
|
||||
.mp_form_area label {font-size: 15px;color: #777;font-weight: 500;margin:0;position: relative;
|
||||
.mp_form_area label {font-size: 15px;color: #777;font-weight: 500;margin: 0;position: relative;
|
||||
display: -webkit-flex;display: flex;-webkit-align-items: center;align-items: center;
|
||||
}
|
||||
.mp_form_area label span{min-width: 220px;font-size: 17px;color: #555;font-weight: 600;}
|
||||
#mp_event_all_info_in_tab .mp_formControl {min-width: auto;font-size: 15px;margin: 0;font-weight: 500;max-width: 100%;width: 100%}
|
||||
.mp_form_area label span {min-width: 220px;font-size: 17px;color: #555;font-weight: 600;}
|
||||
#mp_event_all_info_in_tab .mp_formControl {min-width: auto;font-size: 13px;margin: 0;font-weight: 500;max-width: 100%;width: 100%;padding: 5px;height: 30px;}
|
||||
#mp_event_all_info_in_tab.switch_checkbox {min-width: 50px;margin: 0 20px 0 0;}
|
||||
.mp_form_area .mp_form_item {margin: 0 0 15px 0;}
|
||||
#mp_event_all_info_in_tab label span.round{min-width: auto;left: 2px;width: 60px;right: inherit;height: 25px;top: 2px;}
|
||||
#mp_event_all_info_in_tab .mp_opacity_zero{opacity: 0;}
|
||||
#mp_event_all_info_in_tab label span.round {min-width: auto;left: 2px;width: 60px;right: inherit;height: 25px;top: 2px;}
|
||||
#mp_event_all_info_in_tab .mp_opacity_zero {opacity: 0;}
|
||||
#mp_event_all_info_in_tab .mp_tab_menu span.dashicons,
|
||||
#mp_event_all_info_in_tab .mp_tab_menu span.dashicons-before::before{width: 16px;height: 16px;font-size: 15px;}
|
||||
|
||||
p.event_meta_help_txt {font-size: 13px;margin: 5px;color: #BA2720;}
|
||||
#add-new-date-row{margin: 10px 0;}
|
||||
#add-new-date-row {margin: 10px 0;}
|
||||
|
||||
label.mp_event_virtual_type_des{margin:0;}
|
||||
label.mp_event_virtual_type_des textarea{width:100%;}
|
||||
label.mp_event_virtual_type_des {margin: 0;}
|
||||
label.mp_event_virtual_type_des textarea {width: 100%;}
|
||||
/*************/
|
||||
#mp_event_all_info_in_tab .mp_event_custom_form_table{margin: 20px 0;}
|
||||
#mp_event_all_info_in_tab .mp_event_custom_form_table .mp_formControl{min-width: auto;width: 100%;}
|
||||
#mp_event_all_info_in_tab .mp_event_custom_form_table {margin: 20px 0;}
|
||||
#mp_event_all_info_in_tab .mp_event_custom_form_table .mp_formControl {min-width: auto;width: 100%;}
|
||||
|
||||
#mp_event_all_info_in_tab button,
|
||||
.mp_tab_menu ul li{
|
||||
.mp_tab_menu ul li {
|
||||
-webkit-transition: all .25s ease-in-out;transition: all .25s ease-in-out;
|
||||
}
|
||||
|
||||
#mp_event_all_info_in_tab .mp_event_remove_move{display: -webkit-flex;display: flex;}
|
||||
#mp_event_all_info_in_tab .mp_event_remove_move>*{-webkit-flex: 1;flex: 1;}
|
||||
#mp_event_all_info_in_tab .mp_event_remove_move {display: -webkit-flex;display: flex;}
|
||||
#mp_event_all_info_in_tab .mp_event_remove_move > * {-webkit-flex: 1;flex: 1;}
|
||||
#mp_event_all_info_in_tab .mp_event_type_sortable_button,
|
||||
#mp_event_all_info_in_tab .mp_event_remove_move button{
|
||||
#mp_event_all_info_in_tab .mp_event_remove_move button {
|
||||
display: -webkit-flex;display: flex;-webkit-align-items: center;align-items: center;-webkit-justify-content: center;justify-content: center;
|
||||
border: 1px solid #ddd;
|
||||
border: 1px solid #DDD;
|
||||
border-radius: 5px 0 0 5px;
|
||||
padding: 0;background-color: #f2f2f2;
|
||||
padding: 0;background-color: #F2F2F2;
|
||||
}
|
||||
#mp_event_all_info_in_tab .mp_event_type_sortable_button{ border-radius: 0 5px 5px 0;border-left: none;cursor: move;}
|
||||
#mp_event_all_info_in_tab .mp_event_remove_move button{color: #6B003E;}
|
||||
#mp_event_all_info_in_tab .mp_event_type_sortable_button { border-radius: 0 5px 5px 0;border-left: none;cursor: move;}
|
||||
#mp_event_all_info_in_tab .mp_ticket_type_table{width: 100%;overflow: auto;padding: 0 0 15px 0;}
|
||||
/****************/
|
||||
#mp_event_all_info_in_tab table button#mep_event_cc_email_text-tmce,
|
||||
#mp_event_all_info_in_tab table button#mep_event_cc_email_text-html{width:100px;}
|
||||
#mp_event_all_info_in_tab table button#mep_event_cc_email_text-html {width: 100px;}
|
||||
|
||||
.ppof-settings.ppof-metabox .notice.notice-warning.is-dismissible, .ppof-settings.ppof-metabox .notice {
|
||||
display: none;
|
||||
}
|
||||
.wrap.mage_settings_panel_wrap .notice.notice-warning {
|
||||
display: none;
|
||||
}
|
||||
.mep_rich_text_status_section {
|
||||
}
|
||||
.mep_rich_text_status_section {
|
||||
display: block;
|
||||
text-align: center;
|
||||
padding: 15px;
|
||||
}
|
||||
div#mp_event_all_info_in_tab .handle-actions.hide-if-no-js {
|
||||
}
|
||||
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;}
|
||||
}
|
||||
div.sell_expire_date {display: -webkit-flex;display: flex;}
|
||||
div.sell_expire_date > * {-webkit-flex: 1;flex: 1;font-size: 10px !important;}
|
|
@ -294,7 +294,7 @@ function mep_fw_meta_boxs()
|
|||
);
|
||||
$email_body_meta_args = array(
|
||||
'meta_box_id' => 'mep_event_email_body_meta_boxes',
|
||||
'meta_box_title' => '<span class="dashicons dashicons-email"></span> '.__('Email Confirmation Text', 'mage-eventpress'),
|
||||
'meta_box_title' => '<span class="dashicons dashicons-email"></span> '.__('Email Text', 'mage-eventpress'),
|
||||
//'callback' => '_meta_box_callback',
|
||||
'screen' => array('mep_events'),
|
||||
'context' => 'normal', // 'normal', 'side', and 'advanced'
|
||||
|
|
|
@ -30,7 +30,7 @@ class MP_Event_All_Info_In_One
|
|||
</li>
|
||||
<?php do_action('mep_admin_event_details_after_tab_name_location', $post_id); ?>
|
||||
<li data-target-tabs="#mp_ticket_type_pricing">
|
||||
<span class="dashicons dashicons-buddicons-tracking"></span> <?php _e('Ticket Type and Pricing', 'mage-eventpress'); ?>
|
||||
<span class="dashicons dashicons-buddicons-tracking"></span> <?php _e('Ticket & Pricing', 'mage-eventpress'); ?>
|
||||
</li>
|
||||
<?php do_action('mep_admin_event_details_before_tab_name_ticket_type', $post_id); ?>
|
||||
<li data-target-tabs="#mp_event_time">
|
||||
|
@ -178,65 +178,62 @@ class MP_Event_All_Info_In_One
|
|||
<input type="hidden" name="post_author_gutenberg" value="<?php echo $author_id; ?>">
|
||||
<?php }
|
||||
?>
|
||||
<div class="mp_ticket_type_table">
|
||||
<table>
|
||||
<tr>
|
||||
<th><?php echo $event_label;
|
||||
_e(" Location Source:", "mage-eventpress"); ?></th>
|
||||
<td colspan="3">
|
||||
<th style="min-width: 160px;"><?php _e( " Location Source:", "mage-eventpress" ); ?></th>
|
||||
<td colspan="3" style="min-width: 450px;">
|
||||
<label>
|
||||
<select class="mp_formControl" name="mep_org_address">
|
||||
<option value="0" <?php echo ($mep_org_address == 0) ? 'selected' : ''; ?>><?php echo $event_label;
|
||||
_e(' Details', 'mage-eventpress'); ?></option>
|
||||
<option value="1" <?php echo ($mep_org_address == 1) ? 'selected' : ''; ?>><?php _e('Organizer', 'mage-eventpress'); ?></option>
|
||||
<option value="0" <?php echo ( $mep_org_address == 0 ) ? 'selected' : ''; ?>><?php echo $event_label;
|
||||
_e( ' Details', 'mage-eventpress' ); ?></option>
|
||||
<option value="1" <?php echo ( $mep_org_address == 1 ) ? 'selected' : ''; ?>><?php _e( 'Organizer', 'mage-eventpress' ); ?></option>
|
||||
</select>
|
||||
</label>
|
||||
<p class="event_meta_help_txt">
|
||||
<?php _e('Select Organizer if you already save the organizer details. Please remember if you select orginizer and not checked the the organizer from the Event Organizer list from the right sidebar, Event Location section if the frontend will be blank.', 'mage-eventpress'); ?>
|
||||
<?php _e( 'Select Organizer if you already save the organizer details. Please remember if you select orginizer and not checked the the organizer from the Event Organizer list from the right sidebar, Event Location section if the frontend will be blank.', 'mage-eventpress' ); ?>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="mp_event_address">
|
||||
<table>
|
||||
<tr>
|
||||
<th><?php _e('Location/Venue:', 'mage-eventpress'); ?></th>
|
||||
<tr class="mp_event_address">
|
||||
<th><?php _e( 'Location/Venue:', 'mage-eventpress' ); ?></th>
|
||||
<td>
|
||||
<label>
|
||||
<input type="text" name='mep_location_venue' placeholder="Ex: New york Meeting Center" class="mp_formControl" value='<?php echo mep_get_event_locaion_item($post_id, 'mep_location_venue'); ?>'>
|
||||
<input type="text" name='mep_location_venue' placeholder="Ex: New york Meeting Center" class="mp_formControl" value='<?php echo mep_get_event_locaion_item( $post_id, 'mep_location_venue' ); ?>'>
|
||||
</label>
|
||||
</td>
|
||||
<th><span><?php _e('Street:', 'mage-eventpress'); ?></span></th>
|
||||
<th><span><?php _e( 'Street:', 'mage-eventpress' ); ?></span></th>
|
||||
<td>
|
||||
<label>
|
||||
<input type="text" name='mep_street' placeholder="Ex: 10 E 33rd St" class="mp_formControl" value='<?php echo mep_get_event_locaion_item($post_id, 'mep_street'); ?>'>
|
||||
<input type="text" name='mep_street' placeholder="Ex: 10 E 33rd St" class="mp_formControl" value='<?php echo mep_get_event_locaion_item( $post_id, 'mep_street' ); ?>'>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><span><?php _e('City: ', 'mage-eventpress'); ?></span></th>
|
||||
<tr class="mp_event_address">
|
||||
<th><span><?php _e( 'City: ', 'mage-eventpress' ); ?></span></th>
|
||||
<td>
|
||||
<label>
|
||||
<input type="text" name='mep_city' placeholder="Ex: New York" class="mp_formControl" value='<?php echo mep_get_event_locaion_item($post_id, 'mep_city'); ?>'>
|
||||
<input type="text" name='mep_city' placeholder="Ex: New York" class="mp_formControl" value='<?php echo mep_get_event_locaion_item( $post_id, 'mep_city' ); ?>'>
|
||||
</label>
|
||||
</td>
|
||||
<th><span><?php _e('State: ', 'mage-eventpress'); ?></span></th>
|
||||
<th><span><?php _e( 'State: ', 'mage-eventpress' ); ?></span></th>
|
||||
<td>
|
||||
<label>
|
||||
<input type="text" name='mep_state' placeholder="Ex: NY" class="mp_formControl" value='<?php echo mep_get_event_locaion_item($post_id, 'mep_state'); ?>'>
|
||||
<input type="text" name='mep_state' placeholder="Ex: NY" class="mp_formControl" value='<?php echo mep_get_event_locaion_item( $post_id, 'mep_state' ); ?>'>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><span><?php _e('Postcode: ', 'mage-eventpress'); ?></span></th>
|
||||
<tr class="mp_event_address">
|
||||
<th><span><?php _e( 'Postcode: ', 'mage-eventpress' ); ?></span></th>
|
||||
<td>
|
||||
<label>
|
||||
<input type="text" name='mep_postcode' placeholder="Ex: 10016" class="mp_formControl" value='<?php echo mep_get_event_locaion_item($post_id, 'mep_postcode'); ?>'>
|
||||
<input type="text" name='mep_postcode' placeholder="Ex: 10016" class="mp_formControl" value='<?php echo mep_get_event_locaion_item( $post_id, 'mep_postcode' ); ?>'>
|
||||
</label>
|
||||
</td>
|
||||
<th><span><?php _e('Country: ', 'mage-eventpress'); ?></span></th>
|
||||
<th><span><?php _e( 'Country: ', 'mage-eventpress' ); ?></span></th>
|
||||
<td>
|
||||
<label>
|
||||
<input type="text" name='mep_country' placeholder="Ex: USA" class="mp_formControl" value='<?php echo mep_get_event_locaion_item($post_id, 'mep_country'); ?>'>
|
||||
<input type="text" name='mep_country' placeholder="Ex: USA" class="mp_formControl" value='<?php echo mep_get_event_locaion_item( $post_id, 'mep_country' ); ?>'>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -422,18 +419,20 @@ class MP_Event_All_Info_In_One
|
|||
$mep_event_ticket_type = get_post_meta($post_id, 'mep_event_ticket_type', true);
|
||||
wp_nonce_field('mep_event_ticket_type_nonce', 'mep_event_ticket_type_nonce');
|
||||
?>
|
||||
<div class="mp_ticket_type_table">
|
||||
<table id="repeatable-fieldset-one-t">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php _e('Ticket Type Name', 'mage-eventpress'); ?></th>
|
||||
<th><?php _e('Ticket Price', 'mage-eventpress'); ?></th>
|
||||
<th><?php _e('Available Qty', 'mage-eventpress'); ?></th>
|
||||
<th><?php _e('Default Qty', 'mage-eventpress'); ?></th>
|
||||
<?php echo $rsvqty = '<th>' . esc_html__("Reserve Qty", "mage-eventpress") . '</th>';
|
||||
<th style="min-width: 80px;" title="<?php _e('Ticket Type Name', 'mage-eventpress'); ?>"><?php _e('Ticket', 'mage-eventpress'); ?></th>
|
||||
<th style="min-width: 80px;" title="<?php _e('Ticket Price', 'mage-eventpress'); ?>"><?php _e('Price', 'mage-eventpress'); ?></th>
|
||||
<th style="min-width: 80px;" title="<?php _e('Available Qty', 'mage-eventpress'); ?>"><?php _e('Available', 'mage-eventpress'); ?></th>
|
||||
<th style="min-width: 80px;" title="<?php _e('Default Qty', 'mage-eventpress'); ?>"><?php _e('Default', 'mage-eventpress'); ?></th>
|
||||
<?php echo $rsvqty = '<th style="min-width: 80px;" title="' . esc_html__("Reserve Qty", "mage-eventpress") . '">' . esc_html__("Reserve", "mage-eventpress") . '</th>';
|
||||
apply_filters('mep_add_extra_column', $rsvqty); ?>
|
||||
<th style='width:220px'><?php _e('Sale End Date', 'mage-eventpress'); ?></th>
|
||||
<th><?php _e('Qty Box Type', 'mage-eventpress'); ?></th>
|
||||
<th></th>
|
||||
<th style="min-width: 150px;" title="<?php _e('Sale End Date', 'mage-eventpress'); ?>"><?php _e('Sale End Date', 'mage-eventpress'); ?></th>
|
||||
<th style="min-width: 120px;" title="<?php _e('Sale End Time', 'mage-eventpress'); ?>"><?php _e('Sale End Time', 'mage-eventpress'); ?></th>
|
||||
<th style="min-width: 140px;" title="<?php _e('Qty Box Type', 'mage-eventpress'); ?>"><?php _e('Qty Box', 'mage-eventpress'); ?></th>
|
||||
<th style="min-width: 80px;"><?php _e('Action', 'mage-eventpress'); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="mp_event_type_sortable">
|
||||
|
@ -446,55 +445,59 @@ class MP_Event_All_Info_In_One
|
|||
$count++;
|
||||
?>
|
||||
<tr>
|
||||
<td><input type="text" class="mp_formControl" 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="text" class="mp_formControl" 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" size="4" pattern="[0-9]*" step="0.001" class="mp_formControl" name="option_price_t[]" placeholder="Ex: 10" value="<?php if (array_key_exists('option_price_t', $field) && $field['option_price_t'] != '') {
|
||||
echo esc_attr($field['option_price_t']);
|
||||
} else {
|
||||
echo '';
|
||||
} ?>" /></td>
|
||||
<td>
|
||||
<input type="number" size="4" pattern="[0-9]*" step="0.001" class="mp_formControl" name="option_price_t[]" placeholder="Ex: 10"
|
||||
value="<?php if (array_key_exists('option_price_t', $field) && $field['option_price_t'] != '') {echo esc_attr($field['option_price_t']);} else {echo '';} ?>" />
|
||||
</td>
|
||||
|
||||
<td><input type="number" size="4" pattern="[0-9]*" step="1" class="mp_formControl" 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" size="2" pattern="[0-9]*" step="1" class="mp_formControl" name="option_default_qty_t[]" placeholder="Ex: 1" value="<?php if (isset($field['option_default_qty_t'])) {
|
||||
echo $field['option_default_qty_t'];
|
||||
} else {
|
||||
echo 0;
|
||||
} ?>" /></td>
|
||||
|
||||
<td><input type="number" class="mp_formControl" 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>
|
||||
<input type="number" size="4" pattern="[0-9]*" step="1" class="mp_formControl" 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" size="2" pattern="[0-9]*" step="1" class="mp_formControl" name="option_default_qty_t[]" placeholder="Ex: 1"
|
||||
value="<?php if (isset($field['option_default_qty_t'])) {echo $field['option_default_qty_t'];} else {echo 0;} ?>" />
|
||||
</td>
|
||||
<td>
|
||||
<input type="number" class="mp_formControl" name="option_rsv_t[]" placeholder="Ex: 5"
|
||||
value="<?php if (isset($field['option_rsv_t'])) {echo $field['option_rsv_t'];} else {echo 0;} ?>" />
|
||||
</td>
|
||||
|
||||
<?php do_action('mep_add_extra_input_box', $field) ?>
|
||||
<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="date" id="ticket_sale_start_date" class="mp_formControl" 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[]"/>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="sell_expire_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[]" />
|
||||
<input type="time" id="ticket_sale_start_time" class="mp_formControl" 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') {
|
||||
<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') {
|
||||
} ?>><?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>
|
||||
} ?>><?php _e( 'Dropdown List', 'mage-eventpress' ); ?></option>
|
||||
</select>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<div class="mp_event_remove_move">
|
||||
<button class="button remove-row-t" type="button"><span class="dashicons dashicons-trash" style="margin-top: 3px;color: red;"></span></button>
|
||||
<button class="button remove-row-t" type="button"><span class="dashicons dashicons-trash"></span></button>
|
||||
<div class="mp_event_type_sortable_button"><span class="dashicons dashicons-move"></span></div>
|
||||
</div>
|
||||
</td>
|
||||
|
@ -517,6 +520,10 @@ class MP_Event_All_Info_In_One
|
|||
<td>
|
||||
<div class="sell_expire_date">
|
||||
<input type="date" id="ticket_sale_start_date" value='' name="option_sale_end_date[]" />
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="sell_expire_date">
|
||||
<input type="time" id="ticket_sale_start_time" value='' name="option_sale_end_time[]" />
|
||||
</div>
|
||||
</td>
|
||||
|
@ -532,9 +539,11 @@ class MP_Event_All_Info_In_One
|
|||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<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
|
||||
}
|
||||
|
||||
|
@ -544,14 +553,14 @@ class MP_Event_All_Info_In_One
|
|||
wp_nonce_field('mep_events_extra_price_nonce', 'mep_events_extra_price_nonce');
|
||||
?>
|
||||
<p class="event_meta_help_txt"><?php _e('Extra Service as Product that you can sell and it is not included on event package', 'mage-eventpress'); ?></p>
|
||||
|
||||
<table id="repeatable-fieldset-one" width="100%">
|
||||
<div class="mp_ticket_type_table">
|
||||
<table id="repeatable-fieldset-one">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php _e('Extra Service Name', 'mage-eventpress'); ?></th>
|
||||
<th><?php _e('Service Price', 'mage-eventpress'); ?></th>
|
||||
<th><?php _e('Available Qty', 'mage-eventpress'); ?></th>
|
||||
<th><?php _e('Qty Box Type', 'mage-eventpress'); ?></th>
|
||||
<th title="<?php _e('Extra Service Name', 'mage-eventpress'); ?>"><?php _e('Name', 'mage-eventpress'); ?></th>
|
||||
<th title="<?php _e('Extra Service Price', 'mage-eventpress'); ?>"><?php _e('Price', 'mage-eventpress'); ?></th>
|
||||
<th title="<?php _e('Available Qty', 'mage-eventpress'); ?>"><?php _e('Available', 'mage-eventpress'); ?></th>
|
||||
<th title="<?php _e('Qty Box Type', 'mage-eventpress'); ?>" style="min-width: 140px;"><?php _e('Qty Box', 'mage-eventpress'); ?></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -621,6 +630,7 @@ class MP_Event_All_Info_In_One
|
|||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<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>
|
||||
|
@ -632,13 +642,14 @@ class MP_Event_All_Info_In_One
|
|||
$values = get_post_custom($post_id);
|
||||
?>
|
||||
<div class="sec">
|
||||
<table id="repeatable-fieldset-one-d" width="100%">
|
||||
<div class="mp_ticket_type_table">
|
||||
<table id="repeatable-fieldset-one-d">
|
||||
<thead>
|
||||
<th><?php _e('Start Date', 'mage-eventpress'); ?></th>
|
||||
<th><?php _e('Start Time', 'mage-eventpress'); ?></th>
|
||||
<th><?php _e('End Date', 'mage-eventpress'); ?></th>
|
||||
<th><?php _e('End Time', 'mage-eventpress'); ?></th>
|
||||
<th><?php _e('Action', 'mage-eventpress'); ?></th>
|
||||
<th style="min-width: 120px;"><?php _e('Start Date', 'mage-eventpress'); ?></th>
|
||||
<th style="min-width: 120px;"><?php _e('Start Time', 'mage-eventpress'); ?></th>
|
||||
<th style="min-width: 120px;"><?php _e('End Date', 'mage-eventpress'); ?></th>
|
||||
<th style="min-width: 120px;"><?php _e('End Time', 'mage-eventpress'); ?></th>
|
||||
<th style="min-width: 60px;"><?php _e('Action', 'mage-eventpress'); ?></th>
|
||||
</thead>
|
||||
<tbody class="mp_event_type_sortable">
|
||||
<tr>
|
||||
|
@ -727,7 +738,7 @@ class MP_Event_All_Info_In_One
|
|||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<button id="add-new-date-row" class="button" style="background:green; color:white;"><span class="dashicons dashicons-plus-alt" style="margin-top: 3px;color: white;"></span><?php _e('Add More Date', 'mage-eventpress'); ?></button>
|
||||
</div>
|
||||
|
||||
|
@ -870,7 +881,7 @@ class MP_Event_All_Info_In_One
|
|||
}
|
||||
?>
|
||||
<tr>
|
||||
<th><span><?php _e('Event SKU No:', 'mage-eventpress'); ?></span></th>
|
||||
<th title="<?php _e('Event SKU No:', 'mage-eventpress'); ?>"><span><?php _e('SKU No:', 'mage-eventpress'); ?></span></th>
|
||||
<td colspan="3">
|
||||
<label>
|
||||
<input class="mep_input_text" type="text" name="mep_event_sku" value="<?php echo get_post_meta($post_id,'_sku',true); ?>" />
|
||||
|
|
|
@ -194,8 +194,9 @@ function mep_get_all_tax_list($current_tax=null){
|
|||
function mep_event_get_order_meta($item_id,$key){
|
||||
global $wpdb;
|
||||
$table_name = $wpdb->prefix."woocommerce_order_itemmeta";
|
||||
$sql = 'SELECT meta_value FROM '.$table_name.' WHERE order_item_id ='.$item_id.' AND meta_key="'.$key.'"';
|
||||
$results = $wpdb->get_results($sql); //or die(mysql_error());
|
||||
$results = $wpdb->get_results( $wpdb->prepare("SELECT * FROM $table_name WHERE order_item_id = %d AND meta_key = %s", $item_id, $key) );
|
||||
|
||||
|
||||
foreach( $results as $result ) {
|
||||
$value = $result->meta_value;
|
||||
}
|
||||
|
@ -1190,8 +1191,7 @@ if (!function_exists('mep_get_event_order_metadata')) {
|
|||
function mep_get_event_order_metadata($id,$part){
|
||||
global $wpdb;
|
||||
$table_name = $wpdb->prefix . 'woocommerce_order_itemmeta';
|
||||
$result = $wpdb->get_results( "SELECT * FROM $table_name WHERE order_item_id=$id" );
|
||||
|
||||
$result = $wpdb->get_results( $wpdb->prepare("SELECT * FROM $table_name WHERE order_item_id = %d", $id) );
|
||||
foreach ( $result as $page )
|
||||
{
|
||||
if (strpos($page->meta_key, '_') !== 0) {
|
||||
|
@ -1892,12 +1892,19 @@ if (!function_exists('mep_get_event_total_seat')) {
|
|||
$total_sold = mep_ticket_sold($event_id);
|
||||
$total_left = $total_seat - ($total_sold + $total_resv);
|
||||
if($t=='multi'){
|
||||
$total = $total_seat * $m;
|
||||
$sold = $total - ($total_sold + $total_resv);
|
||||
$available = $total - $sold;;
|
||||
?>
|
||||
<span style="background: #dc3232;color: #fff;padding: 5px 10px;"> <?php echo ($total_seat * $m) - ($total_sold + $total_resv); ?>/<?php echo $total_seat * $m; ?> </span>
|
||||
<span style="background: #dc3232;color: #fff;padding: 5px 10px;">
|
||||
|
||||
<?php echo $total; ?> - <?php echo $available; ?> = <?php echo $sold; ?>
|
||||
|
||||
</span>
|
||||
<?php
|
||||
}else{
|
||||
?>
|
||||
<span style="background: #dc3232;color: #fff;padding: 5px 10px;"> <?php echo $total_left; ?>/<?php echo $total_seat; ?> </span>
|
||||
<span style="background: #dc3232;color: #fff;padding: 5px 10px;"> <?php echo $total_seat; ?> - <?php echo $total_seat - $total_left; ?> = <?php echo $total_left; ?> </span>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
@ -1947,7 +1954,7 @@ if (!function_exists('mep_reset_event_booking')) {
|
|||
add_filter( 'manage_mep_events_posts_columns', 'mep_set_custom_mep_events_columns' );
|
||||
if (!function_exists('mep_set_custom_mep_events_columns')) {
|
||||
function mep_set_custom_mep_events_columns($columns) {
|
||||
$columns['mep_event_seat'] = __( 'Seats', 'mage-eventpress' );
|
||||
$columns['mep_event_seat'] = __( 'Seats [ Total - Sold = Available ]', 'mage-eventpress' );
|
||||
return $columns;
|
||||
}
|
||||
}
|
||||
|
@ -3573,3 +3580,15 @@ function mep_woo_install_check(){
|
|||
return 'No';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
add_filter( 'wp_unique_post_slug_is_bad_hierarchical_slug', 'mep_event_prevent_slug_conflict', 10, 4 );
|
||||
add_filter( 'wp_unique_post_slug_is_bad_flat_slug', 'mep_event_prevent_slug_conflict', 10, 3 );
|
||||
function mep_event_prevent_slug_conflict( $is_bad_slug, $slug, $post_type, $post_parent_id = 0 ) {
|
||||
$reserved_top_level_slugs = apply_filters('mep_event_prevent_slug_conflict_arr',array('events'));
|
||||
if (0 === $post_parent_id && in_array( $slug, $reserved_top_level_slugs )) {
|
||||
$is_bad_slug = true;
|
||||
}
|
||||
return $is_bad_slug;
|
||||
}
|
|
@ -3,13 +3,13 @@
|
|||
* Plugin Name: Woocommerce Events Manager
|
||||
* Plugin URI: http://mage-people.com
|
||||
* Description: A Complete Event Solution for WordPress by MagePeople..
|
||||
* Version: 3.4.3
|
||||
* Version: 3.4.4
|
||||
* Author: MagePeople Team
|
||||
* Author URI: http://www.mage-people.com/
|
||||
* Text Domain: mage-eventpress
|
||||
* Domain Path: /languages/
|
||||
* WC requires at least: 3.0.9
|
||||
* WC tested up to: 4.9.1
|
||||
* WC tested up to: 4.7.1
|
||||
*/
|
||||
|
||||
if (!defined('ABSPATH')) {
|
||||
|
|
Loading…
Reference in New Issue