Event Calendar WD – Responsive Event Calendar plugin - Version 1.0.78

Version Description

  • Added: Event description max length option
Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 Event Calendar WD – Responsive Event Calendar plugin
Version 1.0.78
Comparing to
See all releases

Code changes from version 1.0.77 to 1.0.78

ecwd.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Event Calendar WD
4
  * Plugin URI: https://web-dorado.com/products/wordpress-event-calendar-wd.html
5
  * Description: Event Calendar WD is an easy event management and planning tool with advanced features.
6
- * Version: 1.0.77
7
  * Author: WebDorado
8
  * Author URI: http://web-dorado.com
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -22,7 +22,7 @@ if( ! defined( 'ECWD_MAIN_FILE' ) ) {
22
  }
23
 
24
  if(! defined( 'ECWD_VERSION' ) ){
25
- define ('ECWD_VERSION',"1.0.77");
26
  }
27
 
28
  add_action( 'plugins_loaded', array( 'ECWD', 'get_instance' ) );
3
  * Plugin Name: Event Calendar WD
4
  * Plugin URI: https://web-dorado.com/products/wordpress-event-calendar-wd.html
5
  * Description: Event Calendar WD is an easy event management and planning tool with advanced features.
6
+ * Version: 1.0.78
7
  * Author: WebDorado
8
  * Author URI: http://web-dorado.com
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
22
  }
23
 
24
  if(! defined( 'ECWD_VERSION' ) ){
25
+ define ('ECWD_VERSION',"1.0.78");
26
  }
27
 
28
  add_action( 'plugins_loaded', array( 'ECWD', 'get_instance' ) );
