diff --git a/css/admin_style.css b/css/admin_style.css index 013e38a..79214f8 100644 --- a/css/admin_style.css +++ b/css/admin_style.css @@ -200,4 +200,13 @@ input:checked + .slider:before { .slider.round:before { border-radius: 50%; +} + +div#mep-event-price { + border: 5px solid red; +} + +div#mep-event-price h2 { + background: red; + color: #fff; } \ No newline at end of file diff --git a/css/style.css b/css/style.css index 0b5443c..29f4aea 100644 --- a/css/style.css +++ b/css/style.css @@ -1128,10 +1128,42 @@ ul#mep_add_calender_links { display: none; } +.mep-default-sidrbar-events-schedule { + display: block; + overflow: hidden; + margin: 30px 0; +} +.mep-default-sidrbar-events-schedule h3 { + text-align: left; + text-transform: capitalize; + font-size: 18px; + font-weight: 700; + color: #6d7982; + margin-left: 10px; +} +.mep-default-sidrbar-events-schedule ul { + padding: 0; + margin: 0; + list-style: none; +} +.mep-default-sidrbar-events-schedule ul li { + text-align: left; + border-bottom: 1px dashed #ddd; + padding: 5px 5px; + font-size: 15px; +} +.mep-default-sidrbar-events-schedule ul li i { +color: #fff; +width: 20px; +height: 20px; +text-align: center; +border-radius: 100%; +padding-top: 2px; +} /*Default Theme Styles*/ .mep-default-theme { overflow: hidden; diff --git a/inc/mep_event_meta.php b/inc/mep_event_meta.php index fb28530..63e7719 100644 --- a/inc/mep_event_meta.php +++ b/inc/mep_event_meta.php @@ -78,9 +78,11 @@ function mep_event_change_reg_status_cb($post){ function mep_event_tax_cb($post){ + $values = get_post_custom( $post->ID ); - wp_nonce_field( 'mep_event_reg_btn_nonce', 'mep_event_reg_btn_nonce' ); - echo $values['_tax_status'][0]; +wp_nonce_field( 'mep_event_reg_btn_nonce', 'mep_event_reg_btn_nonce' ); +$check_values = isset($values['_tax_status'][0]) ? $values['_tax_status'][0] : ""; +echo $check_values; if(array_key_exists('_tax_status', $values)){ $tx_status = $values['_tax_status'][0]; }else{ $tx_status = ''; } @@ -483,11 +485,16 @@ $values = get_post_custom( $post->ID ); +

+Caution: +Please Do not use this, use Event Ticket Type feaure instead of this section. This section will be depriciated in next release version 2.7, If you already using this section we strongly recommended please move to Event Ticket Type section instead of this. On 1 Aug 2019 version 2.7.0 will be released. - - - +

ID, 'mep_event_more_date', true);
- + - + - +
@@ -1242,40 +1249,44 @@ elseif ( empty($mdate) && $oldm ) //if you get here then it's your post type so do your thing.... if(isset($_POST['mep_total_seat'])){ - $seat = strip_tags($_POST['mep_total_seat']); - $rsvs = strip_tags($_POST['mep_rsv_seat']); - $mep_location_venue = strip_tags($_POST['mep_location_venue']); - $mep_street = strip_tags($_POST['mep_street']); - $mep_city = strip_tags($_POST['mep_city']); - $mep_state = strip_tags($_POST['mep_state']); - $mep_postcode = strip_tags($_POST['mep_postcode']); - $mep_country = strip_tags($_POST['mep_country']); - $mep_price_label = strip_tags($_POST['mep_price_label']); - $mep_sqi = strip_tags($_POST['mep_sqi']); - $qty_box_type = strip_tags($_POST['qty_box_type']); - $mep_sgm = strip_tags($_POST['mep_sgm']); - $mep_org_address = strip_tags($_POST['mep_org_address']); - $_price = strip_tags($_POST['_price']); + + $seat = isset( $_POST['mep_total_seat'] ) ? strip_tags( $_POST['mep_total_seat'] ) : ""; +$rsvs = isset( $_POST['mep_rsv_seat'] ) ? strip_tags( $_POST['mep_rsv_seat'] ) : ""; +$mep_location_venue = isset( $_POST['mep_location_venue'] ) ? strip_tags( $_POST['mep_location_venue'] ) : ""; +$mep_street = isset( $_POST['mep_street'] ) ? strip_tags( $_POST['mep_street'] ) : ""; +$mep_city = isset( $_POST['mep_city'] ) ? strip_tags( $_POST['mep_city'] ) : ""; +$mep_state = isset($_POST['mep_state']) ? strip_tags( $_POST['mep_state'] ) : ""; +$mep_postcode = isset($_POST['mep_postcode']) ? strip_tags( $_POST['mep_postcode'] ) : ""; +$mep_country = isset($_POST['mep_country']) ? strip_tags( $_POST['mep_country'] ) : ""; +$mep_price_label = isset($_POST['mep_price_label']) ? strip_tags( $_POST['mep_price_label'] ) : ""; +$mep_sqi = isset($_POST['mep_sqi']) ? strip_tags( $_POST['mep_sqi'] ) : ""; +$qty_box_type = isset($_POST['qty_box_type']) ? strip_tags( $_POST['qty_box_type'] ) : ""; +$mep_sgm = isset($_POST['mep_sgm']) ? strip_tags( $_POST['mep_sgm'] ) : ""; +$mep_org_address = isset($_POST['mep_org_address']) ? strip_tags( $_POST['mep_org_address'] ) : ""; +$_price = isset($_POST['_price']) ? strip_tags( $_POST['_price'] ) : ""; + $mep_event_start_date = strip_tags($_POST['mep_event_start_date']); $mep_event_end_date = strip_tags($_POST['mep_event_end_date']); $mep_event_cc_email_text = strip_tags($_POST['mep_event_cc_email_text']); - $latitude = strip_tags($_POST['latitude']); - $longitude = strip_tags($_POST['longitude']); - $location_name = strip_tags($_POST['location_name']); - $mep_full_name = strip_tags($_POST['mep_full_name']); - $mep_reg_email = strip_tags($_POST['mep_reg_email']); - $mep_reg_phone = strip_tags($_POST['mep_reg_phone']); - $mep_reg_address = strip_tags($_POST['mep_reg_address']); - $mep_reg_designation = strip_tags($_POST['mep_reg_designation']); - $mep_reg_website = strip_tags($_POST['mep_reg_website']); - $mep_reg_veg = strip_tags($_POST['mep_reg_veg']); - $mep_reg_company = strip_tags($_POST['mep_reg_company']); - $mep_reg_gender = strip_tags($_POST['mep_reg_gender']); - $mep_reg_tshirtsize = strip_tags($_POST['mep_reg_tshirtsize']); - $mep_reg_tshirtsize_list = strip_tags($_POST['mep_reg_tshirtsize_list']); - $mep_event_template = strip_tags($_POST['mep_event_template']); +$latitude = isset($_POST['latitude']) ? strip_tags($_POST['latitude']) : ""; +$longitude = isset($_POST['latitude']) ? strip_tags($_POST['longitude']): ""; +$location_name = isset($_POST['location_name']) ? strip_tags($_POST['location_name']) : ""; + +$mep_full_name = isset($_POST['mep_full_name']) ? strip_tags($_POST['mep_full_name']) : ""; +$mep_reg_email = isset($_POST['mep_reg_email']) ? strip_tags($_POST['mep_reg_email']) : ""; +$mep_reg_phone = isset($_POST['mep_reg_phone']) ? strip_tags($_POST['mep_reg_phone']) : ""; +$mep_reg_address = isset($_POST['mep_reg_address']) ? strip_tags($_POST['mep_reg_address']) : ""; +$mep_reg_designation = isset($_POST['mep_reg_designation']) ? strip_tags($_POST['mep_reg_designation']) : ""; +$mep_reg_website = isset($_POST['mep_reg_website']) ? strip_tags($_POST['mep_reg_website']) : ""; +$mep_reg_veg = isset($_POST['mep_reg_veg']) ? strip_tags($_POST['mep_reg_veg']) : ""; +$mep_reg_company = isset($_POST['mep_reg_company']) ? strip_tags($_POST['mep_reg_company']) : ""; +$mep_reg_gender = isset($_POST['mep_reg_gender']) ? strip_tags($_POST['mep_reg_gender']) : ""; +$mep_reg_tshirtsize = isset($_POST['mep_reg_tshirtsize']) ? strip_tags($_POST['mep_reg_tshirtsize']) : ""; +$mep_reg_tshirtsize_list = isset($_POST['mep_reg_tshirtsize_list']) ? strip_tags($_POST['mep_reg_tshirtsize_list']) : ""; +$mep_event_template = isset($_POST['mep_event_template']) ? strip_tags($_POST['mep_event_template']) : ""; + diff --git a/inc/mep_shortcode.php b/inc/mep_shortcode.php index 297a23e..2677a4d 100644 --- a/inc/mep_shortcode.php +++ b/inc/mep_shortcode.php @@ -33,14 +33,14 @@ const myEvents = [ $event_meta = get_post_custom(get_the_id()); $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); + $newformat = date_i18n('Y-m-d H:i:s',$time); // echo $newformat; // if(time() < strtotime($newformat)){ ?> { - start: '', - end: '', + start: '', + end: '', title: '', url: '', class: '', @@ -207,7 +207,7 @@ elseif($org>0){ $event_meta = get_post_custom(get_the_id()); $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); + $newformat = date_i18n('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'); @@ -223,15 +223,15 @@ $available_seat = mep_get_total_available_seat(get_the_id(), $event_meta);
-
-
+
+

-

+

"no", "show" => "-1", "pagination" => "no", - 'sort' => 'ASC' + 'sort' => 'DESC' ); $params = shortcode_atts($defaults, $atts); @@ -461,7 +461,7 @@ elseif($org>0){ $event_meta = get_post_custom(get_the_id()); $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); + $newformat = date_i18n('Y-m-d H:i:s',$time); //if(time() > strtotime($newformat)){ @@ -475,14 +475,14 @@ $author_terms = get_the_terms(get_the_id(), 'mep_org');
-
-
+
+

-

Price Start from:

+

Price Start from: