The Events Calendar Shortcode - Version 1.5.1

Version Description

  • Adds thumbsize option (ie. medium, large, thumbnail, full)
Download this release

Release Info

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

Code changes from version 1.5 to 1.5.1

readme.txt CHANGED
@@ -3,11 +3,11 @@ Contributors: brianhogg
3
  Tags: event, events, calendar, shortcode, modern tribe
4
  Requires at least: 4.1
5
  Tested up to: 4.7.3
6
- Stable tag: 1.5
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
- Adds shortcode functionality to The Events Calendar Plugin (Free Version) by Modern Tribe.
11
 
12
  == Description ==
13
 
@@ -19,7 +19,7 @@ With this plugin, just add the shortcode on a page to display a list of your eve
19
 
20
  = Shortcode Options: =
21
  * Basic shortcode: `[ecs-list-events]`
22
- * cat - Represents single event category. `[ecs-list-events cat='festival']` Use commas when you want multiple categories [ecs-list-events cat='festival, workshops']
23
  * limit - Total number of events to show. Default is 5. `[ecs-list-events limit='3']`
24
  * 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']`
25
  * date - To show or hide date. Value can be 'true' or 'false'. Default is true. `[ecs-list-events eventdetails='false']`
@@ -28,11 +28,11 @@ With this plugin, just add the shortcode on a page to display a list of your eve
28
  * `[ecs-list-events excerpt='true']` //displays excerpt with length 100
29
  * `[ecs-list-events excerpt='300']` //displays excerpt with length 300
30
  * thumb - To show or hide thumbnail image. Default is false. `[ecs-list-events thumb='true']` //displays post thumbnail in default thumbnail dimension from media settings.
31
- * You can use 2 other attributes: thumbwidth and thumbheight to customize the thumbnail size `[ecs-list-events thumb='true' thumbwidth='150' thumbheight='150']`
32
  * message - Message to show when there are no events. Defaults to 'There are no upcoming events at this time.'
33
  * viewall - Determines whether to show 'View all events' or not. Values can be 'true' or 'false'. Default to 'true' `[ecs-list-events cat='festival' limit='3' order='DESC' viewall='false']`
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 [ecs-list-events cat='festival' month='2015-06']
36
  * past - Show Outdated Events. `[ecs-list-events cat='festival' past='yes']`
37
  * key - Order with Start Date `[ecs-list-events cat='festival' key='start date']`
38
 
@@ -42,12 +42,14 @@ With this plugin, just add the shortcode on a page to display a list of your eve
42
  <ul>
43
  <li>design - Shows improved design by default, or set to 'standard' for the regular one and 'compact' for a more compact listing</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>tag - Filter by one or more tags. Use commas when you want to filter by multiple tags.</li>
46
  <li>id - Show a single event, useful for displaying details of the event on a blog post or page</li>
47
  <li>description - Use the full description instead of the excerpt of an event in the listing</li>
48
  <li>raw_description - Avoid filtering any HTML (spacing, links, bullet points, etc) in the description</li>
49
  <li>raw_excerpt - Avoid filtering any HTML (spacing, links, etc) in the excerpt</li>
50
  <li>year - Show only events for a specific year</li>
 
51
  <li>offset - Skip a certain number of events from the beginning, useful for using multiple shortcodes on the same page (with ads in between) or splitting into columns</li>
52
  <li>custom design - Create one or more of your own templates for use with the shortcode</li>
53
  <li>hiderecurring - To only show the first instance of a recurring event, set to 'true'</li>
@@ -81,7 +83,8 @@ You can then add the `[ecs-list-events]` shortcode to the page or post you want
81
  * excerpt - To show or hide the excerpt and set excerpt length. Default is false. `[ecs-list-events excerpt='true']` //displays excerpt with length 100
82
  excerpt='300' //displays excerpt with length 300
83
  * thumb - To show or hide thumbnail image. Default is false. `[ecs-list-events thumb='true']` //displays post thumbnail in default thumbnail dimension from media settings.
