Version Description
Download this release
Release Info
Developer | MotoPress |
Plugin | Timetable and Event Schedule by MotoPress |
Version | 2.3.6 |
Comparing to | |
See all releases |
Code changes from version 2.3.5 to 2.3.6
- classes/class-shortcode.php +3 -1
- media/css/style.css +1 -1
- media/less/style.less +11 -0
- mp-timetable.php +1 -1
- readme.txt +3 -0
- templates-functions/action-shortcode-functions.php +4 -1
classes/class-shortcode.php
CHANGED
@@ -89,7 +89,9 @@ class Shortcode extends Core {
|
|
89 |
$mptt_shortcode_data[ 'events_data' ] = $this->get_shortcode_events( $params );
|
90 |
|
91 |
if ( ! empty( $mptt_shortcode_data[ 'events_data' ] ) ) {
|
92 |
-
|
|
|
|
|
93 |
if ( isset( $mptt_shortcode_data[ 'events_data' ][ 'events' ] ) ) {
|
94 |
unset( $mptt_shortcode_data[ 'events_data' ][ 'events' ] );
|
95 |
}
|
89 |
$mptt_shortcode_data[ 'events_data' ] = $this->get_shortcode_events( $params );
|
90 |
|
91 |
if ( ! empty( $mptt_shortcode_data[ 'events_data' ] ) ) {
|
92 |
+
if ( isset($mptt_shortcode_data[ 'events_data' ][ 'unique_events' ]) ) {
|
93 |
+
$mptt_shortcode_data[ 'unique_events' ] = $mptt_shortcode_data[ 'events_data' ][ 'unique_events' ];
|
94 |
+
}
|
95 |
if ( isset( $mptt_shortcode_data[ 'events_data' ][ 'events' ] ) ) {
|
96 |
unset( $mptt_shortcode_data[ 'events_data' ][ 'events' ] );
|
97 |
}
|
media/css/style.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.mptt-main-wrapper .mptt-column.events-list .event .event-user .avatar,.mptt-main-wrapper .mptt-event.events-list .event .event-user .avatar{border-radius:50%}.twentyfourteen .tfmp{padding:12px 10px 0;max-width:474px;margin:0 auto}.twentyfourteen .tfmp div.product.hentry.has-post-thumbnail{margin-top:0}.twentythirteen h1{margin:0}.twentythirteen ul{padding:0}@media screen and (min-width:673px){.twentyfourteen .tfmp{padding-right:30px;padding-left:30px}}@media screen and (min-width:1040px){.twentyfourteen .tfmp{padding-right:15px;padding-left:15px}}@media screen and (min-width:1110px){.twentyfourteen .tfmp{padding-right:30px;padding-left:30px}}@media screen and (min-width:1218px){.twentyfourteen .tfmp{margin-right:54px}.full-width .twentyfourteen .tfmp{margin-right:auto}}.twentyfifteen .t15mp{padding-left:7.6923%;padding-right:7.6923%;padding-top:7.6923%;margin-bottom:7.6923%;background:#fff;-webkit-box-shadow:0 0 1px rgba(0,0,0,.15);box-shadow:0 0 1px rgba(0,0,0,.15)}.twentyfifteen .mptt-sidebar .widget.mptt-container{padding:0}@media screen and (min-width:38.75em){.twentyfifteen .t15mp{margin-right:7.6923%;margin-left:7.6923%;margin-top:8.3333%}}@media screen and (min-width:59.6875em){.twentyfifteen .t15mp{margin-left:8.3333%;margin-right:8.3333%;padding:10%}.single-product .twentyfifteen .entry-summary{padding:0!important}}.twentysixteen .site-main{margin-right:7.6923%;margin-left:7.6923%}.twentysixteen .entry-summary{margin-right:0;margin-left:0}@media screen and (min-width:44.375em){.twentysixteen .site-main{margin-right:23.0769%}}@media screen and (min-width:56.875em){.twentysixteen .site-main{margin-right:0;margin-left:0}}.mptt-column .event[id^=event_columns_],.mptt-theme-mode-event.event{overflow:auto}.mptt-main-wrapper.mp-event-item img:not(.avatar ){width:100%;height:auto}.mptt-main-wrapper .mptt-content{width:66.999%;margin-right:3%;float:left}.mptt-main-wrapper .mptt-sidebar{width:30%;float:left}.mptt-main-wrapper .event-title{margin:0 0 2rem}.mptt-main-wrapper .thumbnail-wrapper{margin-bottom:1rem}.mptt-main-wrapper .event-content,.mptt-main-wrapper .timeslots-title{margin:1rem 0}.mptt-main-wrapper .mptt-event.events-list{margin:0 0 1rem 2rem;list-style:none;padding:0}.mptt-main-wrapper .mptt-event.events-list .event{list-style:outside;padding:1rem}.mptt-main-wrapper .mptt-event.events-list .event .event-subtitle,.mptt-main-wrapper .mptt-event.events-list .event .event-title,.mptt-main-wrapper .mptt-event.events-list .event .event-user,.mptt-main-wrapper .mptt-event.events-list .event .timeslot{margin:.25rem 0 0;padding:0}.mptt-main-wrapper .mptt-event.events-list .event .event-description{margin:.25rem 0 0;padding:0;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}.mptt-main-wrapper .mptt-event.events-list .event:last-child{margin-bottom:0}.mptt-main-wrapper .column-title{margin:0 0 2rem}.mptt-main-wrapper .column-content{margin:1rem 0}.mptt-main-wrapper .mptt-column.events-list{margin:0 0 2rem;list-style:none;padding:0}.mptt-main-wrapper .mptt-column.events-list .event{list-style:none;padding:1rem}.mptt-main-wrapper .mptt-column.events-list .event .event-thumbnail{float:left;margin:0 2rem 2rem 0}.mptt-main-wrapper .mptt-column.events-list .event .event-title{clear:none;margin:0 0 .25rem;padding:0}.mptt-main-wrapper .mptt-column.events-list .event .event-subtitle,.mptt-main-wrapper .mptt-column.events-list .event .event-user,.mptt-main-wrapper .mptt-column.events-list .event .timeslot{margin:.25rem 0 0;padding:0}.mptt-main-wrapper .mptt-column.events-list .event .event-description{margin:.25rem 0 0;padding:0;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}.upcoming-events-widget{margin-top:2rem}.upcoming-events-widget .mptt-widget.events-list{list-style:none;margin:0;padding:0}.upcoming-events-widget .mptt-widget.events-list .event{list-style:none;margin-bottom:2rem;padding:.5rem 2rem;border:none;border-left:3px solid #3b5998}.upcoming-events-widget .mptt-widget.events-list .event .event-title{margin:0 0 .25rem;padding:0}.upcoming-events-widget .mptt-widget.events-list .event .column-title,.upcoming-events-widget .mptt-widget.events-list .event .event-user,.upcoming-events-widget .mptt-widget.events-list .event .timeslot{margin:.25rem 0 0;padding:0}.upcoming-events-widget .mptt-widget.events-list .event.mptt-colorized .event-title{margin:0 0 .25rem;padding:0;color:inherit}.upcoming-events-widget .mptt-widget.events-list .event.mptt-colorized .event-title .event-link{color:inherit}.mptt-hidden{display:none;opacity:0;clear:both}.mprm_ie_browser .mptt-inner-event-content{width:100%}.mptt-container{list-style:none}.mptt-shortcode-wrapper .mptt-shortcode-event .mptt-event-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.mptt-shortcode-wrapper .mptt-shortcode-event .mptt-event-container:hover{display:-webkit-box;display:-ms-flexbox;display:flex}.mptt-shortcode-wrapper .mptt-shortcode-event.mptt-event-vertical-top .mptt-event-container{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-line-pack:start;align-content:flex-start}.mptt-shortcode-wrapper .mptt-shortcode-event.mptt-event-vertical-middle .mptt-event-container{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-ms-flex-line-pack:center;align-content:center}.mptt-shortcode-wrapper .mptt-shortcode-event.mptt-event-vertical-bottom .mptt-event-container{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-line-pack:end;align-content:flex-end}.mptt-shortcode-wrapper .mptt-shortcode-table{margin-top:1rem}.mptt-shortcode-wrapper .mptt-shortcode-table tr.mptt-shortcode-row th{background-color:#f0f0f0;border:1px solid #fff;text-align:center;color:#404040;padding:.25rem 1rem;overflow-wrap:normal;-webkit-hyphens:none;-ms-hyphens:none;hyphens:none}.mptt-shortcode-wrapper .mptt-shortcode-table tbody tr:nth-child(2n+2){background-color:#f0f0f0}.mptt-shortcode-wrapper .mptt-shortcode-table tbody td{position:relative;border:1px solid #fff;padding:0;line-height:normal;-webkit-box-sizing:initial;box-sizing:initial}.mptt-shortcode-wrapper .mptt-shortcode-table tbody td.event{background-color:#3b5998}.mptt-shortcode-wrapper .mptt-shortcode-table tbody td.mptt-shortcode-hours{padding:0 1rem!important;white-space:nowrap;width:1%;vertical-align:middle}.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container{position:absolute;top:0;right:0;left:0;z-index:3;overflow:hidden;outline:#fff solid 1px;color:inherit}.mptt-shortcode-wrapper .mptt-shortcode-table.mptt-theme-mode tbody td.event .event-user img,.mptt-theme-mode-event.event .event-user img{position:relative}.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container:hover{background-color:inherit;overflow:visible;z-index:10}.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container:hover .event-title{text-decoration:underline}.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container p{color:inherit}.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container .event-title{color:inherit;display:inline-block;margin:.5rem .25rem .25rem;text-decoration:none;font-size:1.1em}.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container .event-subtitle,.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container .event-user{margin:.25rem;font-size:.8em}.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container .event-user .avatar{border-radius:50%;margin-right:3px;display:inline-block;vertical-align:middle}.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container .event-description{font-size:.8em;margin:.25rem;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container .timeslot{font-size:.9em;margin:.25rem}.mptt-shortcode-wrapper .mptt-shortcode-table.mptt-theme-mode tbody tr:nth-child(2n+2) td.event{background-color:inherit}.mptt-shortcode-wrapper .mptt-shortcode-table.mptt-theme-mode tbody td.event{background-color:#fff}.mptt-shortcode-wrapper .mptt-navigation-tabs{margin:0 0 1rem;list-style-type:none}.mptt-shortcode-wrapper .mptt-navigation-tabs li{display:inline-block;padding:.25rem .5rem .25rem 0}.mptt-shortcode-wrapper .mptt-shortcode-list{display:none}.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column,.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column .mptt-column-title{margin:2rem 0}.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column .mptt-events-list{list-style:none;margin:2rem;padding:0}.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column .mptt-events-list .mptt-list-event{list-style:none;margin-bottom:2rem;padding:0 0 0 2rem;border-left:3px solid #3b5998}.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column .mptt-events-list .mptt-list-event .event-user,.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column .mptt-events-list .mptt-list-event .mptt-event-title,.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column .mptt-events-list .mptt-list-event .timeslot{margin:.25rem 0 0;padding:0}.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column .mptt-events-list .mptt-list-event .event-description{margin:.25rem 0 0;padding:0;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}.mptt-shortcode-wrapper.mptt-table-fixed{overflow-x:scroll}.mptt-shortcode-wrapper.mptt-table-fixed .mptt-shortcode-table{table-layout:auto}.mptt-shortcode-wrapper.mptt-table-fixed tbody,.mptt-shortcode-wrapper.mptt-table-fixed thead{width:100%}.mptt-shortcode-wrapper td{vertical-align:middle}@media (max-width:767px){.mptt-main-wrapper .mptt-content,.mptt-main-wrapper .mptt-sidebar{padding:0 2rem 2rem;width:100%}.mptt-shortcode-wrapper .mptt-shortcode-list{display:block}.mptt-shortcode-wrapper.mptt-table-fixed .mptt-shortcode-list{display:none!important}.mptt-shortcode-wrapper.mptt-table-fixed .mptt-shortcode-table{display:table}.mptt-shortcode-wrapper.mptt-table-fixed .mptt-shortcode-table td.event{min-width:200px}.mptt-shortcode-wrapper.mptt-table-responsive .mptt-shortcode-table{display:none!important}}.mptt-clearfix:after,.mptt-clearfix:before{display:table;content:"";line-height:0}.mptt-clearfix:after{clear:both}.twentysixteen.mptt-shortcode-wrapper .event-title{-webkit-box-shadow:none;box-shadow:none}.twentyfifteen.mptt-shortcode-wrapper .event-title{border-bottom:none}.twentyfourteen .mptt-content{width:100%;margin:0}
|
1 |
+
.twentyfourteen .tfmp{padding:12px 10px 0;max-width:474px;margin:0 auto}.twentyfourteen .tfmp div.product.hentry.has-post-thumbnail{margin-top:0}.twentythirteen h1{margin:0}.twentythirteen ul{padding:0}@media screen and (min-width:673px){.twentyfourteen .tfmp{padding-right:30px;padding-left:30px}}@media screen and (min-width:1040px){.twentyfourteen .tfmp{padding-right:15px;padding-left:15px}}@media screen and (min-width:1110px){.twentyfourteen .tfmp{padding-right:30px;padding-left:30px}}@media screen and (min-width:1218px){.twentyfourteen .tfmp{margin-right:54px}.full-width .twentyfourteen .tfmp{margin-right:auto}}.twentyfifteen .t15mp{padding-left:7.6923%;padding-right:7.6923%;padding-top:7.6923%;margin-bottom:7.6923%;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.15)}.twentyfifteen .mptt-sidebar .widget.mptt-container{padding:0}@media screen and (min-width:38.75em){.twentyfifteen .t15mp{margin-right:7.6923%;margin-left:7.6923%;margin-top:8.3333%}}@media screen and (min-width:59.6875em){.twentyfifteen .t15mp{margin-left:8.3333%;margin-right:8.3333%;padding:10%}.single-product .twentyfifteen .entry-summary{padding:0!important}}.twentysixteen .site-main{margin-right:7.6923%;margin-left:7.6923%}.twentysixteen .entry-summary{margin-right:0;margin-left:0}@media screen and (min-width:44.375em){.twentysixteen .site-main{margin-right:23.0769%}}@media screen and (min-width:56.875em){.twentysixteen .site-main{margin-right:0;margin-left:0}}.mptt-column .event[id^=event_columns_],.mptt-theme-mode-event.event{overflow:auto}.mptt-main-wrapper.mp-event-item img:not(.avatar ){width:100%;height:auto}.mptt-main-wrapper .mptt-content{width:66.999%;margin-right:3%;float:left}.mptt-main-wrapper .mptt-sidebar{width:30%;float:left}.mptt-main-wrapper .event-title{margin:0 0 2rem}.mptt-main-wrapper .thumbnail-wrapper{margin-bottom:1rem}.mptt-main-wrapper .event-content,.mptt-main-wrapper .timeslots-title{margin:1rem 0}.mptt-main-wrapper .mptt-event.events-list{margin:0 0 1rem 2rem;list-style:none;padding:0}.mptt-main-wrapper .mptt-event.events-list .event{list-style:outside;padding:1rem}.mptt-main-wrapper .mptt-event.events-list .event .event-subtitle,.mptt-main-wrapper .mptt-event.events-list .event .event-title,.mptt-main-wrapper .mptt-event.events-list .event .event-user,.mptt-main-wrapper .mptt-event.events-list .event .timeslot{margin:.25rem 0 0;padding:0}.mptt-main-wrapper .mptt-event.events-list .event .event-description{margin:.25rem 0 0;padding:0;hyphens:auto}.mptt-main-wrapper .mptt-event.events-list .event .event-user .avatar{border-radius:50%}.mptt-main-wrapper .mptt-event.events-list .event:last-child{margin-bottom:0}.mptt-main-wrapper .column-title{margin:0 0 2rem}.mptt-main-wrapper .column-content{margin:1rem 0}.mptt-main-wrapper .mptt-column.events-list{margin:0 0 2rem;list-style:none;padding:0}.mptt-main-wrapper .mptt-column.events-list .event{list-style:none;padding:1rem}.mptt-main-wrapper .mptt-column.events-list .event .event-thumbnail{float:left;margin:0 2rem 2rem 0}.mptt-main-wrapper .mptt-column.events-list .event .event-title{clear:none;margin:0 0 .25rem;padding:0}.mptt-main-wrapper .mptt-column.events-list .event .event-subtitle,.mptt-main-wrapper .mptt-column.events-list .event .event-user,.mptt-main-wrapper .mptt-column.events-list .event .timeslot{margin:.25rem 0 0;padding:0}.mptt-main-wrapper .mptt-column.events-list .event .event-description{margin:.25rem 0 0;padding:0;hyphens:auto}.mptt-main-wrapper .mptt-column.events-list .event .event-user .avatar{border-radius:50%}.upcoming-events-widget{margin-top:2rem}.upcoming-events-widget .mptt-widget.events-list{list-style:none;margin:0;padding:0}.upcoming-events-widget .mptt-widget.events-list .event{list-style:none;margin-bottom:2rem;padding:.5rem 2rem;border:none;border-left:3px solid #3b5998}.upcoming-events-widget .mptt-widget.events-list .event .event-title{margin:0 0 .25rem;padding:0}.upcoming-events-widget .mptt-widget.events-list .event .column-title,.upcoming-events-widget .mptt-widget.events-list .event .event-user,.upcoming-events-widget .mptt-widget.events-list .event .timeslot{margin:.25rem 0 0;padding:0}.upcoming-events-widget .mptt-widget.events-list .event.mptt-colorized .event-title{margin:0 0 .25rem;padding:0;color:inherit}.upcoming-events-widget .mptt-widget.events-list .event.mptt-colorized .event-title .event-link{color:inherit}.mptt-hidden{display:none;opacity:0;clear:both}.mprm_ie_browser .mptt-inner-event-content{width:100%}.mptt-container{list-style:none}.mptt-shortcode-wrapper .mptt-shortcode-event .mptt-event-container{display:flex;flex-direction:column}.mptt-shortcode-wrapper .mptt-shortcode-event .mptt-event-container:hover{display:flex}.mptt-shortcode-wrapper .mptt-shortcode-event.mptt-event-vertical-top .mptt-event-container{justify-content:flex-start;align-content:flex-start}.mptt-shortcode-wrapper .mptt-shortcode-event.mptt-event-vertical-middle .mptt-event-container{justify-content:center;align-content:center}.mptt-shortcode-wrapper .mptt-shortcode-event.mptt-event-vertical-bottom .mptt-event-container{justify-content:flex-end;align-content:flex-end}.mptt-shortcode-wrapper .mptt-shortcode-table{margin-top:1rem}.mptt-shortcode-wrapper .mptt-shortcode-table tr.mptt-shortcode-row th{background-color:#f0f0f0;border:1px solid #fff;text-align:center;color:#404040;padding:.25rem 1rem;overflow-wrap:normal;hyphens:none}.mptt-shortcode-wrapper .mptt-shortcode-table tbody tr:nth-child(2n+2){background-color:#f0f0f0}.mptt-shortcode-wrapper .mptt-shortcode-table tbody td{position:relative;border:1px solid #fff;padding:0;line-height:normal;box-sizing:initial}.mptt-shortcode-wrapper .mptt-shortcode-table tbody td.event{background-color:#3b5998}.mptt-shortcode-wrapper .mptt-shortcode-table tbody td.mptt-shortcode-hours{padding:0 1rem!important;white-space:nowrap;width:1%;vertical-align:middle}.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container{position:absolute;top:0;right:0;left:0;z-index:3;overflow:hidden;outline:#fff solid 1px;color:inherit}.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container:hover{background-color:inherit;overflow:visible;z-index:10}.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container:hover .event-title{text-decoration:underline}.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container p{color:inherit}.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container .event-title{color:inherit;display:inline-block;margin:.5rem .25rem .25rem;text-decoration:none;font-size:1.1em}.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container .event-subtitle,.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container .event-user{margin:.25rem;font-size:.8em}.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container .event-user .avatar{border-radius:50%;margin-right:3px;display:inline-block;vertical-align:middle}.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container .event-description{font-size:.8em;margin:.25rem;hyphens:auto}.mptt-shortcode-wrapper .mptt-shortcode-table tbody .mptt-event-container .timeslot{font-size:.9em;margin:.25rem}.mptt-shortcode-wrapper .mptt-shortcode-table.mptt-theme-mode tbody tr:nth-child(2n+2) td.event{background-color:inherit}.mptt-shortcode-wrapper .mptt-shortcode-table.mptt-theme-mode tbody td.event{background-color:#fff}.mptt-shortcode-wrapper .mptt-shortcode-table.mptt-theme-mode tbody td.event .event-user img{position:relative}.mptt-shortcode-wrapper .mptt-navigation-tabs{margin:0 0 1rem;list-style-type:none}.mptt-shortcode-wrapper .mptt-navigation-tabs li{display:inline-block;padding:.25rem .5rem .25rem 0}.mptt-shortcode-wrapper .mptt-shortcode-list{display:none}.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column,.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column .mptt-column-title{margin:2rem 0}.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column .mptt-events-list{list-style:none;margin:2rem;padding:0}.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column .mptt-events-list .mptt-list-event{list-style:none;margin-bottom:2rem;padding:0 0 0 2rem;border-left:3px solid #3b5998}.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column .mptt-events-list .mptt-list-event .event-user,.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column .mptt-events-list .mptt-list-event .mptt-event-title,.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column .mptt-events-list .mptt-list-event .timeslot{margin:.25rem 0 0;padding:0}.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column .mptt-events-list .mptt-list-event .event-description,.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column .mptt-events-list .mptt-list-event .event-subtitle{margin:.25rem 0 0;padding:0;hyphens:auto}.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column .mptt-events-list .mptt-list-event .event-user{margin:.25rem 0 0;padding:0}.mptt-shortcode-wrapper .mptt-shortcode-list .mptt-column .mptt-events-list .mptt-list-event .event-user .avatar{border-radius:50%;margin-right:3px;display:inline-block;vertical-align:middle}.mptt-shortcode-wrapper.mptt-table-fixed{overflow-x:scroll}.mptt-shortcode-wrapper.mptt-table-fixed .mptt-shortcode-table{table-layout:auto}.mptt-shortcode-wrapper.mptt-table-fixed tbody,.mptt-shortcode-wrapper.mptt-table-fixed thead{width:100%}.mptt-shortcode-wrapper td{vertical-align:middle}@media (max-width:767px){.mptt-main-wrapper .mptt-content,.mptt-main-wrapper .mptt-sidebar{padding:0 2rem 2rem;width:100%}.mptt-shortcode-wrapper .mptt-shortcode-list{display:block}.mptt-shortcode-wrapper.mptt-table-fixed .mptt-shortcode-list{display:none!important}.mptt-shortcode-wrapper.mptt-table-fixed .mptt-shortcode-table{display:table}.mptt-shortcode-wrapper.mptt-table-fixed .mptt-shortcode-table td.event{min-width:200px}.mptt-shortcode-wrapper.mptt-table-responsive .mptt-shortcode-table{display:none!important}}.mptt-clearfix{*zoom:1}.mptt-clearfix:after,.mptt-clearfix:before{display:table;content:"";line-height:0}.mptt-clearfix:after{clear:both}.twentysixteen.mptt-shortcode-wrapper .event-title{box-shadow:none}.mptt-theme-mode-event.event .event-user img{position:relative}.twentyfifteen.mptt-shortcode-wrapper .event-title{border-bottom:none}.twentyfourteen .mptt-content{width:100%;margin:0}
|
media/less/style.less
CHANGED
@@ -351,6 +351,11 @@
|
|
351 |
margin: 0.25rem 0 0;
|
352 |
padding: 0;
|
353 |
}
|
|
|
|
|
|
|
|
|
|
|
354 |
.event-description {
|
355 |
margin: 0.25rem 0 0;
|
356 |
padding: 0;
|
@@ -359,6 +364,12 @@
|
|
359 |
.event-user {
|
360 |
margin: 0.25rem 0 0;
|
361 |
padding: 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
362 |
}
|
363 |
}
|
364 |
}
|
351 |
margin: 0.25rem 0 0;
|
352 |
padding: 0;
|
353 |
}
|
354 |
+
.event-subtitle {
|
355 |
+
margin: 0.25rem 0 0;
|
356 |
+
padding: 0;
|
357 |
+
hyphens: auto;
|
358 |
+
}
|
359 |
.event-description {
|
360 |
margin: 0.25rem 0 0;
|
361 |
padding: 0;
|
364 |
.event-user {
|
365 |
margin: 0.25rem 0 0;
|
366 |
padding: 0;
|
367 |
+
.avatar {
|
368 |
+
border-radius: 50%;
|
369 |
+
margin-right: 3px;
|
370 |
+
display: inline-block;
|
371 |
+
vertical-align: middle;
|
372 |
+
}
|
373 |
}
|
374 |
}
|
375 |
}
|
mp-timetable.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Timetable and Event Schedule
|
5 |
* Plugin URI: https://motopress.com/products/timetable-event-schedule/
|
6 |
* Description: Smart time-management tool with a clean minimalist design for featuring your timetables and upcoming events.
|
7 |
-
* Version: 2.3.
|
8 |
* Author: MotoPress
|
9 |
* Author URI: https://motopress.com
|
10 |
* License: GPLv2 or later
|
4 |
* Plugin Name: Timetable and Event Schedule
|
5 |
* Plugin URI: https://motopress.com/products/timetable-event-schedule/
|
6 |
* Description: Smart time-management tool with a clean minimalist design for featuring your timetables and upcoming events.
|
7 |
+
* Version: 2.3.6
|
8 |
* Author: MotoPress
|
9 |
* Author URI: https://motopress.com
|
10 |
* License: GPLv2 or later
|
readme.txt
CHANGED
@@ -79,6 +79,9 @@ Plugin bundles the following third-party resources:
|
|
79 |
|
80 |
== Changelog ==
|
81 |
|
|
|
|
|
|
|
82 |
= 2.3.5, Feb 19 2020 =
|
83 |
* Bug fix: fixed an issue with slashes in event description.
|
84 |
|
79 |
|
80 |
== Changelog ==
|
81 |
|
82 |
+
= 2.3.6, Feb 19 2020 =
|
83 |
+
* Bug fix: fixed an issue with the missing subtitle in mobile view.
|
84 |
+
|
85 |
= 2.3.5, Feb 19 2020 =
|
86 |
* Bug fix: fixed an issue with slashes in event description.
|
87 |
|
templates-functions/action-shortcode-functions.php
CHANGED
@@ -28,7 +28,7 @@ function mptt_shortcode_template_content_filter() {
|
|
28 |
global $mptt_shortcode_data;
|
29 |
$unique_events = empty( $mptt_shortcode_data[ 'unique_events' ] ) ? array() : $mptt_shortcode_data[ 'unique_events' ];
|
30 |
$style = '';
|
31 |
-
if ( count( $mptt_shortcode_data[ 'events_data' ][ 'unique_events' ] ) < 2 ) {
|
32 |
$style = ' style="display:none;"';
|
33 |
}
|
34 |
$display_label = $mptt_shortcode_data[ 'params' ][ 'hide_label' ] ? 'display: none' : '';
|
@@ -241,6 +241,9 @@ function mptt_shortcode_template_content_responsive_table() {
|
|
241 |
<time datetime="<?php echo $event->event_end; ?>" class="timeslot-end"><?php echo date( get_option( 'time_format' ), strtotime( $event->event_end ) ); ?></time>
|
242 |
</p>
|
243 |
<?php endif;
|
|
|
|
|
|
|
244 |
if ( $mptt_shortcode_data[ 'params' ][ 'description' ] ): ?>
|
245 |
<p class="event-description"><?php
|
246 |
echo stripslashes( $event->description );
|
28 |
global $mptt_shortcode_data;
|
29 |
$unique_events = empty( $mptt_shortcode_data[ 'unique_events' ] ) ? array() : $mptt_shortcode_data[ 'unique_events' ];
|
30 |
$style = '';
|
31 |
+
if ( isset( $mptt_shortcode_data[ 'events_data' ][ 'unique_events' ]) && count( $mptt_shortcode_data[ 'events_data' ][ 'unique_events' ] ) < 2 ) {
|
32 |
$style = ' style="display:none;"';
|
33 |
}
|
34 |
$display_label = $mptt_shortcode_data[ 'params' ][ 'hide_label' ] ? 'display: none' : '';
|
241 |
<time datetime="<?php echo $event->event_end; ?>" class="timeslot-end"><?php echo date( get_option( 'time_format' ), strtotime( $event->event_end ) ); ?></time>
|
242 |
</p>
|
243 |
<?php endif;
|
244 |
+
if ( $mptt_shortcode_data[ 'params' ][ 'sub-title' ] && ! empty( $event->post->sub_title ) ): ?>
|
245 |
+
<p class="event-subtitle"><?php echo $event->post->sub_title; ?></p>
|
246 |
+
<?php endif;
|
247 |
if ( $mptt_shortcode_data[ 'params' ][ 'description' ] ): ?>
|
248 |
<p class="event-description"><?php
|
249 |
echo stripslashes( $event->description );
|