new ui up
This commit is contained in:
parent
4bda9c74ca
commit
3c1c09ecd9
|
@ -2,44 +2,43 @@
|
|||
display: block;
|
||||
font-size: 15px;
|
||||
font-weight: normal;
|
||||
margin: 15px 0;
|
||||
margin: 0;
|
||||
}
|
||||
.sec label {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
}
|
||||
.mep_status .active {
|
||||
background: green none repeat scroll 0 0;
|
||||
color: #fff;
|
||||
padding: 6px 10px;
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
background: green none repeat scroll 0 0;
|
||||
color: #FFF;
|
||||
padding: 6px 10px;
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
}
|
||||
.mep_status .err {
|
||||
background: red none repeat scroll 0 0;
|
||||
color: #fff;
|
||||
padding: 6px 10px;
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
background: red none repeat scroll 0 0;
|
||||
color: #FFF;
|
||||
padding: 6px 10px;
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
}
|
||||
td.mep_event_seat.column-mep_event_seat span {
|
||||
display: block;
|
||||
text-align: center;
|
||||
display: block;
|
||||
text-align: center;
|
||||
}
|
||||
#mep_uid {
|
||||
width: 65px;
|
||||
width: 65px;
|
||||
}
|
||||
.inside .sec input {
|
||||
border: 1px solid #ddd;
|
||||
padding: 5px;
|
||||
width: 100%;
|
||||
color: #000;
|
||||
border: 1px solid #DDD;
|
||||
padding: 5px;
|
||||
width: 100%;
|
||||
color: #000;
|
||||
}
|
||||
.inside .sec label {
|
||||
font-weight: normal;
|
||||
display: block;
|
||||
font-weight: normal;
|
||||
}
|
||||
table.atendee-info {
|
||||
display: block;
|
||||
|
@ -50,75 +49,70 @@ table.atendee-info {
|
|||
/* Always set the map height explicitly to define the size of the div
|
||||
* element that contains the map. */
|
||||
#map {
|
||||
height: 250px;
|
||||
height: 250px;
|
||||
}
|
||||
|
||||
|
||||
#infowindow-content .title {
|
||||
font-weight: bold;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#infowindow-content {
|
||||
display: none;
|
||||
display: none;
|
||||
}
|
||||
|
||||
#map #infowindow-content {
|
||||
display: inline;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.pac-card {
|
||||
margin: 10px 10px 0 0;
|
||||
border-radius: 2px 0 0 2px;
|
||||
box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
outline: none;
|
||||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
|
||||
background-color: #fff;
|
||||
font-family: Roboto;
|
||||
margin: 10px 10px 0 0;
|
||||
border-radius: 2px 0 0 2px;
|
||||
box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
outline: none;
|
||||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
|
||||
background-color: #FFF;
|
||||
}
|
||||
|
||||
#pac-container {
|
||||
padding-bottom: 12px;
|
||||
margin-right: 12px;
|
||||
padding-bottom: 12px;
|
||||
margin-right: 12px;
|
||||
}
|
||||
|
||||
.pac-controls {
|
||||
display: inline-block;
|
||||
padding: 5px 11px;
|
||||
display: inline-block;
|
||||
padding: 5px 11px;
|
||||
}
|
||||
|
||||
.pac-controls label {
|
||||
font-family: Roboto;
|
||||
font-size: 13px;
|
||||
font-weight: 300;
|
||||
font-size: 13px;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
#pac-input {
|
||||
background-color: #fff;
|
||||
font-family: Roboto;
|
||||
font-size: 15px;
|
||||
font-weight: 300;
|
||||
margin-left: 12px;
|
||||
padding: 0 11px 0 13px;
|
||||
text-overflow: ellipsis;
|
||||
width: 400px;
|
||||
background-color: #FFF;
|
||||
font-size: 15px;
|
||||
font-weight: 300;
|
||||
margin-left: 12px;
|
||||
padding: 0 11px 0 13px;
|
||||
text-overflow: ellipsis;
|
||||
width: 400px;
|
||||
}
|
||||
|
||||
#pac-input:focus {
|
||||
border-color: #4d90fe;
|
||||
border-color: #4D90FE;
|
||||
}
|
||||
|
||||
div#mep_event_day_r,
|
||||
div#mep_event_faq_r {
|
||||
display: block;
|
||||
width: 94%;
|
||||
border: 1px solid #ddd;
|
||||
padding: 20px;
|
||||
padding:0 15px 15px;
|
||||
}
|
||||
|
||||
.mep-faq-input {
|
||||
width: 100%;
|
||||
display: block;
|
||||
border: 1px solid #8a8a8a;
|
||||
border: 1px solid #8A8A8A;
|
||||
padding: 5px;
|
||||
margin: 15px 0;
|
||||
}
|
||||
|
@ -136,18 +130,18 @@ a.button.remove-faq-row {
|
|||
padding-left: 10px;
|
||||
}
|
||||
.mep-attendee-sec-details span {
|
||||
border: 1px solid #ddd;
|
||||
border: 1px solid #DDD;
|
||||
padding: 10px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.mep-attendee-sec-details .ea-label {
|
||||
width: 200px!important;
|
||||
width: 200px !important;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.mep-attendee-sec-details .ea-value {
|
||||
width: 68%!important;
|
||||
width: 68% !important;
|
||||
}
|
||||
|
||||
.mep-attendee-sec-details .sec {
|
||||
|
@ -155,29 +149,29 @@ a.button.remove-faq-row {
|
|||
}
|
||||
|
||||
.post-type-mep_events .switch {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 60px;
|
||||
height: 24px;
|
||||
float: right;
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 60px;
|
||||
height: 24px;
|
||||
float: right;
|
||||
}
|
||||
|
||||
.post-type-mep_events .switch input {display:none;}
|
||||
.post-type-mep_events .switch input {display: none;}
|
||||
|
||||
.post-type-mep_events .slider {
|
||||
position: absolute;
|
||||
cursor: pointer;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-color: #ccc;
|
||||
-webkit-transition: .4s;
|
||||
transition: .4s;
|
||||
position: absolute;
|
||||
cursor: pointer;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-color: #CCC;
|
||||
-webkit-transition: .4s;
|
||||
transition: .4s;
|
||||
}
|
||||
|
||||
.post-type-mep_events .slider:before {
|
||||
position: absolute;
|
||||
position: absolute;
|
||||
content: "";
|
||||
height: 17px;
|
||||
width: 17px;
|
||||
|
@ -188,178 +182,248 @@ position: absolute;
|
|||
transition: .4s;
|
||||
}
|
||||
|
||||
.post-type-mep_events input:checked + .slider {
|
||||
background-color: #2196F3;
|
||||
.post-type-mep_events input:checked + .slider {
|
||||
background-color: #2196F3;
|
||||
}
|
||||
|
||||
.post-type-mep_events input:focus + .slider {
|
||||
box-shadow: 0 0 1px #2196F3;
|
||||
.post-type-mep_events input:focus + .slider {
|
||||
box-shadow: 0 0 1px #2196F3;
|
||||
}
|
||||
|
||||
.post-type-mep_events input:checked + .slider:before {
|
||||
-webkit-transform: translateX(26px);
|
||||
-ms-transform: translateX(26px);
|
||||
transform: translateX(26px);
|
||||
.post-type-mep_events input:checked + .slider:before {
|
||||
-webkit-transform: translateX(26px);
|
||||
-ms-transform: translateX(26px);
|
||||
transform: translateX(26px);
|
||||
}
|
||||
|
||||
/* Rounded sliders */
|
||||
.post-type-mep_events .slider.round {
|
||||
border-radius: 34px;
|
||||
border-radius: 34px;
|
||||
}
|
||||
|
||||
.post-type-mep_events .slider.round:before {
|
||||
border-radius: 50%;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
div#mep-event-price {
|
||||
border: 5px solid red;
|
||||
}
|
||||
|
||||
div#mep-event-price h2 {
|
||||
background: red;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
div#mage-primary-button{
|
||||
background:green !important;
|
||||
color:white !important;
|
||||
}
|
||||
ul.mep_rt_settings_list li {
|
||||
display: block;
|
||||
margin: 20px 0;
|
||||
border-bottom: 1px solid #ddd;
|
||||
padding: 5px 0 10px;
|
||||
div#mage-primary-button {
|
||||
background: green !important;
|
||||
color: white !important;
|
||||
}
|
||||
.mage_settings_panel_wrap .metabox-holder {
|
||||
padding-top: 10px;
|
||||
background: #fff;
|
||||
padding: 20px;
|
||||
border: 5px solid #0071a1;
|
||||
/* border-top: 0px; */
|
||||
width: 75%;
|
||||
float: left;
|
||||
margin: 0;
|
||||
background: #FFF;
|
||||
padding: 20px;
|
||||
border: 5px solid #0071A1;
|
||||
/* border-top: 0px; */
|
||||
width: 75%;
|
||||
float: left;
|
||||
margin: 0;
|
||||
order: 3;
|
||||
}
|
||||
|
||||
.mage_settings_panel_wrap .nav-tab {
|
||||
float: none;
|
||||
border: 2px solid #0e678c;
|
||||
border-bottom: none;
|
||||
margin-left: 0;
|
||||
padding: 5px 10px;
|
||||
font-size: 14px;
|
||||
line-height: 25px;
|
||||
font-weight: 600;
|
||||
background: #0071a1;
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
max-width: 100%;
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
width: auto;
|
||||
float: none;
|
||||
border: 2px solid #0E678C;
|
||||
border-bottom: none;
|
||||
margin-left: 0;
|
||||
padding: 5px 10px;
|
||||
font-size: 14px;
|
||||
line-height: 25px;
|
||||
font-weight: 600;
|
||||
background: #0071A1;
|
||||
color: #FFF;
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
max-width: 100%;
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
width: auto;
|
||||
}
|
||||
.mage_settings_panel_wrap .nav-tab.nav-tab-active {
|
||||
background: #5ea8c8;
|
||||
background: #5EA8C8;
|
||||
}
|
||||
.mage_settings_panel_wrap table th {
|
||||
width: 330px;
|
||||
border-bottom: 1px solid #ddd;
|
||||
padding: 10px 10px 0 0;
|
||||
font-size: 13px;
|
||||
width: 330px;
|
||||
border-bottom: 1px solid #DDD;
|
||||
padding: 10px 10px 0 0;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.mage_settings_panel_wrap table td {
|
||||
border-bottom: 1px solid #ddd;
|
||||
padding: 10px 0;
|
||||
border-bottom: 1px solid #DDD;
|
||||
padding: 10px 0;
|
||||
}
|
||||
.mage_settings_panel_wrap p.submit {
|
||||
text-align: right;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.mage_settings_panel_wrap p.submit input {
|
||||
font-size: 16px;
|
||||
padding: 5px 30px;
|
||||
border-radius: 0;
|
||||
font-size: 16px;
|
||||
padding: 5px 30px;
|
||||
border-radius: 0;
|
||||
}
|
||||
.mage_settings_panel_wrap .metabox-holder h2 {
|
||||
border-bottom: 2px solid #0071a1;
|
||||
font-size: 20px;
|
||||
padding: 15px;
|
||||
background: #ddd;
|
||||
margin-bottom: 30px;
|
||||
margin-top: 10px;
|
||||
border-bottom: 2px solid #0071A1;
|
||||
font-size: 20px;
|
||||
padding: 15px;
|
||||
background: #DDD;
|
||||
margin-bottom: 30px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
.mep_event_metabox_address .sec {
|
||||
width: 48%;
|
||||
display: inline-block;
|
||||
padding: 0px 10px;
|
||||
width: 48%;
|
||||
display: inline-block;
|
||||
padding: 0 10px;
|
||||
}
|
||||
#poststuff .stuffbox>h3, #poststuff h2, #poststuff h3.hndle {
|
||||
display: block;
|
||||
}
|
||||
span.event_meta_help_txt {
|
||||
display: block;
|
||||
font-size: 13px;
|
||||
margin: 2px 0 20px;
|
||||
color: #ba2720;
|
||||
#poststuff .stuffbox > h3, #poststuff h2, #poststuff h3.hndle {
|
||||
display: block;
|
||||
}
|
||||
|
||||
span.mep_event_date {
|
||||
background: #b2833f;
|
||||
font-size: 11px;
|
||||
display: block;
|
||||
text-align: center;
|
||||
height: auto;
|
||||
padding: 7px 3px;
|
||||
color: #fff;
|
||||
background: #B2833F;
|
||||
font-size: 11px;
|
||||
display: block;
|
||||
text-align: center;
|
||||
height: auto;
|
||||
padding: 7px 3px;
|
||||
color: #FFF;
|
||||
}
|
||||
|
||||
div#mep_event_list_thumbnail_meta_boxes table th, div#mep_event_list_thumbnail_meta_boxes table td {
|
||||
width: 100%;
|
||||
display: block;
|
||||
float: none;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
display: block;
|
||||
float: none;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
div#mep_event_list_thumbnail_meta_boxes table, div#mep_event_list_thumbnail_meta_boxes table tbody {
|
||||
width: 100%!important;
|
||||
overflow: hidden;
|
||||
display: block;
|
||||
width: 100% !important;
|
||||
overflow: hidden;
|
||||
display: block;
|
||||
}
|
||||
|
||||
div#mep_event_list_thumbnail_meta_boxes table td input {
|
||||
width: 93%!important;
|
||||
width: 93% !important;
|
||||
}
|
||||
div#mep_event_list_thumbnail_meta_boxes span.slider:before {
|
||||
display: none;
|
||||
display: none;
|
||||
}
|
||||
div#mep_event_list_thumbnail_meta_boxes table td input#enable_global_qty {
|
||||
width: auto!important;
|
||||
width: auto !important;
|
||||
}
|
||||
#mep_event_list_thumbnail_meta_boxes table.form-table {
|
||||
width: 100%!important;
|
||||
margin: 0!important;
|
||||
padding: 0!important;
|
||||
width: 100% !important;
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
#mep_event_list_thumbnail_meta_boxes table.form-table tbody th, #mep_event_list_thumbnail_meta_boxes table.form-table tbody td {
|
||||
display: block;
|
||||
width: 100%;
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
#mep_event_list_thumbnail_meta_boxes .media_preview {
|
||||
width: 92%!important;
|
||||
width: 92% !important;
|
||||
}
|
||||
.wrap.mage_settings_panel_wrap {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
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;
|
||||
}
|
||||
.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 .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 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 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 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%;}
|
||||
#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;
|
||||
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;}
|
||||
#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 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_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 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;
|
||||
}
|
||||
.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_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;
|
||||
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_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;}
|
||||
|
||||
p.event_meta_help_txt {font-size: 13px;margin: 5px;color: #BA2720;}
|
||||
#add-new-date-row{margin: 10px 0;}
|
||||
|
||||
label.mp_event_virtual_type_des{margin:20px 0 0 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 button,
|
||||
.mp_tab_menu ul li{
|
||||
-webkit-transition: all .25s ease-in-out;transition: all .25s ease-in-out;
|
||||
}
|
||||
|
||||
h2.nav-tab-wrapper {}
|
||||
|
||||
.wrap.mage_settings_panel_wrap h2.nav-tab-wrapper {
|
||||
width: 20%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
float: left;
|
||||
}
|
||||
#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{
|
||||
display: -webkit-flex;display: flex;-webkit-align-items: center;align-items: center;-webkit-justify-content: center;justify-content: center;
|
||||
border: 1px solid #ddd;
|
||||
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;}
|
|
@ -86,17 +86,6 @@ function mep_fw_meta_boxs()
|
|||
'type' => 'select2',
|
||||
'args' => 'CPT_%mep_event_speaker%',
|
||||
),
|
||||
|
||||
array(
|
||||
'id' => 'mep_event_type',
|
||||
'title' => __('Event Type', 'mage-eventpress'),
|
||||
'details' => __('Please Select Event Type, This will add a Rebon in the event list', 'mage-eventpress'),
|
||||
'type' => 'select',
|
||||
'args' => array(
|
||||
'offline' => __('Offline Event', 'mage-eventpress'),
|
||||
'online' => __('Online/Virtual Event', 'mage-eventpress')
|
||||
)
|
||||
),
|
||||
)
|
||||
),
|
||||
|
||||
|
@ -104,7 +93,7 @@ function mep_fw_meta_boxs()
|
|||
);
|
||||
$events_speaker_list_meta_args = array(
|
||||
'meta_box_id' => 'mep_event_speakers_list_meta_boxes',
|
||||
'meta_box_title' => __('Event Speaker Information', 'mage-eventpress'),
|
||||
'meta_box_title' => '<span class="dashicons dashicons-businessman"></span> '.__('Speaker Information', 'mage-eventpress'),
|
||||
'screen' => array('mep_events'),
|
||||
'context' => 'normal',
|
||||
'priority' => 'high',
|
||||
|
@ -199,7 +188,7 @@ function mep_fw_meta_boxs()
|
|||
|
||||
$email_body_meta_args = array(
|
||||
'meta_box_id' => 'mep_event_email_body_meta_boxes',
|
||||
'meta_box_title' => __('Event Email Confirmation Text', 'mage-eventpress'),
|
||||
'meta_box_title' => '<span class="dashicons dashicons-email"></span> '.__('Email Confirmation Text', 'mage-eventpress'),
|
||||
//'callback' => '_meta_box_callback',
|
||||
'screen' => array('mep_events'),
|
||||
'context' => 'normal', // 'normal', 'side', and 'advanced'
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -223,7 +223,7 @@ function mep_add_custom_fields_text_to_order_items($item, $cart_item_key, $value
|
|||
$cart_location = $values['event_cart_location'];
|
||||
$event_extra_service = $values['event_extra_service'];
|
||||
$ticket_type_arr = $values['event_ticket_info'];
|
||||
$cart_date = $values['event_cart_date'];
|
||||
$cart_date = get_mep_datetime($values['event_cart_date'],'date-time-text');
|
||||
$form_position = mep_get_option('mep_user_form_position', 'general_attendee_sec', 'details_page');
|
||||
$event_user_info = $form_position == 'details_page' ? $values['event_user_info'] : mep_save_attendee_info_into_cart($eid);
|
||||
$recurring = get_post_meta($eid, 'mep_enable_recurring', true) ? get_post_meta($eid, 'mep_enable_recurring', true) : 'no';
|
||||
|
|
|
@ -3478,4 +3478,4 @@ if (strtotime(current_time('Y-m-d H:i')) < strtotime($std) && $cn == 0) {
|
|||
$cn++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -2,6 +2,10 @@
|
|||
get_header();
|
||||
the_post();
|
||||
global $post, $woocommerce;
|
||||
if ( post_password_required() ) {
|
||||
echo get_the_password_form(); // WPCS: XSS ok.
|
||||
}else{
|
||||
|
||||
$event_meta = get_post_custom(get_the_id());
|
||||
$author_terms = get_the_terms(get_the_id(), 'mep_org');
|
||||
$book_count = get_post_meta(get_the_id(), 'total_booking', true);
|
||||
|
@ -219,7 +223,7 @@ jQuery('#quantity_5a7abbd1bff73').on('change', function () {
|
|||
<?php
|
||||
}else{
|
||||
do_action('mep_event_single_template_end',get_the_id());
|
||||
}?>
|
||||
<?php
|
||||
do_action('mep_event_single_page_before_footer');
|
||||
}
|
||||
do_action('mep_event_single_page_before_footer');
|
||||
}
|
||||
get_footer();
|
||||
|
|
|
@ -1,5 +1,87 @@
|
|||
// jQuery(document).ready(function($) {
|
||||
// "use strict";
|
||||
jQuery(document).ready(function ($) {
|
||||
"use strict";
|
||||
// Tabs
|
||||
$(window).load(function () {
|
||||
$('.mp_event_all_meta_in_tab .mp_tab_menu li:first-child[data-target-tabs]').trigger('click');
|
||||
if ($('[name="mep_org_address"]').val() > 0) {
|
||||
$('.mp_event_address').slideUp(250);
|
||||
}
|
||||
});
|
||||
|
||||
$(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');
|
||||
$(this).addClass('active');
|
||||
}
|
||||
return false;
|
||||
});
|
||||
$('[name="mep_event_expire"]').datepicker({
|
||||
dateFormat: "yy-mm-dd",
|
||||
minDate: 0
|
||||
});
|
||||
$(document).on('click', 'label.mp_event_virtual_type_des_switch input', function () {
|
||||
if ($(this).is(":checked")) {
|
||||
$(this).parents('label.mp_event_virtual_type_des_switch').siblings('label.mp_event_virtual_type_des').slideDown(200);
|
||||
} else {
|
||||
$(this).parents('label.mp_event_virtual_type_des_switch').siblings('label.mp_event_virtual_type_des').val('').slideUp(200);
|
||||
}
|
||||
});
|
||||
|
||||
$('#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');
|
||||
jQuery('.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 {
|
||||
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 {
|
||||
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-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;
|
||||
}
|
||||
});
|
||||
|
||||
});
|
|
@ -1,204 +1,230 @@
|
|||
<?php
|
||||
if ( ! defined('ABSPATH')) exit; // if direct access
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
} // if direct access
|
||||
|
||||
|
||||
if( ! class_exists( 'AddMetaBox' ) ) {
|
||||
if ( ! class_exists( 'AddMetaBox' ) ) {
|
||||
|
||||
class AddMetaBox {
|
||||
class AddMetaBox {
|
||||
|
||||
public $data = array();
|
||||
public $data = array();
|
||||
|
||||
public function __construct( $args ){
|
||||
public function __construct( $args ) {
|
||||
|
||||
$this->data = &$args;
|
||||
|
||||
add_action( 'add_meta_boxes', array( $this, 'add_meta_boxes' ), 12 );
|
||||
add_action( 'save_post', array( $this, 'save_post' ), 12 );
|
||||
$this->data = &$args;
|
||||
if ( isset( $this->data['seat_plan'] ) ) {
|
||||
add_action( 'mp_event_all_in_tab_item_seat_plan', array( $this, 'meta_box_callback' ), 10, 1 );
|
||||
}elseif ( isset( $this->data['every_day_setting'] ) ) {
|
||||
add_action('mp_event_recurring_every_day_setting',array( $this, 'meta_box_callback' ), 10, 1);
|
||||
} elseif ( $this->get_meta_box_screen()[0] == 'mep_events' && $this->get_meta_box_context() == 'normal' ) {
|
||||
add_action( 'mp_event_all_in_tab_menu', array( $this, 'mp_event_all_in_tab_menu_list' ) );
|
||||
add_action( 'mp_event_all_in_tab_item', array( $this, 'meta_box_callback' ), 10, 1 );
|
||||
} else {
|
||||
add_action( 'add_meta_boxes', array( $this, 'add_meta_boxes' ), 12 );
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public function add_meta_boxes(){
|
||||
add_action( 'save_post', array( $this, 'save_post' ), 12 );
|
||||
|
||||
|
||||
add_meta_box($this->get_meta_box_id(),$this->get_meta_box_title(),array( $this, 'meta_box_callback' ),
|
||||
$this->get_meta_box_screen(), $this->get_meta_box_context(), $this->get_meta_box_priority(),$this->get_callback_args());
|
||||
}
|
||||
}
|
||||
|
||||
public function add_meta_boxes() {
|
||||
|
||||
|
||||
public function save_post($post_id){
|
||||
|
||||
$get_option_name = $this->get_option_name();
|
||||
$post_id = $this->get_post_id();
|
||||
|
||||
if(!empty($get_option_name)):
|
||||
$option_value = serialize($_POST[$get_option_name]);
|
||||
|
||||
update_post_meta($post_id, $get_option_name, $option_value);
|
||||
add_meta_box( $this->get_meta_box_id(), $this->get_meta_box_title(), array( $this, 'meta_box_callback' ),
|
||||
$this->get_meta_box_screen(), $this->get_meta_box_context(), $this->get_meta_box_priority(), $this->get_callback_args() );
|
||||
}
|
||||
|
||||
|
||||
else:
|
||||
public function save_post( $post_id ) {
|
||||
|
||||
foreach ($this->get_panels() as $panelsIndex=>$panel):
|
||||
foreach ($panel['sections'] as $sectionIndex=>$section):
|
||||
foreach ($section['options'] as $option):
|
||||
$get_option_name = $this->get_option_name();
|
||||
$post_id = $this->get_post_id();
|
||||
|
||||
$option_value = isset($_POST[$option['id']]) ? $_POST[$option['id']] : '';
|
||||
if ( ! empty( $get_option_name ) ):
|
||||
$option_value = serialize( $_POST[ $get_option_name ] );
|
||||
|
||||
if(is_array($option_value)){
|
||||
$option_value = serialize($option_value);
|
||||
}
|
||||
update_post_meta( $post_id, $get_option_name, $option_value );
|
||||
|
||||
|
||||
else:
|
||||
|
||||
update_post_meta($post_id, $option['id'], $option_value);
|
||||
foreach ( $this->get_panels() as $panelsIndex => $panel ):
|
||||
foreach ( $panel['sections'] as $sectionIndex => $section ):
|
||||
foreach ( $section['options'] as $option ):
|
||||
|
||||
endforeach;
|
||||
endforeach;
|
||||
endforeach;
|
||||
$option_value = isset( $_POST[ $option['id'] ] ) ? $_POST[ $option['id'] ] : '';
|
||||
|
||||
endif;
|
||||
if ( is_array( $option_value ) ) {
|
||||
$option_value = serialize( $option_value );
|
||||
}
|
||||
|
||||
|
||||
update_post_meta( $post_id, $option['id'], $option_value );
|
||||
|
||||
}
|
||||
endforeach;
|
||||
endforeach;
|
||||
endforeach;
|
||||
|
||||
endif;
|
||||
|
||||
|
||||
public function meta_box_callback(){
|
||||
}
|
||||
|
||||
$get_nav_position = $this->get_nav_position();
|
||||
public function mp_event_all_in_tab_menu_list() {
|
||||
?>
|
||||
<li data-target-tabs="#<?php echo $this->get_meta_box_id(); ?>">
|
||||
<?php echo $this->get_meta_box_title(); ?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
//var_dump($get_nav_position);
|
||||
?>
|
||||
|
||||
public function meta_box_callback( $post_id = null ) {
|
||||
|
||||
$get_nav_position = $this->get_nav_position();
|
||||
|
||||
//var_dump($get_nav_position);
|
||||
if ( $this->get_meta_box_screen()[0] == 'mep_events' && $this->get_meta_box_context() == 'normal' && !isset( $this->data['seat_plan'] )) {
|
||||
?>
|
||||
<div class="mp_tab_item" data-tab-item="#<?php echo $this->get_meta_box_id(); ?>">
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<div class='wrap ppof-settings ppof-metabox'>
|
||||
<div class='navigation <?php echo $get_nav_position; ?>'>
|
||||
|
||||
<div class="nav-header">
|
||||
<?php
|
||||
do_action('nav_header_top');
|
||||
?>
|
||||
<?php
|
||||
do_action( 'nav_header_top' );
|
||||
?>
|
||||
<div class="themeName"><?php echo $this->get_item_name(); ?></div>
|
||||
<div class="themeVersion"><?php echo sprintf(__('Version: %s', 'wp-theme-settings'), $this->get_item_version()); ?></div>
|
||||
<?php
|
||||
do_action('nav_header_bottom');
|
||||
?>
|
||||
<div class="themeVersion"><?php echo sprintf( __( 'Version: %s', 'wp-theme-settings' ), $this->get_item_version() ); ?></div>
|
||||
<?php
|
||||
do_action( 'nav_header_bottom' );
|
||||
?>
|
||||
</div>
|
||||
|
||||
<div class="nav-items">
|
||||
<?php
|
||||
do_action('nav_nav_items_top');
|
||||
?>
|
||||
<?php
|
||||
<?php
|
||||
do_action( 'nav_nav_items_top' );
|
||||
?>
|
||||
<?php
|
||||
|
||||
|
||||
$current_page = 1;
|
||||
foreach( $this->get_panels() as $page_id => $page ):
|
||||
$current_page = 1;
|
||||
foreach ( $this->get_panels() as $page_id => $page ):
|
||||
|
||||
|
||||
$page_settings = !empty($page['sections']) ? $page['sections'] : array();
|
||||
$page_settings = ! empty( $page['sections'] ) ? $page['sections'] : array();
|
||||
|
||||
|
||||
$page_settings_count = count($page_settings);
|
||||
//var_dump($page_settings);
|
||||
?>
|
||||
<li class="nav-item-wrap <?php if(($page_settings_count > 1)) echo 'has-child'; ?> <?php if($current_page==$page_id) echo 'active'; ?>">
|
||||
<a dataid="<?php echo $page_id; ?>" href='#<?php //echo $pagenow.'?'.$section_id; ?><?php echo
|
||||
$page_id; ?>' class='nav-item'><?php echo $page['page_nav']; ?>
|
||||
$page_settings_count = count( $page_settings );
|
||||
//var_dump($page_settings);
|
||||
?>
|
||||
<li class="nav-item-wrap <?php if ( ( $page_settings_count > 1 ) ) {
|
||||
echo 'has-child';
|
||||
} ?> <?php if ( $current_page == $page_id ) {
|
||||
echo 'active';
|
||||
} ?>">
|
||||
<a dataid="<?php echo $page_id; ?>" href='#<?php //echo $pagenow.'?'.$section_id;
|
||||
?><?php echo
|
||||
$page_id; ?>' class='nav-item'><?php echo $page['page_nav']; ?>
|
||||
|
||||
<?php if(($page_settings_count > 1)) echo '<i class="child-nav-icon fas fa-angle-down"></i>'; ?>
|
||||
<?php if ( ( $page_settings_count > 1 ) ) {
|
||||
echo '<i class="child-nav-icon fas fa-angle-down"></i>';
|
||||
} ?>
|
||||
</a>
|
||||
<?php
|
||||
if(($page_settings_count > 1)):
|
||||
?>
|
||||
<?php
|
||||
if ( ( $page_settings_count > 1 ) ):
|
||||
?>
|
||||
<ul class="child-navs">
|
||||
<?php
|
||||
foreach ($page_settings as $section_id=>$nav_sections):
|
||||
$nav_sections_title = !empty($nav_sections['nav_title']) ? $nav_sections['nav_title'] : $nav_sections['title'];
|
||||
<?php
|
||||
foreach ( $page_settings as $section_id => $nav_sections ):
|
||||
$nav_sections_title = ! empty( $nav_sections['nav_title'] ) ? $nav_sections['nav_title'] : $nav_sections['title'];
|
||||
|
||||
//var_dump($nav_sections_title);
|
||||
?>
|
||||
//var_dump($nav_sections_title);
|
||||
?>
|
||||
<li>
|
||||
|
||||
<a sectionId="<?php echo $section_id; ?>" dataid="<?php echo $page_id; ?>" href='#<?php echo $section_id; ?>' class='nav-item <?php if($current_page==$page_id) echo 'active'; ?>'><?php echo $nav_sections_title; ?>
|
||||
<a sectionId="<?php echo $section_id; ?>" dataid="<?php echo $page_id; ?>" href='#<?php echo $section_id; ?>' class='nav-item <?php if ( $current_page == $page_id ) {
|
||||
echo 'active';
|
||||
} ?>'><?php echo $nav_sections_title; ?>
|
||||
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
</li>
|
||||
<?php
|
||||
<?php
|
||||
|
||||
endforeach;
|
||||
?>
|
||||
endforeach;
|
||||
?>
|
||||
</ul>
|
||||
<?php
|
||||
endif;
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
endif;
|
||||
?>
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<?php
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
$current_page++;
|
||||
endforeach;
|
||||
?>
|
||||
<?php
|
||||
do_action('nav_nav_items_bottom');
|
||||
?>
|
||||
$current_page ++;
|
||||
endforeach;
|
||||
?>
|
||||
<?php
|
||||
do_action( 'nav_nav_items_bottom' );
|
||||
?>
|
||||
</div>
|
||||
|
||||
<div class="nav-footer">
|
||||
<?php
|
||||
do_action('nav_footer_top');
|
||||
?>
|
||||
<?php
|
||||
do_action( 'nav_footer_top' );
|
||||
?>
|
||||
|
||||
<?php
|
||||
do_action('nav_footer_bottom');
|
||||
?>
|
||||
<?php
|
||||
do_action( 'nav_footer_bottom' );
|
||||
?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
<?php
|
||||
|
||||
if($get_nav_position == 'right'){
|
||||
$form_wrapper_position = 'left';
|
||||
}
|
||||
elseif($get_nav_position == 'left'){
|
||||
$form_wrapper_position = 'right';
|
||||
}
|
||||
elseif($get_nav_position == 'top'){
|
||||
$form_wrapper_position = 'full-width-top';
|
||||
}
|
||||
else{
|
||||
$form_wrapper_position = 'full-width';
|
||||
}
|
||||
?>
|
||||
if ( $get_nav_position == 'right' ) {
|
||||
$form_wrapper_position = 'left';
|
||||
} elseif ( $get_nav_position == 'left' ) {
|
||||
$form_wrapper_position = 'right';
|
||||
} elseif ( $get_nav_position == 'top' ) {
|
||||
$form_wrapper_position = 'full-width-top';
|
||||
} else {
|
||||
$form_wrapper_position = 'full-width';
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="form-wrapper <?php echo $form_wrapper_position; ?>">
|
||||
|
||||
<div class="form-section">
|
||||
<?php
|
||||
<?php
|
||||
|
||||
$current_page = 1;
|
||||
$current_page = 1;
|
||||
|
||||
foreach ($this->get_panels() as $panelsIndex=>$panel):
|
||||
foreach ( $this->get_panels() as $panelsIndex => $panel ):
|
||||
|
||||
|
||||
|
||||
?>
|
||||
<div class="tab-content <?php if($current_page==1) echo 'active'; ?> tab-content-<?php
|
||||
echo $panelsIndex; ?>">
|
||||
<?php
|
||||
foreach ($panel['sections'] as $sectionIndex=>$section):
|
||||
?>
|
||||
?>
|
||||
<div class="tab-content <?php if ( $current_page == 1 ) {
|
||||
echo 'active';
|
||||
} ?> tab-content-<?php
|
||||
echo $panelsIndex; ?>">
|
||||
<?php
|
||||
foreach ( $panel['sections'] as $sectionIndex => $section ):
|
||||
?>
|
||||
<div class="section">
|
||||
<h1 id="<?php echo $sectionIndex; ?>" class="section-title"><?php echo $section['title']; ?></h1>
|
||||
<p class="description"><?php echo $section['description']; ?></p>
|
||||
|
@ -206,322 +232,292 @@ if( ! class_exists( 'AddMetaBox' ) ) {
|
|||
<table class="form-table">
|
||||
<tbody>
|
||||
|
||||
<?php
|
||||
foreach ($section['options'] as $option):
|
||||
?>
|
||||
<?php
|
||||
foreach ( $section['options'] as $option ):
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row"><?php echo $option['title']; ?></th>
|
||||
<td>
|
||||
<?php
|
||||
<?php
|
||||
|
||||
$option_value = get_post_meta($this->get_post_id(), $option['id'], true);
|
||||
$option_value = get_post_meta( $this->get_post_id(), $option['id'], true );
|
||||
|
||||
if(is_serialized($option_value)){
|
||||
$option_value = unserialize($option_value);
|
||||
if ( is_serialized( $option_value ) ) {
|
||||
$option_value = unserialize( $option_value );
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
$option['value'] = $option_value;
|
||||
$option['value'] = $option_value;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$this->field_generator($option)
|
||||
?>
|
||||
$this->field_generator( $option )
|
||||
?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
<?php
|
||||
|
||||
endforeach;
|
||||
?>
|
||||
endforeach;
|
||||
?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
endforeach;
|
||||
endforeach;
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
</div>
|
||||
<?php
|
||||
<?php
|
||||
|
||||
$current_page++;
|
||||
endforeach;
|
||||
$current_page ++;
|
||||
endforeach;
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public function field_generator( $option ) {
|
||||
|
||||
$id = isset( $option['id'] ) ? $option['id'] : "";
|
||||
$type = isset( $option['type'] ) ? $option['type'] : "";
|
||||
$details = isset( $option['details'] ) ? $option['details'] : "";
|
||||
|
||||
$post_id = $this->get_post_id();
|
||||
|
||||
if( empty( $id ) ) return;
|
||||
|
||||
$prent_option_name = $this->get_option_name();
|
||||
$FormFieldsGenerator = new FormFieldsGenerator();
|
||||
|
||||
if(!empty($prent_option_name)):
|
||||
$field_name = $prent_option_name.'['.$id.']';
|
||||
$option['field_name'] = $field_name;
|
||||
|
||||
$prent_option_value = get_post_meta($post_id, $prent_option_name, true );
|
||||
|
||||
$prent_option_value = is_serialized($prent_option_value) ? unserialize($prent_option_value): array();
|
||||
$option['value'] = isset($prent_option_value[$id]) ? $prent_option_value[$id] : '';
|
||||
else:
|
||||
$option['field_name'] = $id;
|
||||
$option_value = get_post_meta($post_id, $id, true );
|
||||
$option['value'] = is_serialized($option_value) ? unserialize($option_value): $option_value;
|
||||
|
||||
endif;
|
||||
|
||||
|
||||
//var_dump($prent_option_value);
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
if( isset($option['type']) && $option['type'] === 'text' ){
|
||||
echo $FormFieldsGenerator->field_text($option);
|
||||
}
|
||||
elseif( isset($option['type']) && $option['type'] === 'text_multi' ){
|
||||
echo $FormFieldsGenerator->field_text_multi($option);
|
||||
}
|
||||
elseif( isset($option['type']) && $option['type'] === 'textarea' ){
|
||||
echo $FormFieldsGenerator->field_textarea($option);
|
||||
}
|
||||
elseif( isset($option['type']) && $option['type'] === 'checkbox' ){
|
||||
echo $FormFieldsGenerator->field_checkbox($option);
|
||||
}
|
||||
elseif( isset($option['type']) && $option['type'] === 'checkbox_multi' ){
|
||||
echo $FormFieldsGenerator->field_checkbox_multi($option);
|
||||
}
|
||||
elseif( isset($option['type']) && $option['type'] === 'radio' ){
|
||||
echo $FormFieldsGenerator->field_radio($option);
|
||||
}
|
||||
elseif( isset($option['type']) && $option['type'] === 'select' ){
|
||||
echo $FormFieldsGenerator->field_select($option);
|
||||
}
|
||||
elseif( isset($option['type']) && $option['type'] === 'range' ){
|
||||
echo $FormFieldsGenerator->field_range($option);
|
||||
}
|
||||
elseif( isset($option['type']) && $option['type'] === 'range_input' ){
|
||||
echo $FormFieldsGenerator->field_range_input($option);
|
||||
}
|
||||
elseif( isset($option['type']) && $option['type'] === 'switch' ){
|
||||
echo $FormFieldsGenerator->field_switch($option);
|
||||
}
|
||||
elseif( isset($option['type']) && $option['type'] === 'switch_multi' ){
|
||||
echo $FormFieldsGenerator->field_switch_multi($option);
|
||||
}
|
||||
elseif( isset($option['type']) && $option['type'] === 'switch_img' ){
|
||||
echo $FormFieldsGenerator->field_switch_img($option);
|
||||
}
|
||||
elseif( isset($option['type']) && $option['type'] === 'time_format' ){
|
||||
echo $FormFieldsGenerator->field_time_format($option);
|
||||
}
|
||||
elseif( isset($option['type']) && $option['type'] === 'date_format' ){
|
||||
echo $FormFieldsGenerator->field_date_format($option);
|
||||
}
|
||||
|
||||
elseif( isset($option['type']) && $option['type'] === 'datepicker' ){
|
||||
echo $FormFieldsGenerator->field_datepicker($option);
|
||||
}
|
||||
elseif( isset($option['type']) && $option['type'] === 'color_sets' ){
|
||||
echo $FormFieldsGenerator->field_color_sets($option);
|
||||
}
|
||||
elseif( isset($option['type']) && $option['type'] === 'colorpicker' ){
|
||||
echo $FormFieldsGenerator->field_colorpicker($option);
|
||||
}
|
||||
|
||||
elseif( isset($option['type']) && $option['type'] === 'colorpicker_multi' ){
|
||||
echo $FormFieldsGenerator->field_colorpicker_multi($option);
|
||||
}
|
||||
elseif( isset($option['type']) && $option['type'] === 'link_color' ){
|
||||
echo $FormFieldsGenerator->field_link_color($option);
|
||||
}
|
||||
elseif( isset($option['type']) && $option['type'] === 'icon' ){
|
||||
echo $FormFieldsGenerator->field_icon($option);
|
||||
}
|
||||
elseif( isset($option['type']) && $option['type'] === 'icon_multi' ){
|
||||
echo $FormFieldsGenerator->field_icon_multi($option);
|
||||
}
|
||||
elseif( isset($option['type']) && $option['type'] === 'dimensions' ){
|
||||
echo $FormFieldsGenerator->field_dimensions($option);
|
||||
}
|
||||
elseif( isset($option['type']) && $option['type'] === 'wp_editor' ){
|
||||
echo $FormFieldsGenerator->field_wp_editor($option);
|
||||
}
|
||||
elseif( isset($option['type']) && $option['type'] === 'select2' ){
|
||||
echo $FormFieldsGenerator->field_select2($option);
|
||||
}
|
||||
elseif( isset($option['type']) && $option['type'] === 'faq' ){
|
||||
echo $FormFieldsGenerator->field_faq($option);
|
||||
}
|
||||
elseif( isset($option['type']) && $option['type'] === 'grid' ){
|
||||
echo $FormFieldsGenerator->field_grid($option);
|
||||
}
|
||||
elseif( isset($option['type']) && $option['type'] === 'color_palette' ){
|
||||
echo $FormFieldsGenerator->field_color_palette($option);
|
||||
}
|
||||
elseif( isset($option['type']) && $option['type'] === 'color_palette_multi' ){
|
||||
echo $FormFieldsGenerator->field_color_palette_multi($option);
|
||||
}
|
||||
elseif( isset($option['type']) && $option['type'] === 'media' ){
|
||||
echo $FormFieldsGenerator->field_media($option);
|
||||
}
|
||||
elseif( isset($option['type']) && $option['type'] === 'media_multi' ){
|
||||
echo $FormFieldsGenerator->field_media_multi($option);
|
||||
}
|
||||
elseif( isset($option['type']) && $option['type'] === 'repeatable' ){
|
||||
echo $FormFieldsGenerator->field_repeatable($option);
|
||||
}
|
||||
elseif( isset($option['type']) && $option['type'] === 'user' ){
|
||||
echo $FormFieldsGenerator->field_user($option);
|
||||
}
|
||||
elseif( isset($option['type']) && $option['type'] === 'margin' ){
|
||||
echo $FormFieldsGenerator->field_margin($option);
|
||||
}
|
||||
elseif( isset($option['type']) && $option['type'] === 'padding' ){
|
||||
echo $FormFieldsGenerator->field_padding($option);
|
||||
}
|
||||
elseif( isset($option['type']) && $option['type'] === 'border' ){
|
||||
echo $FormFieldsGenerator->field_border($option);
|
||||
}
|
||||
elseif( isset($option['type']) && $option['type'] === 'switcher' ){
|
||||
echo $FormFieldsGenerator->field_switcher($option);
|
||||
}
|
||||
elseif( isset($option['type']) && $option['type'] === 'password' ){
|
||||
echo $FormFieldsGenerator->field_password($option);
|
||||
}
|
||||
elseif( isset($option['type']) && $option['type'] === 'post_objects' ){
|
||||
echo $FormFieldsGenerator->field_post_objects($option);
|
||||
}
|
||||
elseif( isset($option['type']) && $option['type'] === 'google_map' ){
|
||||
echo $FormFieldsGenerator->field_google_map($option);
|
||||
}
|
||||
|
||||
elseif( isset($option['type']) && $option['type'] === $type ){
|
||||
do_action( "wp_theme_settings_field_$type", $option );
|
||||
}
|
||||
if( !empty( $details ) ) echo "<p class='description'>$details</p>";
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
private function get_meta_box_id(){
|
||||
if( isset( $this->data['meta_box_id'] ) ) return $this->data['meta_box_id'];
|
||||
else return "";
|
||||
}
|
||||
|
||||
private function get_meta_box_title(){
|
||||
if( isset( $this->data['meta_box_title'] ) ) return $this->data['meta_box_title'];
|
||||
else return "";
|
||||
}
|
||||
|
||||
private function get_meta_box_screen(){
|
||||
if( isset( $this->data['screen'] ) ) return $this->data['screen'];
|
||||
else return array('post');
|
||||
}
|
||||
|
||||
private function get_meta_box_context(){
|
||||
if( isset( $this->data['context'] ) ) return $this->data['context'];
|
||||
else return 'normal';
|
||||
}
|
||||
|
||||
private function get_meta_box_priority(){
|
||||
if( isset( $this->data['priority'] ) ) return $this->data['priority'];
|
||||
else return "high";
|
||||
}
|
||||
|
||||
private function get_callback_args(){
|
||||
if( isset( $this->data['callback_args'] ) ) return $this->data['callback_args'];
|
||||
else return array();
|
||||
}
|
||||
|
||||
private function get_panels(){
|
||||
if( isset( $this->data['panels'] ) ) return $this->data['panels'];
|
||||
else return array();
|
||||
}
|
||||
|
||||
|
||||
private function get_item_name(){
|
||||
if( isset( $this->data['item_name'] ) ) return $this->data['item_name'];
|
||||
else return "PickPlugins";
|
||||
}
|
||||
|
||||
private function get_item_version(){
|
||||
if( isset( $this->data['item_version'] ) ) return $this->data['item_version'];
|
||||
else return "1.0.0";
|
||||
}
|
||||
|
||||
private function get_option_name(){
|
||||
if( isset( $this->data['option_name'] )) return $this->data['option_name'];
|
||||
else return false;
|
||||
}
|
||||
|
||||
private function get_nav_position(){
|
||||
if( isset( $this->data['nav_position'] )) return $this->data['nav_position'];
|
||||
else return 'left';
|
||||
}
|
||||
|
||||
|
||||
private function get_post_id(){
|
||||
|
||||
$post_id = get_the_ID();
|
||||
return $post_id;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
if ( $this->get_meta_box_screen()[0] == 'mep_events' && $this->get_meta_box_context() == 'normal' && !isset( $this->data['seat_plan'] )) {
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function field_generator( $option ) {
|
||||
|
||||
$id = isset( $option['id'] ) ? $option['id'] : "";
|
||||
$type = isset( $option['type'] ) ? $option['type'] : "";
|
||||
$details = isset( $option['details'] ) ? $option['details'] : "";
|
||||
|
||||
$post_id = $this->get_post_id();
|
||||
|
||||
if ( empty( $id ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$prent_option_name = $this->get_option_name();
|
||||
$FormFieldsGenerator = new FormFieldsGenerator();
|
||||
|
||||
if ( ! empty( $prent_option_name ) ):
|
||||
$field_name = $prent_option_name . '[' . $id . ']';
|
||||
$option['field_name'] = $field_name;
|
||||
|
||||
$prent_option_value = get_post_meta( $post_id, $prent_option_name, true );
|
||||
|
||||
$prent_option_value = is_serialized( $prent_option_value ) ? unserialize( $prent_option_value ) : array();
|
||||
$option['value'] = isset( $prent_option_value[ $id ] ) ? $prent_option_value[ $id ] : '';
|
||||
else:
|
||||
$option['field_name'] = $id;
|
||||
$option_value = get_post_meta( $post_id, $id, true );
|
||||
$option['value'] = is_serialized( $option_value ) ? unserialize( $option_value ) : $option_value;
|
||||
|
||||
endif;
|
||||
|
||||
|
||||
//var_dump($prent_option_value);
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
if ( isset( $option['type'] ) && $option['type'] === 'text' ) {
|
||||
echo $FormFieldsGenerator->field_text( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'text_multi' ) {
|
||||
echo $FormFieldsGenerator->field_text_multi( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'textarea' ) {
|
||||
echo $FormFieldsGenerator->field_textarea( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'checkbox' ) {
|
||||
echo $FormFieldsGenerator->field_checkbox( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'checkbox_multi' ) {
|
||||
echo $FormFieldsGenerator->field_checkbox_multi( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'radio' ) {
|
||||
echo $FormFieldsGenerator->field_radio( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'select' ) {
|
||||
echo $FormFieldsGenerator->field_select( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'range' ) {
|
||||
echo $FormFieldsGenerator->field_range( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'range_input' ) {
|
||||
echo $FormFieldsGenerator->field_range_input( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'switch' ) {
|
||||
echo $FormFieldsGenerator->field_switch( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'switch_multi' ) {
|
||||
echo $FormFieldsGenerator->field_switch_multi( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'switch_img' ) {
|
||||
echo $FormFieldsGenerator->field_switch_img( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'time_format' ) {
|
||||
echo $FormFieldsGenerator->field_time_format( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'date_format' ) {
|
||||
echo $FormFieldsGenerator->field_date_format( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'datepicker' ) {
|
||||
echo $FormFieldsGenerator->field_datepicker( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'color_sets' ) {
|
||||
echo $FormFieldsGenerator->field_color_sets( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'colorpicker' ) {
|
||||
echo $FormFieldsGenerator->field_colorpicker( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'colorpicker_multi' ) {
|
||||
echo $FormFieldsGenerator->field_colorpicker_multi( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'link_color' ) {
|
||||
echo $FormFieldsGenerator->field_link_color( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'icon' ) {
|
||||
echo $FormFieldsGenerator->field_icon( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'icon_multi' ) {
|
||||
echo $FormFieldsGenerator->field_icon_multi( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'dimensions' ) {
|
||||
echo $FormFieldsGenerator->field_dimensions( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'wp_editor' ) {
|
||||
echo $FormFieldsGenerator->field_wp_editor( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'select2' ) {
|
||||
echo $FormFieldsGenerator->field_select2( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'faq' ) {
|
||||
echo $FormFieldsGenerator->field_faq( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'grid' ) {
|
||||
echo $FormFieldsGenerator->field_grid( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'color_palette' ) {
|
||||
echo $FormFieldsGenerator->field_color_palette( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'color_palette_multi' ) {
|
||||
echo $FormFieldsGenerator->field_color_palette_multi( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'media' ) {
|
||||
echo $FormFieldsGenerator->field_media( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'media_multi' ) {
|
||||
echo $FormFieldsGenerator->field_media_multi( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'repeatable' ) {
|
||||
echo $FormFieldsGenerator->field_repeatable( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'user' ) {
|
||||
echo $FormFieldsGenerator->field_user( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'margin' ) {
|
||||
echo $FormFieldsGenerator->field_margin( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'padding' ) {
|
||||
echo $FormFieldsGenerator->field_padding( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'border' ) {
|
||||
echo $FormFieldsGenerator->field_border( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'switcher' ) {
|
||||
echo $FormFieldsGenerator->field_switcher( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'password' ) {
|
||||
echo $FormFieldsGenerator->field_password( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'post_objects' ) {
|
||||
echo $FormFieldsGenerator->field_post_objects( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === 'google_map' ) {
|
||||
echo $FormFieldsGenerator->field_google_map( $option );
|
||||
} elseif ( isset( $option['type'] ) && $option['type'] === $type ) {
|
||||
do_action( "wp_theme_settings_field_$type", $option );
|
||||
}
|
||||
if ( ! empty( $details ) ) {
|
||||
echo "<p class='description'>$details</p>";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
private function get_meta_box_id() {
|
||||
if ( isset( $this->data['meta_box_id'] ) ) {
|
||||
return $this->data['meta_box_id'];
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
private function get_meta_box_title() {
|
||||
if ( isset( $this->data['meta_box_title'] ) ) {
|
||||
return $this->data['meta_box_title'];
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
private function get_meta_box_screen() {
|
||||
if ( isset( $this->data['screen'] ) ) {
|
||||
return $this->data['screen'];
|
||||
} else {
|
||||
return array( 'post' );
|
||||
}
|
||||
}
|
||||
|
||||
private function get_meta_box_context() {
|
||||
if ( isset( $this->data['context'] ) ) {
|
||||
return $this->data['context'];
|
||||
} else {
|
||||
return 'normal';
|
||||
}
|
||||
}
|
||||
|
||||
private function get_meta_box_priority() {
|
||||
if ( isset( $this->data['priority'] ) ) {
|
||||
return $this->data['priority'];
|
||||
} else {
|
||||
return "high";
|
||||
}
|
||||
}
|
||||
|
||||
private function get_callback_args() {
|
||||
if ( isset( $this->data['callback_args'] ) ) {
|
||||
return $this->data['callback_args'];
|
||||
} else {
|
||||
return array();
|
||||
}
|
||||
}
|
||||
|
||||
private function get_panels() {
|
||||
if ( isset( $this->data['panels'] ) ) {
|
||||
return $this->data['panels'];
|
||||
} else {
|
||||
return array();
|
||||
}
|
||||
}
|
||||
|
||||
private function get_item_name() {
|
||||
if ( isset( $this->data['item_name'] ) ) {
|
||||
return $this->data['item_name'];
|
||||
} else {
|
||||
return "PickPlugins";
|
||||
}
|
||||
}
|
||||
|
||||
private function get_item_version() {
|
||||
if ( isset( $this->data['item_version'] ) ) {
|
||||
return $this->data['item_version'];
|
||||
} else {
|
||||
return "1.0.0";
|
||||
}
|
||||
}
|
||||
|
||||
private function get_option_name() {
|
||||
if ( isset( $this->data['option_name'] ) ) {
|
||||
return $this->data['option_name'];
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
private function get_nav_position() {
|
||||
if ( isset( $this->data['nav_position'] ) ) {
|
||||
return $this->data['nav_position'];
|
||||
} else {
|
||||
return 'left';
|
||||
}
|
||||
}
|
||||
|
||||
private function get_post_id() {
|
||||
|
||||
$post_id = get_the_ID();
|
||||
|
||||
return $post_id;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue