Event Calendar WD – Responsive Event Calendar plugin - Version 1.1.30

Version Description

  • Added: Ask a question button.
  • Fixed: Filters are not applied on titles in the popup window.
  • Fixed: Remove the visible in event details for Related upcoming events.
  • Fixed: "OK" button position of the shortcode popup "Views" tab in Firefox.
  • Fixed: Current date background color.
  • Fixed: Mini calendar dots.
  • Fixed: Changing the Hour Format from settings affects frontend result only.
  • Fixed: Uninstall.
Download this release

Release Info

Developer 10web
Plugin Icon 128x128 Event Calendar WD – Responsive Event Calendar plugin
Version 1.1.30
Comparing to
See all releases

Code changes from version 1.1.29 to 1.1.30

css/calendar_grey.css CHANGED
@@ -234,15 +234,15 @@
234
  }
235
 
236
  .ecwd_theme_calendar_grey table.cal_blue.ecwd_calendar_container .current-day {
237
- color: #3f3f3f !important;
238
  }
239
 
240
  .ecwd_theme_calendar_grey table.cal_blue.ecwd_calendar_container .current-day .day-number, .ecwd_theme_calendar_grey table.cal_blue.mini .current-day {
241
- background: #E5E5E5 !important;
242
  }
243
 
244
  .ecwd_theme_calendar_grey table.cal_blue.ecwd_calendar_container .current-day .day-number {
245
- color: #3f3f3f !important;
246
  }
247
 
248
  .ecwd_theme_calendar_grey .cal_blue.ecwd_calendar_container .events a, .ecwd_theme_calendar_grey .cal_blue.ecwd_calendar_container .events span.ecwd_open_event_popup {
234
  }
235
 
236
  .ecwd_theme_calendar_grey table.cal_blue.ecwd_calendar_container .current-day {
237
+ color: #ffffff !important;
238
  }
239
 
240
  .ecwd_theme_calendar_grey table.cal_blue.ecwd_calendar_container .current-day .day-number, .ecwd_theme_calendar_grey table.cal_blue.mini .current-day {
241
+ background: #92979D !important;
242
  }
243
 
244
  .ecwd_theme_calendar_grey table.cal_blue.ecwd_calendar_container .current-day .day-number {
245
+ color: #ffffff !important;
246
  }
247
 
248
  .ecwd_theme_calendar_grey .cal_blue.ecwd_calendar_container .events a, .ecwd_theme_calendar_grey .cal_blue.ecwd_calendar_container .events span.ecwd_open_event_popup {
css/images/help.svg ADDED
@@ -0,0 +1 @@
 
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="19" height="19" viewBox="0 0 19 19"><defs><style>.a{fill:#fff;}</style></defs><g transform="translate(-64 -64)"><path class="a" d="M73.5,64A9.5,9.5,0,1,0,83,73.5,9.5,9.5,0,0,0,73.5,64Zm0,17.388A7.888,7.888,0,1,1,81.388,73.5,7.89,7.89,0,0,1,73.5,81.388Z"/><path class="a" d="M357.759,276.863a3.676,3.676,0,0,0-4.733,0A2.891,2.891,0,0,0,352,279.054v.161a.17.17,0,0,0,.17.17h1.018a.17.17,0,0,0,.17-.17v-.161a2.07,2.07,0,0,1,4.071,0,1.716,1.716,0,0,1-1.19,1.542,2.37,2.37,0,0,0-1.1.867,2.427,2.427,0,0,0-.422,1.376v.456a.17.17,0,0,0,.17.17H355.9a.17.17,0,0,0,.17-.17v-.481a1.025,1.025,0,0,1,.655-.95,3.061,3.061,0,0,0,2.059-2.81,2.882,2.882,0,0,0-1.024-2.191Zm-3.215,8.807a.848.848,0,1,0,.848-.848A.848.848,0,0,0,354.545,285.67Z" transform="translate(-281.893 -207.504)"/></g></svg>
css/pricing.css ADDED
@@ -0,0 +1,179 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .wrap h1.head-notice {
2
+ height: 0;
3
+ padding: 0;
4
+ visibility: hidden;
5
+ }
6
+
7
+ /* Top bar start */
8
+ .topbar-container * {
9
+ font-family: Roboto;
10
+ }
11
+
12
+ .topbar-container {
13
+ display: flex;
14
+ flex-direction: row;
15
+ justify-content: flex-end;
16
+ margin: 20px 0 20px 0;
17
+ font-family: Roboto;
18
+ }
19
+ .topbar-container * {
20
+ box-sizing: border-box;
21
+ }
22
+ .topbar-container .topbar {
23
+ background-color: #FFFFFF;
24
+ border: 1px solid #D0D0D080;
25
+ border-radius: 7px;
26
+ color: #000000;
27
+ padding: 10px;
28
+ }
29
+
30
+ .topbar_cont {
31
+ display: flex;
32
+ }
33
+
34
+ .topbar-container .topbar.topbar_support_forum {
35
+ background-color: #4786FF;
36
+ margin-left: 20px;
37
+ }
38
+
39
+ .topbar-container .topbar.topbar_support_forum:hover {
40
+ background-color: #3077FF;
41
+ opacity:1
42
+ }
43
+
44
+ .topbar-content {
45
+ display: flex;
46
+ justify-content: space-between;
47
+ flex: auto;
48
+ margin: 0 20px 0 0;
49
+ padding: 10px 15px;
50
+ height: 60px;
51
+ }
52
+ .topbar-links {
53
+ color: #000000;
54
+ display: flex;
55
+ flex-direction: column;
56
+ justify-content: space-around;
57
+ font-size: 18px;
58
+ font-weight: 300;
59
+ margin: 0 0 0 2px;
60
+ height: 60px;
61
+ }
62
+ .topbar-links-container {
63
+ display: flex;
64
+ justify-content: space-around;
65
+ height: 80%;
66
+ }
67
+ .topbar-links-item {
68
+ display: flex;
69
+ flex: 1;
70
+ align-self: center;
71
+ justify-content: center;
72
+ width: 170px;
73
+ line-height: 50px;
74
+ }
75
+ .topbar-links * {
76
+ font-size: 18px;
77
+ }
78
+ .topbar-links a,
79
+ .topbar-links a:focus {
80
+ align-self: center;
81
+ box-shadow: none;
82
+ color: #000000;
83
+ text-decoration: none;
84
+ }
85
+
86
+ .topbar-links a.topbar_support_forum {
87
+ color: #fff;
88
+ }
89
+
90
+ .topbar-links a.topbar_support_forum .help_icon {
91
+ margin-right: 10px;
92
+ }
93
+
94
+ .topbar-links a:hover {
95
+ opacity: 0.5;
96
+ text-decoration: none;
97
+ }
98
+ .topbar-separator {
99
+ background-color: #C2C2C280;
100
+ width: 1px;
101
+ height: 100%;
102
+ }
103
+ .topbar-content-title {
104
+ color: #0C4D68;
105
+ font-size: 16px;
106
+ font-weight: 700;
107
+ line-height: 22px;
108
+ text-transform: uppercase;
109
+ }
110
+ .topbar-content-body {
111
+ font-size: 15px;
112
+ font-weight: 300;
113
+ line-height: 20px;
114
+ }
115
+ .topbar-content-container {
116
+ display: flex;
117
+ flex-direction: column;
118
+ }
119
+ .topbar-content-button-container,
120
+ .free-message-button-container {
121
+ align-self: center;
122
+ }
123
+ .topbar-upgrade-button,
124
+ .topbar-upgrade-button:focus {
125
+ background-color: #29B311;
126
+ border-radius: 20px;
127
+ box-shadow: none;
128
+ color: #FFFFFF;
129
+ font-size: 14px;
130
+ padding: 5px 44px;
131
+ text-decoration: none;
132
+ text-transform: uppercase;
133
+ }
134
+ .topbar-upgrade-button:hover {
135
+ text-decoration: none;
136
+ color: #FFFFFFCC;
137
+ }
138
+ @media screen and (max-width: 1366px) {
139
+ .topbar-links {
140
+ font-size: 15px;
141
+ }
142
+ .topbar-content-title {
143
+ font-size: 15px;
144
+ }
145
+ .topbar-content-body {
146
+ font-size: 13px;
147
+ }
148
+ }
149
+ @media screen and (max-width: 1285px) {
150
+ .topbar-container {
151
+ flex-direction: column;
152
+ }
153
+ .topbar-links,
154
+ .topbar-content {
155
+ margin: 0 0 10px 0;
156
+ width: 100%;
157
+ }
158
+ .topbar-content {
159
+ flex-direction: column;
160
+ height: auto;
161
+ }
162
+ .topbar-content-container,
163
+ .topbar-content-container * {
164
+ align-self: center;
165
+ padding-bottom: 4px;
166
+ }
167
+ }
168
+
169
+ @media screen and (max-width: 450px) {
170
+ .topbar_cont {
171
+ display: block;
172
+ }
173
+
174
+ .topbar-container .topbar.topbar_support_forum {
175
+ margin-left: 0px;
176
+ }
177
+ }
178
+
179
+ /* Top bar end */
css/style.css CHANGED
@@ -736,6 +736,14 @@ table.cal_blue.mini td ul.events li:nth-child(2) {
736
  bottom: 2px;
737
  right: 10px;
738
  }
 
 
 
 
 
 
 
 
739
  div.ecwd-widget-mini table td.has-events {
740
  position: relative;
741
  }
736
  bottom: 2px;
737
  right: 10px;
738
  }
739
+ table.cal_blue.mini td ul.events li:nth-child(3) {
740
+ bottom: 2px;
741
+ right: 18px;
742
+ }
743
+ table.cal_blue.mini td ul.events li:nth-child(4) {
744
+ bottom: 2px;
745
+ right: 26px;
746
+ }
747
  div.ecwd-widget-mini table td.has-events {
748
  position: relative;
749
  }
ecwd.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Event Calendar WD
4
  * Plugin URI: https://10web.io/plugins/wordpress-event-calendar/
5
  * Description: Event Calendar WD is an easy event management and planning tool with advanced features.
6
- * Version: 1.1.29
7
  * Author: 10Web
8
  * Author URI: https://10web.io/plugins/
9
  * Text Domain: event-calendar-wd
@@ -28,7 +28,7 @@ if(! defined( 'ECWD_URL' ) ){
28
  }
29
 
30
  if (!defined('ECWD_VERSION')) {
31
- define('ECWD_VERSION', "1.1.29");
32
  }
33
 
34
  if (!defined('ECWD_PLUGIN_MAIN_FILE')) {
3
  * Plugin Name: Event Calendar WD
4
  * Plugin URI: https://10web.io/plugins/wordpress-event-calendar/
5
  * Description: Event Calendar WD is an easy event management and planning tool with advanced features.
6
+ * Version: 1.1.30
7
  * Author: 10Web
8
  * Author URI: https://10web.io/plugins/
9
  * Text Domain: event-calendar-wd
28
  }
29
 
30
  if (!defined('ECWD_VERSION')) {
31
+ define('ECWD_VERSION', "1.1.30");
32
  }
33
 
34
  if (!defined('ECWD_PLUGIN_MAIN_FILE')) {
ecwd_admin_class.php CHANGED
@@ -55,9 +55,10 @@ class ECWD_Admin {
55
  add_filter('default_hidden_meta_boxes', array( $this, 'default_hidden_meta_boxes' ), 2, 2);
56
  add_filter("plugin_row_meta", array( $this, 'ecwd_add_plugin_meta_links' ), 10, 2);
57
  add_action('untrashed_post', array( $this, 'set_default_metas_to_restored_events' ));
 
58
  }
59
 
60
- public function wd_bp_install_notice(){
61
  $get_current = get_current_screen();
62
  $current_screen_id = array(
63
  'edit-ecwd_event',
@@ -242,17 +243,17 @@ class ECWD_Admin {
242
  'numberposts' => -1
243
  ));
244
 
245
- $blue_theme = get_page_by_title('Default', 'OBJECT', 'ecwd_theme');
246
- $blue_id = (isset($blue_theme->ID)) ? $blue_theme->ID : 0;
247
 
248
  $calendar = get_posts($calendars);
249
  if (!empty($calendar)) {
250
  foreach ($calendars as $calendar) {
251
  $theme_id = get_post_meta($calendar->ID, 'ecwd_calendar_theme', true);
252
- if ($theme_id == $blue_id) {
253
- update_post_meta($calendar->ID, 'ecwd_calendar_theme', "calendar");
254
- } else {
255
  update_post_meta($calendar->ID, 'ecwd_calendar_theme', "calendar_grey");
 
 
256
  }
257
  }
258
  }
@@ -547,6 +548,18 @@ class ECWD_Admin {
547
 
548
  }
549
 
 
 
 
 
 
 
 
 
 
 
 
 
550
  }
551
 
552
  public function include_ecwd_pointer_class() {
@@ -801,7 +814,12 @@ class ECWD_Admin {
801
  wp_enqueue_style('thickbox');
802
  wp_enqueue_script('thickbox');
803
  }
804
-
 
 
 
 
 
805
  $gmap_key = (isset($ecwd_options['gmap_key'])) ? $ecwd_options['gmap_key'] : "";
806
  $params['gmap_style'] = (isset($ecwd_options['gmap_style'])) ? $ecwd_options['gmap_style'] : "";
807
 
@@ -812,7 +830,8 @@ class ECWD_Admin {
812
  'loadingText' => __('Loading...', 'event-calendar-wd'),
813
  'plugin_url' => ECWD_URL,
814
  'gmap_key' => trim($gmap_key),
815
- 'gmap_style' => (isset($ecwd_options['gmap_style'])) ? $ecwd_options['gmap_style'] : ""
 
816
  ));
817
  wp_localize_script(ECWD_PLUGIN_PREFIX . '-public', 'ecwd_admin_translation', array(
818
  'none'=>__("None",'event-calendar-wd'),
@@ -824,6 +843,9 @@ class ECWD_Admin {
824
  wp_enqueue_script($this->prefix . '-admin-scripts');
825
  wp_enqueue_script($this->prefix . '-magnific_popup_js');
826
  wp_enqueue_script($this->prefix . '-datatables_js');
 
 
 
827
  }
828
  $screen = get_current_screen();
829
  if (!$this->ecwd_page() || $screen->post_type == "ecwd_calendar") {
@@ -1129,124 +1151,134 @@ class ECWD_Admin {
1129
  }
1130
 
1131
  public function add_action_links($links) {
1132
- return array_merge(
1133
- array(
1134
- 'settings' => '<a href="' . admin_url(ECWD_MENU_SLUG . '&page=ecwd_general_settings') . '">' . __('Settings', 'event-calendar-wd') . '</a>',
1135
- 'events' => '<a href="' . admin_url('edit.php?post_type=ecwd_event') . '">' . __('Events', 'event-calendar-wd') . '</a>'
1136
- ), $links
1137
  );
 
 
 
 
1138
  }
1139
 
1140
- public function ecwd_helper_bar() {
 
 
 
 
 
 
1141
  $current_screen = get_current_screen();
1142
  if ($current_screen->parent_file != ECWD_MENU_SLUG) {
1143
  return;
1144
  }
1145
 
1146
- $text = $user_guide_link = null;
1147
  switch ($current_screen->id) {
1148
  case "edit-ecwd_calendar":
1149
  case "ecwd_calendar":
1150
- $text = __('create, edit and delete Calendars','event-calendar-wd');
1151
- $user_guide_link = 'https://help.10web.io/hc/en-us/articles/360016280212-Creating-Calendars-on-WordPress';
1152
  break;
1153
  case "edit-ecwd_event":
1154
  case "ecwd_event":
1155
- $text = __('create, edit and delete Events','event-calendar-wd');
1156
- $user_guide_link = 'https://help.10web.io/hc/en-us/articles/360016499891-Creating-Events';
1157
  break;
1158
  case "edit-ecwd_organizer":
1159
  case "ecwd_organizer":
1160
- $text = __('create, edit and delete Organizers','event-calendar-wd');
1161
- $user_guide_link = 'https://help.10web.io/hc/en-us/articles/360016500091-Event-Organizers-and-Venues';
1162
  break;
1163
  case "edit-ecwd_venue":
1164
  case "ecwd_venue":
1165
- $text = __('create, edit and delete Venues','event-calendar-wd');
1166
- $user_guide_link = 'https://help.10web.io/hc/en-us/articles/360016500091-Event-Organizers-and-Venues';
1167
  break;
1168
- // case "edit-ecwd_theme":
1169
- // case "ecwd_theme":
1170
- // $text = 'This section allows you to create, edit and delete Themes';
1171
- // $user_guide_link = 'https://help.10web.io/hc/en-us/articles/360016500311-Editing-Event-Calendar-Themes';
1172
- // break;
1173
  case "edit-ecwd_event_category":
1174
- $text = __('create, edit and delete Event Categories','event-calendar-wd');
1175
- $user_guide_link = 'https://help.10web.io/hc/en-us/articles/360016499951-Event-Categories-and-Tags';
1176
  break;
1177
  case "edit-ecwd_event_tag":
1178
- $text = __('create, edit and delete Event Tags','event-calendar-wd');
1179
- $user_guide_link = 'https://help.10web.io/hc/en-us/articles/360016499951-Event-Categories-and-Tags';
1180
  break;
1181
  case "ecwd_event_page_ecwd_general_settings":
1182
- $text = __('change settings','event-calendar-wd');
1183
- $user_guide_link = 'https://help.10web.io/hc/en-us/articles/360016280732-Configuring-Event-Calendar-Settings';
1184
  break;
1185
  }
1186
-
1187
-
1188
- if ($text !== null && $user_guide_link !== null) {
1189
- $this->add_helper_bar($text, $user_guide_link);
1190
- }
1191
-
1192
- }
1193
-
1194
-
1195
-
1196
- private function add_helper_bar($text, $user_guide_link) {
1197
- $help_text = $text;
1198
- $prefix = "ecwd";
1199
- $pro_link = "https://10web.io/plugins/wordpress-event-calendar/?utm_source=event_calendar&utm_medium=free_plugin";
1200
- $is_free = true;
1201
- $support_forum_link = "https://wordpress.org/support/plugin/event-calendar-wd";
1202
- $support_icon = ECWD_URL . "/css/images/i_support.png";
1203
- $pro_icon = ECWD_URL . '/css/images/WD-logo.png';
1204
-
1205
  ?>
1206
- <div class="update-nag wd_topic ecwd_topic">
1207
- <?php
1208
- if ($help_text) {
1209
- ?>
1210
- <span class="wd_help_topic">
1211
- <?php echo sprintf(__('This section allows you to %s.', $prefix), $help_text); ?>
1212
- <a target="_blank" href="<?php echo $user_guide_link; ?>">
1213
- <?php _e('Read More in User Manual', $prefix); ?>
1214
- </a>
1215
- </span>
1216
  <?php
1217
- }
1218
- if ($is_free) {
1219
- $text = strtoupper(__('Upgrade to premium version', $prefix));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1220
  ?>
1221
- <div class="wd_pro">
1222
- <a target="_blank" class="wdi_update_pro_link" href="<?php echo $pro_link; ?>">
1223
- <span><?php echo $text; ?></span>
1224
- </a>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1225
  </div>
1226
- <?php
1227
- }
1228
- if (true) {
1229
- ?>
1230
- <span class="wd_support">
1231
- <a target="_blank" href="<?php echo $support_forum_link; ?>">
1232
- <img src="<?php echo $support_icon; ?>" />
1233
- <?php _e('Support Forum', $prefix); ?>
1234
- </a>
1235
- </span>
1236
- <?php
1237
- }
1238
- ?>
1239
  </div>
1240
-
1241
  <?php
1242
- }
 
1243
 
 
 
 
1244
 
1245
  public function ecwd_add_plugin_meta_links($meta_fields, $file){
1246
 
1247
  if(ECWD_MAIN_FILE == $file) {
1248
 
1249
- $meta_fields[] = "<a href='https://wordpress.org/support/plugin/event-calendar-wd/' target='_blank'>Support Forum</a>";
1250
  $meta_fields[] = "<a href='https://wordpress.org/support/plugin/event-calendar-wd/reviews#new-post' target='_blank' title='Rate'>
1251
  <i class='ecwd-rate-stars'>"
1252
  . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
55
  add_filter('default_hidden_meta_boxes', array( $this, 'default_hidden_meta_boxes' ), 2, 2);
56
  add_filter("plugin_row_meta", array( $this, 'ecwd_add_plugin_meta_links' ), 10, 2);
57
  add_action('untrashed_post', array( $this, 'set_default_metas_to_restored_events' ));
58
+
59
  }
60
 
61
+ public function wd_bp_install_notice(){
62
  $get_current = get_current_screen();
63
  $current_screen_id = array(
64
  'edit-ecwd_event',
243
  'numberposts' => -1
244
  ));
245
 
246
+ //$blue_theme = get_page_by_title('Default', 'OBJECT', 'ecwd_theme');
247
+ //$blue_id = (isset($blue_theme->ID)) ? $blue_theme->ID : 0;
248
 
249
  $calendar = get_posts($calendars);
250
  if (!empty($calendar)) {
251
  foreach ($calendars as $calendar) {
252
  $theme_id = get_post_meta($calendar->ID, 'ecwd_calendar_theme', true);
253
+ if ($theme_id == "calendar_grey") {
 
 
254
  update_post_meta($calendar->ID, 'ecwd_calendar_theme', "calendar_grey");
255
+ } else {
256
+ update_post_meta($calendar->ID, 'ecwd_calendar_theme', "calendar");
257
  }
258
  }
259
  }
548
 
549
  }
550
 
551
+ if ( !ECWD_PRO ) {
552
+ /* Custom link to wordpress.org*/
553
+ global $submenu;
554
+ $url = 'https://wordpress.org/support/plugin/event-calendar-wd/#new-post';
555
+ $submenu[ECWD_MENU_SLUG][] = array(
556
+ '<div id="ecwd_ask_question">' . __('Ask a question', $this->prefix) . '</div>',
557
+ 'manage_options',
558
+ $url
559
+ );
560
+ }
561
+
562
+
563
  }
564
 
565
  public function include_ecwd_pointer_class() {
814
  wp_enqueue_style('thickbox');
815
  wp_enqueue_script('thickbox');
816
  }
817
+ global $ecwd_options;
818
+ if(isset($ecwd_options["time_type"])){
819
+ $time_format = $ecwd_options["time_type"];
820
+ }else{
821
+ $time_format = "";
822
+ }
823
  $gmap_key = (isset($ecwd_options['gmap_key'])) ? $ecwd_options['gmap_key'] : "";
824
  $params['gmap_style'] = (isset($ecwd_options['gmap_style'])) ? $ecwd_options['gmap_style'] : "";
825
 
830
  'loadingText' => __('Loading...', 'event-calendar-wd'),
831
  'plugin_url' => ECWD_URL,
832
  'gmap_key' => trim($gmap_key),
833
+ 'gmap_style' => (isset($ecwd_options['gmap_style'])) ? $ecwd_options['gmap_style'] : "",
834
+ 'time_picker_format' => $time_format
835
  ));
836
  wp_localize_script(ECWD_PLUGIN_PREFIX . '-public', 'ecwd_admin_translation', array(
837
  'none'=>__("None",'event-calendar-wd'),
843
  wp_enqueue_script($this->prefix . '-admin-scripts');
844
  wp_enqueue_script($this->prefix . '-magnific_popup_js');
845
  wp_enqueue_script($this->prefix . '-datatables_js');
846
+
847
+ wp_register_style('event-calendar-wd-roboto', 'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700');
848
+ wp_register_style('event-calendar-wd-pricing', ECWD_URL . '/css/pricing.css' , array(), ECWD_VERSION);
849
  }
850
  $screen = get_current_screen();
851
  if (!$this->ecwd_page() || $screen->post_type == "ecwd_calendar") {
1151
  }
1152
 
1153
  public function add_action_links($links) {
1154
+ $array = array(
1155
+ 'settings' => '<a href="' . admin_url(ECWD_MENU_SLUG . '&page=ecwd_general_settings') . '">' . __('Settings', 'event-calendar-wd') . '</a>',
1156
+ 'events' => '<a href="' . admin_url('edit.php?post_type=ecwd_event') . '">' . __('Events', 'event-calendar-wd') . '</a>',
 
 
1157
  );
1158
+ if ( !ECWD_PRO ) {
1159
+ $array['help'] = '<a href="https://wordpress.org/support/plugin/event-calendar-wd/#new-post" target="_blank">' . __('Help', 'event-calendar-wd') . '</a>';
1160
+ }
1161
+ return array_merge($array, $links);
1162
  }
1163
 
1164
+ public function topbar() {
1165
+ $user_guide_link = 'https://help.10web.io/hc/en-us/articles/';
1166
+ $show_guide_link = true;
1167
+ $description = "";
1168
+ $support_forum_link = 'https://wordpress.org/support/plugin/event-calendar-wd/#new-post';
1169
+ $premium_link = 'https://10web.io/plugins/wordpress-event-calendar/?utm_source=event_calendar&amp;utm_medium=free_plugin';
1170
+
1171
  $current_screen = get_current_screen();
1172
  if ($current_screen->parent_file != ECWD_MENU_SLUG) {
1173
  return;
1174
  }
1175
 
 
1176
  switch ($current_screen->id) {
1177
  case "edit-ecwd_calendar":
1178
  case "ecwd_calendar":
1179
+ $description .= __('Create, edit and delete Calendars','event-calendar-wd');
1180
+ $user_guide_link .= '360016280212-Creating-Calendars-on-WordPress';
1181
  break;
1182
  case "edit-ecwd_event":
1183
  case "ecwd_event":
1184
+ $description .= __('Create, edit and delete Events','event-calendar-wd');
1185
+ $user_guide_link .= '360016499891-Creating-Events';
1186
  break;
1187
  case "edit-ecwd_organizer":
1188
  case "ecwd_organizer":
1189
+ $description .= __('Create, edit and delete Organizers','event-calendar-wd');
1190
+ $user_guide_link .= '360016500091-Event-Organizers-and-Venues';
1191
  break;
1192
  case "edit-ecwd_venue":
1193
  case "ecwd_venue":
1194
+ $description .= __('Create, edit and delete Venues','event-calendar-wd');
1195
+ $user_guide_link .= '360016500091-Event-Organizers-and-Venues';
1196
  break;
 
 
 
 
 
1197
  case "edit-ecwd_event_category":
1198
+ $description .= __('Create, edit and delete Event Categories','event-calendar-wd');
1199
+ $user_guide_link .= '360016499951-Event-Categories-and-Tags';
1200
  break;
1201
  case "edit-ecwd_event_tag":
1202
+ $description .= __('Create, edit and delete Event Tags','event-calendar-wd');
1203
+ $user_guide_link .= '360016499951-Event-Categories-and-Tags';
1204
  break;
1205
  case "ecwd_event_page_ecwd_general_settings":
1206
+ $description .= __('Change settings','event-calendar-wd');
1207
+ $user_guide_link .= '360016280732-Configuring-Event-Calendar-Settings';
1208
  break;
1209
  }
1210
+ wp_enqueue_style('event-calendar-wd-roboto');
1211
+ wp_enqueue_style('event-calendar-wd-pricing');
1212
+ ob_start();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1213
  ?>
1214
+ <div class="wrap">
1215
+ <h1 class="head-notice">&nbsp;</h1>
1216
+ <div class="topbar-container">
 
 
 
 
 
 
 
1217
  <?php
1218
+ if ( !ECWD_PRO ) {
1219
+ ?>
1220
+ <div class="topbar topbar-content">
1221
+ <div class="topbar-content-container">
1222
+ <div class="topbar-content-title">
1223
+ <?php _e('Event Calendar by 10Web Premium', 'event-calendar-wd'); ?>
1224
+ </div>
1225
+ <div class="topbar-content-body">
1226
+ <?php echo $description; ?>
1227
+ </div>
1228
+ </div>
1229
+ <div class="topbar-content-button-container">
1230
+ <a href="<?php echo $premium_link; ?>" target="_blank" class="topbar-upgrade-button"><?php _e( 'Upgrade','event-calendar-wd' ); ?></a>
1231
+ </div>
1232
+ </div>
1233
+ <?php
1234
+ }
1235
  ?>
1236
+ <div class="topbar_cont">
1237
+ <?php
1238
+ if ( $show_guide_link ) {
1239
+ ?>
1240
+ <div class="topbar topbar-links">
1241
+ <div class="topbar-links-container">
1242
+ <a href="<?php echo $user_guide_link; ?>" target="_blank" class="topbar_user_guid">
1243
+ <div class="topbar-links-item">
1244
+ <?php _e('User guide', 'event-calendar-wd'); ?>
1245
+ </div>
1246
+ </a>
1247
+ </div>
1248
+ </div>
1249
+ <?php
1250
+ }
1251
+ if ( !ECWD_PRO ) {
1252
+ ?>
1253
+ <div class="topbar topbar-links topbar_support_forum">
1254
+ <div class="topbar-links-container">
1255
+ <a href="<?php echo $support_forum_link; ?>" target="_blank" class="topbar_support_forum">
1256
+ <div class="topbar-links-item">
1257
+ <img src="<?php echo ECWD_URL . '/css/images/help.svg'; ?>" class="help_icon" />
1258
+ <?php _e('Ask a question', 'event-calendar-wd'); ?>
1259
+ </div>
1260
+ </a>
1261
+ </div>
1262
+ </div>
1263
+ <?php
1264
+ }
1265
+ ?>
1266
  </div>
1267
+ </div>
 
 
 
 
 
 
 
 
 
 
 
 
1268
  </div>
 
1269
  <?php
1270
+ echo ob_get_clean();
1271
+ }
1272
 
1273
+ public function ecwd_helper_bar() {
1274
+ $this->topbar();
1275
+ }
1276
 
1277
  public function ecwd_add_plugin_meta_links($meta_fields, $file){
1278
 
1279
  if(ECWD_MAIN_FILE == $file) {
1280
 
1281
+ $meta_fields[] = "<a href='https://wordpress.org/support/plugin/event-calendar-wd/#new-post' target='_blank'>" . __('Ask a question', 'event-calendar-wd') . "</a>";
1282
  $meta_fields[] = "<a href='https://wordpress.org/support/plugin/event-calendar-wd/reviews#new-post' target='_blank' title='Rate'>
1283
  <i class='ecwd-rate-stars'>"
1284
  . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>"
includes/ecwd-uninstall.php CHANGED
@@ -229,18 +229,18 @@ class ecwd_uninstall {
229
  wp_enqueue_style('ecwd_deactivate-css', ECWD_URL . '/wd/assets/css/deactivate_popup.css', array(), ECWD_VERSION);
230
 
231
 
232
- if(!class_exists("DoradoWebConfig")) {
233
  include_once(ECWD_DIR . "/wd/config.php");
234
  }
235
 
236
- if(!class_exists("DoradoWebDeactivate")) {
237
  include_once(ECWD_DIR . "/wd/includes/deactivate.php");
238
  }
239
- $config = new DoradoWebConfig();
240
 
241
  global $ecwd_wd_freemius_config;
242
  $config->set_options($ecwd_wd_freemius_config);
243
- $deactivate_reasons = new DoradoWebDeactivate($config);
244
  //$deactivate_reasons->add_deactivation_feedback_dialog_box();
245
  $deactivate_reasons->submit_and_deactivate();
246
 
229
  wp_enqueue_style('ecwd_deactivate-css', ECWD_URL . '/wd/assets/css/deactivate_popup.css', array(), ECWD_VERSION);
230
 
231
 
232
+ if(!class_exists("TenWebLibConfig")) {
233
  include_once(ECWD_DIR . "/wd/config.php");
234
  }
235
 
236
+ if(!class_exists("TenWebLibDeactivate")) {
237
  include_once(ECWD_DIR . "/wd/includes/deactivate.php");
238
  }
239
+ $config = new TenWebLibConfig();
240
 
241
  global $ecwd_wd_freemius_config;
242
  $config->set_options($ecwd_wd_freemius_config);
243
+ $deactivate_reasons = new TenWebLibDeactivate($config);
244
  //$deactivate_reasons->add_deactivation_feedback_dialog_box();
245
  $deactivate_reasons->submit_and_deactivate();
246
 
js/admin/admin.js CHANGED
@@ -1197,6 +1197,9 @@ jQuery(document).ready(function(){
1197
  });
1198
  }
1199
 
 
 
 
1200
  });
1201
 
1202
 
1197
  });
1198
  }
