file update
This commit is contained in:
parent
3c53946ddb
commit
17d0240cd8
|
@ -45,6 +45,7 @@ function mep_cpt()
|
|||
|
||||
$args = array(
|
||||
'public' => true,
|
||||
'has_archive' => true,
|
||||
'labels' => $labels,
|
||||
'menu_icon' => $event_icon,
|
||||
'supports' => array('title', 'editor', 'thumbnail', 'excerpt'),
|
||||
|
|
|
@ -397,8 +397,9 @@ class MP_Event_All_Info_In_One
|
|||
<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>';
|
||||
<?php echo $rsvqty = '<th>' . esc_html__("Reserve Qty", "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>
|
||||
</tr>
|
||||
|
@ -417,7 +418,7 @@ class MP_Event_All_Info_In_One
|
|||
echo esc_attr($field['option_name_t']);
|
||||
} ?>" /></td>
|
||||
|
||||
<td><input type="number" size="4" pattern="[0-9]*" step="0.01" class="mp_formControl" name="option_price_t[]" placeholder="Ex: 10" value="<?php if (array_key_exists('option_price_t', $field) && $field['option_price_t'] != '') {
|
||||
<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 '';
|
||||
|
@ -441,7 +442,9 @@ 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>
|
||||
<select name="option_qty_t_type[]" class='mp_formControl'>
|
||||
<option value="inputbox" <?php if ($qty_t_type == 'inputbox') {
|
||||
|
@ -452,7 +455,7 @@ class MP_Event_All_Info_In_One
|
|||
} ?>><?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>
|
||||
|
@ -470,7 +473,7 @@ class MP_Event_All_Info_In_One
|
|||
<!-- empty hidden one for jQuery -->
|
||||
<tr class="empty-row-t screen-reader-text">
|
||||
<td><input type="text" class="mp_formControl" name="option_name_t[]" placeholder="Ex: Adult" /></td>
|
||||
<td><input type="number" size="4" pattern="[0-9]*" class="mp_formControl" step="0.01" name="option_price_t[]" placeholder="Ex: 10" value="" /></td>
|
||||
<td><input type="number" size="4" pattern="[0-9]*" class="mp_formControl" step="0.001" name="option_price_t[]" placeholder="Ex: 10" value="" /></td>
|
||||
<td><input type="number" size="4" pattern="[0-9]*" step="1" class="mp_formControl" name="option_qty_t[]" placeholder="Ex: 15" value="" /></td>
|
||||
<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>' ?>
|
||||
|
@ -523,7 +526,7 @@ class MP_Event_All_Info_In_One
|
|||
echo esc_attr($field['option_name']);
|
||||
} ?>" /></td>
|
||||
|
||||
<td><input type="number" step="0.01" class="mp_formControl" name="option_price[]" placeholder="Ex: 10" value="<?php if ($field['option_price'] != '') {
|
||||
<td><input type="number" step="0.001" class="mp_formControl" name="option_price[]" placeholder="Ex: 10" value="<?php if ($field['option_price'] != '') {
|
||||
echo esc_attr($field['option_price']);
|
||||
} else {
|
||||
echo '';
|
||||
|
@ -562,7 +565,7 @@ class MP_Event_All_Info_In_One
|
|||
<!-- empty hidden one for jQuery -->
|
||||
<tr class="empty-row screen-reader-text">
|
||||
<td><input type="text" class="mp_formControl" name="option_name[]" placeholder="Ex: Cap" /></td>
|
||||
<td><input type="number" class="mp_formControl" step="0.01" name="option_price[]" placeholder="Ex: 10" value="" /></td>
|
||||
<td><input type="number" class="mp_formControl" step="0.001" name="option_price[]" placeholder="Ex: 10" value="" /></td>
|
||||
<td><input type="number" class="mp_formControl" name="option_qty[]" placeholder="Ex: 100" value="" /></td>
|
||||
|
||||
<td><select name="option_qty_type[]" class='mp_formControl'>
|
||||
|
@ -1023,6 +1026,7 @@ 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();
|
||||
|
||||
$count = count($names);
|
||||
|
||||
|
@ -1052,6 +1056,11 @@ function mep_events_ticket_type_save($post_id)
|
|||
if ($qty_type[$i] != '') :
|
||||
$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]));
|
||||
endif;
|
||||
|
||||
}
|
||||
|
||||
$ticket_type_list = apply_filters('mep_ticket_type_arr_save', $new);
|
||||
|
@ -1246,6 +1255,7 @@ function mep_event_meta_save($post_id)
|
|||
update_post_meta($pid, 'mep_reg_address', $mep_reg_address);
|
||||
update_post_meta($pid, 'mep_reg_designation', $mep_reg_designation);
|
||||
update_post_meta($pid, 'mep_reg_website', $mep_reg_website);
|
||||
|
||||
update_post_meta($pid, 'mep_reg_veg', $mep_reg_veg);
|
||||
update_post_meta($pid, 'mep_reg_company', $mep_reg_company);
|
||||
update_post_meta($pid, 'mep_reg_gender', $mep_reg_gender);
|
||||
|
@ -1262,6 +1272,7 @@ function mep_event_meta_save($post_id)
|
|||
update_post_meta($post_id, 'event_end_datetime', $event_end_datetime);
|
||||
update_post_meta($post_id, 'event_expire_datetime', $event_expire_datetime);
|
||||
update_post_meta($pid, '_stock', $seat);
|
||||
|
||||
update_post_meta($pid, '_stock_msg', 'new');
|
||||
update_post_meta($pid, 'longitude', $longitude);
|
||||
update_post_meta($pid, 'latitude', $latitude);
|
||||
|
@ -1269,6 +1280,7 @@ function mep_event_meta_save($post_id)
|
|||
update_post_meta($pid, 'mep_location_venue', $mep_location_venue);
|
||||
update_post_meta($pid, 'mep_street', $mep_street);
|
||||
update_post_meta($pid, '_sold_individually', 'no');
|
||||
|
||||
update_post_meta($pid, 'mep_city', $mep_city);
|
||||
update_post_meta($pid, 'mep_state', $mep_state);
|
||||
update_post_meta($pid, 'mep_postcode', $mep_postcode);
|
||||
|
|
|
@ -37,6 +37,8 @@ function mep_add_custom_fields_text_to_cart_item($cart_item_data, $product_id, $
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Now Store the datas into Cart Session
|
||||
*/
|
||||
|
|
|
@ -419,9 +419,10 @@ $ticket_total_price = (mep_get_event_ticket_price_by_name($event_id,$ticket_type
|
|||
}
|
||||
}
|
||||
|
||||
// Checking if the form builder addon is active and have any custom fields
|
||||
$mep_form_builder_data = get_post_meta($event_id, 'mep_form_builder_data', true);
|
||||
if ( $mep_form_builder_data ) {
|
||||
// Checking if the form builder addon is active and have any custom fields
|
||||
$reg_form_id = mep_fb_get_reg_form_id($event_id);
|
||||
$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 ) {
|
||||
update_post_meta( $pid, "ea_".$_field['mep_fbc_id'], $_user_info[$_field['mep_fbc_id']]);
|
||||
}
|
||||
|
@ -1006,13 +1007,13 @@ function mep_merge_saved_array($arr1,$arr2){
|
|||
// Redirect to Checkout after successfuly event registration
|
||||
add_filter ('woocommerce_add_to_cart_redirect', 'mep_event_redirect_to_checkout');
|
||||
if (!function_exists('mep_event_redirect_to_checkout')) {
|
||||
function mep_event_redirect_to_checkout() {
|
||||
function mep_event_redirect_to_checkout($wc_get_cart_url) {
|
||||
global $woocommerce;
|
||||
$redirect_status = mep_get_option( 'mep_event_direct_checkout', 'general_setting_sec', 'yes' );
|
||||
if($redirect_status=='yes'){
|
||||
$checkout_url = wc_get_checkout_url();
|
||||
return $checkout_url;
|
||||
}
|
||||
$wc_get_cart_url = wc_get_checkout_url();
|
||||
}
|
||||
return $wc_get_cart_url;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1233,7 +1234,7 @@ if (!function_exists('mep_get_event_order_metadata')) {
|
|||
|
||||
$time = strtotime($event_meta['event_start_date'][0].' '.$event_meta['event_start_time'][0]);
|
||||
$newformat = date('Y-m-d H:i:s',$time);
|
||||
if ( time() < strtotime( $newformat ) ) {
|
||||
if ( strtotime(current_time('Y-m-d H:i:s')) < strtotime( $newformat ) ) {
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo get_post_meta( get_the_id(), 'ea_name', true ); ?></td>
|
||||
|
@ -1809,8 +1810,8 @@ if (!function_exists('mep_save_attendee_info_into_cart')) {
|
|||
endif;
|
||||
|
||||
// if ($ticket_price) :
|
||||
// $user[$iu]['user_ticket_price'] = mep_get_event_ticket_price_by_name($mep_event_id,$mep_user_ticket_type);
|
||||
// endif;
|
||||
// $user[$iu]['user_ticket_price'] = mep_get_event_ticket_price_by_name($mep_event_id,$mep_user_ticket_type);
|
||||
// endif;
|
||||
|
||||
if (isset($event_date[$iu])) :
|
||||
$user[$iu]['user_event_date'] = stripslashes( strip_tags( $event_date[$iu] ) );
|
||||
|
@ -1824,13 +1825,16 @@ if (!function_exists('mep_save_attendee_info_into_cart')) {
|
|||
$user[ $iu ]['user_ticket_qty'] = stripslashes( strip_tags( $mep_user_option_qty[ $iu ] ) );
|
||||
endif;
|
||||
|
||||
|
||||
$mep_form_builder_data = get_post_meta($product_id, 'mep_form_builder_data', true);
|
||||
$reg_form_id = mep_fb_get_reg_form_id($product_id);
|
||||
$mep_form_builder_data = get_post_meta($reg_form_id, 'mep_form_builder_data', true);
|
||||
if ( $mep_form_builder_data ) {
|
||||
foreach ( $mep_form_builder_data as $_field ) {
|
||||
$user[$iu][$_field['mep_fbc_id']] = stripslashes( strip_tags( $_POST[$_field['mep_fbc_id']][$iu] ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
return apply_filters('mep_cart_user_data_prepare',$user,$product_id);
|
||||
}
|
||||
|
@ -1838,7 +1842,7 @@ if (!function_exists('mep_save_attendee_info_into_cart')) {
|
|||
|
||||
|
||||
if (!function_exists('mep_wc_price')) {
|
||||
function mep_wc_price( $price, $args = array() ) {
|
||||
function mep_wc_price( $price, $args = array() ) {
|
||||
$args = apply_filters(
|
||||
'wc_price_args', wp_parse_args(
|
||||
$args, array(
|
||||
|
@ -2798,7 +2802,24 @@ function mep_get_ticket_type_price_arr($ticket_type,$event_id){
|
|||
return $price;
|
||||
}
|
||||
|
||||
function mep_get_ticket_name($name) {
|
||||
$ticket = explode('_', $name);
|
||||
return $ticket[0];
|
||||
}
|
||||
|
||||
function mep_get_seat_name($name) {
|
||||
$ticket = explode('_', $name);
|
||||
return $ticket[1];
|
||||
}
|
||||
|
||||
|
||||
function mep_get_orginal_ticket_name($names){
|
||||
$name = [];
|
||||
foreach ($names as $_names) {
|
||||
$name[] = mep_get_ticket_name($_names);
|
||||
}
|
||||
return $name;
|
||||
}
|
||||
|
||||
if (!function_exists('mep_cart_ticket_type')) {
|
||||
function mep_cart_ticket_type($type,$total_price,$product_id){
|
||||
|
@ -2807,7 +2828,7 @@ function mep_cart_ticket_type($type,$total_price,$product_id){
|
|||
$names = isset($_POST['option_name']) ? $_POST['option_name'] : array();
|
||||
$qty = isset($_POST['option_qty']) ? $_POST['option_qty'] : array();
|
||||
$max_qty = isset($_POST['max_qty']) ? $_POST['max_qty'] : array();
|
||||
$price = mep_get_ticket_type_price_arr($names,$product_id);
|
||||
$price = mep_get_ticket_type_price_arr( mep_get_orginal_ticket_name($names),$product_id);
|
||||
$count = count( $names );
|
||||
$ticket_type_arr = [];
|
||||
|
||||
|
@ -3481,7 +3502,11 @@ return $content;
|
|||
}
|
||||
|
||||
|
||||
|
||||
function mep_fb_get_reg_form_id($event_id){
|
||||
$global_reg_form = get_post_meta($event_id,'mep_event_reg_form_id',true) ? get_post_meta($event_id,'mep_event_reg_form_id',true) : 'custom_form';
|
||||
$event_reg_form_id = $global_reg_form == 'custom_form' ? $event_id : $global_reg_form;
|
||||
return $event_reg_form_id;
|
||||
}
|
||||
|
||||
// function mep_get_event_upcomming_date($event_id){
|
||||
// $date = [];
|
||||
|
|
|
@ -7,27 +7,31 @@ add_action('mep_event_ticket_type_loop_list', 'mep_event_ticket_type_loop_list_h
|
|||
if (!function_exists('mep_event_ticket_type_loop_list_html')) {
|
||||
function mep_event_ticket_type_loop_list_html($post_id)
|
||||
{
|
||||
$mep_available_seat = get_post_meta($post_id, 'mep_available_seat', true) ? get_post_meta($post_id, 'mep_available_seat', true) : 'on';
|
||||
$mep_event_ticket_type = get_post_meta($post_id, 'mep_event_ticket_type', true) ? get_post_meta($post_id, 'mep_event_ticket_type', true) : array();
|
||||
$mep_available_seat = get_post_meta($post_id, 'mep_available_seat', true) ? get_post_meta($post_id, 'mep_available_seat', true) : 'on';
|
||||
$mep_event_ticket_type = get_post_meta($post_id, 'mep_event_ticket_type', true) ? get_post_meta($post_id, 'mep_event_ticket_type', true) : array();
|
||||
ob_start();
|
||||
?>
|
||||
<?php
|
||||
$count = 1;
|
||||
$seat_plan = get_post_meta($post_id, 'mepsp_event_seat_plan_info', true) ? get_post_meta($post_id, 'mepsp_event_seat_plan_info', true) : [];
|
||||
$seat_plan_visible = get_post_meta($post_id, 'mp_event_seat_plan_visible', true) ? get_post_meta($post_id, 'mp_event_seat_plan_visible', true) : '1';
|
||||
$count = 1;
|
||||
$seat_plan = get_post_meta($post_id, 'mepsp_event_seat_plan_info', true) ? get_post_meta($post_id, 'mepsp_event_seat_plan_info', true) : [];
|
||||
$seat_plan_visible = get_post_meta($post_id, 'mp_event_seat_plan_visible', true) ? get_post_meta($post_id, 'mp_event_seat_plan_visible', true) : '1';
|
||||
$event_expire_date = get_post_meta($post_id, 'event_expire_datetime', true) ? get_post_meta($post_id, 'event_expire_datetime', true) : '';
|
||||
|
||||
if (sizeof($seat_plan) > 0 && $seat_plan_visible ==2) {
|
||||
$event_start_date = get_post_meta($post_id, 'event_start_date', true) . ' ' . get_post_meta($post_id, 'event_start_time', true);
|
||||
$ticket_type_file_path = apply_filters('mep_ticket_type_file_path',mep_template_file_path('single/ticket_type_list.php'),$post_id);
|
||||
$event_start_date = get_post_meta($post_id, 'event_start_date', true) . ' ' . get_post_meta($post_id, 'event_start_time', true);
|
||||
$ticket_type_file_path = apply_filters('mep_ticket_type_file_path',mep_template_file_path('single/ticket_type_list.php'),$post_id);
|
||||
require($ticket_type_file_path);
|
||||
|
||||
}else{
|
||||
|
||||
foreach ($mep_event_ticket_type as $field) {
|
||||
|
||||
$current_time = current_time('Y-m-d H:i');
|
||||
$ticket_type_name = array_key_exists('option_name_t',$field) ? mep_remove_apostopie($field['option_name_t']) : '';
|
||||
$ticket_type = array_key_exists('option_qty_t_type',$field) ? $field['option_qty_t_type'] : '';
|
||||
$ticket_type_qty = array_key_exists('option_qty_t',$field) ? $field['option_qty_t'] : 0;
|
||||
$ticket_type_price = array_key_exists('option_price_t',$field) ? $field['option_price_t'] : 0;
|
||||
$qty_t_type = $ticket_type;
|
||||
$total_quantity = isset($field['option_qty_t']) ? $field['option_qty_t'] : 0;
|
||||
$sale_end_datetime = isset($field['option_sale_end_date_t']) ? date('Y-m-d H:i',strtotime($field['option_sale_end_date_t'])) : date('Y-m-d H:i',strtotime($event_expire_date));
|
||||
$default_qty = isset($field['option_default_qty_t']) && $field['option_default_qty_t'] > 0 ? $field['option_default_qty_t'] : 0;
|
||||
$total_resv_quantity = isset($field['option_rsv_t']) ? $field['option_rsv_t'] : 0;
|
||||
$event_date = get_post_meta($post_id, 'event_start_date', true) . ' ' . get_post_meta($post_id, 'event_start_time', true);
|
||||
|
@ -41,18 +45,18 @@ if (!function_exists('mep_event_ticket_type_loop_list_html')) {
|
|||
$total_ticket_left = apply_filters('mep_total_ticket_left_of_type', $total_tickets, $post_id, $field, $event_date);
|
||||
$ticket_price = apply_filters('mep_ticket_type_price', $ticket_type_price, $ticket_type_name, $post_id, $field);
|
||||
$passed = apply_filters('mep_ticket_type_validation', true);
|
||||
$start_date = get_post_meta($post_id, 'event_start_datetime', true);
|
||||
$default_path = mep_template_file_path('single/ticket_type_list.php');
|
||||
$ticket_type_file_path = apply_filters('mep_ticket_type_file_path',$default_path,$post_id);
|
||||
require($ticket_type_file_path);
|
||||
$start_date = get_post_meta($post_id, 'event_start_datetime', true);
|
||||
$default_path = mep_template_file_path('single/ticket_type_list.php');
|
||||
$ticket_type_file_path = apply_filters('mep_ticket_type_file_path',$default_path,$post_id);
|
||||
|
||||
$count++;
|
||||
if (strtotime($current_time) < strtotime( $sale_end_datetime ) ) {
|
||||
require($ticket_type_file_path);
|
||||
}
|
||||
|
||||
$count++;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<?php
|
||||
$loop_list = ob_get_clean();
|
||||
$loop_list = ob_get_clean();
|
||||
echo apply_filters('mep_event_ticket_type_loop', $loop_list, $post_id);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -171,8 +171,9 @@ if($ticket_user_id == $current_user_id || in_array( 'administrator', (array) $u
|
|||
<td><?php echo $values['ea_ticket_type'][0]; ?> </td>
|
||||
</tr>
|
||||
<?php }
|
||||
$mep_form_builder_data = get_post_meta($values['ea_event_id'][0], 'mep_form_builder_data', true);
|
||||
if ( $mep_form_builder_data ) {
|
||||
$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];
|
||||
|
|
|
@ -3053,7 +3053,7 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
|
|||
?>
|
||||
<div <?php if(!empty($depends)) {?> data-depends="[<?php echo $depends; ?>]" <?php } ?> id="field-wrapper-<?php echo $id; ?>" class="<?php if(!empty($depends)) echo 'dependency-field'; ?> field-wrapper field-text-multi-wrapper
|
||||
field-text-multi-wrapper-<?php echo $field_id; ?>">
|
||||
<span class="ppof-button add-item"><?php echo __('Add','mage-eventpress'); ?></span>
|
||||
<span class="ppof-button add-item"><?php echo __('Add','pickplugins-options-framework'); ?></span>
|
||||
<div class="field-list <?php if($sortable){ echo 'sortable'; }?>" id="<?php echo $field_id; ?>">
|
||||
<?php
|
||||
if(!empty($values)):
|
||||
|
@ -5079,7 +5079,7 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
|
|||
<div <?php if(!empty($depends)) {?> data-depends="[<?php echo $depends; ?>]" <?php } ?> id="field-wrapper-<?php echo $id; ?>" class="<?php if(!empty($depends)) echo 'dependency-field'; ?> field-wrapper field-colorpicker-multi-wrapper
|
||||
field-colorpicker-multi-wrapper-<?php echo $id;
|
||||
?>">
|
||||
<div class="ppof-button add"><?php echo __('Add','mage-eventpress'); ?></div>
|
||||
<div class="ppof-button add"><?php echo __('Add','pickplugins-options-framework'); ?></div>
|
||||
<div class="item-list">
|
||||
<?php
|
||||
foreach ($values as $value):
|
||||
|
@ -5391,8 +5391,8 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
|
|||
endif; ?>
|
||||
</div>
|
||||
<div class="user-list">
|
||||
<div class="ppof-button select-user" ><?php echo __('Choose User','mage-eventpress');?></div>
|
||||
<div class="search-user" ><input class="" type="text" placeholder="<?php echo __('Start typing...','mage-eventpress');?>"></div>
|
||||
<div class="ppof-button select-user" ><?php echo __('Choose User','pickplugins-options-framework');?></div>
|
||||
<div class="search-user" ><input class="" type="text" placeholder="<?php echo __('Start typing...','pickplugins-options-framework');?>"></div>
|
||||
<ul>
|
||||
<?php
|
||||
if(!empty($icons)):
|
||||
|
@ -5565,8 +5565,8 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
|
|||
<input type="hidden" name="<?php echo $field_name; ?>" value="<?php echo $value; ?>">
|
||||
</div>
|
||||
<div class="icon-list">
|
||||
<div class="ppof-button select-icon" ><?php echo __('Choose Icon','mage-eventpress'); ?></div>
|
||||
<div class="search-icon" ><input class="" type="text" placeholder="<?php echo __('Start typing...','mage-eventpress'); ?>"></div>
|
||||
<div class="ppof-button select-icon" ><?php echo __('Choose Icon','pickplugins-options-framework'); ?></div>
|
||||
<div class="search-icon" ><input class="" type="text" placeholder="<?php echo __('Start typing...','pickplugins-options-framework'); ?>"></div>
|
||||
<ul>
|
||||
<?php
|
||||
if(!empty($icons)):
|
||||
|
@ -5701,8 +5701,8 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
|
|||
endif; ?>
|
||||
</div>
|
||||
<div class="icon-list">
|
||||
<div class="ppof-button select-icon" ><?php echo __('Choose Icon','mage-eventpress'); ?></div>
|
||||
<div class="search-icon" ><input class="" type="text" placeholder="<?php echo __('Start typing...','mage-eventpress'); ?>"></div>
|
||||
<div class="ppof-button select-icon" ><?php echo __('Choose Icon','pickplugins-options-framework'); ?></div>
|
||||
<div class="search-icon" ><input class="" type="text" placeholder="<?php echo __('Start typing...','pickplugins-options-framework'); ?>"></div>
|
||||
<ul>
|
||||
<?php
|
||||
if(!empty($icons)):
|
||||
|
@ -7639,7 +7639,7 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
|
|||
|
||||
?>
|
||||
<div class="val-wrap">
|
||||
<input class="link-val" name='<?php echo $field_name; ?>' type="text" value="<?php echo $value; ?>"> <span class='ppof-button upload' id='media_upload_<?php echo $id; ?>'><?php echo __('Upload','mage-eventpress');?></span> <span class="ppof-button clear">Clear</span>
|
||||
<input class="link-val" name='<?php echo $field_name; ?>' type="text" value="<?php echo $value; ?>"> <span class='ppof-button upload' id='media_upload_<?php echo $id; ?>'><?php echo __('Upload','pickplugins-options-framework');?></span> <span class="ppof-button clear">Clear</span>
|
||||
</div>
|
||||
<div class="error-mgs"></div>
|
||||
</div>
|
||||
|
@ -8113,7 +8113,7 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
|
|||
?>
|
||||
</div>
|
||||
<input type='hidden' name='<?php echo $field_name; ?>' id='media_input_<?php echo $id; ?>' value='<?php echo $value; ?>' />
|
||||
<div class='ppof-button upload' id='media_upload_<?php echo $id; ?>'><?php echo __('Upload','mage-eventpress');?></div><div class='ppof-button clear' id='media_clear_<?php echo $id; ?>'><?php echo __('Clear','mage-eventpress');?></div>
|
||||
<div class='ppof-button upload' id='media_upload_<?php echo $id; ?>'><?php echo __('Upload','pickplugins-options-framework');?></div><div class='ppof-button clear' id='media_clear_<?php echo $id; ?>'><?php echo __('Clear','pickplugins-options-framework');?></div>
|
||||
<div class="error-mgs"></div>
|
||||
</div>
|
||||
|
||||
|
@ -8246,10 +8246,10 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
|
|||
?>
|
||||
<div <?php if(!empty($depends)) {?> data-depends="[<?php echo $depends; ?>]" <?php } ?> id="field-wrapper-<?php echo $id; ?>" class="<?php if(!empty($depends)) echo 'dependency-field'; ?> field-wrapper field-media-multi-wrapper
|
||||
field-media-multi-wrapper-<?php echo $id; ?>">
|
||||
<div class='ppof-button upload' id='media_upload_<?php echo $id; ?>'><?php echo __('Upload','mage-eventpress');?></div><div class='ppof-button clear'
|
||||
<div class='ppof-button upload' id='media_upload_<?php echo $id; ?>'><?php echo __('Upload','pickplugins-options-framework');?></div><div class='ppof-button clear'
|
||||
id='media_clear_<?php echo
|
||||
$id;
|
||||
?>'><?php echo __('Clear','mage-eventpress');?></div>
|
||||
?>'><?php echo __('Clear','pickplugins-options-framework');?></div>
|
||||
<div class="media-list media-list-<?php echo $id; ?> sortable">
|
||||
<?php
|
||||
if(!empty($values) && is_array($values)):
|
||||
|
|
|
@ -5768,7 +5768,7 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
|
|||
<input type="hidden" name="<?php echo $field_name; ?>" value="<?php echo $value; ?>">
|
||||
</div>
|
||||
<div class="icon-list">
|
||||
<div class="button select-icon" ><?php _e('Choose Icon','mage-eventpress'); ?></div>
|
||||
<div class="button select-icon" >Choose Icon</div>
|
||||
<div class="search-icon" ><input class="" type="text" placeholder="start typing..."></div>
|
||||
<ul>
|
||||
<?php
|
||||
|
@ -5935,7 +5935,7 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) {
|
|||
endif; ?>
|
||||
</div>
|
||||
<div class="icon-list">
|
||||
<div class="button select-icon" >C<?php _e('Choose Icon','mage-eventpress'); ?></div>
|
||||
<div class="button select-icon" >Choose Icon</div>
|
||||
<div class="search-icon" ><input class="" type="text" placeholder="start typing..."></div>
|
||||
<ul>
|
||||
<?php
|
||||
|
|
|
@ -68,10 +68,7 @@ if ( ! class_exists( 'AddMetaBox' ) ) {
|
|||
endforeach;
|
||||
endforeach;
|
||||
endforeach;
|
||||
|
||||
endif;
|
||||
|
||||
|
||||
}
|
||||
|
||||
public function mp_event_all_in_tab_menu_list() {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
* Text Domain: mage-eventpress
|
||||
* Domain Path: /languages/
|
||||
* WC requires at least: 3.0.9
|
||||
* WC tested up to: 4.8.0
|
||||
* WC tested up to: 4.7.1
|
||||
*/
|
||||
|
||||
if (!defined('ABSPATH')) {
|
||||
|
@ -35,7 +35,6 @@ if (is_plugin_active('woocommerce/woocommerce.php')) {
|
|||
}
|
||||
}
|
||||
add_action('activated_plugin', 'mep_event_activation_redirect');
|
||||
|
||||
require_once(dirname(__FILE__) . "/inc/mep_file_include.php");
|
||||
} else {
|
||||
function mep_admin_notice_wc_not_active()
|
||||
|
|
Loading…
Reference in New Issue