file update

This commit is contained in:
magepeopleteam 2020-12-14 12:10:30 +00:00
parent cd939c2829
commit 51e101be13
4 changed files with 1168 additions and 1362 deletions

View File

@ -153,7 +153,7 @@ a.button.remove-faq-row {
display: inline-block;
width: 60px;
height: 24px;
float: right;
margin: -5px 0 0 20px;
}
.post-type-mep_events .switch input {display: none;}
@ -335,6 +335,36 @@ div#mep_event_list_thumbnail_meta_boxes table td input#enable_global_qty {
float: left;
order:2;
}
.wrap.mage_settings_panel_wrap {
display: block;
overflow: hidden;
position: relative;
display: -webkit-flex;display: flex;-webkit-flex-wrap: wrap;flex-wrap: wrap;
}
.wrap.mage_settings_panel_wrap h2.nav-tab-wrapper {
width: 20%;
padding: 0;
margin: 0;
float: left;
order:2;
}
.mp_tab_item .item .content input {
display: block;
width: 100%;
border: 1px solid #333;
border-radius: 0;
margin: 10px 0;
padding: 10px;
}
.mp_tab_item .item .content textarea {
width: 100%;
margin: 10px 0;
border-radius: 0;
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%;}

View File

@ -113,6 +113,117 @@ function mep_fw_meta_boxs()
$events_faq_boxs = array(
'page_nav' => __('Event FAQ', 'mage-eventpress'),
'priority' => 10,
'sections' => array(
'section_2' => array(
'title' => __('', 'mage-eventpress'),
'description' => __('', 'mage-eventpress'),
'options' => array(
array(
'id' => 'mep_event_faq',
'title' => __('F.A.Q Details', 'mage-eventpress'),
'details' => __('', 'mage-eventpress'),
'collapsible' => true,
'type' => 'repeatable',
'btn_text' => 'Add New F.A.Q',
'title_field' => 'mep_faq_title',
'fields' => array(
array(
'type' => 'text',
'default' => '',
'item_id' => 'mep_faq_title',
'name' => 'Title'
),
array(
'type' => 'textarea',
'default' => '',
'item_id' => 'mep_faq_content',
'name' => 'Content'
),
),
),
)
),
),
);
$events_faq_meta_args = array(
'meta_box_id' => 'mep_event_faq_meta_boxes',
'meta_box_title' => '<span class="dashicons dashicons-info"></span>&nbsp;&nbsp;'.__('F.A.Q', 'mage-eventpress'),
'screen' => array('mep_events'),
'context' => 'normal',
'priority' => 'high',
'callback_args' => array(),
'nav_position' => 'none',
'item_name' => "MagePeople",
'item_version' => "2.0",
'panels' => array(
'events_faq_meta_boxs' => $events_faq_boxs
)
);
new AddMetaBox($events_faq_meta_args);
$events_dd_boxs = array(
'page_nav' => __('Event Daywise Details', 'mage-eventpress'),
'priority' => 10,
'sections' => array(
'section_2' => array(
'title' => __('', 'mage-eventpress'),
'description' => __('', 'mage-eventpress'),
'options' => array(
array(
'id' => 'mep_event_day',
'title' => __('Daywise Details', 'mage-eventpress'),
'details' => __('', 'mage-eventpress'),
'collapsible' => true,
'type' => 'repeatable',
'btn_text' => 'Add New Days',
'title_field' => 'mep_day_title',
'fields' => array(
array(
'type' => 'text',
'default' => '',
'item_id' => 'mep_day_title',
'name' => 'Title'
),
array(
'type' => 'textarea',
'default' => '',
'item_id' => 'mep_day_content',
'name' => 'Content'
),
),
),
)
),
),
);
$events_dd_meta_args = array(
'meta_box_id' => 'mep_event_dd_meta_boxes',
'meta_box_title' => '<span class="dashicons dashicons-analytics"></span>&nbsp;&nbsp;'.__('Daywise Details', 'mage-eventpress'),
'screen' => array('mep_events'),
'context' => 'normal',
'priority' => 'high',
'callback_args' => array(),
'nav_position' => 'none',
'item_name' => "MagePeople",
'item_version' => "2.0",
'panels' => array(
'events_dd_meta_boxs' => $events_dd_boxs
)
);
new AddMetaBox($events_dd_meta_args);
@ -201,7 +312,6 @@ function mep_fw_meta_boxs()
'speakers_meta_boxs' => $email_body_meta_boxs
),
);
new AddMetaBox( $email_body_meta_args );

File diff suppressed because it is too large Load Diff

View File

@ -1,8 +1,10 @@
jQuery(document).ready(function ($) {
(function ($) {
"use strict";
// Tabs
$(window).load(function () {
$('.mp_event_all_meta_in_tab .mp_tab_menu li:first-child[data-target-tabs]').trigger('click');
$('.mp_tab_menu').each(function () {
$(this).find('ul li:first-child').trigger('click');
});
if ($('[name="mep_org_address"]').val() > 0) {
$('.mp_event_address').slideUp(250);
}
@ -11,10 +13,10 @@ jQuery(document).ready(function ($) {
$(document).on('click', '[data-target-tabs]', function () {
if (!$(this).hasClass('active')) {
let tabsTarget = $(this).attr('data-target-tabs');
let targetParent = $(this).parents('.mp_event_all_meta_in_tab');
targetParent.find('.mp_tab_item.active').removeClass('active').slideUp('fast');
targetParent.find('.mp_tab_item[data-tab-item="' + tabsTarget + '"]').addClass('active').slideDown(250);
targetParent.find('li.active').removeClass('active');
let targetParent = $(this).closest('.mp_event_tab_area').find('.mp_tab_details').first();
targetParent.children('.mp_tab_item:visible').slideUp('fast');
targetParent.children('.mp_tab_item[data-tab-item="' + tabsTarget + '"]').slideDown(250);
$(this).siblings('li.active').removeClass('active');
$(this).addClass('active');
}
return false;
@ -36,7 +38,7 @@ jQuery(document).ready(function ($) {
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');
jQuery('.empty-row-t #mep_ticket_type_empty option[value=inputbox]').removeAttr('selected');
$('.empty-row-t #mep_ticket_type_empty option[value=inputbox]').removeAttr('selected');
return false;
});
@ -84,4 +86,4 @@ jQuery(document).ready(function ($) {
}
});
});
}(jQuery));