From fdd3af16ad64124917e3aae97a55ac3f21f5f82e Mon Sep 17 00:00:00 2001 From: magepeopleteam Date: Thu, 17 Dec 2020 10:11:50 +0000 Subject: [PATCH] file update --- css/admin_style.css | 7 +- css/style.css | 8 +- inc/mep_functions.php | 7 +- inc/mep_query.php | 32 +++- inc/template-prts/single-events.php | 181 -------------------- js/mkb-admin.js | 96 +++++------ lib/classes/class-form-fields-generator.php | 4 +- lib/classes/class-meta-box.php | 4 +- 8 files changed, 97 insertions(+), 242 deletions(-) diff --git a/css/admin_style.css b/css/admin_style.css index b89a215..5bfaf0f 100644 --- a/css/admin_style.css +++ b/css/admin_style.css @@ -371,6 +371,7 @@ div#mep_event_list_thumbnail_meta_boxes table td input#enable_global_qty { #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 .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, @@ -456,4 +457,8 @@ label.mp_event_virtual_type_des textarea{width:100%;} border-radius: 5px 0 0 5px; 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;} \ No newline at end of file +#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 table button#mep_event_cc_email_text-tmce, +#mp_event_all_info_in_tab table button#mep_event_cc_email_text-html{width:auto;} + diff --git a/css/style.css b/css/style.css index 0c2274e..6e10678 100644 --- a/css/style.css +++ b/css/style.css @@ -597,7 +597,7 @@ div.mep-default-feature-content p, div.mep-default-feature-content ul, div.mep-d line-height: 22px; list-style: inherit; } -.mep-events-wrapper p:not(.mep-events-wrapper .mep-default-feature-content p){ +.mep-events-wrapper p:not(.mep-events-wrapper .mep-default-feature-content p,.ui-accordion .ui-accordion-content){ line-height: 1.2; margin: 0; padding: 0; @@ -854,7 +854,13 @@ div.item_hover_effect{position:absolute;left:0;top:0;right:0;bottom:0;background div.item_hover_effect a{font-size:22px;font-weight:500;color:#fff;padding:15px 30px;border-radius:5px;background-color:#346B80;transition: 250ms ease-in-out;border:1px solid #FFF;} div.item_hover_effect a:hover{color:#346B80;background-color:#fff;border:1px solid #346B80;} .mep-event-list-loop.column_style {-webkit-box-sizing: border-box;box-sizing: border-box;} +/************************/ +.mep-day-details-section h4{font-size: 22px;font-weight: bold;} +.mep-day-details-section .mep-day-title{font-size: 20px;font-weight: 600;} +.mep-day-details-section .mep-day-details{font-size: 16px;margin: 0 0 0 30px;padding: 0 0 0 5px;border-left: 2px solid #ddd;} +.ui-accordion .ui-accordion-header{background-image: none;margin: 10px 0 0 0;} +.ui-accordion .ui-accordion-header.ui-state-active{background-image: none;background-color: #1D4A68;color: #fff;font-size: 18px;} /******Responsive*******/ @media only screen and (max-width: 1199px) { /********Default Theme***********/ diff --git a/inc/mep_functions.php b/inc/mep_functions.php index 5f60d0a..2401d6e 100755 --- a/inc/mep_functions.php +++ b/inc/mep_functions.php @@ -2991,13 +2991,12 @@ function mep_single_page_js_script($event_id){ -tr:last'); - $('#mep_ticket_type_empty option[value=inputbox]').attr('selected', 'selected'); - $('.empty-row-t #mep_ticket_type_empty option[value=inputbox]').removeAttr('selected'); - return false; - }); - - $('.remove-row-t').on('click', function () { - if (confirm('Are You Sure , Remove this row ? \n\n 1. Ok : To Remove . \n 2. Cancel : To Cancel .')) { - $(this).parents('tr').remove(); - $('#mep_ticket_type_empty option[value=inputbox]').removeAttr('selected'); - $('#mep_ticket_type_empty option[value=dropdown]').removeAttr('selected'); - } else { + $(document).ready(function () { + $('#add-row-t').on('click', function () { + var row = $('.empty-row-t.screen-reader-text').clone(true); + row.removeClass('empty-row-t screen-reader-text'); + row.insertBefore('#repeatable-fieldset-one-t tbody>tr:last'); + $('#mep_ticket_type_empty option[value=inputbox]').attr('selected', 'selected'); + $('.empty-row-t #mep_ticket_type_empty option[value=inputbox]').removeAttr('selected'); return false; - } - }); - $(document).find('.mp_event_type_sortable').sortable({ - handle: $(this).find('.mp_event_type_sortable_button') - }); + }); + + $('.remove-row-t').on('click', function () { + if (confirm('Are You Sure , Remove this row ? \n\n 1. Ok : To Remove . \n 2. Cancel : To Cancel .')) { + $(this).parents('tr').remove(); + $('#mep_ticket_type_empty option[value=inputbox]').removeAttr('selected'); + $('#mep_ticket_type_empty option[value=dropdown]').removeAttr('selected'); + } else { + return false; + } + }); + $(document).find('.mp_event_type_sortable').sortable({ + handle: $(this).find('.mp_event_type_sortable_button') + }); - $('#add-row').on('click', function () { - var row = $('.empty-row.screen-reader-text').clone(true); - row.removeClass('empty-row screen-reader-text'); - row.insertBefore('#repeatable-fieldset-one tbody>tr:last'); - return false; - }); - - $('.remove-row').on('click', function () { - if (confirm('Are You Sure , Remove this row ? \n\n 1. Ok : To Remove . \n 2. Cancel : To Cancel .')) { - $(this).parents('tr').remove(); - } else { + $('#add-row').on('click', function () { + var row = $('.empty-row.screen-reader-text').clone(true); + row.removeClass('empty-row screen-reader-text'); + row.insertBefore('#repeatable-fieldset-one tbody>tr:last'); return false; - } - }); + }); - $('#add-new-date-row').on('click', function () { - var row = $('.empty-row-d.screen-reader-text').clone(true); - row.removeClass('empty-row-d screen-reader-text'); - row.insertBefore('#repeatable-fieldset-one-d tbody>tr:last'); - return false; - }); + $('.remove-row').on('click', function () { + if (confirm('Are You Sure , Remove this row ? \n\n 1. Ok : To Remove . \n 2. Cancel : To Cancel .')) { + $(this).parents('tr').remove(); + } else { + return false; + } + }); - $('.remove-row-d').on('click', function () { - if (confirm('Are You Sure , Remove this row ? \n\n 1. Ok : To Remove . \n 2. Cancel : To Cancel .')) { - $(this).parents('tr').remove(); - } else { + $('#add-new-date-row').on('click', function () { + var row = $('.empty-row-d.screen-reader-text').clone(true); + row.removeClass('empty-row-d screen-reader-text'); + row.insertBefore('#repeatable-fieldset-one-d tbody>tr:last'); return false; - } - }); + }); + + $('.remove-row-d').on('click', function () { + if (confirm('Are You Sure , Remove this row ? \n\n 1. Ok : To Remove . \n 2. Cancel : To Cancel .')) { + $(this).parents('tr').remove(); + } else { + return false; + } + }); }); }(jQuery)); \ No newline at end of file diff --git a/lib/classes/class-form-fields-generator.php b/lib/classes/class-form-fields-generator.php index 97ed11e..0481d95 100755 --- a/lib/classes/class-form-fields-generator.php +++ b/lib/classes/class-form-fields-generator.php @@ -8451,7 +8451,9 @@ if( ! class_exists( 'FormFieldsGenerator' ) ) { $new[$key]['default'] = $fields[$key]['default']; $new[$key]['item_id'] = $fields[$key]['item_id']; $new[$key]['name'] = $fields[$key]['name']; - $new[$key]['args'] = !is_array($fields[$key]['args']) ? $this->args_from_string($fields[$key]['args']):$fields[$key]['args']; + if($args){ + $new[$key]['args'] = !is_array($fields[$key]['args']) ? $this->args_from_string($fields[$key]['args']) : $fields[$key]['args']; + } } $fields = $new; diff --git a/lib/classes/class-meta-box.php b/lib/classes/class-meta-box.php index b75476d..c631360 100755 --- a/lib/classes/class-meta-box.php +++ b/lib/classes/class-meta-box.php @@ -44,7 +44,7 @@ if ( ! class_exists( 'AddMetaBox' ) ) { $post_id = $this->get_post_id(); if ( ! empty( $get_option_name ) ): - $option_value = serialize( $_POST[ $get_option_name ] ); + $option_value = serialize( stripslashes_deep($_POST[ $get_option_name ]) ); update_post_meta( $post_id, $get_option_name, $option_value ); @@ -55,7 +55,7 @@ if ( ! class_exists( 'AddMetaBox' ) ) { foreach ( $panel['sections'] as $sectionIndex => $section ): foreach ( $section['options'] as $option ): - $option_value = isset( $_POST[ $option['id'] ] ) ? $_POST[ $option['id'] ] : ''; + $option_value = isset( $_POST[ $option['id'] ] ) ? stripslashes_deep($_POST[ $option['id'] ]) : ''; if ( is_array( $option_value ) ) { $option_value = serialize( $option_value );