Version Description
- Changes default ordering by the start date, use orderby="enddate" for previous default ordering
Download this release
Release Info
Developer | brianhogg |
Plugin | The Events Calendar Shortcode |
Version | 1.6 |
Comparing to | |
See all releases |
Code changes from version 1.5.2 to 1.6
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: brianhogg
|
3 |
Tags: event, events, calendar, shortcode, modern tribe
|
4 |
Requires at least: 4.1
|
5 |
-
Tested up to: 4.
|
6 |
-
Stable tag: 1.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -34,16 +34,17 @@ With this plugin, just add the shortcode on a page to display a list of your eve
|
|
34 |
* contentorder - Manage the order of content with commas. Default to `title, thumbnail, excerpt, date, venue`. `[ecs-list-events cat='festival' limit='3' order='DESC' viewall='false' contentorder='title, thumbnail, excerpt, date, venue']`
|
35 |
* month - Show only specific Month. Type `'current'` for displaying current month only or `'next'` for next month `[ecs-list-events cat='festival' month='2015-06']`
|
36 |
* past - Show Outdated Events. `[ecs-list-events cat='festival' past='yes']`
|
37 |
-
* key -
|
38 |
-
|
39 |
|
40 |
<blockquote>
|
41 |
<h4>Additional options and benefits in the pro version</h4>
|
42 |
<ul>
|
43 |
-
<li>design - Shows <a href="https://eventcalendarnewsletter.com/the-events-calendar-shortcode#designs?utm_source=wordpress.org&utm_medium=link&utm_campaign=tecs-readme-design&utm_content=description" target="_blank">improved design by default</a>, 'compact' for a more compact listing, or 'grouped' to group events by day</li>
|
44 |
<li>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</li>
|
45 |
<li>date - Show only events for a specific day [ecs-list-events date='2017-04-16']</li>
|
46 |
<li>tag - Filter by one or more tags. Use commas when you want to filter by multiple tags.</li>
|
|
|
47 |
<li>id - Show a single event, useful for displaying details of the event on a blog post or page</li>
|
48 |
<li>description - Use the full description instead of the excerpt of an event in the listing</li>
|
49 |
<li>raw_description - Avoid filtering any HTML (spacing, links, bullet points, etc) in the description</li>
|
@@ -90,14 +91,16 @@ You can then add the `[ecs-list-events]` shortcode to the page or post you want
|
|
90 |
* contentorder - Manage the order of content with commas. Default to `title, thumbnail, excerpt, date, venue`. `[ecs-list-events cat='festival' limit='3' order='DESC' viewall='false' contentorder='title, thumbnail, excerpt, date, venue']`
|
91 |
* month - Show only specific month (in YYYY-MM format). Type `'current'` for displaying current month only or `'next'` for next month. `[ecs-list-events cat='festival' month='2015-06']`
|
92 |
* past - Show Outdated Events. `[ecs-list-events cat='festival' past='yes']`
|
93 |
-
* key -
|
|
|
94 |
|
95 |
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:
|
96 |
|
97 |
-
* design - Shows improved design by default. Set to 'standard' for the regular one, 'compact' for a more compact listing, or 'grouped' to group events by day
|
98 |
* 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
|
99 |
* tag - Filter by one or more tags. Use commas when you want to filter by multiple tags.
|
100 |
* id - Show a single event, useful for displaying details of the event on a blog post or page
|
|
|
101 |
* description - Use the full description instead of the excerpt of an event in the listing
|
102 |
* raw_description - Avoid filtering any HTML (spacing, links, bullet points, etc) in the description
|
103 |
* raw_excerpt - Avoid filtering any HTML (spacing, links, etc) in the excerpt
|
@@ -135,6 +138,10 @@ Want a better looking design without knowing any CSS? Check out [The Events Cal
|
|
135 |
|
136 |
Put this in the template where you want the events list to display.
|
137 |
|
|
|
|
|
|
|
|
|
138 |
== Screenshots ==
|
139 |
|
140 |
1. After adding the plugin, add the shortcode where you want the list of events to appear in the page
|
@@ -143,6 +150,13 @@ Put this in the template where you want the events list to display.
|
|
143 |
|
144 |
== Upgrade Notice ==
|
145 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
= 1.5.2 =
|
147 |
* Adds 'next' option for showing the next month of events
|
148 |
|
@@ -201,6 +215,13 @@ Fix missing ul
|
|
201 |
|
202 |
== Changelog ==
|
203 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
204 |
= 1.5.2 =
|
205 |
* Adds 'next' option for showing the next month of events
|
206 |
|
2 |
Contributors: brianhogg
|
3 |
Tags: event, events, calendar, shortcode, modern tribe
|
4 |
Requires at least: 4.1
|
5 |
+
Tested up to: 4.8
|
6 |
+
Stable tag: 1.6
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
34 |
* contentorder - Manage the order of content with commas. Default to `title, thumbnail, excerpt, date, venue`. `[ecs-list-events cat='festival' limit='3' order='DESC' viewall='false' contentorder='title, thumbnail, excerpt, date, venue']`
|
35 |
* month - Show only specific Month. Type `'current'` for displaying current month only or `'next'` for next month `[ecs-list-events cat='festival' month='2015-06']`
|
36 |
* past - Show Outdated Events. `[ecs-list-events cat='festival' past='yes']`
|
37 |
+
* key - Hide the event when the start date/time has passed `[ecs-list-events cat='festival' key='start date']`
|
38 |
+
* orderby - Order by end date `[ecs-list-events orderby='enddate']`
|
39 |
|
40 |
<blockquote>
|
41 |
<h4>Additional options and benefits in the pro version</h4>
|
42 |
<ul>
|
43 |
+
<li>design - Shows <a href="https://eventcalendarnewsletter.com/the-events-calendar-shortcode#designs?utm_source=wordpress.org&utm_medium=link&utm_campaign=tecs-readme-design&utm_content=description" target="_blank">improved design by default</a>, 'compact' for a more compact listing, 'calendar' for a monthly calendar view, or 'grouped' to group events by day</li>
|
44 |
<li>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</li>
|
45 |
<li>date - Show only events for a specific day [ecs-list-events date='2017-04-16']</li>
|
46 |
<li>tag - Filter by one or more tags. Use commas when you want to filter by multiple tags.</li>
|
47 |
+
<li>city, state, country - Display events by location.</li>
|
48 |
<li>id - Show a single event, useful for displaying details of the event on a blog post or page</li>
|
49 |
<li>description - Use the full description instead of the excerpt of an event in the listing</li>
|
50 |
<li>raw_description - Avoid filtering any HTML (spacing, links, bullet points, etc) in the description</li>
|
91 |
* contentorder - Manage the order of content with commas. Default to `title, thumbnail, excerpt, date, venue`. `[ecs-list-events cat='festival' limit='3' order='DESC' viewall='false' contentorder='title, thumbnail, excerpt, date, venue']`
|
92 |
* month - Show only specific month (in YYYY-MM format). Type `'current'` for displaying current month only or `'next'` for next month. `[ecs-list-events cat='festival' month='2015-06']`
|
93 |
* past - Show Outdated Events. `[ecs-list-events cat='festival' past='yes']`
|
94 |
+
* key - Hide events when the start date has passed `[ecs-list-events cat='festival' key='start date']`
|
95 |
+
* orderby - Change the ordering to the end date `[ecs-list-events orderby="enddate"]`
|
96 |
|
97 |
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:
|
98 |
|
99 |
+
* design - Shows improved design by default. Set to 'standard' for the regular one, 'compact' for a more compact listing, 'calendar' for a monthly calendar view, or 'grouped' to group events by day
|
100 |
* 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
|
101 |
* tag - Filter by one or more tags. Use commas when you want to filter by multiple tags.
|
102 |
* id - Show a single event, useful for displaying details of the event on a blog post or page
|
103 |
+
* location (city, state/province, country) - Display events by location. Use commas when you want to include events from multiple (ie. country='United States, Canada')
|
104 |
* description - Use the full description instead of the excerpt of an event in the listing
|
105 |
* raw_description - Avoid filtering any HTML (spacing, links, bullet points, etc) in the description
|
106 |
* raw_excerpt - Avoid filtering any HTML (spacing, links, etc) in the excerpt
|
138 |
|
139 |
Put this in the template where you want the events list to display.
|
140 |
|
141 |
+
= How do I include a monthly calendar view instead of a list? =
|
142 |
+
|
143 |
+
The [pro version of the plugin](https://eventcalendarnewsletter.com/the-events-calendar-shortcode?utm_source=wordpress.org&utm_medium=link&utm_campaign=tecs-readme-faq-calendar&utm_content=description) has the option to put `design="calendar"` in the shortcode to show a calendar view of the events you want.
|
144 |
+
|
145 |
== Screenshots ==
|
146 |
|
147 |
1. After adding the plugin, add the shortcode where you want the list of events to appear in the page
|
150 |
|
151 |
== Upgrade Notice ==
|
152 |
|
153 |
+
= 1.6 =
|
154 |
+
* Changes default ordering by the start date, use orderby="enddate" for previous default ordering
|
155 |
+
|
156 |
+
= 1.5.3 =
|
157 |
+
* Fixes translation of the "View all events" link into other languages
|
158 |
+
* Adds orderby parameter to order by start date, but still show events until the end date has passed
|
159 |
+
|
160 |
= 1.5.2 =
|
161 |
* Adds 'next' option for showing the next month of events
|
162 |
|
215 |
|
216 |
== Changelog ==
|
217 |
|
218 |
+
= 1.6 =
|
219 |
+
* Changes default ordering by the start date, use orderby="enddate" for previous default ordering
|
220 |
+
|
221 |
+
= 1.5.3 =
|
222 |
+
* Fixes translation of the "View all events" link into other languages
|
223 |
+
* Adds orderby parameter to order by start date, but still show events until the end date has passed
|
224 |
+
|
225 |
= 1.5.2 =
|
226 |
* Adds 'next' option for showing the next month of events
|
227 |
|
static/the-events-calendar-shortcode-calendar-design.gif
ADDED
Binary file
|
templates/admin-page.php
CHANGED
@@ -51,21 +51,25 @@
|
|
51 |
<h3>message</h3>
|
52 |
<p><?php echo esc_html( sprintf( __( "Message to show when there are no events. Defaults to '%s'", 'the-events-calendar-shortcode' ), translate( 'There are no upcoming events at this time.', 'tribe-events-calendar' ) ) ); ?></p>
|
53 |
<h3>viewall</h3>
|
54 |
-
|
|
|
|
|
55 |
<blockquote>[ecs-list-events cat='festival' limit='3' order='DESC' viewall='false']</blockquote>
|
56 |
<h3>contentorder</h3>
|
57 |
<p><?php echo esc_html( sprintf( __( 'Manage the order of content with commas. Defaults to %s', 'the-events-calendar-shortcode' ), 'title, thumbnail, excerpt, date, venue' ) ); ?> </p>
|
58 |
<blockquote>[ecs-list-events cat='festival' limit='3' order='DESC' viewall='false' contentorder='title, thumbnail, excerpt, date, venue']</blockquote>
|
59 |
<h3>month</h3>
|
60 |
-
<p><?php echo esc_html( sprintf( __( "Show only specific Month. Type '%s' for displaying current month only, ie:", 'the-events-calendar-shortcode' ), 'current' ) ); ?></p>
|
61 |
<blockquote>[ecs-list-events cat='festival' month='2015-06']</blockquote>
|
62 |
<h3>past</h3>
|
63 |
<p><?php echo esc_html( __( 'Show outdated events (ie. events that have already happened)', 'the-events-calendar-shortcode' ) ); ?></p>
|
64 |
<blockquote>[ecs-list-events cat='festival' past='yes']</blockquote>
|
65 |
<h3>key</h3>
|
66 |
-
<p><?php echo esc_html( __( 'Use to
|
67 |
<blockquote>[ecs-list-events cat='festival' key='start date']</blockquote>
|
68 |
-
|
|
|
|
|
69 |
<?php do_action( 'ecs_admin_page_options_after' ); ?>
|
70 |
|
71 |
</div>
|
@@ -98,6 +102,7 @@
|
|
98 |
<p><a target="_blank" 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 alt="" style="width: 300px;" src="<?php echo plugins_url( '/static/shortcode-default-design-2.png', TECS_CORE_PLUGIN_FILE ) ?>"><br><?php echo esc_html( __( 'Pro version default design example', 'the-events-calendar-shortcode' ) ); ?></a></p>
|
99 |
<p><a target="_blank" 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 alt="" style="width: 300px;" src="<?php echo plugins_url( '/static/event-calendar-shortcode-compact-design.png', TECS_CORE_PLUGIN_FILE ) ?>"><br><?php echo esc_html( __( 'Pro version compact design example', 'the-events-calendar-shortcode' ) ); ?></a></p>
|
100 |
<p><a target="_blank" href="https://eventcalendarnewsletter.com/the-events-calendar-shortcode?utm_source=plugin&utm_medium=link&utm_campaign=tecs-help-design-image-grouped&utm_content=description"><img alt="" style="width: 300px;" src="<?php echo plugins_url( '/static/the-events-calendar-shortcode-grouped-design.png', TECS_CORE_PLUGIN_FILE ) ?>"><br><?php echo esc_html( __( 'Pro version grouped design example', 'the-events-calendar-shortcode' ) ); ?></a></p>
|
|
|
101 |
</div>
|
102 |
|
103 |
<h3 class="additional-options"><?php echo esc_html__( "In addition to designs, you'll get more options including:", 'the-events-calendar-shortcode' ); ?></h3>
|
@@ -105,8 +110,12 @@
|
|
105 |
<p><?php echo esc_html__( 'Choose how many days to show events from, ie. 1 day or a week', 'the-events-calendar-shortcode' ) ?></p>
|
106 |
<h4><?php echo esc_html__( 'Tag', 'the-events-calendar-shortcode' ) ?></h4>
|
107 |
<p><?php echo esc_html__( 'Filter events listed by one or more tags', 'the-events-calendar-shortcode' ) ?></p>
|
|
|
|
|
108 |
<h4><?php echo esc_html__( 'Single Event', 'the-events-calendar-shortcode' ) ?></h4>
|
109 |
<p><?php echo esc_html__( 'List the details of a single event by ID, for example on a blog post', 'the-events-calendar-shortcode' ) ?></p>
|
|
|
|
|
110 |
<h4><?php echo esc_html__( 'Date', 'the-events-calendar-shortcode' ) ?></h4>
|
111 |
<p><?php echo esc_html__( 'Show only events for a specific day (ie. 2017-04-16), great for conferences', 'the-events-calendar-shortcode' ) ?></p>
|
112 |
<h4><?php echo esc_html__( 'Year', 'the-events-calendar-shortcode' ) ?></h4>
|
@@ -115,6 +124,8 @@
|
|
115 |
<p><?php echo esc_html__( 'Skip a certain number of events from the beginning, useful for using multiple shortcodes on the same page or splitting into columns.', 'the-events-calendar-shortcode' ) ?></p>
|
116 |
<h4><?php echo esc_html__( 'Full Description', 'the-events-calendar-shortcode' ) ?></h4>
|
117 |
<p><?php echo esc_html__( 'Use the full description instead of the excerpt (short description) of an event in the listing', 'the-events-calendar-shortcode' ) ?></p>
|
|
|
|
|
118 |
<h4><?php echo esc_html__( 'Custom Design', 'the-events-calendar-shortcode' ) ?></h4>
|
119 |
<p><?php echo esc_html__( 'Use the new default or compact designs, or create your own using one or more templates in your theme folder', 'the-events-calendar-shortcode' ) ?></p>
|
120 |
<p><?php echo sprintf( esc_html__( '%sGet The Events Calendar Shortcode PRO%s', 'the-events-calendar-shortcode' ), '<a class="ecs-button" target="_blank" href="https://eventcalendarnewsletter.com/the-events-calendar-shortcode?utm_source=plugin&utm_medium=link&utm_campaign=tecs-help-after-options&utm_content=description">', '</a>' ); ?></p>
|
51 |
<h3>message</h3>
|
52 |
<p><?php echo esc_html( sprintf( __( "Message to show when there are no events. Defaults to '%s'", 'the-events-calendar-shortcode' ), translate( 'There are no upcoming events at this time.', 'tribe-events-calendar' ) ) ); ?></p>
|
53 |
<h3>viewall</h3>
|
54 |
+
<?php if ( function_exists( 'tribe_get_event_label_plural' ) ): ?>
|
55 |
+
<p><?php echo esc_html( sprintf( __( "Determines whether to show '%s' or not. Values can be 'true' or 'false'. Default to 'true'", 'the-events-calendar-shortcode' ), sprintf( __( 'View All %s', 'the-events-calendar' ), tribe_get_event_label_plural() ) ) ); ?></p>
|
56 |
+
<?php endif; ?>
|
57 |
<blockquote>[ecs-list-events cat='festival' limit='3' order='DESC' viewall='false']</blockquote>
|
58 |
<h3>contentorder</h3>
|
59 |
<p><?php echo esc_html( sprintf( __( 'Manage the order of content with commas. Defaults to %s', 'the-events-calendar-shortcode' ), 'title, thumbnail, excerpt, date, venue' ) ); ?> </p>
|
60 |
<blockquote>[ecs-list-events cat='festival' limit='3' order='DESC' viewall='false' contentorder='title, thumbnail, excerpt, date, venue']</blockquote>
|
61 |
<h3>month</h3>
|
62 |
+
<p><?php echo esc_html( sprintf( __( "Show only specific Month. Type '%s' for displaying current month only or '%s' for next month, ie:", 'the-events-calendar-shortcode' ), 'current', 'next' ) ); ?></p>
|
63 |
<blockquote>[ecs-list-events cat='festival' month='2015-06']</blockquote>
|
64 |
<h3>past</h3>
|
65 |
<p><?php echo esc_html( __( 'Show outdated events (ie. events that have already happened)', 'the-events-calendar-shortcode' ) ); ?></p>
|
66 |
<blockquote>[ecs-list-events cat='festival' past='yes']</blockquote>
|
67 |
<h3>key</h3>
|
68 |
+
<p><?php echo esc_html( __( 'Use to hide events when the start date has passed, rather than the end date. Will also change the order of events by start date instead of end date.', 'the-events-calendar-shortcode' ) ); ?></p>
|
69 |
<blockquote>[ecs-list-events cat='festival' key='start date']</blockquote>
|
70 |
+
<h3>orderby</h3>
|
71 |
+
<p><?php echo esc_html( __( 'Used to order by the end date instead of the start date.', 'the-events-calendar-shortcode' ) ); ?></p>
|
72 |
+
<blockquote>[ecs-list-events orderby='enddate']</blockquote>
|
73 |
<?php do_action( 'ecs_admin_page_options_after' ); ?>
|
74 |
|
75 |
</div>
|
102 |
<p><a target="_blank" 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 alt="" style="width: 300px;" src="<?php echo plugins_url( '/static/shortcode-default-design-2.png', TECS_CORE_PLUGIN_FILE ) ?>"><br><?php echo esc_html( __( 'Pro version default design example', 'the-events-calendar-shortcode' ) ); ?></a></p>
|
103 |
<p><a target="_blank" 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 alt="" style="width: 300px;" src="<?php echo plugins_url( '/static/event-calendar-shortcode-compact-design.png', TECS_CORE_PLUGIN_FILE ) ?>"><br><?php echo esc_html( __( 'Pro version compact design example', 'the-events-calendar-shortcode' ) ); ?></a></p>
|
104 |
<p><a target="_blank" href="https://eventcalendarnewsletter.com/the-events-calendar-shortcode?utm_source=plugin&utm_medium=link&utm_campaign=tecs-help-design-image-grouped&utm_content=description"><img alt="" style="width: 300px;" src="<?php echo plugins_url( '/static/the-events-calendar-shortcode-grouped-design.png', TECS_CORE_PLUGIN_FILE ) ?>"><br><?php echo esc_html( __( 'Pro version grouped design example', 'the-events-calendar-shortcode' ) ); ?></a></p>
|
105 |
+
<p><a target="_blank" href="https://eventcalendarnewsletter.com/the-events-calendar-shortcode?utm_source=plugin&utm_medium=link&utm_campaign=tecs-help-design-image-calendar&utm_content=description"><img alt="" style="width: 300px;" src="<?php echo plugins_url( '/static/the-events-calendar-shortcode-calendar-design.gif', TECS_CORE_PLUGIN_FILE ) ?>"><br><?php echo esc_html( __( 'Pro version calendar design example', 'the-events-calendar-shortcode' ) ); ?></a></p>
|
106 |
</div>
|
107 |
|
108 |
<h3 class="additional-options"><?php echo esc_html__( "In addition to designs, you'll get more options including:", 'the-events-calendar-shortcode' ); ?></h3>
|
110 |
<p><?php echo esc_html__( 'Choose how many days to show events from, ie. 1 day or a week', 'the-events-calendar-shortcode' ) ?></p>
|
111 |
<h4><?php echo esc_html__( 'Tag', 'the-events-calendar-shortcode' ) ?></h4>
|
112 |
<p><?php echo esc_html__( 'Filter events listed by one or more tags', 'the-events-calendar-shortcode' ) ?></p>
|
113 |
+
<h4><?php echo esc_html__( 'Location', 'the-events-calendar-shortcode' ) ?></h4>
|
114 |
+
<p><?php echo esc_html__( 'Display events by city, state/province, or country', 'the-events-calendar-shortcode' ) ?></p>
|
115 |
<h4><?php echo esc_html__( 'Single Event', 'the-events-calendar-shortcode' ) ?></h4>
|
116 |
<p><?php echo esc_html__( 'List the details of a single event by ID, for example on a blog post', 'the-events-calendar-shortcode' ) ?></p>
|
117 |
+
<h4><?php echo esc_html__( 'Button', 'the-events-calendar-shortcode' ) ?></h4>
|
118 |
+
<p><?php echo esc_html__( 'Add an easy to see button link to your event, and customize the colors/text', 'the-events-calendar-shortcode' ) ?></p>
|
119 |
<h4><?php echo esc_html__( 'Date', 'the-events-calendar-shortcode' ) ?></h4>
|
120 |
<p><?php echo esc_html__( 'Show only events for a specific day (ie. 2017-04-16), great for conferences', 'the-events-calendar-shortcode' ) ?></p>
|
121 |
<h4><?php echo esc_html__( 'Year', 'the-events-calendar-shortcode' ) ?></h4>
|
124 |
<p><?php echo esc_html__( 'Skip a certain number of events from the beginning, useful for using multiple shortcodes on the same page or splitting into columns.', 'the-events-calendar-shortcode' ) ?></p>
|
125 |
<h4><?php echo esc_html__( 'Full Description', 'the-events-calendar-shortcode' ) ?></h4>
|
126 |
<p><?php echo esc_html__( 'Use the full description instead of the excerpt (short description) of an event in the listing', 'the-events-calendar-shortcode' ) ?></p>
|
127 |
+
<h4><?php echo esc_html__( 'Future Only', 'the-events-calendar-shortcode' ) ?></h4>
|
128 |
+
<p><?php echo esc_html__( 'Only show events in the future even when using the month or year option.', 'the-events-calendar-shortcode' ) ?></p>
|
129 |
<h4><?php echo esc_html__( 'Custom Design', 'the-events-calendar-shortcode' ) ?></h4>
|
130 |
<p><?php echo esc_html__( 'Use the new default or compact designs, or create your own using one or more templates in your theme folder', 'the-events-calendar-shortcode' ) ?></p>
|
131 |
<p><?php echo sprintf( esc_html__( '%sGet The Events Calendar Shortcode PRO%s', 'the-events-calendar-shortcode' ), '<a class="ecs-button" target="_blank" href="https://eventcalendarnewsletter.com/the-events-calendar-shortcode?utm_source=plugin&utm_medium=link&utm_campaign=tecs-help-after-options&utm_content=description">', '</a>' ); ?></p>
|
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.
|
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
|
@@ -38,7 +38,7 @@ class Events_Calendar_Shortcode
|
|
38 |
*
|
39 |
* @since 1.0.0
|
40 |
*/
|
41 |
-
const VERSION = '1.
|
42 |
|
43 |
private $admin_page = null;
|
44 |
|
@@ -151,6 +151,7 @@ class Events_Calendar_Shortcode
|
|
151 |
'message' => 'There are no upcoming events at this time.',
|
152 |
'key' => 'End Date',
|
153 |
'order' => 'ASC',
|
|
|
154 |
'viewall' => 'false',
|
155 |
'excerpt' => 'false',
|
156 |
'thumb' => 'false',
|
@@ -199,6 +200,14 @@ class Events_Calendar_Shortcode
|
|
199 |
} else {
|
200 |
$atts['key'] = '_EventEndDate';
|
201 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
202 |
// Date
|
203 |
$atts['meta_date'] = array(
|
204 |
array(
|
@@ -239,7 +248,7 @@ class Events_Calendar_Shortcode
|
|
239 |
'hide_upcoming' => true,
|
240 |
'posts_per_page' => $atts['limit'],
|
241 |
'tax_query'=> $atts['event_tax'],
|
242 |
-
'meta_key' => $atts['key'],
|
243 |
'orderby' => 'meta_value',
|
244 |
'author' => $atts['author'],
|
245 |
'order' => $atts['order'],
|
@@ -330,7 +339,7 @@ class Events_Calendar_Shortcode
|
|
330 |
|
331 |
if( self::isValid( $atts['viewall'] ) ) {
|
332 |
$output .= apply_filters( 'ecs_view_all_events_tag_start', '<span class="ecs-all-events">', $atts ) .
|
333 |
-
'<a href="' . apply_filters( 'ecs_event_list_viewall_link', tribe_get_events_link(), $atts ) .'" rel="bookmark">' .
|
334 |
$output .= apply_filters( 'ecs_view_all_events_tag_end', '</span>' );
|
335 |
}
|
336 |
|
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.6
|
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
|
38 |
*
|
39 |
* @since 1.0.0
|
40 |
*/
|
41 |
+
const VERSION = '1.6';
|
42 |
|
43 |
private $admin_page = null;
|
44 |
|
151 |
'message' => 'There are no upcoming events at this time.',
|
152 |
'key' => 'End Date',
|
153 |
'order' => 'ASC',
|
154 |
+
'orderby' => 'startdate',
|
155 |
'viewall' => 'false',
|
156 |
'excerpt' => 'false',
|
157 |
'thumb' => 'false',
|
200 |
} else {
|
201 |
$atts['key'] = '_EventEndDate';
|
202 |
}
|
203 |
+
|
204 |
+
// Orderby
|
205 |
+
if ( str_replace( ' ', '', trim( strtolower( $atts['orderby'] ) ) ) == 'enddate' ) {
|
206 |
+
$atts['orderby'] = '_EventEndDate';
|
207 |
+
} else {
|
208 |
+
$atts['orderby'] = '_EventStartDate';
|
209 |
+
}
|
210 |
+
|
211 |
// Date
|
212 |
$atts['meta_date'] = array(
|
213 |
array(
|
248 |
'hide_upcoming' => true,
|
249 |
'posts_per_page' => $atts['limit'],
|
250 |
'tax_query'=> $atts['event_tax'],
|
251 |
+
'meta_key' => ( trim( $atts['orderby'] ) ? $atts['orderby'] : $atts['key'] ),
|
252 |
'orderby' => 'meta_value',
|
253 |
'author' => $atts['author'],
|
254 |
'order' => $atts['order'],
|
339 |
|
340 |
if( self::isValid( $atts['viewall'] ) ) {
|
341 |
$output .= apply_filters( 'ecs_view_all_events_tag_start', '<span class="ecs-all-events">', $atts ) .
|
342 |
+
'<a href="' . apply_filters( 'ecs_event_list_viewall_link', tribe_get_events_link(), $atts ) .'" rel="bookmark">' . apply_filters( 'ecs_view_all_events_text', sprintf( __( 'View All %s', 'the-events-calendar' ), tribe_get_event_label_plural() ), $atts ) . '</a>';
|
343 |
$output .= apply_filters( 'ecs_view_all_events_tag_end', '</span>' );
|
344 |
}
|
345 |
|