event date column
This commit is contained in:
parent
7a5e575792
commit
60af1ee8e1
@ -1,223 +1,223 @@
|
||||
.inside .sec {
|
||||
display: block;
|
||||
font-size: 15px;
|
||||
font-weight: normal;
|
||||
margin: 15px 0;
|
||||
display: block;
|
||||
font-size: 15px;
|
||||
font-weight: normal;
|
||||
margin: 15px 0;
|
||||
}
|
||||
.sec label {
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
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;
|
||||
display: block;
|
||||
}
|
||||
table.atendee-info {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Always set the map height explicitly to define the size of the div
|
||||
* element that contains the map. */
|
||||
* 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;
|
||||
font-family: Roboto;
|
||||
}
|
||||
|
||||
#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-family: Roboto;
|
||||
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-family: Roboto;
|
||||
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_faq_r {
|
||||
display: block;
|
||||
width: 94%;
|
||||
border: 1px solid #ddd;
|
||||
padding: 20px;
|
||||
display: block;
|
||||
width: 94%;
|
||||
border: 1px solid #ddd;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.mep-faq-input {
|
||||
width: 100%;
|
||||
display: block;
|
||||
border: 1px solid #8a8a8a;
|
||||
padding: 5px;
|
||||
margin: 15px 0;
|
||||
width: 100%;
|
||||
display: block;
|
||||
border: 1px solid #8a8a8a;
|
||||
padding: 5px;
|
||||
margin: 15px 0;
|
||||
}
|
||||
|
||||
div#mep-event-faq-box {
|
||||
overflow: hidden;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
a.button.remove-faq-row {
|
||||
/* float: right; */
|
||||
overflow: hidden;
|
||||
display: inline-block;
|
||||
/* float: right; */
|
||||
overflow: hidden;
|
||||
display: inline-block;
|
||||
}
|
||||
.settings_page_mep_event_settings_page h2 {
|
||||
padding-left: 10px;
|
||||
padding-left: 10px;
|
||||
}
|
||||
.mep-attendee-sec-details span {
|
||||
border: 1px solid #ddd;
|
||||
padding: 10px;
|
||||
display: inline-block;
|
||||
border: 1px solid #ddd;
|
||||
padding: 10px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.mep-attendee-sec-details .ea-label {
|
||||
width: 200px!important;
|
||||
font-weight: bold;
|
||||
width: 200px!important;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.mep-attendee-sec-details .ea-value {
|
||||
width: 68%!important;
|
||||
width: 68%!important;
|
||||
}
|
||||
|
||||
.mep-attendee-sec-details .sec {
|
||||
margin: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.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 .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;
|
||||
content: "";
|
||||
height: 17px;
|
||||
width: 17px;
|
||||
left: 10px;
|
||||
bottom: 4px;
|
||||
background-color: white;
|
||||
-webkit-transition: .4s;
|
||||
transition: .4s;
|
||||
content: "";
|
||||
height: 17px;
|
||||
width: 17px;
|
||||
left: 10px;
|
||||
bottom: 4px;
|
||||
background-color: white;
|
||||
-webkit-transition: .4s;
|
||||
transition: .4s;
|
||||
}
|
||||
|
||||
.post-type-mep_events input:checked + .slider {
|
||||
background-color: #2196F3;
|
||||
background-color: #2196F3;
|
||||
}
|
||||
|
||||
.post-type-mep_events input:focus + .slider {
|
||||
box-shadow: 0 0 1px #2196F3;
|
||||
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);
|
||||
-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;
|
||||
border: 5px solid red;
|
||||
}
|
||||
|
||||
div#mep-event-price h2 {
|
||||
background: red;
|
||||
color: #fff;
|
||||
background: red;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
div#mage-primary-button{
|
||||
@ -225,75 +225,84 @@ 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;
|
||||
display: block;
|
||||
margin: 20px 0;
|
||||
border-bottom: 1px solid #ddd;
|
||||
padding: 5px 0 10px;
|
||||
}
|
||||
.mage_settings_panel_wrap .metabox-holder {
|
||||
padding-top: 10px;
|
||||
background: #fff;
|
||||
padding: 20px;
|
||||
border: 5px solid #0071a1;
|
||||
/* border-top: 0px; */
|
||||
padding-top: 10px;
|
||||
background: #fff;
|
||||
padding: 20px;
|
||||
border: 5px solid #0071a1;
|
||||
/* border-top: 0px; */
|
||||
}
|
||||
|
||||
.mage_settings_panel_wrap .nav-tab {
|
||||
float: left;
|
||||
border: 2px solid #0e678c;
|
||||
border-bottom: none;
|
||||
margin-left: .5em;
|
||||
padding: 5px 10px;
|
||||
font-size: 14px;
|
||||
line-height: 1.71428571;
|
||||
font-weight: 600;
|
||||
background: #0071a1;
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
float: left;
|
||||
border: 2px solid #0e678c;
|
||||
border-bottom: none;
|
||||
margin-left: .5em;
|
||||
padding: 5px 10px;
|
||||
font-size: 14px;
|
||||
line-height: 1.71428571;
|
||||
font-weight: 600;
|
||||
background: #0071a1;
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.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: 0px 10px;
|
||||
}
|
||||
#poststuff .stuffbox>h3, #poststuff h2, #poststuff h3.hndle {
|
||||
display: block;
|
||||
display: block;
|
||||
}
|
||||
span.event_meta_help_txt {
|
||||
display: block;
|
||||
font-size: 13px;
|
||||
margin: 2px 0 20px;
|
||||
color: #ba2720;
|
||||
display: block;
|
||||
font-size: 13px;
|
||||
margin: 2px 0 20px;
|
||||
color: #ba2720;
|
||||
}
|
||||
span.mep_event_date {
|
||||
background: #b2833f;
|
||||
font-size: 11px;
|
||||
display: block;
|
||||
text-align: center;
|
||||
height: auto;
|
||||
padding: 7px 3px;
|
||||
color: #fff;
|
||||
}
|
@ -879,6 +879,13 @@ if (!function_exists('change_wc_event_product_status')) {
|
||||
}
|
||||
echo mep_get_event_status($event_date);
|
||||
break;
|
||||
|
||||
|
||||
case 'mep_event_date' :
|
||||
|
||||
echo "<span class='mep_event_date'>" . get_mep_datetime(get_post_meta($post_id,'event_start_datetime',true),'date-time-text')."</span>";
|
||||
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
@ -1280,12 +1287,30 @@ if (!function_exists('mep_get_label')) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
add_filter( 'manage_edit-mep_events_sortable_columns', 'mep_set_column_soartable' );
|
||||
if (!function_exists('mep_set_column_soartable')) {
|
||||
function mep_set_column_soartable( $columns ) {
|
||||
$columns['mep_event_date'] = 'event_start_datetime';
|
||||
|
||||
//To make a column 'un-sortable' remove it from the array
|
||||
//unset($columns['mep_event_date']);
|
||||
|
||||
return $columns;
|
||||
}
|
||||
}
|
||||
|
||||
// Add the custom columns to the book post type:
|
||||
add_filter( 'manage_mep_events_posts_columns', 'mep_set_custom_edit_event_columns' );
|
||||
// add_filter( 'manage_mep_events_sortable_column', 'mep_set_custom_edit_event_columns' );
|
||||
if (!function_exists('mep_set_custom_edit_event_columns')) {
|
||||
function mep_set_custom_edit_event_columns($columns) {
|
||||
unset( $columns['date'] );
|
||||
$columns['mep_status'] = __( 'Status', 'mage-eventpress' );
|
||||
$columns['mep_event_date'] = __( 'Event Start Date', 'mage-eventpress' );
|
||||
return $columns;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user