1199
 
1200
+ jQuery('#ecwd_ask_question').parent().attr('target','_blank');
1201
+
1202
+
1203
  });
1204
 
1205
 
js/admin/datepicker.js CHANGED
@@ -1,5 +1,15 @@
1
  (function ($) {
2
-
 
 
 
 
 
 
 
 
 
 
3
  $('#ecwd_event_repeat_until_input, #ecwd_date_from_filter, #ecwd_date_to_filter').datetimepicker({
4
  scrollMonth: false,
5
  scrollInput: false,
@@ -34,7 +44,8 @@
34
  } else {
35
  $('#ecwd_event_date_from, #ecwd_event_date_to').datetimepicker({
36
  timepicker:true,
37
- format:'Y/m/d H:i',
 
38
  scrollInput: false,
39
  closeOnDateSelect:false
40
  });
1
  (function ($) {
2
+ var ecwd_format = "Y/m/d H:i";
3
+ var ecwd_formatTime = "H:i";
4
+ if(typeof ecwd.time_picker_format !== undefined){
5
+ if(ecwd.time_picker_format === "a"){
6
+ ecwd_format = "Y/m/d g:i a";
7
+ ecwd_formatTime = "g:i a";
8
+ }else if(ecwd.time_picker_format === "A"){
9
+ ecwd_format = "Y/m/d g:i A";
10
+ ecwd_formatTime = "g:i A";
11
+ }
12
+ }
13
  $('#ecwd_event_repeat_until_input, #ecwd_date_from_filter, #ecwd_date_to_filter').datetimepicker({
14
  scrollMonth: false,
15
  scrollInput: false,
44
  } else {
45
  $('#ecwd_event_date_from, #ecwd_event_date_to').datetimepicker({
46
  timepicker:true,
47
+ format: ecwd_format,
48
+ formatTime: ecwd_formatTime,
49
  scrollInput: false,
50
  closeOnDateSelect:false
51
  });
js/tw-gb/block.js CHANGED
@@ -111,7 +111,7 @@
111
  var elem = el( 'form', { className: 'tw-container' }, el( 'div', { className: 'tw-container-wrap' + (pluginData.containerClass ? ' ' + pluginData.containerClass : '') }, el( 'span', {
112
  className: "media-modal-close",
113
  onClick: close
114
- }, el( "span", { className: "media-modal-icon" } ) ), el( 'iframe', { src: pluginData.data.shortcodeUrl + '&callback=' + shortcodeCbName + '&edit=' + shortcode_id } ) ) );
115
  return elem;
116
  }
117
 
111
  var elem = el( 'form', { className: 'tw-container' }, el( 'div', { className: 'tw-container-wrap' + (pluginData.containerClass ? ' ' + pluginData.containerClass : '') }, el( 'span', {
112
  className: "media-modal-close",
113
  onClick: close
114
+ }, el( "span", { className: "media-modal-icon" } ) ), el( 'iframe', { src: pluginData.data.shortcodeUrl + '&callback=' + shortcodeCbName + '&edit=' + shortcode_id + '&shortcode='+shortcode} ) ) );
115
  return elem;
116
  }
117
 
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: 5.2
6
  Requires PHP: 5.2
7
- Stable tag: 1.1.29
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -345,6 +345,16 @@ After downloading the ZIP file of the Event Calendar WD plugin,
345
  Event Calendar WD plugin optionally embeds Google Maps on front end to display events on the map. Embedded Google Maps behave in the exact same way as if visitor has opened Google Maps site. Google may collect data about visitors, use cookies and tracking, included their logged-in experience interaction with Google platform. Google Maps are regulated under terms of Google privacy policy https://policies.google.com/privacy. The plugin asks for your consent to collect site administrator’s email address and site URL to offer customer support, deals and discounts on premium products and more.
346
 
347
  == Changelog ==
 
 
 
 
 
 
 
 
 
 
348
  = 1.1.29 =
349
  * Fixed: "Unnamed Item" error on Google Search Console.
350
 
4
  Requires at least: 3.9
5
  Tested up to: 5.2
6
  Requires PHP: 5.2
7
+ Stable tag: 1.1.30
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
345
  Event Calendar WD plugin optionally embeds Google Maps on front end to display events on the map. Embedded Google Maps behave in the exact same way as if visitor has opened Google Maps site. Google may collect data about visitors, use cookies and tracking, included their logged-in experience interaction with Google platform. Google Maps are regulated under terms of Google privacy policy https://policies.google.com/privacy. The plugin asks for your consent to collect site administrator’s email address and site URL to offer customer support, deals and discounts on premium products and more.
346
 
347
  == Changelog ==
348
+ = 1.1.30 =
349
+ * Added: Ask a question button.
350
+ * Fixed: Filters are not applied on titles in the popup window.
351
+ * Fixed: Remove the visible <span> in event details for Related upcoming events.
352
+ * Fixed: "OK" button position of the shortcode popup "Views" tab in Firefox.
353
+ * Fixed: Current date background color.
354
+ * Fixed: Mini calendar dots.
355
+ * Fixed: Changing the Hour Format from settings affects frontend result only.
356
+ * Fixed: Uninstall.
357
+
358
  = 1.1.29 =
359
  * Fixed: "Unnamed Item" error on Google Search Console.
360
 
views/admin/ecwd-shortcode-iframe.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
- if(isset($_GET['edit']) && !empty($_GET['edit']) && $_GET['edit'] != "undefined" ){
3
- $ecwd_edit_shortcode = str_replace('\"' , '"' ,$_GET['edit']);
4
  $ecwd_edit_shortcode_data = (shortcode_parse_atts($ecwd_edit_shortcode));
5
  }
6
 
@@ -228,7 +228,7 @@ if (defined('ECWD_FILTERS_EVENT_MAIN_FILE') && is_plugin_active(ECWD_FILTERS_EVE
228
  height: 13px;
229
  cursor: pointer;
230
  text-align: center;
231
- width: 86px;
232
  }
233
  .ecwd_shortcode_menu .ecwd_active_shortcode_menu{
234
  background: #FDFDFD;
@@ -341,9 +341,7 @@ if (defined('ECWD_FILTERS_EVENT_MAIN_FILE') && is_plugin_active(ECWD_FILTERS_EVE
341
  }
342
 
343
  .ecwd_shortcode_buttons{
344
- position: absolute;
345
- bottom: 0;
346
- right: 0;
347
  }
348
 
349
  #ecwd_shortcode_form{
1
  <?php
2
+ if(isset($_GET['edit']) && !empty($_GET['edit']) && $_GET['edit'] != "undefined" && isset($_GET["shortcode"])){
3
+ $ecwd_edit_shortcode = str_replace('\"' , '"' ,$_GET['shortcode']);
4
  $ecwd_edit_shortcode_data = (shortcode_parse_atts($ecwd_edit_shortcode));
5
  }
6
 
228
  height: 13px;
229
  cursor: pointer;
230
  text-align: center;
231
+ width: 82px;
232
  }
233
  .ecwd_shortcode_menu .ecwd_active_shortcode_menu{
234
  background: #FDFDFD;
341
  }
342
 
343
  .ecwd_shortcode_buttons{
344
+ float:right;
 
 
345
  }
346
 
347
  #ecwd_shortcode_form{
views/ecwd-event-popup.php CHANGED
@@ -159,7 +159,7 @@ $event_categories = wp_get_post_terms($post->ID, 'ecwd_event_category', $args);
159
  <div id="post-<?php echo $post_id; ?>">
160
  <div class="ecwd-event" itemscope itemtype="http://schema.org/Event">
161
  <header class="entry-header">
162
- <h1 class="ecwd-events-single-event-title summary entry-title"><?php echo $post->post_title; ?></h1>
163
  </header>
164
  <div class="event-detalis">
165
  <?php if ($featured_image && $featured_image !== '') { ?>
159
  <div id="post-<?php echo $post_id; ?>">
160
  <div class="ecwd-event" itemscope itemtype="http://schema.org/Event">
161
  <header class="entry-header">
162
+ <h1 class="ecwd-events-single-event-title summary entry-title"><?php echo apply_filters('the_title', $post->post_title); ?></h1>
163
  </header>
164
  <div class="event-detalis">
165
  <?php if ($featured_image && $featured_image !== '') { ?>