The Events Calendar Shortcode - Version 1.4

Version Description

  • Checks for whether The Events Calendar is installed
  • Additional filters
  • Improved design of shortcode help page
Download this release

Release Info

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

Code changes from version 1.3 to 1.4

readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: brianhogg, dandelionweb, ankitpokhrel, sujin2f
3
  Tags: event, events, calendar, shortcode, modern tribe
4
  Requires at least: 4.0
5
- Tested up to: 4.7
6
- Stable tag: 1.3
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -36,11 +36,12 @@ With this plugin, just add the shortcode on a page to display a list of your eve
36
  * key - Order with Start Date [ecs-list-events cat='festival' key='start date']
37
 
38
  = Pro Version Options: =
39
- * hiderecurring - To only show the first instance of a recurring event, set to 'true'
40
- * tag - Filter by one or more tags. Use commas when you want to filter by multiple tags.
41
  * design - Shows improved design by default, or set to 'standard' for the regular one and 'compact' for a more compact listing
 
 
 
42
 
43
- [Get the Pro Version](https://eventcalendarnewsletter.com/the-events-calendar-shortcode?utm_source=wordpress.org&utm_medium=link&utm_campaign=tecs-readme&utm_content=description)
44
 
45
  This plugin is not developed by or affiliated with The Events Calendar or Modern Tribe in any way.
46
 
@@ -56,7 +57,7 @@ This plugin is not developed by or affiliated with The Events Calendar or Modern
56
  = What are the shortcode Options: =
57
  = Shortcode Options: =
58
  * Basic shortcode: [ecs-list-events]
59
- * cat - Represents event category [ecs-list-events cat='festival'] or specify multiple categories [ecs-list-events cat='festival, workshops']
60
  * limit - Total number of events to show. Default is 5. [ecs-list-events limit='3']
61
  * order - Order of the events to be shown. Value can be 'ASC' or 'DESC'. Default is 'ASC'. Order is based on event date. [ecs-list-events order='DESC']
62
  * date - To show or hide date. Value can be 'true' or 'false'. Default is true. [ecs-list-events eventdetails='false']
@@ -72,13 +73,20 @@ This plugin is not developed by or affiliated with The Events Calendar or Modern
72
  * past - Show Outdated Events. [ecs-list-events cat='festival' past='yes']
73
  * key - Order with Start Date [ecs-list-events cat='festival' key='start date']
74
 
 
 
 
 
 
 
 
75
  = How do I use this shortcode in a widget? =
76
 
77
  * You can put the shortcode in a text widget.
78
  * Not all themes support use of a shortcode in a widget. If a regular text widget doesn't work, put the shortcode in a <a href="https://wordpress.org/plugins/black-studio-tinymce-widget/">Visual Editor Widget</a>.
79
 
80
  = What are the classes for styling the list of events? =
81
- By default the plugin does not include styling. Events are listed in ul li tags with appropriate classes for styling.
82
 
83
  * ul class="ecs-event-list"
84
  * li class="ecs-event"
@@ -88,7 +96,7 @@ By default the plugin does not include styling. Events are listed in ul li tags
88
  * span .ecs-all-events
89
  * p .ecs-excerpt
90
 
91
- Want a better looking design? Check out [The Events Calendar Shortcode PRO](https://eventcalendarnewsletter.com/the-events-calendar-shortcode?utm_source=wordpress.org&utm_medium=link&utm_campaign=tecs-readme-faq&utm_content=description)
92
 
93
  = How do I include a list of events in a page template? =
94
  include echo do_shortcode("[ecs-list-events]"); in the template where you want the events list to display.
@@ -101,6 +109,11 @@ include echo do_shortcode("[ecs-list-events]"); in the template where you want t
101
 
102
  == Upgrade Notice ==
103
 
 
 
 
 
 
104
  = 1.3 =
105
  * Fixes issue with "viewall" showing the events twice
106
  * Fixes time zone issue by using current_time() instead of date()
@@ -137,6 +150,11 @@ Fix missing ul
137
 
138
  == Changelog ==
139
 
 
 
 
 
 
140
  = 1.3 =
141
  * Fixes issue with "viewall" showing the events twice
142
  * Fixes time zone issue by using current_time() instead of date()
2
  Contributors: brianhogg, dandelionweb, ankitpokhrel, sujin2f
3
  Tags: event, events, calendar, shortcode, modern tribe
4
  Requires at least: 4.0
5
+ Tested up to: 4.7.1
6
+ Stable tag: 1.4
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
36
  * key - Order with Start Date [ecs-list-events cat='festival' key='start date']
37
 
38
  = Pro Version Options: =
 
 
39
  * design - Shows improved design by default, or set to 'standard' for the regular one and 'compact' for a more compact listing
40
+ * days - Specify how many days in the future, for example [ecs-list-events days="1"] for one day or [ecs-list-events days="7"] for one week
41
+ * tag - Filter by one or more tags. Use commas when you want to filter by multiple tags.
42
+ * hiderecurring - To only show the first instance of a recurring event, set to 'true'
43
 
44
+ [View Details and Get the Pro Version](https://eventcalendarnewsletter.com/the-events-calendar-shortcode?utm_source=wordpress.org&utm_medium=link&utm_campaign=tecs-readme&utm_content=description)
45
 
46
  This plugin is not developed by or affiliated with The Events Calendar or Modern Tribe in any way.
47
 
57
  = What are the shortcode Options: =
58
  = Shortcode Options: =
59
  * Basic shortcode: [ecs-list-events]
60
+ * cat - Show events from an event category [ecs-list-events cat='festival'] or specify multiple categories [ecs-list-events cat='festival, workshops']
61
  * limit - Total number of events to show. Default is 5. [ecs-list-events limit='3']
62
  * order - Order of the events to be shown. Value can be 'ASC' or 'DESC'. Default is 'ASC'. Order is based on event date. [ecs-list-events order='DESC']
63
  * date - To show or hide date. Value can be 'true' or 'false'. Default is true. [ecs-list-events eventdetails='false']
73
  * past - Show Outdated Events. [ecs-list-events cat='festival' past='yes']
74
  * key - Order with Start Date [ecs-list-events cat='festival' key='start date']
75
 
76
+ With [The Events Calendar Shortcode PRO](https://eventcalendarnewsletter.com/the-events-calendar-shortcode?utm_source=wordpress.org&utm_medium=link&utm_campaign=tecs-readme-faq-options&utm_content=description) you also get the following options:
77
+
78
+ * design - Shows improved design by default, or set to 'standard' for the regular one and 'compact' for a more compact listing
79
+ * days - Number of days to show events for ie. [ecs-list-events days='7'] (for a week)
80
+ * hiderecurring - Show only the first instance of a recurring event
81
+ * tag - Show events with a tag [ecs-list-events tag='music'] or specify multiple tags [ecs-list-events tag='music,art']
82
+
83
  = How do I use this shortcode in a widget? =
84
 
85
  * You can put the shortcode in a text widget.
86
  * Not all themes support use of a shortcode in a widget. If a regular text widget doesn't work, put the shortcode in a <a href="https://wordpress.org/plugins/black-studio-tinymce-widget/">Visual Editor Widget</a>.
87
 
88
  = What are the classes for styling the list of events? =
89
+ By default the plugin does not include styling. Events are listed in ul li tags with appropriate classes for styling with a bit of CSS.
90
 
91
  * ul class="ecs-event-list"
92
  * li class="ecs-event"
96
  * span .ecs-all-events
97
  * p .ecs-excerpt
98
 
99
+ Want a better looking design without knowing any CSS? Check out [The Events Calendar Shortcode PRO](https://eventcalendarnewsletter.com/the-events-calendar-shortcode?utm_source=wordpress.org&utm_medium=link&utm_campaign=tecs-readme-faq-design&utm_content=description)
100
 
101
  = How do I include a list of events in a page template? =
102
  include echo do_shortcode("[ecs-list-events]"); in the template where you want the events list to display.
109
 
110
  == Upgrade Notice ==
111
 
112
+ = 1.4 =
113
+ * Checks for whether The Events Calendar is installed
114
+ * Additional filters
115
+ * Improved design of shortcode help page
116
+
117
  = 1.3 =
118
  * Fixes issue with "viewall" showing the events twice
119
  * Fixes time zone issue by using current_time() instead of date()
150
 
151
  == Changelog ==
152
 
153
+ = 1.4 =
154
+ * Checks for whether The Events Calendar is installed
155
+ * Additional filters
156
+ * Improved design of shortcode help page
157
+
158
  = 1.3 =
159
  * Fixes issue with "viewall" showing the events twice
160
  * Fixes time zone issue by using current_time() instead of date()
static/event-calendar-shortcode-compact-design.png ADDED
Binary file
static/the-events-calendar-shortcode-pro-design.png ADDED
Binary file
templates/admin-page.php CHANGED
@@ -11,57 +11,57 @@
11
  <tbody>
12
  <tr valign="top">
13
  <td valign="top">
14
- <h3>Shortcode Options</h3>
15
 
16
  <div>
17
- <h4>Basic shortcode</h4>
18
  <blockquote>[ecs-list-events]</blockquote>
19
 
 
20
  <?php do_action( 'ecs_admin_page_options_before' ); ?>
21
 
22
- <h4>cat</h4>
23
  <p>Represents single event category. Use commas when you want multiple categories
24
  <blockquote>[ecs-list-events cat='festival']</blockquote>
25
  <blockquote>[ecs-list-events cat='festival, workshops']</blockquote>
26
 
27
  <?php do_action( 'ecs_admin_page_options_after_cat' ); ?>
28
 
29
- <h4>limit</h4>
30
  <p>Total number of events to show. Default is 5.</p>
31
  <blockquote>[ecs-list-events limit='3']</blockquote>
32
- <h4>order</h4>
33
  <p>Order of the events to be shown. Value can be 'ASC' or 'DESC'. Default is 'ASC'. Order is based on event date.</p>
34
  <blockquote>[ecs-list-events order='DESC']</blockquote>
35
- <h4>date</h4>
36
  <p>To show or hide date. Value can be 'true' or 'false'. Default is true.</p>
37
  <blockquote>[ecs-list-events eventdetails='false']</blockquote>
38
- <h4>venue</h4>
39
  <p>To show or hide the venue. Value can be 'true' or 'false'. Default is false.</p>
40
  <blockquote>[ecs-list-events venue='true']</blockquote>
41
- <h4>excerpt</h4>
42
  <p>To show or hide the excerpt and set excerpt length. Default is false.<p>
43
  <blockquote>[ecs-list-events excerpt='true']</blockquote>
44
  <blockquote>[ecs-list-events excerpt='300']</blockquote>
45
- <h4>thumb</h4>
46
  <p>To show or hide thumbnail/featured image. Default is false.</p>
47
  <blockquote>[ecs-list-events thumb='true']</blockquote>
48
  <p>You can use 2 other attributes: thumbwidth and thumbheight to customize the thumbnail size</p>
49
  <blockquote>[ecs-list-events thumb='true' thumbwidth='150' thumbheight='150']</blockquote>
50
- <h4>message</h4>
51
  <p>Message to show when there are no events. Defaults to 'There are no upcoming events at this time.'</p>
52
- <h4>viewall</h4>
53
  <p>Determines whether to show 'View all events' or not. Values can be 'true' or 'false'. Default to 'true'</p>
54
  <blockquote>[ecs-list-events cat='festival' limit='3' order='DESC' viewall='false']</blockquote>
55
- <h4>contentorder</h4>
56
  <p>Manage the order of content with commas. Default to title, thumbnail, excerpt, date, venue.</p>
57
  <blockquote>[ecs-list-events cat='festival' limit='3' order='DESC' viewall='false' contentorder='title, thumbnail, excerpt, date, venue']</blockquote>
58
- <h4>month</h4>
59
  <p>Show only specific Month. Type 'current' for displaying current month only, ie:</p>
60
  <blockquote>[ecs-list-events cat='festival' month='2015-06']</blockquote>
61
- <h4>past</h4>
62
  <p>Show outdated events (ie. events that have already happened)</p>
63
  <blockquote>[ecs-list-events cat='festival' past='yes']</blockquote>
64
- <h4>key</h4>
65
  <p>Order with start date</p>
66
  <blockquote>[ecs-list-events cat='festival' key='start date']</blockquote>
67
 
@@ -89,7 +89,10 @@
89
  <li>p .ecs-excerpt</li>
90
  </ul>
91
 
92
- <p><em>Want a better looking design without adding any CSS? Check out <a target="_blank" href="https://eventcalendarnewsletter.com/the-events-calendar-shortcode?utm_source=wordpress.org&utm_medium=link&utm_campaign=tecs-readme-faq&utm_content=description">The Events Calendar Shortcode PRO</a></em></p>
 
 
 
93
  <?php endif; ?>
94
  </td>
95
  </tr>
11
  <tbody>
12
  <tr valign="top">
13
  <td valign="top">
 
14
 
15
  <div>
16
+ <h2>Basic shortcode</h2>
17
  <blockquote>[ecs-list-events]</blockquote>
18
 
19
+ <h2>Shortcode Options</h2>
20
  <?php do_action( 'ecs_admin_page_options_before' ); ?>
21
 
22
+ <h3>cat</h3>
23
  <p>Represents single event category. Use commas when you want multiple categories
24
  <blockquote>[ecs-list-events cat='festival']</blockquote>
25
  <blockquote>[ecs-list-events cat='festival, workshops']</blockquote>
26
 
27
  <?php do_action( 'ecs_admin_page_options_after_cat' ); ?>
28
 
29
+ <h3>limit</h3>
30
  <p>Total number of events to show. Default is 5.</p>
31
  <blockquote>[ecs-list-events limit='3']</blockquote>
32
+ <h3>order</h3>
33
  <p>Order of the events to be shown. Value can be 'ASC' or 'DESC'. Default is 'ASC'. Order is based on event date.</p>
34
  <blockquote>[ecs-list-events order='DESC']</blockquote>
35
+ <h3>date</h3>
36
  <p>To show or hide date. Value can be 'true' or 'false'. Default is true.</p>
37
  <blockquote>[ecs-list-events eventdetails='false']</blockquote>
38
+ <h3>venue</h3>
39
  <p>To show or hide the venue. Value can be 'true' or 'false'. Default is false.</p>
40
  <blockquote>[ecs-list-events venue='true']</blockquote>
41
+ <h3>excerpt</h3>
42
  <p>To show or hide the excerpt and set excerpt length. Default is false.<p>
43
  <blockquote>[ecs-list-events excerpt='true']</blockquote>
44
  <blockquote>[ecs-list-events excerpt='300']</blockquote>
45
+ <h3>thumb</h3>
46
  <p>To show or hide thumbnail/featured image. Default is false.</p>
47
  <blockquote>[ecs-list-events thumb='true']</blockquote>
48
  <p>You can use 2 other attributes: thumbwidth and thumbheight to customize the thumbnail size</p>
49
  <blockquote>[ecs-list-events thumb='true' thumbwidth='150' thumbheight='150']</blockquote>
50
+ <h3>message</h3>
51
  <p>Message to show when there are no events. Defaults to 'There are no upcoming events at this time.'</p>
52
+ <h3>viewall</h3>
53
  <p>Determines whether to show 'View all events' or not. Values can be 'true' or 'false'. Default to 'true'</p>
54
  <blockquote>[ecs-list-events cat='festival' limit='3' order='DESC' viewall='false']</blockquote>
55
+ <h3>contentorder</h3>
56
  <p>Manage the order of content with commas. Default to title, thumbnail, excerpt, date, venue.</p>
57
  <blockquote>[ecs-list-events cat='festival' limit='3' order='DESC' viewall='false' contentorder='title, thumbnail, excerpt, date, venue']</blockquote>
58
+ <h3>month</h3>
59
  <p>Show only specific Month. Type 'current' for displaying current month only, ie:</p>
60
  <blockquote>[ecs-list-events cat='festival' month='2015-06']</blockquote>
61
+ <h3>past</h3>
62
  <p>Show outdated events (ie. events that have already happened)</p>
63
  <blockquote>[ecs-list-events cat='festival' past='yes']</blockquote>
64
+ <h3>key</h3>
65
  <p>Order with start date</p>
66
  <blockquote>[ecs-list-events cat='festival' key='start date']</blockquote>
67
 
89
  <li>p .ecs-excerpt</li>
90
  </ul>
91
 
92
+ <p><em>Want a better looking design without adding any CSS? Check out <a target="_blank" href="https://eventcalendarnewsletter.com/the-events-calendar-shortcode?utm_source=plugin&utm_medium=link&utm_campaign=tecs-help-design&utm_content=description">The Events Calendar Shortcode PRO</a></em></p>
93
+ <p><a href="https://eventcalendarnewsletter.com/the-events-calendar-shortcode?utm_source=plugin&utm_medium=link&utm_campaign=tecs-help-design-image-1&utm_content=description"><img style="width: 200px;" src="<?php echo plugins_url( '/static/the-events-calendar-shortcode-pro-design.png', TECS_CORE_PLUGIN_FILE ) ?>"><br>Pro version default design</a></p>
94
+ <p><a href="https://eventcalendarnewsletter.com/the-events-calendar-shortcode?utm_source=plugin&utm_medium=link&utm_campaign=tecs-help-design-image-2&utm_content=description"><img style="width: 200px;" src="<?php echo plugins_url( '/static/event-calendar-shortcode-compact-design.png', TECS_CORE_PLUGIN_FILE ) ?>"><br>Pro version compact design</a></p>
95
+
96
  <?php endif; ?>
97
  </td>
98
  </tr>
the-events-calendar-shortcode.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: The Events Calendar Shortcode
4
  Plugin URI: https://eventcalendarnewsletter.com/the-events-calendar-shortcode/
5
  Description: An addon to add shortcode functionality for <a href="http://wordpress.org/plugins/the-events-calendar/">The Events Calendar Plugin (Free Version) by Modern Tribe</a>.
6
- Version: 1.3
7
  Author: Event Calendar Newsletter
8
  Author URI: https://eventcalendarnewsletter.com/the-events-calendar-shortcode/
9
  Contributors: Brainchild Media Group, Reddit user miahelf, tallavic, hejeva2
@@ -18,6 +18,8 @@ if ( !defined( 'ABSPATH' ) ) {
18
  exit();
19
  }
20
 
 
 
21
  /**
22
  * Events calendar shortcode addon main class
23
  *
@@ -50,11 +52,26 @@ class Events_Calendar_Shortcode
50
  * @see add_shortcode()
51
  */
52
  public function __construct() {
 
53
  add_action( 'admin_menu', array( $this, 'add_menu_page' ), 1000 );
54
  add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array( $this, 'add_action_links' ) );
55
  add_shortcode( 'ecs-list-events', array( $this, 'ecs_fetch_events' ) );
56
  } // END __construct()
57
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  public function add_menu_page() {
59
  if ( ! class_exists( 'Tribe__Settings' ) or ! method_exists( Tribe__Settings::instance(), 'should_setup_pages' ) or ! Tribe__Settings::instance()->should_setup_pages() ) {
60
  return;
@@ -89,10 +106,11 @@ class Events_Calendar_Shortcode
89
  }
90
 
91
  public function add_action_links( $links ) {
92
- $mylinks = array(
93
- '<a href="' . admin_url( 'edit.php?post_type=tribe_events&page=ecs-admin' ) . '">Settings</a>',
94
- '<a target="_blank" style="color:#3db634; font-weight: bold;" href="https://eventcalendarnewsletter.com/the-events-calendar-shortcode/?utm_source=plugin-list&utm_medium=upgrade-link&utm_campaign=plugin-list&utm_content=action-link">Upgrade</a>',
95
- );
 
96
  return array_merge( $links, $mylinks );
97
  }
98
 
@@ -183,7 +201,7 @@ class Events_Calendar_Shortcode
183
 
184
  // Specific Month
185
  if ( $atts['month'] == 'current' ) {
186
- $atts['month'] = date( 'Y-m' );
187
  }
188
  if ($atts['month']) {
189
  $month_array = explode("-", $atts['month']);
@@ -212,8 +230,8 @@ class Events_Calendar_Shortcode
212
  'orderby' => 'meta_value',
213
  'author' => $atts['author'],
214
  'order' => $atts['order'],
215
- 'meta_query' => array( $atts['meta_date'] ),
216
- ), $atts ) );
217
 
218
  if ( $posts ) {
219
  $output .= apply_filters( 'ecs_start_tag', '<ul class="ecs-event-list">', $atts );
3
  Plugin Name: The Events Calendar Shortcode
4
  Plugin URI: https://eventcalendarnewsletter.com/the-events-calendar-shortcode/
5
  Description: An addon to add shortcode functionality for <a href="http://wordpress.org/plugins/the-events-calendar/">The Events Calendar Plugin (Free Version) by Modern Tribe</a>.
6
+ Version: 1.4
7
  Author: Event Calendar Newsletter
8
  Author URI: https://eventcalendarnewsletter.com/the-events-calendar-shortcode/
9
  Contributors: Brainchild Media Group, Reddit user miahelf, tallavic, hejeva2
18
  exit();
19
  }
20
 
21
+ define( 'TECS_CORE_PLUGIN_FILE', __FILE__ );
22
+
23
  /**
24
  * Events calendar shortcode addon main class
25
  *
52
  * @see add_shortcode()
53
  */
54
  public function __construct() {
55
+ add_action( 'plugins_loaded', array( $this, 'verify_tec_installed' ), 2 );
56
  add_action( 'admin_menu', array( $this, 'add_menu_page' ), 1000 );
57
  add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array( $this, 'add_action_links' ) );
58
  add_shortcode( 'ecs-list-events', array( $this, 'ecs_fetch_events' ) );
59
  } // END __construct()
60
 
61
+ public function verify_tec_installed() {
62
+ if ( ! class_exists( 'Tribe__Events__Main' ) or ! defined( 'Tribe__Events__Main::VERSION' )) {
63
+ add_action( 'admin_notices', array( $this, 'show_tec_not_installed_message' ) );
64
+ }
65
+ }
66
+
67
+ public function show_tec_not_installed_message() {
68
+ if ( current_user_can( 'activate_plugins' ) ) {
69
+ $url = 'plugin-install.php?tab=plugin-information&plugin=the-events-calendar&TB_iframe=true';
70
+ $title = __( 'The Events Calendar', 'tribe-events-ical-importer' );
71
+ echo '<div class="error"><p>' . sprintf( __( 'To begin using The Events Calendar Shortcode, please install the latest version of <a href="%s" class="thickbox" title="%s">The Events Calendar</a> and add an event.', 'tec-shortcode' ), esc_url( $url ), esc_attr( $title ) ) . '</p></div>';
72
+ }
73
+ }
74
+
75
  public function add_menu_page() {
76
  if ( ! class_exists( 'Tribe__Settings' ) or ! method_exists( Tribe__Settings::instance(), 'should_setup_pages' ) or ! Tribe__Settings::instance()->should_setup_pages() ) {
77
  return;
106
  }
107
 
108
  public function add_action_links( $links ) {
109
+ $mylinks = array();
110
+ if ( class_exists( 'Tribe__Settings' ) and method_exists( Tribe__Settings::instance(), 'should_setup_pages' ) and Tribe__Settings::instance()->should_setup_pages() )
111
+ $mylinks[] = '<a href="' . admin_url( 'edit.php?post_type=tribe_events&page=ecs-admin' ) . '">Settings</a>';
112
+ $mylinks[] = '<a target="_blank" style="color:#3db634; font-weight: bold;" href="https://eventcalendarnewsletter.com/the-events-calendar-shortcode/?utm_source=plugin-list&utm_medium=upgrade-link&utm_campaign=plugin-list&utm_content=action-link">Upgrade</a>';
113
+
114
  return array_merge( $links, $mylinks );
115
  }
116
 
201
 
202
  // Specific Month
203
  if ( $atts['month'] == 'current' ) {
204
+ $atts['month'] = current_time( 'Y-m' );
205
  }
206
  if ($atts['month']) {
207
  $month_array = explode("-", $atts['month']);
230
  'orderby' => 'meta_value',
231
  'author' => $atts['author'],
232
  'order' => $atts['order'],
233
+ 'meta_query' => apply_filters( 'ecs_get_meta_query', array( $atts['meta_date'] ), $atts, $meta_date_date, $meta_date_compare ),
234
+ ), $atts, $meta_date_date, $meta_date_compare ) );
235
 
236
  if ( $posts ) {
237
  $output .= apply_filters( 'ecs_start_tag', '<ul class="ecs-event-list">', $atts );