84
- * You can use 2 other attributes: thumbwidth and thumbheight to customize the thumbnail size `[ecs-list-events thumb='true' thumbwidth='150' thumbheight='150']`
 
85
  * message - Message to show when there are no events. Defaults to 'There are no upcoming events at this time.'
86
  * viewall - Determines whether to show 'View all events' or not. Values can be 'true' or 'false'. Default to 'true' `[ecs-list-events cat='festival' limit='3' order='DESC' viewall='false']`
87
  * 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,14 +94,16 @@ You can then add the `[ecs-list-events]` shortcode to the page or post you want
91
 
92
  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:
93
 
94
- * design - Shows improved design by default, or set to 'standard' for the regular one and 'compact' for a more compact listing
95
  * 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
96
  * tag - Filter by one or more tags. Use commas when you want to filter by multiple tags.
97
  * id - Show a single event, useful for displaying details of the event on a blog post or page
98
  * description - Use the full description instead of the excerpt of an event in the listing
99
  * raw_description - Avoid filtering any HTML (spacing, links, bullet points, etc) in the description
100
  * raw_excerpt - Avoid filtering any HTML (spacing, links, etc) in the excerpt
101
- * year - Show only events for a specific year
 
 
102
  * offset - Skip a certain number of events from the beginning, useful for using multiple shortcodes on the same page (with ads in between) or splitting into columns
103
  * custom design - Create one or more of your own templates for use with the shortcode
104
  * hiderecurring - To only show the first instance of a recurring event, set to 'true'
