Event Calendar WD – Responsive Event Calendar plugin - Version 1.0.84

Version Description

  • Added: Script keys
  • Fixed: Bug on widget
  • Fixed: Styles
  • Fixed: Back link
Download this release

Release Info

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

Code changes from version 1.0.83 to 1.0.84

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.83
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.83");
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.84
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.84");
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.83';
10
  protected $ecwd_page = null;
11
  protected $notices = null;
12
 
@@ -103,10 +103,24 @@ class ECWD_Admin {
103
  include_once ECWD_DIR . '/includes/ecwd_config.php';
104
  $conf = ECWD_Config::get_instance();
105
  $conf->update_conf_file();
106
- if (get_option("ecwd_version") == false) {
107
- self::fix_events_locations();
 
 
 
 
 
 
 
 
 
 
 
 
108
  }
109
- update_option('ecwd_version', ECWD_VERSION);
 
 
110
  }
111
 
112
  static function fix_events_locations(){
@@ -423,18 +437,20 @@ class ECWD_Admin {
423
  * Enqueue styles for the admin area
424
  */
425
  public function enqueue_admin_styles() {
426
- wp_enqueue_style($this->prefix . '-calendar-buttons-style', plugins_url('css/admin/mse-buttons.css', __FILE__), '', $this->version, 'all');
 
 
427
  if ($this->ecwd_page()) {
428
- //wp_enqueue_style($this->prefix . '-main', plugins_url('css/calendar.css', __FILE__), '', $this->version);
429
- wp_enqueue_style('ecwd-admin-css', plugins_url('css/admin/admin.css', __FILE__), array(), $this->version, 'all');
430
- wp_enqueue_style('ecwd-admin-datetimepicker-css', plugins_url('css/admin/jquery.datetimepicker.css', __FILE__), array(), $this->version, 'all');
431
- wp_enqueue_style('ecwd-admin-colorpicker-css', plugins_url('css/admin/evol.colorpicker.css', __FILE__), array(), $this->version, 'all');
432
- wp_enqueue_style($this->prefix . '-calendar-style', plugins_url('css/style.css', __FILE__), '', $this->version, 'all');
433
- wp_enqueue_style($this->prefix . '_font-awesome', plugins_url('/css/font-awesome/font-awesome.css', __FILE__), '', $this->version, 'all');
434
- wp_enqueue_style($this->prefix . '-featured_plugins', plugins_url('/css/admin/featured_plugins.css', __FILE__), '', $this->version, 'all');
435
- // wp_enqueue_style($this->prefix . '-featured_themes', plugins_url('/css/admin/featured_themes.css', __FILE__), '', $this->version, 'all');
436
- wp_enqueue_style($this->prefix . '-licensing', plugins_url('/css/admin/licensing.css', __FILE__), '', $this->version, 'all');
437
- wp_enqueue_style($this->prefix . '-popup-styles', plugins_url('/css/ecwd_popup.css', __FILE__), '', $this->version, 'all');
438
  }
439
  }
440
 
@@ -442,21 +458,22 @@ class ECWD_Admin {
442
  * Register scripts for the admin area
443
  */
444
  public function enqueue_admin_scripts() {
 
445
  if ($this->ecwd_page()) {
446
  global $ecwd_options;
447
 
448
- wp_enqueue_script($this->prefix . '-gmap-public-admin', plugins_url('js/gmap/gmap3.js', __FILE__), array('jquery'), $this->version, true);
449
  wp_enqueue_script($this->prefix . '-admin-datetimepicker', plugins_url('js/admin/jquery.datetimepicker.js', __FILE__), array(
450
  'jquery',
451
  'jquery-ui-widget'
452
- ), $this->version, true);
453
- wp_enqueue_script($this->prefix . '-admin-colorpicker', plugins_url('js/admin/evol.colorpicker.js', __FILE__), array('jquery'), $this->version, true);
454
- wp_enqueue_script($this->prefix . '-admin-ecwd-popup', plugins_url('js/ecwd_popup.js', __FILE__), array('jquery'), $this->version, true);
455
  wp_enqueue_script($this->prefix . '-public', plugins_url('js/scripts.js', __FILE__), array(
456
  'jquery',
457
  'masonry',
458
  $this->prefix . '-admin-ecwd-popup'
459
- ), $this->version, true);
460
  wp_register_script($this->prefix . '-admin-scripts', plugins_url('js/admin/admin.js', __FILE__), array(
461
  'jquery',
462
  'jquery-ui-datepicker',
@@ -464,8 +481,8 @@ class ECWD_Admin {
464
  'jquery-ui-selectable',
465
  $this->prefix . '-public',
466
  $this->prefix . '-admin-ecwd-popup'
467
- ), $this->version, true);
468
- wp_enqueue_script($this->prefix . '-admin-datetimepicker-scripts', plugins_url('js/admin/datepicker.js', __FILE__), array('jquery'), $this->version, true);
469
 
470
  $params['ajaxurl'] = admin_url('admin-ajax.php');
471
  $params['version'] = get_bloginfo('version');
6
  class ECWD_Admin {
7
 
8
  protected static $instance = null;
9
+ protected $version = '1.0.84';
10
  protected $ecwd_page = null;
11
  protected $notices = null;
12
 
103
  include_once ECWD_DIR . '/includes/ecwd_config.php';
104
  $conf = ECWD_Config::get_instance();
105
  $conf->update_conf_file();
106
+
107
+
108
+ $version_option = get_option("ecwd_version");
109
+
110
+ if($version_option == false){
111
+ self::fix_events_locations();
112
+ }
113
+
114
+ if($version_option == false || version_compare($version_option, '1.0.83', '<=')) {
115
+ $opt = get_option('ecwd_settings_general');
116
+ if (isset($opt['show_events_detail'])) {
117
+ $events_opt = get_option('ecwd_settings_events');
118
+ $events_opt['show_events_detail'] = $opt['show_events_detail'];
119
+ update_option('ecwd_settings_events', $events_opt);
120
  }
121
+ }
122
+
123
+ update_option('ecwd_version',ECWD_VERSION);
124
  }
125
 
126
  static function fix_events_locations(){
437
  * Enqueue styles for the admin area
438
  */
439
  public function enqueue_admin_styles() {
440
+
441
+ $styles_key = $this->version . '_' . ECWD_SCRIPTS_KEY;
442
+ wp_enqueue_style($this->prefix . '-calendar-buttons-style', plugins_url('css/admin/mse-buttons.css', __FILE__), '', $styles_key, 'all');
443
  if ($this->ecwd_page()) {
444
+ //wp_enqueue_style($this->prefix . '-main', plugins_url('css/calendar.css', __FILE__), '', $styles_key);
445
+ wp_enqueue_style('ecwd-admin-css', plugins_url('css/admin/admin.css', __FILE__), array(), $styles_key, 'all');
446
+ wp_enqueue_style('ecwd-admin-datetimepicker-css', plugins_url('css/admin/jquery.datetimepicker.css', __FILE__), array(), $styles_key, 'all');
447
+ wp_enqueue_style('ecwd-admin-colorpicker-css', plugins_url('css/admin/evol.colorpicker.css', __FILE__), array(), $styles_key, 'all');
448
+ wp_enqueue_style($this->prefix . '-calendar-style', plugins_url('css/style.css', __FILE__), '', $styles_key, 'all');
449
+ wp_enqueue_style($this->prefix . '_font-awesome', plugins_url('/css/font-awesome/font-awesome.css', __FILE__), '', $styles_key, 'all');
450
+ wp_enqueue_style($this->prefix . '-featured_plugins', plugins_url('/css/admin/featured_plugins.css', __FILE__), '', $styles_key, 'all');
451
+ // wp_enqueue_style($this->prefix . '-featured_themes', plugins_url('/css/admin/featured_themes.css', __FILE__), '', $styles_key, 'all');
452
+ wp_enqueue_style($this->prefix . '-licensing', plugins_url('/css/admin/licensing.css', __FILE__), '', $styles_key, 'all');
453
+ wp_enqueue_style($this->prefix . '-popup-styles', plugins_url('/css/ecwd_popup.css', __FILE__), '', $styles_key, 'all');
454
  }
455
  }
456
 
458
  * Register scripts for the admin area
459
  */
460
  public function enqueue_admin_scripts() {
461
+ $scripts_key = $this->version . '_' . ECWD_SCRIPTS_KEY;
462
  if ($this->ecwd_page()) {
463
  global $ecwd_options;
464
 
465
+ wp_enqueue_script($this->prefix . '-gmap-public-admin', plugins_url('js/gmap/gmap3.js', __FILE__), array('jquery'), $scripts_key, true);
466
  wp_enqueue_script($this->prefix . '-admin-datetimepicker', plugins_url('js/admin/jquery.datetimepicker.js', __FILE__), array(
467
  'jquery',
468
  'jquery-ui-widget'
469
+ ), $scripts_key, true);
470
+ wp_enqueue_script($this->prefix . '-admin-colorpicker', plugins_url('js/admin/evol.colorpicker.js', __FILE__), array('jquery'), $scripts_key, true);
471
+ wp_enqueue_script($this->prefix . '-admin-ecwd-popup', plugins_url('js/ecwd_popup.js', __FILE__), array('jquery'), $scripts_key, true);
472
  wp_enqueue_script($this->prefix . '-public', plugins_url('js/scripts.js', __FILE__), array(
473
  'jquery',
474
  'masonry',
475
  $this->prefix . '-admin-ecwd-popup'
476
+ ), $scripts_key, true);
477
  wp_register_script($this->prefix . '-admin-scripts', plugins_url('js/admin/admin.js', __FILE__), array(
478
  'jquery',
479
  'jquery-ui-datepicker',
481
  'jquery-ui-selectable',
482
  $this->prefix . '-public',
483
  $this->prefix . '-admin-ecwd-popup'
484
+ ), $scripts_key, true);
485
+ wp_enqueue_script($this->prefix . '-admin-datetimepicker-scripts', plugins_url('js/admin/datepicker.js', __FILE__), array('jquery'), $scripts_key, true);
486
 
487
  $params['ajaxurl'] = admin_url('admin-ajax.php');
488
  $params['version'] = get_bloginfo('version');
ecwd_class.php CHANGED
@@ -6,7 +6,7 @@
6
  */
7
  class ECWD {
8
 
9
- protected $version = '1.0.83';
10
  protected $plugin_name = 'event-calendar-wd';
11
  protected $prefix = 'ecwd';
12
  protected static $instance = null;
@@ -69,9 +69,15 @@ class ECWD {
69
  }
70
  if (!defined('ECWD_URL')) {
71
  define('ECWD_URL', plugins_url(plugin_basename(dirname(__FILE__))));
72
- }if (!defined('ECWD_VERSION')) {
 
 
73
  define('ECWD_VERSION', $this->version);
74
  }
 
 
 
 
75
  }
76
 
77
  public function add_localization() {
@@ -146,6 +152,8 @@ class ECWD {
146
  public function enqueue_scripts() {
147
  global $wp_scripts, $post,$ecwd_options;
148
  $gmap_key = (isset($ecwd_options['gmap_key'])) ? $ecwd_options['gmap_key'] : "";
 
 
149
 
150
  $map_included = false;
151
  if (is_object($post))
@@ -162,18 +170,18 @@ class ECWD {
162
  }
163
 
164
  if (!$map_included && false) {
165
- wp_enqueue_script($this->prefix . '-maps-public', 'https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&libraries=places&key='.$gmap_key, array('jquery'), $this->version, false);
166
  }
167
  }
168
 
169
- wp_enqueue_script($this->prefix . '-gmap-public', plugins_url('js/gmap/gmap3.js', __FILE__), array('jquery'), $this->version, true);
170
- wp_enqueue_script($this->prefix . '-popup', plugins_url('js/ecwd_popup.js', __FILE__), array('jquery'), $this->version, true);
171
  wp_enqueue_script($this->prefix . '-public', plugins_url('js/scripts.js', __FILE__), array(
172
  'jquery',
173
  'jquery-ui-draggable',
174
  'masonry',
175
  $this->prefix . '-popup'
176
- ), $this->version, true);
177
  wp_localize_script(ECWD_PLUGIN_PREFIX . '-public', 'ecwd', array(
178
  'ajaxurl' => admin_url('admin-ajax.php'),
179
  'ajaxnonce' => wp_create_nonce(ECWD_PLUGIN_PREFIX . '_ajax_nonce'),
@@ -192,9 +200,10 @@ class ECWD {
192
 
193
  public function enqueue_styles() {
194
  global $ecwd_options;
195
- wp_enqueue_style($this->prefix . '-popup-style', plugins_url('/css/ecwd_popup.css', __FILE__), '', $this->version, 'all');
196
- wp_enqueue_style($this->prefix . '_font-awesome', plugins_url('/css/font-awesome/font-awesome.css', __FILE__), '', $this->version, 'all');
197
- wp_enqueue_style($this->prefix . '-public', plugins_url('css/style.css', __FILE__), '', $this->version, 'all');
 
198
  $css = (isset($ecwd_options['custom_css'])) ? $ecwd_options['custom_css'] : "";
199
  wp_add_inline_style($this->prefix . '-public', $css);
200
  }
@@ -203,6 +212,15 @@ class ECWD {
203
  return in_array($timezone, timezone_identifiers_list());
204
  }
205
 
 
 
 
 
 
 
 
 
 
206
  public static function get_default_timezone() {
207
  $default_timezone = self::isValidTimezone(@ini_get('date.timezone')) ? ini_get('date.timezone') : 'Europe/Berlin';
208
  return $default_timezone;
6
  */
7
  class ECWD {
8
 
9
+ protected $version = '1.0.84';
10
  protected $plugin_name = 'event-calendar-wd';
11
  protected $prefix = 'ecwd';
12
  protected static $instance = null;
69
  }
70
  if (!defined('ECWD_URL')) {
71
  define('ECWD_URL', plugins_url(plugin_basename(dirname(__FILE__))));
72
+ }
73
+
74
+ if (!defined('ECWD_VERSION')) {
75
  define('ECWD_VERSION', $this->version);
76
  }
77
+
78
+ if (!defined('ECWD_SCRIPTS_KEY')) {
79
+ define('ECWD_SCRIPTS_KEY', ECWD::scripts_key());
80
+ }
81
  }
82
 
83
  public function add_localization() {
152
  public function enqueue_scripts() {
153
  global $wp_scripts, $post,$ecwd_options;
154
  $gmap_key = (isset($ecwd_options['gmap_key'])) ? $ecwd_options['gmap_key'] : "";
155
+
156
+ $scripts_key = $this->version . '_' . ECWD_SCRIPTS_KEY;
157
 
158
  $map_included = false;
159
  if (is_object($post))
170
  }
171
 
172
  if (!$map_included && false) {
173
+ wp_enqueue_script($this->prefix . '-maps-public', 'https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&libraries=places&key='.$gmap_key, array('jquery'), $scripts_key, false);
174
  }
175
  }
176
 
177
+ wp_enqueue_script($this->prefix . '-gmap-public', plugins_url('js/gmap/gmap3.js', __FILE__), array('jquery'), $scripts_key, true);
178
+ wp_enqueue_script($this->prefix . '-popup', plugins_url('js/ecwd_popup.js', __FILE__), array('jquery'), $scripts_key, true);
179
  wp_enqueue_script($this->prefix . '-public', plugins_url('js/scripts.js', __FILE__), array(
180
  'jquery',
181
  'jquery-ui-draggable',
182
  'masonry',
183
  $this->prefix . '-popup'
184
+ ), $scripts_key, true);
185
  wp_localize_script(ECWD_PLUGIN_PREFIX . '-public', 'ecwd', array(
186
  'ajaxurl' => admin_url('admin-ajax.php'),
187
  'ajaxnonce' => wp_create_nonce(ECWD_PLUGIN_PREFIX . '_ajax_nonce'),
200
 
201
  public function enqueue_styles() {
202
  global $ecwd_options;
203
+ $styles_key = $this->version .'_' . ECWD_SCRIPTS_KEY;
204
+ wp_enqueue_style($this->prefix . '-popup-style', plugins_url('/css/ecwd_popup.css', __FILE__), '', $styles_key, 'all');
205
+ wp_enqueue_style($this->prefix . '_font-awesome', plugins_url('/css/font-awesome/font-awesome.css', __FILE__), '', $styles_key, 'all');
206
+ wp_enqueue_style($this->prefix . '-public', plugins_url('css/style.css', __FILE__), '', $styles_key, 'all');
207
  $css = (isset($ecwd_options['custom_css'])) ? $ecwd_options['custom_css'] : "";
208
  wp_add_inline_style($this->prefix . '-public', $css);
209
  }
212
  return in_array($timezone, timezone_identifiers_list());
213
  }
214
 
215
+ public static function scripts_key($reset=false){
216
+ $key = get_option('ecwd_scripts_key');
217
+ if ($key === false || $reset === true) {
218
+ $key = uniqid();
219
+ update_option('ecwd_scripts_key', $key);
220
+ }
221
+ return $key;
222
+ }
223
+
224
  public static function get_default_timezone() {
225
  $default_timezone = self::isValidTimezone(@ini_get('date.timezone')) ? ini_get('date.timezone') : 'Europe/Berlin';
226
  return $default_timezone;
includes/calendar-class.php CHANGED
@@ -1005,7 +1005,7 @@
1005
  }
1006
  }
1007
  $this->seted_days[$cellevent['id']] = $date;
1008
- $ecwd_settings_general = get_option("ecwd_settings_general");
1009
  $show_events_detail_hover = true;
1010
  if ($ecwd_settings_general && isset($ecwd_settings_general["show_events_detail"])) {
1011
  $show_events_detail = $ecwd_settings_general["show_events_detail"];
1005
  }
1006
  }
1007
  $this->seted_days[$cellevent['id']] = $date;
1008
+ $ecwd_settings_general = get_option("ecwd_settings_events");
1009
  $show_events_detail_hover = true;
1010
  if ($ecwd_settings_general && isset($ecwd_settings_general["show_events_detail"])) {
1011
  $show_events_detail = $ecwd_settings_general["show_events_detail"];
includes/ecwd-display-class.php CHANGED
@@ -1218,8 +1218,10 @@ class ECWD_Display {
1218
  * Return the calendar
1219
  */
1220
  public function get_view($date = '', $type = '', $widget = 0, $ecwd_views, $preview) {
1221
- if(!empty($this->start_date)){
1222
- $date = $this->start_date;
 
 
1223
  }
1224
  require_once 'calendar-class.php';
1225
  $categories = get_categories(array('taxonomy' => ECWD_PLUGIN_PREFIX . '_event_category'));
1218
  * Return the calendar
1219
  */
1220
  public function get_view($date = '', $type = '', $widget = 0, $ecwd_views, $preview) {
1221
+ if(isset($_REQUEST['ecwd_calendar_search']) && $_REQUEST['ecwd_calendar_search'] == '1'){
1222
+ if(!empty($this->start_date)){
1223
+ $date = $this->start_date;
1224
+ }
1225
  }
1226
  require_once 'calendar-class.php';
1227
  $categories = get_categories(array('taxonomy' => ECWD_PLUGIN_PREFIX . '_event_category'));
includes/ecwd-notices-class.php CHANGED
@@ -147,7 +147,7 @@ class ECWD_Notices {
147
  $output_css = true;
148
  }
149
  if ( $output_css ) {
150
- wp_enqueue_style( 'ecwd-admin-notices', ECWD_URL . '/css/admin/notices.css?ecwd_ver=' . ECWD_VERSION );
151
  }
152
  }
153
  }
147
  $output_css = true;
148
  }
149
  if ( $output_css ) {
150
+ wp_enqueue_style( 'ecwd-admin-notices', ECWD_URL . '/css/admin/notices.css?ecwd_ver=' . ECWD_VERSION.'_'.ECWD_SCRIPTS_KEY );
151
  }
152
  }
153
  }
includes/register-settings.php CHANGED
@@ -14,6 +14,12 @@ if (isset($_GET[ECWD_PLUGIN_PREFIX . '_clear_cache']) && $_GET[ECWD_PLUGIN_PREFI
14
  $cpt = ECWD_Cpt::get_instance();
15
  add_action('admin_init', array($cpt, 'ecwd_clear_cache_option'));
16
  }
 
 
 
 
 
 
17
  if (isset($_GET['ecwd_start_tour']) && $_GET['ecwd_start_tour'] == 1) {
18
  delete_user_meta(get_current_user_id(), 'ecwd_calendar_tour');
19
  wp_redirect('edit.php?post_type=ecwd_calendar');
@@ -381,6 +387,18 @@ function ecwd_register_settings() {
381
  ),
382
  )
383
  );
 
 
 
 
 
 
 
 
 
 
 
 
384
 
385
  if (1 == get_option('ecwd_old_events')) {
386
  $ecwd_settings['general']['show_repeat_rate'] = array(
14
  $cpt = ECWD_Cpt::get_instance();
15
  add_action('admin_init', array($cpt, 'ecwd_clear_cache_option'));
16
  }
17
+
18
+ if (isset($_GET[ECWD_PLUGIN_PREFIX . '_reset_script_key']) && $_GET[ECWD_PLUGIN_PREFIX . '_reset_script_key'] == 1) {
19
+ ECWD::scripts_key(true);
20
+ wp_redirect('edit.php?post_type=ecwd_calendar&page=ecwd_general_settings');
21
+ }
22
+
23
  if (isset($_GET['ecwd_start_tour']) && $_GET['ecwd_start_tour'] == 1) {
24
  delete_user_meta(get_current_user_id(), 'ecwd_calendar_tour');
25
  wp_redirect('edit.php?post_type=ecwd_calendar');
387
  ),
388
  )
389
  );
390
+
391
+ $config = get_option('ecwd_config');
392
+ if($config == "on") {
393
+ $ecwd_settings['general']['ecwd_reset_script_key'] = array(
394
+ 'id' => 'ecwd_reset_script_key',
395
+ 'name' => __('Rest script key', 'ecwd'),
396
+ 'desc' => '',
397
+ 'size' => 'small-text',
398
+ 'type' => 'link',
399
+ 'href' => $_SERVER['REQUEST_URI'] . '&ecwd_reset_script_key=1'
400
+ );
401
+ }
402
 
403
  if (1 == get_option('ecwd_old_events')) {
404
  $ecwd_settings['general']['show_repeat_rate'] = array(
js/scripts.js CHANGED
@@ -523,6 +523,9 @@ if (typeof ecwd_js_init != "function")
523
 
524
  }
525
  function add_single_events_popup() {
 
 
 
526
  jQuery('.single_event_popup').ecwd_popup({
527
  button: jQuery('.ecwd_open_event_popup'),
528
  body_class: "ecwd-excluded-events ecwd_popup_body_scroll",
@@ -715,10 +718,10 @@ if (typeof ecwd_js_init != "function")
715
  });
716
  }
717
  }
718
- $('#ecwd_back_link').on('click', function (e) {
719
- e.preventDefault();
720
- window.history.back();
721
- });
722
 
723
  if (jQuery('.ecwd_map_div').length > 0) {
724
  this.showMap();
523
 
524
  }
525
  function add_single_events_popup() {
526
+ if(jQuery('.ecwd_open_event_popup').length == 0){
527
+ return;
528
+ }
529
  jQuery('.single_event_popup').ecwd_popup({
530
  button: jQuery('.ecwd_open_event_popup'),
531
  body_class: "ecwd-excluded-events ecwd_popup_body_scroll",
718
  });
719
  }
720
  }
721
+ // $('#ecwd_back_link').on('click', function (e) {
722
+ // e.preventDefault();
723
+ // window.history.back();
724
+ // });
725
 
726
  if (jQuery('.ecwd_map_div').length > 0) {
727
  this.showMap();
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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.83
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -155,6 +155,12 @@ After downloading the ZIP file of the Event Calendar WD plugin,
155
 
156
  == Changelog ==
157
 
 
 
 
 
 
 
158
  = 1.0.83 =
159
  * Fixed: Calendar search
160
 
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.84
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.84 =
159
+ * Added: Script keys
160
+ * Fixed: Bug on widget
161
+ * Fixed: Styles
162
+ * Fixed: Back link
163
+
164
  = 1.0.83 =
165
  * Fixed: Calendar search
166
 
views/single-event.php CHANGED
@@ -152,7 +152,7 @@ get_header();
152
  if (isset($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER']) {
153
  if (parse_url($_SERVER['HTTP_REFERER'], PHP_URL_HOST) == parse_url(site_url(), PHP_URL_HOST)) {
154
  ?>
155
- <a id="ecwd_back_link" href="#"><?php _e('Back','ecwd'); ?></a>
156
  <?php
157
  }
158
  }
152
  if (isset($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER']) {
153
  if (parse_url($_SERVER['HTTP_REFERER'], PHP_URL_HOST) == parse_url(site_url(), PHP_URL_HOST)) {
154
  ?>
155
+ <a id="ecwd_back_link" href="<?php echo $_SERVER['HTTP_REFERER']; ?>"><?php _e('Back','ecwd'); ?></a>
156
  <?php
157
  }
158
  }