ecwd_admin_class.php CHANGED
@@ -6,7 +6,7 @@
6
  class ECWD_Admin {
7
 
8
  protected static $instance = null;
9
- protected $version = '1.0.77';
10
  protected $ecwd_page = null;
11
  protected $notices = null;
12
 
6
  class ECWD_Admin {
7
 
8
  protected static $instance = null;
9
+ protected $version = '1.0.78';
10
  protected $ecwd_page = null;
11
  protected $notices = null;
12
 
ecwd_class.php CHANGED
@@ -6,7 +6,7 @@
6
  */
7
  class ECWD {
8
 
9
- protected $version = '1.0.77';
10
  protected $plugin_name = 'event-calendar-wd';
11
  protected $prefix = 'ecwd';
12
  protected static $instance = null;
6
  */
7
  class ECWD {
8
 
9
+ protected $version = '1.0.78';
10
  protected $plugin_name = 'event-calendar-wd';
11
  protected $prefix = 'ecwd';
12
  protected static $instance = null;
includes/ecwd-display-class.php CHANGED
@@ -228,7 +228,8 @@ class ECWD_Display {
228
  $facebook_events = array();
229
  //fetch google calendar events
230
 
231
-
 
232
 
233
  foreach ($ecwd_events as $ecwd_event) {
234
 
@@ -260,6 +261,9 @@ class ECWD_Display {
260
  }
261
 
262
  $permalink = get_permalink($ecwd_event->ID);
 
 
 
263
  if (isset($ecwd_event_metas[ECWD_PLUGIN_PREFIX . '_event_calendars'][0])) {
264
  if (is_serialized($ecwd_event_metas[ECWD_PLUGIN_PREFIX . '_event_calendars'][0])) {
265
  $event_calendar_ids = unserialize($ecwd_event_metas[ECWD_PLUGIN_PREFIX . '_event_calendars'][0]);
@@ -282,6 +286,27 @@ class ECWD_Display {
282
  }
283
  }
284
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
285
  /**
286
  * Comparison function for use when sorting merged event data (with usort)
287
  */
228
  $facebook_events = array();
229
  //fetch google calendar events
230
 
231
+ global $ecwd_options;
232
+ $event_desc_length = isset($ecwd_options['event_description_max_length']) ? $ecwd_options['event_description_max_length'] : "";
233
 
234
  foreach ($ecwd_events as $ecwd_event) {
235
 
261
  }
262
 
263
  $permalink = get_permalink($ecwd_event->ID);
264
+ if ($event_desc_length !== '') {
265
+ $ecwd_event->post_content = $this->the_excerpt_max_charlength(intval($event_desc_length), $ecwd_event->post_content, $permalink);
266
+ }
267
  if (isset($ecwd_event_metas[ECWD_PLUGIN_PREFIX . '_event_calendars'][0])) {
268
  if (is_serialized($ecwd_event_metas[ECWD_PLUGIN_PREFIX . '_event_calendars'][0])) {
269
  $event_calendar_ids = unserialize($ecwd_event_metas[ECWD_PLUGIN_PREFIX . '_event_calendars'][0]);
286
  }
287
  }
288
 
289
+ public function the_excerpt_max_charlength($charlength, $content,$permalink) {
290
+ $excerpt = $content;
291
+ $excerpt = strip_shortcodes($excerpt);
292
+ $excerpt = strip_tags($excerpt);
293
+ $charlength++;
294
+
295
+ if (mb_strlen($excerpt) > $charlength) {
296
+ $read_more = '<a href="'.$permalink.'">[' . __('Read more', 'ecwd') . ']</a>';
297
+ $subex = mb_substr($excerpt, 0, $charlength);
298
+ $exwords = explode(' ', $subex);
299
+ $excut = -(mb_strlen($exwords[count($exwords) - 1]));
300
+ if ($excut < 0) {
301
+ return mb_substr($subex, 0, $excut) . '...' .$read_more;
302
+ } else {
303
+ return $subex . '...'.$read_more;
304
+ }
305
+ } else {
306
+ return str_replace('[&hellip;]', '', $excerpt);
307
+ }
308
+ }
309
+
310
  /**
311
  * Comparison function for use when sorting merged event data (with usort)
312
  */
includes/register-settings.php CHANGED
@@ -168,7 +168,13 @@ function ecwd_register_settings() {
168
  'type' => 'radio',
169
  'default' => 1
170
  ),
171
-
 
 
 
 
 
 
172
  ),
173
  'events' => array(
174
  'events_archive_page_order' => array(
168
  'type' => 'radio',
169
  'default' => 1
170
  ),
171
+ 'event_description_max_length' => array(
172
+ 'id' => 'event_description_max_length',
173
+ 'name' => __('Event description max length.', 'ecwd'),
174
+ 'desc' => __('Event description max length.', 'ecwd'),
175
+ 'size' => 'medium-text',
176
+ 'type' => 'text'
177
+ ),
178
  ),
179
  'events' => array(
180
  'events_archive_page_order' => array(
languages/ecwd-ca.mo CHANGED
Binary file
languages/ecwd-ca.po CHANGED
@@ -2,17 +2,18 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: event_calendar_wd\n"
4
  "POT-Creation-Date: 2015-07-23 13:04+0400\n"
5
- "PO-Revision-Date: 2016-06-15 12:28+0400\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "X-Generator: Poedit 1.5.4\n"
12
  "X-Poedit-Basepath: ..\n"
13
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
14
  "X-Poedit-KeywordsList: _e;__\n"
15
  "Language: ca_ES\n"
 
16
  "X-Poedit-SearchPathExcluded-0: views/admin\n"
17
  "X-Poedit-SearchPathExcluded-1: js\n"
18
  "X-Poedit-SearchPathExcluded-2: includes/ecwd-cpt-class.php\n"
@@ -21,7 +22,6 @@ msgstr ""
21
  "X-Poedit-SearchPathExcluded-5: includes/ecwd-google-events-class.php\n"
22
  "X-Poedit-SearchPathExcluded-6: includes/ecwd-facebook-events-class.php\n"
23
  "X-Poedit-SearchPathExcluded-7: ecwd_admin_class.php\n"
24
- "X-Poedit-SearchPath-0: .\n"
25
 
26
  #: includes/calendar-class.php:175 includes/calendar-class.php:176
27
  #: views/widgets.php:168
@@ -380,7 +380,7 @@ msgstr "Esdeveniments relacionats"
380
 
381
  #: views/single-event.php:163
382
  msgid "Back"
383
- msgstr "esquena"
384
 
385
  #: ecwd_class.php:173
386
  msgid "Event Details"
2
  msgstr ""
3
  "Project-Id-Version: event_calendar_wd\n"
4
  "POT-Creation-Date: 2015-07-23 13:04+0400\n"
5
+ "PO-Revision-Date: 2016-12-02 10:53+0400\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Generator: Poedit 1.8.7.1\n"
12
  "X-Poedit-Basepath: ..\n"
13
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
14
  "X-Poedit-KeywordsList: _e;__\n"
15
  "Language: ca_ES\n"
16
+ "X-Poedit-SearchPath-0: .\n"
17
  "X-Poedit-SearchPathExcluded-0: views/admin\n"
18
  "X-Poedit-SearchPathExcluded-1: js\n"
19
  "X-Poedit-SearchPathExcluded-2: includes/ecwd-cpt-class.php\n"
22
  "X-Poedit-SearchPathExcluded-5: includes/ecwd-google-events-class.php\n"
23
  "X-Poedit-SearchPathExcluded-6: includes/ecwd-facebook-events-class.php\n"
24
  "X-Poedit-SearchPathExcluded-7: ecwd_admin_class.php\n"
 
25
 
26
  #: includes/calendar-class.php:175 includes/calendar-class.php:176
27
  #: views/widgets.php:168
380
 
381
  #: views/single-event.php:163
382
  msgid "Back"
383
+ msgstr "Tornar"
384
 
385
  #: ecwd_class.php:173
386
  msgid "Event Details"
languages/ecwd-es_ES.mo CHANGED
Binary file
languages/ecwd-es_ES.po CHANGED
@@ -2,17 +2,18 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: event_calendar_wd\n"
4
  "POT-Creation-Date: 2015-07-23 13:04+0400\n"
5
- "PO-Revision-Date: 2016-06-15 12:25+0400\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: es_ES\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.5.4\n"
13
  "X-Poedit-Basepath: ..\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
  "X-Poedit-KeywordsList: _e;__\n"
 
16
  "X-Poedit-SearchPathExcluded-0: views/admin\n"
17
  "X-Poedit-SearchPathExcluded-1: js\n"
18
  "X-Poedit-SearchPathExcluded-2: includes/ecwd-cpt-class.php\n"
@@ -21,7 +22,6 @@ msgstr ""
21
  "X-Poedit-SearchPathExcluded-5: includes/ecwd-google-events-class.php\n"
22
  "X-Poedit-SearchPathExcluded-6: includes/ecwd-facebook-events-class.php\n"
23
  "X-Poedit-SearchPathExcluded-7: ecwd_admin_class.php\n"
24
- "X-Poedit-SearchPath-0: .\n"
25
 
26
  #: includes/calendar-class.php:175 includes/calendar-class.php:176
27
  #: views/widgets.php:168
@@ -380,7 +380,7 @@ msgstr "Eventos relacionados"
380
 
381
  #: views/single-event.php:163
382
  msgid "Back"
383
- msgstr "Espalda"
384
 
385
  #: ecwd_class.php:173
386
  msgid "Event Details"
2
  msgstr ""
3
  "Project-Id-Version: event_calendar_wd\n"
4
  "POT-Creation-Date: 2015-07-23 13:04+0400\n"
5
+ "PO-Revision-Date: 2016-12-02 10:52+0400\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: es_ES\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.8.7.1\n"
13
  "X-Poedit-Basepath: ..\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
  "X-Poedit-KeywordsList: _e;__\n"
16
+ "X-Poedit-SearchPath-0: .\n"
17
  "X-Poedit-SearchPathExcluded-0: views/admin\n"
18
  "X-Poedit-SearchPathExcluded-1: js\n"
19
  "X-Poedit-SearchPathExcluded-2: includes/ecwd-cpt-class.php\n"
22
  "X-Poedit-SearchPathExcluded-5: includes/ecwd-google-events-class.php\n"
23
  "X-Poedit-SearchPathExcluded-6: includes/ecwd-facebook-events-class.php\n"
24
  "X-Poedit-SearchPathExcluded-7: ecwd_admin_class.php\n"
 
25
 
26
  #: includes/calendar-class.php:175 includes/calendar-class.php:176
27
  #: views/widgets.php:168
380
 
381
  #: views/single-event.php:163
382
  msgid "Back"
383
+ msgstr "Volver"
384
 
385
  #: ecwd_class.php:173
386
  msgid "Event Details"
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: webdorado
3
  Donate link: https://web-dorado.com/products/wordpress-event-calendar-wd.html
4
  Tags: calendar, date, event, event calendar, events, events calendar, meeting, organizer, recurring, reservation, responsive, schedule
5
  Requires at least: 3.9
6
- Tested up to: 4.6
7
- Stable tag: 1.0.77
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -155,6 +155,9 @@ After downloading the ZIP file of the Event Calendar WD plugin,
155
 
156
  == Changelog ==
157
 
 
 
 
158
  = 1.0.77 =
159
  * Added: Google maps style option
160
  * Added: Latitude,Longitude inputs in event-meta,venue-meta pages
3
  Donate link: https://web-dorado.com/products/wordpress-event-calendar-wd.html
4
  Tags: calendar, date, event, event calendar, events, events calendar, meeting, organizer, recurring, reservation, responsive, schedule
5
  Requires at least: 3.9
6
+ Tested up to: 4.7
7
+ Stable tag: 1.0.78
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
155
 
156
  == Changelog ==
157
 
158
+ = 1.0.78 =
159
+ * Added: Event description max length option
160
+
161
  = 1.0.77 =
162
  * Added: Google maps style option
163
  * Added: Latitude,Longitude inputs in event-meta,venue-meta pages