@@ -107,8 +112,9 @@ With [The Events Calendar Shortcode PRO](https://eventcalendarnewsletter.com/the
107
 
108
  = How do I use this shortcode in a widget? =
109
 
110
- * You can put the shortcode in a text widget.
111
- * 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>.
 
112
 
113
  = What are the classes for styling the list of events? =
114
  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.
@@ -137,6 +143,9 @@ Put this in the template where you want the events list to display.
137
 
138
  == Upgrade Notice ==
139
 
 
 
 
140
  = 1.5 =
141
  * Adds ability to translate the plugin into local languages
142
  * Additional description of options
@@ -189,6 +198,9 @@ Fix missing ul
189
 
190
  == Changelog ==
191
 
 
 
 
192
  = 1.5 =
193
  * Adds ability to translate the plugin into local languages
194
  * Additional description of options
3
  Tags: event, events, calendar, shortcode, modern tribe
4
  Requires at least: 4.1
5
  Tested up to: 4.7.3
6
+ Stable tag: 1.5.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
+ Adds shortcode functionality to The Events Calendar Plugin (Free Version) by Modern Tribe, so you can list your events anywhere.
11
 
12
  == Description ==
13
 
19
 
20
  = Shortcode Options: =
21
  * Basic shortcode: `[ecs-list-events]`
22
+ * cat - Represents single event category. `[ecs-list-events cat='festival']` Use commas when you want multiple categories `[ecs-list-events cat='festival, workshops']`
23
  * limit - Total number of events to show. Default is 5. `[ecs-list-events limit='3']`
24
  * 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']`
25
  * date - To show or hide date. Value can be 'true' or 'false'. Default is true. `[ecs-list-events eventdetails='false']`
28
  * `[ecs-list-events excerpt='true']` //displays excerpt with length 100
29
  * `[ecs-list-events excerpt='300']` //displays excerpt with length 300
30
  * thumb - To show or hide thumbnail image. Default is false. `[ecs-list-events thumb='true']` //displays post thumbnail in default thumbnail dimension from media settings.
31
+ * You can use thumbwidth and thumbheight to customize the thumbnail size `[ecs-list-events thumb='true' thumbwidth='150' thumbheight='150']` or thumbsize for a registered WordPress size `[ecs-list-events thumb='true' thumbsize='large']`
32
  * message - Message to show when there are no events. Defaults to 'There are no upcoming events at this time.'
33
  * viewall - Determines whether to show 'View all events' or not. Values can be 'true' or 'false'. Default to 'true' `[ecs-list-events cat='festival' limit='3' order='DESC' viewall='false']`
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 `[ecs-list-events cat='festival' month='2015-06']`
36
  * past - Show Outdated Events. `[ecs-list-events cat='festival' past='yes']`
37
  * key - Order with Start Date `[ecs-list-events cat='festival' key='start date']`
38
 
42
  <ul>
43
  <li>design - Shows improved design by default, or set to 'standard' for the regular one and 'compact' for a more compact listing</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>
50
  <li>raw_excerpt - Avoid filtering any HTML (spacing, links, etc) in the excerpt</li>
51
  <li>year - Show only events for a specific year</li>
52
+ <li>timeonly - To show just the start time of the event. [ecs-list-events timeonly='true']</li>
53
  <li>offset - Skip a certain number of events from the beginning, useful for using multiple shortcodes on the same page (with ads in between) or splitting into columns</li>
54
  <li>custom design - Create one or more of your own templates for use with the shortcode</li>
55
  <li>hiderecurring - To only show the first instance of a recurring event, set to 'true'</li>
83
  * excerpt - To show or hide the excerpt and set excerpt length. Default is false. `[ecs-list-events excerpt='true']` //displays excerpt with length 100
84
  excerpt='300' //displays excerpt with length 300
85
  * thumb - To show or hide thumbnail image. Default is false. `[ecs-list-events thumb='true']` //displays post thumbnail in default thumbnail dimension from media settings.
86
+ * thumbsize - Specify the size of the thumbnail. `[ecs-list-events thumb='true' thumbsize='large']`
87
+ * thumbwidth / thumbheight - Customize the thumbnail size in pixels `[ecs-list-events thumb='true' thumbwidth='150' thumbheight='150']`
88
  * message - Message to show when there are no events. Defaults to 'There are no upcoming events at this time.'
89
  * viewall - Determines whether to show 'View all events' or not. Values can be 'true' or 'false'. Default to 'true' `[ecs-list-events cat='festival' limit='3' order='DESC' viewall='false']`
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']`
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
104
+ * date - Show only events for a specific day `[ecs-list-events date='2017-04-16']`
105
+ * year - Show only events for a specific year `[ecs-list-events year='2017']`
106
+ * timeonly - To show just the start time of the event. `[ecs-list-events timeonly='true']`
107
  * offset - Skip a certain number of events from the beginning, useful for using multiple shortcodes on the same page (with ads in between) or splitting into columns
108
  * custom design - Create one or more of your own templates for use with the shortcode
109
  * hiderecurring - To only show the first instance of a recurring event, set to 'true'
112
 
113
  = How do I use this shortcode in a widget? =
114
 
115
+ You can put the shortcode in a text widget, though not all themes support use of a shortcode in a widget.
116
+
117
+ 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>.
118
 
119
  = What are the classes for styling the list of events? =
120
  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.
143
 
144
  == Upgrade Notice ==
145
 
146
+ = 1.5.1 =
147
+ * Adds thumbsize option (ie. medium, large, thumbnail, full)
148
+
149
  = 1.5 =
150
  * Adds ability to translate the plugin into local languages
151
  * Additional description of options
198
 
199
  == Changelog ==
200
 
201
+ = 1.5.1 =
202
+ * Adds thumbsize option (ie. medium, large, thumbnail, full)
203
+
204
  = 1.5 =
205
  * Adds ability to translate the plugin into local languages
206
  * Additional description of options
static/ecs-admin.css CHANGED
@@ -1,2 +1,7 @@
1
  td.styling { border-left: 1px solid #000; padding-left: 10px; }
2
- td blockquote { font-family: monospace; }
 
 
 
 
 
1
  td.styling { border-left: 1px solid #000; padding-left: 10px; }
2
+ td blockquote { font-family: monospace; }
3
+ #ecs-pro-description { padding: 10px; border: 2px solid #f77530; background: white; }
4
+ #ecs-pro-description h3.additional-options { padding-top: 30px; }
5
+ #ecs-pro-description .ecs-button { text-decoration: none; padding: 6px 12px; background-color: #f77530; color: white; display: inline-block; text-align: center; }
6
+ #ecs-pro-designs { text-align:center; }
7
+ #ecs-pro-designs a { padding-bottom: 20px; }
static/the-events-calendar-shortcode-grouped-design.png ADDED
Binary file
templates/admin-page.php CHANGED
@@ -45,6 +45,9 @@
45
  <blockquote>[ecs-list-events thumb='true']</blockquote>
46
  <p><?php echo esc_html( __( 'You can use 2 other attributes: thumbwidth and thumbheight to customize the thumbnail size', 'the-events-calendar-shortcode' ) ); ?></p>
47
  <blockquote>[ecs-list-events thumb='true' thumbwidth='150' thumbheight='150']</blockquote>
 
 
 
48
  <h3>message</h3>
49
  <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>
50
  <h3>viewall</h3>
@@ -87,32 +90,36 @@
87
  <li>p .ecs-excerpt</li>
88
  </ul>
89
 
90
- <hr>
91
-
92
- <p><h3><?php echo esc_html__( 'Want a better looking design without adding any CSS?', 'the-events-calendar-shortcode' ) ?></h3></p>
93
- <p><?php echo sprintf( esc_html__( 'Check out %sThe Events Calendar Shortcode PRO%s', 'the-events-calendar-shortcode' ), '<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">', '</a>' ); ?></p>
94
- <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>
95
- <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>
96
-
97
- <hr>
98
-
99
- <h3><?php echo esc_html__( "In addition to designs, you'll get more options including:", 'the-events-calendar-shortcode' ); ?></h3>
100
- <h4><?php echo esc_html__( 'Number of days', 'the-events-calendar-shortcode' ) ?></h4>
101
- <p><?php echo esc_html__( 'Choose how many days to show events from, ie. 1 day or a week', 'the-events-calendar-shortcode' ) ?></p>
102
- <h4><?php echo esc_html__( 'Tag', 'the-events-calendar-shortcode' ) ?></h4>
103
- <p><?php echo esc_html__( 'Filter events listed by one or more tags', 'the-events-calendar-shortcode' ) ?></p>
104
- <h4><?php echo esc_html__( 'Single Event', 'the-events-calendar-shortcode' ) ?></h4>
105
- <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>
106
- <h4><?php echo esc_html__( 'Year', 'the-events-calendar-shortcode' ) ?></h4>
107
- <p><?php echo esc_html__( 'Show only events for a specific year', 'the-events-calendar-shortcode' ) ?></p>
108
- <h4><?php echo esc_html__( 'Offset', 'the-events-calendar-shortcode' ) ?></h4>
109
- <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>
110
- <h4><?php echo esc_html__( 'Full Description', 'the-events-calendar-shortcode' ) ?></h4>
111
- <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>
112
- <h4><?php echo esc_html__( 'Custom Design', 'the-events-calendar-shortcode' ) ?></h4>
113
- <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>
114
- <p><?php echo sprintf( esc_html__( '%sGet The Events Calendar Shortcode PRO%s', 'the-events-calendar-shortcode' ), '<a 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>
115
-
 
 
 
 
116
  <?php endif; ?>
117
  </td>
118
  </tr>
45
  <blockquote>[ecs-list-events thumb='true']</blockquote>
46
  <p><?php echo esc_html( __( 'You can use 2 other attributes: thumbwidth and thumbheight to customize the thumbnail size', 'the-events-calendar-shortcode' ) ); ?></p>
47
  <blockquote>[ecs-list-events thumb='true' thumbwidth='150' thumbheight='150']</blockquote>
48
+ <p><?php echo esc_html( __( 'or use thumbsize to specify the pre-set size to use, for example:', 'the-events-calendar-shortcode' ) ); ?></p>
49
+ <blockquote>[ecs-list-events thumb='true' thumbsize='large']</blockquote>
50
+
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>
90
  <li>p .ecs-excerpt</li>
91
  </ul>
92
 
93
+ <div id="ecs-pro-description">
94
+
95
+ <h3><?php echo esc_html__( 'Want a better looking design without adding any CSS?', 'the-events-calendar-shortcode' ) ?></h3>
96
+ <p><?php echo sprintf( esc_html__( 'Check out %sThe Events Calendar Shortcode PRO%s', 'the-events-calendar-shortcode' ), '<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">', '</a>' ); ?></p>
97
+ <div id="ecs-pro-designs">
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>
104
+ <h4><?php echo esc_html__( 'Number of days', 'the-events-calendar-shortcode' ) ?></h4>
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>
113
+ <p><?php echo esc_html__( 'Show only events for a specific year', 'the-events-calendar-shortcode' ) ?></p>
114
+ <h4><?php echo esc_html__( 'Offset', 'the-events-calendar-shortcode' ) ?></h4>
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>
121
+
122
+ </div>
123
  <?php endif; ?>
124
  </td>
125
  </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.5
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.5';
42
 
43
  private $admin_page = null;
44
 
@@ -154,6 +154,7 @@ class Events_Calendar_Shortcode
154
  'viewall' => 'false',
155
  'excerpt' => 'false',
156
  'thumb' => 'false',
 
157
  'thumbwidth' => '',
158
  'thumbheight' => '',
159
  'contentorder' => apply_filters( 'ecs_default_contentorder', 'title, thumbnail, excerpt, date, venue', $atts ),
@@ -274,7 +275,7 @@ class Events_Calendar_Shortcode
274
  if( !empty( $thumbWidth ) && !empty( $thumbHeight ) ) {
275
  $event_output .= apply_filters( 'ecs_event_thumbnail', get_the_post_thumbnail( get_the_ID(), apply_filters( 'ecs_event_thumbnail_size', array( $thumbWidth, $thumbHeight ), $atts, $post ) ), $atts, $post );
276
  } else {
277
- if ( $thumb = get_the_post_thumbnail( get_the_ID(), apply_filters( 'ecs_event_thumbnail_size', 'medium', $atts, $post ) ) ) {
278
  $event_output .= apply_filters( 'ecs_event_thumbnail_link_start', '<a href="' . tribe_get_event_link() . '">', $atts, $post );
279
  $event_output .= apply_filters( 'ecs_event_thumbnail', $thumb, $atts, $post );
280
  $event_output .= apply_filters( 'ecs_event_thumbnail_link_end', '</a>', $atts, $post );
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.5.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
  *
39
  * @since 1.0.0
40
  */
41
+ const VERSION = '1.5.1';
42
 
43
  private $admin_page = null;
44
 
154
  'viewall' => 'false',
155
  'excerpt' => 'false',
156
  'thumb' => 'false',
157
+ 'thumbsize' => '',
158
  'thumbwidth' => '',
159
  'thumbheight' => '',
160
  'contentorder' => apply_filters( 'ecs_default_contentorder', 'title, thumbnail, excerpt, date, venue', $atts ),
275
  if( !empty( $thumbWidth ) && !empty( $thumbHeight ) ) {
276
  $event_output .= apply_filters( 'ecs_event_thumbnail', get_the_post_thumbnail( get_the_ID(), apply_filters( 'ecs_event_thumbnail_size', array( $thumbWidth, $thumbHeight ), $atts, $post ) ), $atts, $post );
277
  } else {
278
+ if ( $thumb = get_the_post_thumbnail( get_the_ID(), apply_filters( 'ecs_event_thumbnail_size', ( trim( $atts['thumbsize'] ) ? trim( $atts['thumbsize'] ) : 'medium' ), $atts, $post ) ) ) {
279
  $event_output .= apply_filters( 'ecs_event_thumbnail_link_start', '<a href="' . tribe_get_event_link() . '">', $atts, $post );
280
  $event_output .= apply_filters( 'ecs_event_thumbnail', $thumb, $atts, $post );
281
  $event_output .= apply_filters( 'ecs_event_thumbnail_link_end', '</a>', $atts, $post );