Version Description
Download this release
Release Info
Developer | MotoPress |
Plugin | Timetable and Event Schedule by MotoPress |
Version | 2.3.18 |
Comparing to | |
See all releases |
Code changes from version 2.3.16 to 2.3.18
- admin/help/index.php +1 -1
- media/css/block-editor.css +1 -1
- media/less/block-editor.less +6 -2
- mp-timetable.php +48 -17
- readme.txt +12 -2
admin/help/index.php
CHANGED
@@ -34,7 +34,7 @@
|
|
34 |
<ol>
|
35 |
<li>Find "TimeTable" icon on TinyMCE panel in Classic Editor.</li>
|
36 |
<li>Build Timetable shortcode manually.
|
37 |
-
<p>Shortcode <code>[mp-timetable
|
38 |
<ul>
|
39 |
<li><code>col</code> - comma-separated column IDs.</li>
|
40 |
<li><code>events</code> - comma-separated event IDs.</li>
|
34 |
<ol>
|
35 |
<li>Find "TimeTable" icon on TinyMCE panel in Classic Editor.</li>
|
36 |
<li>Build Timetable shortcode manually.
|
37 |
+
<p>Shortcode <code>[mp-timetable title="1"]</code> attributes:</p>
|
38 |
<ul>
|
39 |
<li><code>col</code> - comma-separated column IDs.</li>
|
40 |
<li><code>events</code> - comma-separated event IDs.</li>
|
media/css/block-editor.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.wp-block[data-type="mp-timetable/timetable"] div[data-block]{overflow:auto}body.branch-5-6 .components-select-control.timetable-wp56-fix .components-select-control__input{height:auto!important}body.branch-5-6 .components-select-control.timetable-wp56-fix .components-input-control__suffix{display:none!important}
|
1 |
+
.wp-block[data-type="mp-timetable/timetable"] div[data-block]{overflow:auto}body.branch-5-6 .components-select-control.timetable-wp56-fix .components-select-control__input,body.branch-5-7 .components-select-control.timetable-wp56-fix .components-select-control__input{height:auto!important}body.branch-5-6 .components-select-control.timetable-wp56-fix .components-input-control__suffix,body.branch-5-7 .components-select-control.timetable-wp56-fix .components-input-control__suffix{display:none!important}
|
media/less/block-editor.less
CHANGED
@@ -4,10 +4,14 @@
|
|
4 |
|
5 |
/*
|
6 |
* TODO: WordPress 5.6 Select Multiple Fix
|
|
|
|
|
7 |
*/
|
8 |
-
body.branch-5-6 .components-select-control.timetable-wp56-fix .components-select-control__input
|
|
|
9 |
height: auto !important;
|
10 |
}
|
11 |
-
body.branch-5-6 .components-select-control.timetable-wp56-fix .components-input-control__suffix
|
|
|
12 |
display: none !important;
|
13 |
}
|
4 |
|
5 |
/*
|
6 |
* TODO: WordPress 5.6 Select Multiple Fix
|
7 |
+
* https://github.com/WordPress/gutenberg/issues/27166
|
8 |
+
*
|
9 |
*/
|
10 |
+
body.branch-5-6 .components-select-control.timetable-wp56-fix .components-select-control__input,
|
11 |
+
body.branch-5-7 .components-select-control.timetable-wp56-fix .components-select-control__input {
|
12 |
height: auto !important;
|
13 |
}
|
14 |
+
body.branch-5-6 .components-select-control.timetable-wp56-fix .components-input-control__suffix,
|
15 |
+
body.branch-5-7 .components-select-control.timetable-wp56-fix .components-input-control__suffix {
|
16 |
display: none !important;
|
17 |
}
|
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
|
@@ -48,7 +48,13 @@ register_deactivation_hook( __FILE__, array( 'Mp_Time_Table', 'on_deactivation'
|
|
48 |
register_uninstall_hook( __FILE__, array( 'Mp_Time_Table', 'on_uninstall' ) );
|
49 |
|
50 |
add_action( 'plugins_loaded', array( 'Mp_Time_Table', 'init' ) );
|
51 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
add_filter( 'wpmu_drop_tables', array( 'Mp_Time_Table', 'on_delete_blog' ) );
|
53 |
|
54 |
/**
|
@@ -187,14 +193,39 @@ class Mp_Time_Table {
|
|
187 |
/**
|
188 |
* On activation
|
189 |
*/
|
190 |
-
public static function on_activation() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
191 |
// Register post type
|
192 |
Core::get_instance()->register_all_post_type();
|
193 |
|
194 |
// Register taxonomy all
|
195 |
Core::get_instance()->register_all_taxonomies();
|
196 |
|
197 |
-
flush_rewrite_rules();
|
198 |
|
199 |
//Create table in not exists
|
200 |
Core::get_instance()->create_table();
|
@@ -204,7 +235,7 @@ class Mp_Time_Table {
|
|
204 |
* On deactivation
|
205 |
*/
|
206 |
public static function on_deactivation() {
|
207 |
-
flush_rewrite_rules();
|
208 |
}
|
209 |
|
210 |
/**
|
@@ -217,22 +248,22 @@ class Mp_Time_Table {
|
|
217 |
/**
|
218 |
* On create blog
|
219 |
*
|
220 |
-
* @param $
|
221 |
-
* @param $user_id
|
222 |
-
* @param $domain
|
223 |
-
* @param $path
|
224 |
-
* @param $site_id
|
225 |
-
* @param $meta
|
226 |
*/
|
227 |
-
public static function on_create_blog( $
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
|
|
|
|
|
|
|
|
|
|
232 |
restore_current_blog();
|
233 |
}
|
234 |
}
|
235 |
-
|
236 |
/**
|
237 |
* Get plugin name
|
238 |
*
|
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.18
|
8 |
* Author: MotoPress
|
9 |
* Author URI: https://motopress.com
|
10 |
* License: GPLv2 or later
|
48 |
register_uninstall_hook( __FILE__, array( 'Mp_Time_Table', 'on_uninstall' ) );
|
49 |
|
50 |
add_action( 'plugins_loaded', array( 'Mp_Time_Table', 'init' ) );
|
51 |
+
|
52 |
+
if ( version_compare( get_bloginfo( 'version' ), '5.1', '>=' ) ) {
|
53 |
+
add_action( 'wp_insert_site', array( 'Mp_Time_Table', 'on_create_blog' ) );
|
54 |
+
} else {
|
55 |
+
add_action( 'wpmu_new_blog', array( 'Mp_Time_Table', 'on_create_blog' ) );
|
56 |
+
}
|
57 |
+
|
58 |
add_filter( 'wpmu_drop_tables', array( 'Mp_Time_Table', 'on_delete_blog' ) );
|
59 |
|
60 |
/**
|
193 |
/**
|
194 |
* On activation
|
195 |
*/
|
196 |
+
public static function on_activation( $network_wide = false ) {
|
197 |
+
|
198 |
+
if ( $network_wide && is_multisite() ) {
|
199 |
+
|
200 |
+
$sites = get_sites();
|
201 |
+
|
202 |
+
foreach( $sites as $site ) {
|
203 |
+
|
204 |
+
$blog_id = $site->blog_id;
|
205 |
+
|
206 |
+
switch_to_blog( $blog_id );
|
207 |
+
Mp_Time_Table::install();
|
208 |
+
restore_current_blog();
|
209 |
+
|
210 |
+
}
|
211 |
+
} else {
|
212 |
+
|
213 |
+
Mp_Time_Table::install();
|
214 |
+
|
215 |
+
}
|
216 |
+
}
|
217 |
+
|
218 |
+
/**
|
219 |
+
* Install
|
220 |
+
*/
|
221 |
+
public static function install() {
|
222 |
// Register post type
|
223 |
Core::get_instance()->register_all_post_type();
|
224 |
|
225 |
// Register taxonomy all
|
226 |
Core::get_instance()->register_all_taxonomies();
|
227 |
|
228 |
+
flush_rewrite_rules( false );
|
229 |
|
230 |
//Create table in not exists
|
231 |
Core::get_instance()->create_table();
|
235 |
* On deactivation
|
236 |
*/
|
237 |
public static function on_deactivation() {
|
238 |
+
flush_rewrite_rules( false );
|
239 |
}
|
240 |
|
241 |
/**
|
248 |
/**
|
249 |
* On create blog
|
250 |
*
|
251 |
+
* @param int|WP_Site $blog
|
|
|
|
|
|
|
|
|
|
|
252 |
*/
|
253 |
+
public static function on_create_blog( $blog ) {
|
254 |
+
|
255 |
+
if ( is_plugin_active_for_network( MP_TT_PLUGIN_BASENAME ) ) {
|
256 |
+
|
257 |
+
if ( ! is_int( $blog ) ) {
|
258 |
+
$blog = $blog->id;
|
259 |
+
}
|
260 |
+
|
261 |
+
switch_to_blog( $blog );
|
262 |
+
Mp_Time_Table::install();
|
263 |
restore_current_blog();
|
264 |
}
|
265 |
}
|
266 |
+
|
267 |
/**
|
268 |
* Get plugin name
|
269 |
*
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: MotoPress
|
|
3 |
Donate link: https://motopress.com/
|
4 |
Tags: schedule, timetable, calendar, event, events calendar, dates, event organizer, booking, appointment, upcoming events
|
5 |
Requires at least: 4.6
|
6 |
-
Tested up to: 5.
|
7 |
Stable tag: trunk
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -59,6 +59,10 @@ Want to take automatic online appointment reservations through your website for
|
|
59 |
|
60 |
[Hourly Appointment Booking](https://motopress.com/products/appointment-booking/?utm_source=wp_org_tt_page&utm_medium=text_link&utm_campaign=appointment_plugin) is our custom-crafted plugin optimized for easy appointment scheduling and quick online reservations.
|
61 |
|
|
|
|
|
|
|
|
|
62 |
== Installation ==
|
63 |
|
64 |
1. Upload the plugin files to the /wp-content/plugins/ directory
|
@@ -89,7 +93,13 @@ Plugin bundles the following third-party resources:
|
|
89 |
|
90 |
== Changelog ==
|
91 |
|
92 |
-
= 2.3.
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
* Bug fix: fixed PHP parse error in PHP 7.2.
|
94 |
|
95 |
= 2.3.15, Feb 17 2021 =
|
3 |
Donate link: https://motopress.com/
|
4 |
Tags: schedule, timetable, calendar, event, events calendar, dates, event organizer, booking, appointment, upcoming events
|
5 |
Requires at least: 4.6
|
6 |
+
Tested up to: 5.7
|
7 |
Stable tag: trunk
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
59 |
|
60 |
[Hourly Appointment Booking](https://motopress.com/products/appointment-booking/?utm_source=wp_org_tt_page&utm_medium=text_link&utm_campaign=appointment_plugin) is our custom-crafted plugin optimized for easy appointment scheduling and quick online reservations.
|
61 |
|
62 |
+
### Timetable Elementor Widget
|
63 |
+
|
64 |
+
Plan to use the Timetable plugin on your Elementor-built site? Make your customization experience more flawless with the dedicated Timetable widget for Elementor! Using this widget just like any other regular one, you'll be able to choose the layout and style for your events in just a few clicks in the visual builder. For example, you'll be able to show or hide the event description, customize the table look, choose the mobile behavior and more.
|
65 |
+
|
66 |
== Installation ==
|
67 |
|
68 |
1. Upload the plugin files to the /wp-content/plugins/ directory
|
93 |
|
94 |
== Changelog ==
|
95 |
|
96 |
+
= 2.3.18, Mar 18 2021 =
|
97 |
+
* Improved compatibility with WordPress 5.7.
|
98 |
+
|
99 |
+
= 2.3.17, Mar 3 2021 =
|
100 |
+
* Improved compatibility with WordPress multisite.
|
101 |
+
|
102 |
+
= 2.3.17, Feb 18 2021 =
|
103 |
* Bug fix: fixed PHP parse error in PHP 7.2.
|
104 |
|
105 |
= 2.3.15, Feb 17 2021 =
|