Event Calendar WD – Responsive Event Calendar plugin - Version 1.1.12

Version Description

  • Improved: Change default calendar using calendar list in dashboard
  • Changed: Calendar add-ons and themes do not have separate menu anymore
  • Changed: Updates and functionality removed (Premium)
Download this release

Release Info

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

Code changes from version 1.1.11 to 1.1.12

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.1.11
7
  * Author: WebDorado
8
  * Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -24,7 +24,7 @@ if (!defined('ECWD_URL')) {
24
  }
25
 
26
  if (!defined('ECWD_VERSION')) {
27
- define('ECWD_VERSION', "1.1.11");
28
  }
29
 
30
  if (!defined('ECWD_PLUGIN_MAIN_FILE')) {
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.1.12
7
  * Author: WebDorado
8
  * Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
24
  }
25
 
26
  if (!defined('ECWD_VERSION')) {
27
+ define('ECWD_VERSION', "1.1.12");
28
  }
29
 
30
  if (!defined('ECWD_PLUGIN_MAIN_FILE')) {
ecwd_admin_class.php CHANGED
@@ -29,7 +29,7 @@ class ECWD_Admin {
29
 
30
  //Add organizer,venue form event edit page
31
  add_action('wp_ajax_ecwd_add_post', array($this, 'wp_ajax_add_post'));
32
-
33
  //add shortcode in calendar post content
34
  add_action('wp_insert_post_data', array($this, 'add_calendar_shortcode'));
35
 
@@ -274,7 +274,6 @@ class ECWD_Admin {
274
  'post_title' => __("Calendar", 'ecwd'),
275
  'post_content' => "",
276
  'post_status' => 'publish',
277
- 'meta_input' => array('ecwd_default_calendar' => '1'),
278
  'post_type' => 'ecwd_calendar'
279
  );
280
 
@@ -396,30 +395,29 @@ class ECWD_Admin {
396
 
397
  $this->ecwd_page[] = add_submenu_page(
398
  ECWD_MENU_SLUG,
399
- __('Licensing', 'ecwd'),
400
- __('Licensing', 'ecwd'),
401
  'manage_options',
402
  $this->prefix . '_licensing',
403
  array($this, 'display_license_page')
404
  );
405
 
406
- $this->ecwd_page[] = add_menu_page(
 
407
  __('Calendar Add-ons', 'ecwd'),
408
  __('Calendar Add-ons', 'ecwd'),
409
  'manage_options',
410
- $this->prefix . '_addons', array($this, 'display_addons_page'),
411
- plugins_url('/assets/add-ons-icon.png', ECWD_MAIN_FILE),
412
- '26,12'
413
  );
414
 
415
- $this->ecwd_page[] = add_menu_page(
 
416
  __('Calendar Themes', 'ecwd'),
417
  __('Calendar Themes', 'ecwd'),
418
  'manage_options',
419
  $this->prefix . '_themes',
420
- array($this, 'display_themes_page'),
421
- plugins_url('/assets/themes-icon.png', ECWD_MAIN_FILE),
422
- '26,18'
423
  );
424
 
425
  if ($ecwd_config['show_config_submenu']) {
@@ -507,7 +505,7 @@ class ECWD_Admin {
507
  'ecwd_views' => array(
508
  'name' => 'ECWD views',
509
  'url' => 'https://web-dorado.com/products/wordpress-event-calendar-wd/add-ons/views.html',
510
- 'description' => 'ECWD Views is a convenient add-on for displaying one of the additional Pro views within the pages and posts. The add-on allows choosing the time range of the events, which will be displayed with a particular view.',
511
  'icon' => '',
512
  'image' => plugins_url('assets/ecwd_views.png', __FILE__),
513
  ),
@@ -758,6 +756,16 @@ class ECWD_Admin {
758
  die(json_encode($response));
759
  }
760
 
 
 
 
 
 
 
 
 
 
 
761
  /**
762
  * Localize Script
763
  */
@@ -1041,7 +1049,7 @@ class ECWD_Admin {
1041
  <?php
1042
  }
1043
  if ($is_free) {
1044
- $text = strtoupper(__('Upgrade to paid version', $prefix));
1045
  ?>
1046
  <div class="wd_pro">
1047
  <a target="_blank" class="wdi_update_pro_link" href="<?php echo $pro_link; ?>">
29
 
30
  //Add organizer,venue form event edit page
31
  add_action('wp_ajax_ecwd_add_post', array($this, 'wp_ajax_add_post'));
32
+ add_action('wp_ajax_ecwd_set_default_calendar', array($this, 'ecwd_set_default_calendar'));
33
  //add shortcode in calendar post content
34
  add_action('wp_insert_post_data', array($this, 'add_calendar_shortcode'));
35
 
274
  'post_title' => __("Calendar", 'ecwd'),
275
  'post_content' => "",
276
  'post_status' => 'publish',
 
277
  'post_type' => 'ecwd_calendar'
278
  );
279
 
395
 
396
  $this->ecwd_page[] = add_submenu_page(
397
  ECWD_MENU_SLUG,
398
+ __('Premium Version', 'ecwd'),
399
+ __('Premium Version', 'ecwd'),
400
  'manage_options',
401
  $this->prefix . '_licensing',
402
  array($this, 'display_license_page')
403
  );
404
 
405
+ $this->ecwd_page[] = add_submenu_page(
406
+ ECWD_MENU_SLUG,
407
  __('Calendar Add-ons', 'ecwd'),
408
  __('Calendar Add-ons', 'ecwd'),
409
  'manage_options',
410
+ $this->prefix . '_addons',
411
+ array($this, 'display_addons_page')
 
412
  );
413
 
414
+ $this->ecwd_page[] = add_submenu_page(
415
+ ECWD_MENU_SLUG,
416
  __('Calendar Themes', 'ecwd'),
417
  __('Calendar Themes', 'ecwd'),
418
  'manage_options',
419
  $this->prefix . '_themes',
420
+ array($this, 'display_themes_page')
 
 
421
  );
422
 
423
  if ($ecwd_config['show_config_submenu']) {
505
  'ecwd_views' => array(
506
  'name' => 'ECWD views',
507
  'url' => 'https://web-dorado.com/products/wordpress-event-calendar-wd/add-ons/views.html',
508
+ 'description' => 'ECWD Views is a convenient add-on for displaying one of the additional Premium views within the pages and posts. The add-on allows choosing the time range of the events, which will be displayed with a particular view.',
509
  'icon' => '',
510
  'image' => plugins_url('assets/ecwd_views.png', __FILE__),
511
  ),
756
  die(json_encode($response));
757
  }
758
 
759
+ public function ecwd_set_default_calendar(){
760
+ $response = array(
761
+ "success" => false,
762
+ "id" => 0
763
+ );
764
+ if (wp_verify_nonce($_POST['nonce'], 'ecwd_ajax_nonce') === false) {
765
+ die(json_encode($response));
766
+ }
767
+ update_option('ecwd_default_calendar', $_POST['id']);
768
+ }
769
  /**
770
  * Localize Script
771
  */
1049
  <?php
1050
  }
1051
  if ($is_free) {
1052
+ $text = strtoupper(__('Upgrade to premium version', $prefix));
1053
  ?>
1054
  <div class="wd_pro">
1055
  <a target="_blank" class="wdi_update_pro_link" href="<?php echo $pro_link; ?>">
includes/ecwd-cpt-class.php CHANGED
@@ -278,7 +278,7 @@ class ECWD_Cpt {
278
  'name' => __('Events', 'ecwd'),
279
  'singular_name' => __('Event', 'ecwd'),
280
  'name_admin_bar' => __('Event', 'ecwd'),
281
- 'add_new' => __('Add New', 'ecwd'),
282
  'add_new_item' => __('Add New Event', 'ecwd'),
283
  'new_item' => __('New Event', 'ecwd'),
284
  'edit_item' => __('Edit Event', 'ecwd'),
@@ -1021,8 +1021,6 @@ class ECWD_Cpt {
1021
  $_POST['ecwd_event_show_map'] = get_post_meta($_POST['ecwd_event_venue'], 'ecwd_venue_show_map', true);
1022
  $_POST['ecwd_map_zoom'] = get_post_meta($_POST['ecwd_event_venue'], 'ecwd_map_zoom', true);
1023
  }
1024
- }else if($post_type == 'ecwd_calendar'){
1025
- $this->save_default_calendar_meta($post_id);
1026
  }
1027
 
1028
 
@@ -1214,6 +1212,7 @@ class ECWD_Cpt {
1214
  'cb' => $defaults['cb'],
1215
  'calendar-id' => __('Calendar ID', 'ecwd'),
1216
  'calendar-sc' => __('Calendar Shortcode', 'ecwd'),
 
1217
  );
1218
 
1219
  return array_merge($defaults, $new_columns);
@@ -1233,7 +1232,7 @@ class ECWD_Cpt {
1233
  * Fill out the calendar columns
1234
  */
1235
  public function calendar_column_content($column_name, $post_ID) {
1236
-
1237
  switch ($column_name) {
1238
 
1239
  case 'calendar-id':
@@ -1242,6 +1241,9 @@ class ECWD_Cpt {
1242
  case 'calendar-sc':
1243
  echo '<code>[ecwd id="' . $post_ID . '"]</code>';
1244
  break;
 
 
 
1245
  }
1246
  }
1247
 
@@ -1442,27 +1444,6 @@ class ECWD_Cpt {
1442
  return $template;
1443
  }
1444
 
1445
- private function save_default_calendar_meta($post_id){
1446
-
1447
- $is_default_calendar = get_post_meta($post_id, 'ecwd_default_calendar', true);
1448
- $is_default_calendar = ($is_default_calendar == '1');
1449
-
1450
- $set_default_calendar = (isset($_POST['ecwd_default_calendar']) && $_POST['ecwd_default_calendar'] == '1');
1451
-
1452
-
1453
- if ($is_default_calendar === true && $set_default_calendar === false) {
1454
- delete_post_meta($post_id, 'ecwd_default_calendar');
1455
- delete_option('ecwd_default_calendar');
1456
- } else if ($is_default_calendar === false && $set_default_calendar === true) {
1457
- $default_calendar_id = get_option('ecwd_default_calendar');
1458
- if($default_calendar_id !== false && $default_calendar_id !== ""){
1459
- delete_post_meta($default_calendar_id, 'ecwd_default_calendar');
1460
- }
1461
- update_post_meta($post_id, 'ecwd_default_calendar', '1');
1462
- update_option('ecwd_default_calendar', $post_id);
1463
- }
1464
-
1465
- }
1466
 
1467
 
1468
  public static function add_new_venue($post_data=null) {
278
  'name' => __('Events', 'ecwd'),
279
  'singular_name' => __('Event', 'ecwd'),
280
  'name_admin_bar' => __('Event', 'ecwd'),
281
+ 'add_new' => __('Add New Event', 'ecwd'),
282
  'add_new_item' => __('Add New Event', 'ecwd'),
283
  'new_item' => __('New Event', 'ecwd'),
284
  'edit_item' => __('Edit Event', 'ecwd'),
1021
  $_POST['ecwd_event_show_map'] = get_post_meta($_POST['ecwd_event_venue'], 'ecwd_venue_show_map', true);
1022
  $_POST['ecwd_map_zoom'] = get_post_meta($_POST['ecwd_event_venue'], 'ecwd_map_zoom', true);
1023
  }
 
 
1024
  }
1025
 
1026
 
1212
  'cb' => $defaults['cb'],
1213
  'calendar-id' => __('Calendar ID', 'ecwd'),
1214
  'calendar-sc' => __('Calendar Shortcode', 'ecwd'),
1215
+ 'calendar-dc' => __('Default Calendar', 'ecwd'),
1216
  );
1217
 
1218
  return array_merge($defaults, $new_columns);
1232
  * Fill out the calendar columns
1233
  */
1234
  public function calendar_column_content($column_name, $post_ID) {
1235
+ $default_id = get_option("ecwd_default_calendar");
1236
  switch ($column_name) {
1237
 
1238
  case 'calendar-id':
1241
  case 'calendar-sc':
1242
  echo '<code>[ecwd id="' . $post_ID . '"]</code>';
1243
  break;
1244
+ case 'calendar-dc':
1245
+ echo '<input id="ecwd_set_default_'.$post_ID.'" data-calendar_id="'.$post_ID.'" type="radio" '. ( $post_ID == $default_id ? ' checked="checked"' : ''). ' name="ecwd_set_default">';
1246
+ break;
1247
  }
1248
  }
1249
 
1444
  return $template;
1445
  }
1446
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1447
 
1448
 
1449
  public static function add_new_venue($post_data=null) {
js/admin/admin.js CHANGED
@@ -4,6 +4,24 @@
4
  (function ($)
5
  {
6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  $("#ecwd_category_color").ecolorpicker();
8
 
9
  $('#ecwd_event_repeat_dont_repeat_radio').click(function ()
4
  (function ($)
5
  {
6
 
7
+ $("input[name='ecwd_set_default']").on('change',function(){
8
+ var ecwd_calendar_id = $(this).data("calendar_id");
9
+ console.log(ecwd_calendar_id);
10
+ jQuery.ajax({
11
+ type: 'POST',
12
+ url: ecwd.ajaxurl,
13
+ data: {
14
+ action: 'ecwd_set_default_calendar',
15
+ nonce: ecwd.ajaxnonce,
16
+ id: ecwd_calendar_id
17
+ },
18
+ success: function (response) {
19
+
20
+ }
21
+ });
22
+ });
23
+
24
+
25
  $("#ecwd_category_color").ecolorpicker();
26
 
27
  $('#ecwd_event_repeat_dont_repeat_radio').click(function ()
js/admin/editor-buttons.js CHANGED
@@ -292,7 +292,7 @@
292
  type: 'container',
293
  name: 'href',
294
  style: 'color:#bf1b02',
295
- html: '<a href="https://web-dorado.com/products/wordpress-event-calendar-wd.html" target="_blank">Upgrade to Paid version.</a>'
296
  }
297
  ]
298
  },
@@ -337,7 +337,7 @@
337
  },
338
  {
339
  type: 'label',
340
- text: 'Upgrade to Paid version to access three more view options: posterboard, map and 4 days.',
341
  style: 'color:#bf1b02'
342
 
343
 
292
  type: 'container',
293
  name: 'href',
294
  style: 'color:#bf1b02',
295
+ html: '<a href="https://web-dorado.com/products/wordpress-event-calendar-wd.html" target="_blank">Upgrade to Premium version.</a>'
296
  }
297
  ]
298
  },
337
  },
338
  {
339
  type: 'label',
340
+ text: 'Upgrade to Premium version to access three more view options: posterboard, map and 4 days.',
341
  style: 'color:#bf1b02'
342
 
343
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: calendar, date, event, event calendar, events, events calendar, meeting, o
4
  Requires at least: 3.9
5
  Tested up to: 4.9
6
  Requires PHP: 5.2
7
- Stable tag: 1.1.11
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -149,9 +149,10 @@ This section works with filters add on. You can specify the list of the filterin
149
  = 2. What add-ons are available for The Events Calendar? =
150
 
151
  You can install a number of management-related, event grouping and integrative add-ons to boost your experience. Please note that the Calendar add-ons are supported by the premium version of Event Calendar WD.
152
- **FRONTEND MANAGEMENT** - This add-on is designed for allowing the users/guests to add events to the calendar from the front end. In addition, the users can also have permissions to edit/delete their events.
153
 
154
- **IMPORT/EXPORT** - The following data of the Event Calendar WD can be exported and imported: Events, Categories, Venues,Organizers and Tags. The exported/imported data will be in CSV format, which can be further edited, modified and imported.
 
 
155
 
156
  **CUSTOM FIELDS** - Custom Fields Add-On will enable you to have more fields for more detailed and structured content: you can use this add-on and create additional fields for each event, venue and organizer.
157
 
@@ -159,6 +160,8 @@ You can install a number of management-related, event grouping and integrative a
159
 
160
  **EXPORT TO GCAL/ICAL/OUTLOOK** - Export add-on will allow your calendar users to export single or whole month events in CSV and ICS formats and import to their iCalendars, Google and Outlook calendars.
161
 
 
 
162
  **EMBED** - This add-on will allow displaying a calendar from your site to other websites using embed code without need of installing ECWD plugin.
163
 
164
  **FILTER ADD-ON** - This add-on is designed for advanced event filter and browsing. It will display multiple filters, which will make it easier for the user to find the relevant event from the calendar.
@@ -175,7 +178,15 @@ You can install a number of management-related, event grouping and integrative a
175
 
176
  **ICAL INTEGRATION** - This addon integrates ECWD with your iCAL Calendar and gives functionality to import events or just display events without importing.
177
 
178
- **EVENT TICKETS** - Event Tickets Add-on is an easy set up tool for integrating ECWD with WooCommerce to sell tickets for your events.
 
 
 
 
 
 
 
 
179
 
180
  = 3. Can I publish the Calendar as a Widget? =
181
 
@@ -192,7 +203,7 @@ Find the Event Calendar WD widget and assign it to a custom widget position
192
 
193
  = 4. How do I add a new event in the calendar? =
194
 
195
- Open your plugin and navigate to the Add New section in the menu. Here you can create new events by specifying such details, as:
196
  **Title.** Set a title for the event.
197
  **Content.** Provide the details of the event.
198
  **Event Settings:** These settings will help you configure the event dates, repeat rates, URL, venues and organizers.
@@ -248,11 +259,11 @@ Turn it into a facebook event calendar by simply providing Facebook page ID when
248
 
249
  This beautiful calendar plugin for WordPress provides Google Calendar Integration add-on for its Premium version. You can import Gcal into Event Calendar WD, or simply display them on your calendar without importing.
250
 
251
- Simply copy your Google Calendar ID to the corresponding option among WP calendar settings, and the events will appear. When you make changes on your Google Calendar, the events on your website will update automatically.
252
 
253
  = 11. Can I let users to add their own events? =
254
 
255
- Frontend Event Management add-on of this events calendar plugin turns your event list into an online booking calendar. It lets users add their own events with desired dates and times.
256
 
257
  This add-on comes handy, when you require meeting scheduling and appointment booking calendar, or event booking functionality. Users can place event bookings by adding new events from calendar page, which will be queued for website administrator’s approval.
258
 
@@ -284,6 +295,11 @@ After downloading the ZIP file of the Event Calendar WD plugin,
284
 
285
  == Changelog ==
286
 
 
 
 
 
 
287
  = 1.1.11 =
288
  * Fixed: Bug on PHP 5.3 version
289
 
@@ -705,23 +721,5 @@ After downloading the ZIP file of the Event Calendar WD plugin,
705
  = 1.0.0 =
706
  * Initial version
707
 
708
- == Event Calendar WD User Manual ==
709
-
710
- = Installing =
711
- In this section you will learn how to install the Event Calendar WD to your WordPress site.
712
-
713
- = Minimum requirements =
714
- WordPress 3.9+
715
- PHP 5.x
716
- MySQL 5.x
717
-
718
- Installing the plugin
719
- Login to the Administrator Panel.
720
- Navigate to Plugins>Add New>Upload.
721
- Click on "Choose file" or drag and drop the zip file of the Event Calendar plugin.
722
- Press "Upload and Install" button.
723
- Click on "Activate Plugin" link.
724
-
725
- When the installation succeeds you will be automatically redirected to the plugins page. If any issues occur during the process [click here to contact us](https://web-dorado.com/support/contact-us.html).
726
 
727
 
4
  Requires at least: 3.9
5
  Tested up to: 4.9
6
  Requires PHP: 5.2
7
+ Stable tag: 1.1.12
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
149
  = 2. What add-ons are available for The Events Calendar? =
150
 
151
  You can install a number of management-related, event grouping and integrative add-ons to boost your experience. Please note that the Calendar add-ons are supported by the premium version of Event Calendar WD.
 
152
 
153
+ **FRONTEND MANAGEMENT** - This add-on is designed for allowing the users/guests to add events to the calendar from the front end. In addition, the users can also have permissions to edit/delete their events. The Frontent Management add-on of this event manager plugin turns it into an interactive calendar.
154
+
155
+ **IMPORT/EXPORT** - The following data of the Event Calendar WD can be exported and imported: Events, Categories, Venues,Organizers and Tags. The exported/imported data will be in CSV format, which can be further edited, modified and imported.
156
 
157
  **CUSTOM FIELDS** - Custom Fields Add-On will enable you to have more fields for more detailed and structured content: you can use this add-on and create additional fields for each event, venue and organizer.
158
 
160
 
161
  **EXPORT TO GCAL/ICAL/OUTLOOK** - Export add-on will allow your calendar users to export single or whole month events in CSV and ICS formats and import to their iCalendars, Google and Outlook calendars.
162
 
163
+ This is a wonderful feature, since many users often keep their event booking data, restaurant reservations, or schedule on iCal, Google Calendar or Outlook Calendar. With this add-on, you will not need to recreate all these events, simply import them into the events manager.
164
+
165
  **EMBED** - This add-on will allow displaying a calendar from your site to other websites using embed code without need of installing ECWD plugin.
166
 
167
  **FILTER ADD-ON** - This add-on is designed for advanced event filter and browsing. It will display multiple filters, which will make it easier for the user to find the relevant event from the calendar.
178
 
179
  **ICAL INTEGRATION** - This addon integrates ECWD with your iCAL Calendar and gives functionality to import events or just display events without importing.
180
 
181
+ **EVENT TICKETS** - Event Tickets Add-on is an easy set up tool for integrating ECWD with WooCommerce to sell tickets for your events. These tickets are sold as bookings from your calendar and you are notified about each sale.
182
+
183
+ This event ticketing power-up of the calendar manager plugin allows you to add the following features to your website:
184
+
185
+ * event registration/online reservation system,
186
+ * appointment booking calendar,
187
+ * booking system with a booking form,
188
+ * RSVP/booking calendar,
189
+ * ticket sales.
190
 
191
  = 3. Can I publish the Calendar as a Widget? =
192
 
203
 
204
  = 4. How do I add a new event in the calendar? =
205
 
206
+ Open your availability calendar plugin and navigate to the Add New section in the menu. Here you can create new events by specifying such details, as:
207
  **Title.** Set a title for the event.
208
  **Content.** Provide the details of the event.
209
  **Event Settings:** These settings will help you configure the event dates, repeat rates, URL, venues and organizers.
259
 
260
  This beautiful calendar plugin for WordPress provides Google Calendar Integration add-on for its Premium version. You can import Gcal into Event Calendar WD, or simply display them on your calendar without importing.
261
 
262
+ Simply copy your Google Calendar ID to the corresponding option among WP calendar settings, and the events will appear. When you make changes on your Google Calendar, the events on your attractive calendar will update automatically.
263
 
264
  = 11. Can I let users to add their own events? =
265
 
266
+ Frontend Event Management add-on of this events calendar plugin turns your event list into an online booking calendar. It lets users add their own events with desired dates and times, serving as a booking plugin.
267
 
268
  This add-on comes handy, when you require meeting scheduling and appointment booking calendar, or event booking functionality. Users can place event bookings by adding new events from calendar page, which will be queued for website administrator’s approval.
269
 
295
 
296
  == Changelog ==
297
 
298
+ = 1.1.12 =
299
+ * Improved: Change default calendar using calendar list in dashboard
300
+ * Changed: Calendar add-ons and themes do not have separate menu anymore
301
+ * Changed: Updates and functionality removed (Premium)
302
+
303
  = 1.1.11 =
304
  * Fixed: Bug on PHP 5.3 version
305
 
721
  = 1.0.0 =
722
  * Initial version
723
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
724
 
725
 
views/admin/ecwd-calendar-meta.php CHANGED
@@ -15,7 +15,6 @@ $ecwd_calendar_12_hour_time_format = get_post_meta($post->ID, ECWD_PLUGIN_PREFIX
15
  $ecwd_calendar_default_theme_color = isset($_GET['post']) ? 'calendar' : 'calendar_grey';
16
  $ecwd_calendar_default_theme_color = (isset($ecwd_calendar_theme) && $ecwd_calendar_theme != '') ? $ecwd_calendar_theme : $ecwd_calendar_default_theme_color;
17
 
18
- $default_calendar_id = get_option('ecwd_default_calendar');
19
  ?>
20
 
21
  <table class="form-table">
@@ -110,24 +109,9 @@ $default_calendar_id = get_option('ecwd_default_calendar');
110
  <option disabled>Saddle Brown</option>
111
  </select>
112
  <p class="description">
113
- <a href="https://web-dorado.com/products/wordpress-event-calendar-wd.html" target="_blank"><?php _e('Upgrade to Pro for more themes.', 'ecwd'); ?></a>
114
  </p>
115
  <!--<a href="<?php //echo admin_url('admin.php?page=ecwd_themes');?>"><?php //_e('Default', 'ecwd');?></a> <sup style="color: #ba281e;">pro</sup>-->
116
  </td>
117
  </tr>
118
- <tr>
119
- <th scope="row">
120
- <label for="ecwd_default_calendar"><?php _e('Default Calendar', 'ecwd'); ?></label>
121
- </th>
122
- <td>
123
- <input type="checkbox"
124
- id="ecwd_default_calendar"
125
- name="ecwd_default_calendar"
126
- value="1"
127
- <?php checked($post_id, $default_calendar_id); ?>>
128
- <p class="description">
129
- Use this calendar for newly created events.
130
- </p>
131
- </td>
132
- </tr>
133
  </table>
15
  $ecwd_calendar_default_theme_color = isset($_GET['post']) ? 'calendar' : 'calendar_grey';
16
  $ecwd_calendar_default_theme_color = (isset($ecwd_calendar_theme) && $ecwd_calendar_theme != '') ? $ecwd_calendar_theme : $ecwd_calendar_default_theme_color;
17
 
 
18
  ?>
19
 
20
  <table class="form-table">
109
  <option disabled>Saddle Brown</option>
110
  </select>
111
  <p class="description">
112
+ <a href="https://web-dorado.com/products/wordpress-event-calendar-wd.html" target="_blank"><?php _e('Upgrade to Premium for more themes.', 'ecwd'); ?></a>
113
  </p>
114
  <!--<a href="<?php //echo admin_url('admin.php?page=ecwd_themes');?>"><?php //_e('Default', 'ecwd');?></a> <sup style="color: #ba281e;">pro</sup>-->
115
  </td>
116
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
117
  </table>
views/admin/ecwd-event-meta.php CHANGED
@@ -440,7 +440,7 @@ $ecwd_event_video = get_post_meta($post->ID, ECWD_PLUGIN_PREFIX . '_event_video'
440
  <th scope="row"><label class="repeat_format"><?php _e('Repeat rate', 'ecwd'); ?></label></th>
441
  <td>
442
  <a href="https://web-dorado.com/files/fromEventCalendarWD.php"
443
- target="_blank"><?php _e('Upgrade to Paid version', 'ecwd'); ?></a>
444
  </td>
445
  </tr>
446
  <?php } ?>
440
  <th scope="row"><label class="repeat_format"><?php _e('Repeat rate', 'ecwd'); ?></label></th>
441
  <td>
442
  <a href="https://web-dorado.com/files/fromEventCalendarWD.php"
443
+ target="_blank"><?php _e('Upgrade to Premium version', 'ecwd'); ?></a>
444
  </td>
445
  </tr>
446
  <?php } ?>
views/admin/ecwd-theme-meta.php CHANGED
@@ -13,7 +13,7 @@ global $post;
13
  <h2 id="add_on_title"><?php echo esc_html( get_admin_page_title() ); ?></h2>
14
  <div id="ecwd-display-options-wrap">
15
  <br />
16
- <span style="font-size: 15px; font-weight: bold;">The calendar currently uses default theme. Upgrade to Paid version to modify theme options and get fancy 5 more themes.</span>
17
  <br/>
18
  <br/>
19
  <div class="ecwd-meta-control">
13
  <h2 id="add_on_title"><?php echo esc_html( get_admin_page_title() ); ?></h2>
14
  <div id="ecwd-display-options-wrap">
15
  <br />
16
+ <span style="font-size: 15px; font-weight: bold;">The calendar currently uses default theme. Upgrade to Premium version to modify theme options and get fancy 5 more themes.</span>
17
  <br/>
18
  <br/>
19
  <div class="ecwd-meta-control">
views/admin/licensing.php CHANGED
@@ -64,7 +64,7 @@ global $ecwd_tabs;
64
  <span class="no"></span>
65
 
66
  </div>
67
- <div id="featurs_table3"><span>Paid Version</span>
68
  <span class="yes"></span>
69
  <span class="yes"></span>
70
  <span class="yes"></span>
64
  <span class="no"></span>
65
 
66
  </div>
67
+ <div id="featurs_table3"><span>Premium Version</span>
68
  <span class="yes"></span>
69
  <span class="yes"></span>
70
  <span class="yes"></span>
wd/assets/img/fmc_main_plugin.png ADDED
Binary file
wd/includes/deactivate.php CHANGED
@@ -44,7 +44,7 @@
44
  ),
45
  4 => array(
46
  'id' => self::REASON_UPGRADING_TO_PAID_VERSION,
47
- 'text' => __( 'Upgrading to paid version', $wd_options->prefix ),
48
  ),
49
  5 => array(
50
  'id' => self::REASON_TEMPORARY_DEACTIVATION,
44
  ),
45
  4 => array(
46
  'id' => self::REASON_UPGRADING_TO_PAID_VERSION,
47
+ 'text' => __( 'Upgrading to Premium version', $wd_options->prefix ),
48
  ),
49
  5 => array(
50
  'id' => self::REASON_TEMPORARY_DEACTIVATION,
wd/templates/display_deactivation_popup.php CHANGED
@@ -5,7 +5,7 @@
5
  </div>
6
  <form method="post" id="<?php echo $wd_options->prefix; ?>_deactivate_form">
7
  <div class="wd-deactivate-popup-header">
8
- <?php _e( "Please let us know why you are deactivating. Your answer will help us to serve you better", $wd_options->prefix ); ?>:
9
  </div>
10
 
11
  <div class="wd-deactivate-popup-body">
@@ -18,8 +18,8 @@
18
  <div class="<?php echo $wd_options->prefix; ?>_additional_details_wrap"></div>
19
  </div>
20
  <div class="wd-btns">
21
- <a href="<?php echo $deactivate_url; ?>" data-val="1" class="button button-primary button-close wd-<?php echo $wd_options->prefix; ?>-deactivate" id="wd-<?php echo $wd_options->prefix; ?>-deactivate"><?php _e( "Skip and deactivate" , $wd_options->prefix ); ?></a>
22
- <a href="<?php echo $deactivate_url; ?>" data-val="2" class="button button-primary button-close wd-<?php echo $wd_options->prefix; ?>-deactivate" id="wd-<?php echo $wd_options->prefix; ?>-submit-and-deactivate" style="display:none;"><?php _e( "Submit and deactivate" , $wd_options->prefix ); ?></a>
23
  </div>
24
  <input type="hidden" name="<?php echo $wd_options->prefix . "_submit_and_deactivate"; ?>" value="" >
25
  <?php wp_nonce_field( $wd_options->prefix . '_save_form', $wd_options->prefix . '_save_form_fild'); ?>
5
  </div>
6
  <form method="post" id="<?php echo $wd_options->prefix; ?>_deactivate_form">
7
  <div class="wd-deactivate-popup-header">
8
+ <?php _e( "Please let us know why you are deactivating. Your answer will help us to serve you better (Optional)", $wd_options->prefix ); ?>:
9
  </div>
10
 
11
  <div class="wd-deactivate-popup-body">
18
  <div class="<?php echo $wd_options->prefix; ?>_additional_details_wrap"></div>
19
  </div>
20
  <div class="wd-btns">
21
+ <a href="<?php echo $deactivate_url; ?>" data-val="1" class="button button-primary button-close wd-<?php echo $wd_options->prefix; ?>-deactivate" id="wd-<?php echo $wd_options->prefix; ?>-deactivate"><?php _e( "Skip and Deactivate" , $wd_options->prefix ); ?></a>
22
+ <a href="<?php echo $deactivate_url; ?>" data-val="2" class="button button-primary button-close wd-<?php echo $wd_options->prefix; ?>-deactivate" id="wd-<?php echo $wd_options->prefix; ?>-submit-and-deactivate" style="display:none;"><?php _e( "Submit and Deactivate" , $wd_options->prefix ); ?></a>
23
  </div>
24
  <input type="hidden" name="<?php echo $wd_options->prefix . "_submit_and_deactivate"; ?>" value="" >
25
  <?php wp_nonce_field( $wd_options->prefix . '_save_form', $wd_options->prefix . '_save_form_fild'); ?>