The Events Calendar Shortcode - Version 2.3.1

Version Description

Adds link to full documentation

=

Download this release

Release Info

Developer brianhogg
Plugin Icon 128x128 The Events Calendar Shortcode
Version 2.3.1
Comparing to
See all releases

Code changes from version 2.3 to 2.3.1

readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: event, events, calendar, shortcode, modern tribe
4
  Requires at least: 4.1
5
  Requires PHP: 5.3
6
  Tested up to: 5.4
7
- Stable tag: 2.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -178,126 +178,15 @@ The [pro version of the plugin](https://eventcalendarnewsletter.com/the-events-c
178
 
179
  == Upgrade Notice ==
180
 
181
- = 2.3 =
182
- * Fix for using order='DESC' to order events in descending order by event date, with the latest version of The Events Calendar (by Modern Tribe)
183
-
184
- = 2.2.1 =
185
- * Adds block description
186
-
187
- = 2.2 =
188
- * Compatibility fixes with Divi
189
-
190
- = 2.1 =
191
- * Disables the new WP editor block if Cornerstone page builder is active due to incompatibilities
192
-
193
- = 2.0.2 =
194
- * Additional check if wp_set_script_translations exists (not with the Gutenberg plugin)
195
-
196
- = 2.0.1 =
197
- * Tweaks to handling of default values in the block
198
-
199
- = 2.0 =
200
- * Adds a block in addition to the shortcode that can be used with the new WordPress editor (as of version 5.0) or Gutenberg plugin
201
-
202
- = 1.10.1 =
203
- * Fixing error with very old versions of PHP
204
-
205
- = 1.10 =
206
- * Fix for multi-word category names not working with the "cat" option
207
- * Option to show "powered by" link
208
-
209
- = 1.9 =
210
- * Adds check for minimum WordPress and PHP version
211
- * Adds a link to a short tutorial video
212
- * Changes first example shortcode so it's easier to copy/paste
213
-
214
- = 1.8 =
215
- * Adds new orderby='title' option
216
- * Fixes resetting the WordPress global query instead of just the post data
217
-
218
- = 1.7.3 =
219
- * Hide the "at" when using venue='true' and an event has no venue
220
- * Adds additional WordPress filters to hide certain events
221
-
222
- = 1.7.2 =
223
- * Adds the ability to use schema='false' in the shortcode to hide the schema output
224
-
225
- = 1.7.1 =
226
- * Fix for month option where there's an all-day event the first day of the next month
227
- * Fix for "There are no events" string not being translated automatically into other languages
228
-
229
- = 1.7 =
230
- * Adds structured data to the shortcode output (great for SEO and people finding your events)
231
-
232
- = 1.6.1 =
233
- * Added ecs-featured-event class if event is featured
234
- * Internal changes to filtering by one or more categories
235
-
236
- = 1.6 =
237
- * Changes default ordering by the start date, use orderby="enddate" for previous default ordering
238
-
239
- = 1.5.3 =
240
- * Fixes translation of the "View all events" link into other languages
241
- * Adds orderby parameter to order by start date, but still show events until the end date has passed
242
-
243
- = 1.5.2 =
244
- * Adds 'next' option for showing the next month of events
245
-
246
- = 1.5.1 =
247
- * Adds thumbsize option (ie. medium, large, thumbnail, full)
248
-
249
- = 1.5 =
250
- * Adds ability to translate the plugin into local languages
251
- * Additional description of options
252
-
253
- = 1.4.2 =
254
- * Additional filter for changing the link for an event
255
- * Adds category CSS classes for each event, so you can format each category differently
256
-
257
- = 1.4.1 =
258
- * Additional filters for formatting a single event
259
-
260
- = 1.4 =
261
- * Checks for whether The Events Calendar is installed
262
- * Additional filters
263
- * Improved design of shortcode help page
264
-
265
- = 1.3 =
266
- * Fixes issue with "viewall" showing the events twice
267
- * Fixes time zone issue by using current_time() instead of date()
268
- * Hides events that are marked 'hide from listing'
269
- * Switches to tribe_get_events() to get the events
270
- * Removes the ... from the end of the excerpt if less than the excerpt length
271
- * Adds date_thumb option
272
- * Adds additional filters
273
-
274
- = 1.2 =
275
- * Updates author/description (Event Calendar Newsletter / Brian Hogg Consulting)
276
-
277
- = 1.0.11 =
278
- Add Link to Thumbnail
279
- merge pull request from d4mation -Replaced extracted variables with $atts as using extract was deprecated
280
- =1.0.10 =
281
- Minor Error Change - fix name and slug
282
- = 1.0.9 =
283
- Minor Error Change - Multiple Categories
284
- = 1.0.8 =
285
- Add options : multi-categories - Thanks to sujin2f
286
- = 1.0.7 =
287
- Add options : contentorder, month, past, key - Thanks to sujin2f
288
- = 1.0.6 =
289
- Fix missing ul
290
- = 1.0.5 =
291
- * Add excerpt and thumbnail - Thanks to ankitpokhrel
292
- = 1.0.2 =
293
- * Add venue to shortcode - Thanks to ankitpokhrel
294
- = 1.0.1 =
295
- * Fix Firefox browser compatibility issue
296
- = 1 =
297
- * Initial Release
298
 
299
  == Changelog ==
300
 
 
 
 
 
301
  = 2.3 =
302
  * Fix for using order='DESC' to order events in descending order by event date, with the latest version of The Events Calendar (by Modern Tribe)
303
 
4
  Requires at least: 4.1
5
  Requires PHP: 5.3
6
  Tested up to: 5.4
7
+ Stable tag: 2.3.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
178
 
179
  == Upgrade Notice ==
180
 
181
+ = 2.3.1 =
182
+ Adds link to full documentation
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
183
 
184
  == Changelog ==
185
 
186
+ = 2.3.1 =
187
+ * Adds link to full documentation and short walk-through video
188
+ * Developers: Adds additional param to the ecs_start_tag filter with the number of events
189
+
190
  = 2.3 =
191
  * Fix for using order='DESC' to order events in descending order by event date, with the latest version of The Events Calendar (by Modern Tribe)
192
 
templates/admin-page.php CHANGED
@@ -5,8 +5,8 @@
5
 
6
  <p class="shortcode">[ecs-list-events cat='festival' limit='8']</p>
7
 
8
- <p><a href="https://youtu.be/0okrUs-xOq4" target="_blank"><?php echo esc_html( __( 'Watch a Short Walk Through Video', 'the-events-calendar-shortcode' ) ) ?></a></p>
9
-
10
  <table>
11
  <tbody>
12
  <tr valign="top">
5
 
6
  <p class="shortcode">[ecs-list-events cat='festival' limit='8']</p>
7
 
8
+ <p><a href="https://eventcalendarnewsletter.com/the-events-calendar-shortcode-short-walk-through-video/?utm_source=plugin&utm_medium=link&utm_campaign=full-documentation&utm_content=top" target="_blank"><?php echo esc_html( __( 'Watch a Short Walk Through Video', 'the-events-calendar-shortcode' ) ) ?></a></p>
9
+ <p><a href="https://eventcalendarnewsletter.com/events-calendar-shortcode-pro-options/?utm_source=plugin&utm_medium=link&utm_campaign=full-documentation&utm_content=top" target="_blank"><?php echo esc_html( __( 'View Full Documentation', 'the-events-calendar-shortcode' ) ) ?></a></p>
10
  <table>
11
  <tbody>
12
  <tr valign="top">
the-events-calendar-shortcode.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: The Events Calendar Shortcode & Block
4
  Plugin URI: https://eventcalendarnewsletter.com/the-events-calendar-shortcode/
5
  Description: An addon to add shortcode and new editor block functionality for The Events Calendar Plugin by Modern Tribe.
6
- Version: 2.3
7
  Author: Event Calendar Newsletter
8
  Author URI: https://eventcalendarnewsletter.com/the-events-calendar-shortcode
9
  Contributors: brianhogg
@@ -56,7 +56,7 @@ class Events_Calendar_Shortcode
56
  *
57
  * @since 1.0.0
58
  */
59
- const VERSION = '2.3';
60
 
61
  private $admin_page = null;
62
 
@@ -296,7 +296,7 @@ class Events_Calendar_Shortcode
296
 
297
  if ( $posts or apply_filters( 'ecs_always_show', false, $atts ) ) {
298
  $output = apply_filters( 'ecs_beginning_output', $output, $posts, $atts );
299
- $output .= apply_filters( 'ecs_start_tag', '<ul class="ecs-event-list">', $atts );
300
  $atts['contentorder'] = explode( ',', $atts['contentorder'] );
301
 
302
  foreach( (array) $posts as $post_index => $post ) {
3
  Plugin Name: The Events Calendar Shortcode & Block
4
  Plugin URI: https://eventcalendarnewsletter.com/the-events-calendar-shortcode/
5
  Description: An addon to add shortcode and new editor block functionality for The Events Calendar Plugin by Modern Tribe.
6
+ Version: 2.3.1
7
  Author: Event Calendar Newsletter
8
  Author URI: https://eventcalendarnewsletter.com/the-events-calendar-shortcode
9
  Contributors: brianhogg
56
  *
57
  * @since 1.0.0
58
  */
59
+ const VERSION = '2.3.1';
60
 
61
  private $admin_page = null;
62
 
296
 
297
  if ( $posts or apply_filters( 'ecs_always_show', false, $atts ) ) {
298
  $output = apply_filters( 'ecs_beginning_output', $output, $posts, $atts );
299
+ $output .= apply_filters( 'ecs_start_tag', '<ul class="ecs-event-list">', $atts, count( (array) $posts ) );
300
  $atts['contentorder'] = explode( ',', $atts['contentorder'] );
301
 
302
  foreach( (array) $posts as $post_index => $post ) {