Calendar by WD – Responsive Event Calendar - Version 1.5.38

Version Description

Fixed: Calendar header date format

Download this release

Release Info

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

Code changes from version 1.5.37 to 1.5.38

calendar.php CHANGED
@@ -3,11 +3,11 @@
3
  Plugin Name: Spider Event Calendar
4
  Plugin URI: https://web-dorado.com/products/wordpress-calendar.html
5
  Description: Spider Event Calendar is a highly configurable product which allows you to have multiple organized events. Spider Event Calendar is an extraordinary user friendly extension.
6
- Version: 1.5.37
7
  Author: https://web-dorado.com/
8
  License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
9
  */
10
- $wd_spider_calendar_version="1.5.37";
11
  // LANGUAGE localization.
12
  function sp_calendar_language_load() {
13
  load_plugin_textdomain('sp_calendar', FALSE, basename(dirname(__FILE__)) . '/languages');
3
  Plugin Name: Spider Event Calendar
4
  Plugin URI: https://web-dorado.com/products/wordpress-calendar.html
5
  Description: Spider Event Calendar is a highly configurable product which allows you to have multiple organized events. Spider Event Calendar is an extraordinary user friendly extension.
6
+ Version: 1.5.38
7
  Author: https://web-dorado.com/
8
  License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
9
  */
10
+ $wd_spider_calendar_version="1.5.38";
11
  // LANGUAGE localization.
12
  function sp_calendar_language_load() {
13
  load_plugin_textdomain('sp_calendar', FALSE, basename(dirname(__FILE__)) . '/languages');
front_end/bigcalendarday.php CHANGED
@@ -9,7 +9,7 @@ function big_calendar_day() {
9
  $date = ((isset($_GET['date']) && IsDate_inputed(esc_html($_GET['date']))) ? esc_html($_GET['date']) : '');
10
  $view_select = (isset($_GET['select']) ? esc_html($_GET['select']) : 'month,');
11
  $path_sp_cal = (isset($_GET['cur_page_url']) ? esc_html($_GET['cur_page_url']) : '');
12
- $site_url = get_option( "home", get_site_url()).'/wp-admin/admin-ajax.php';
13
  ///////////////////////////////////////////////////////////////////////////////////
14
 
15
 
@@ -150,7 +150,7 @@ $theme = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'spide
150
  $views_tabs_text_color = '#' . str_replace('#','',$theme->views_tabs_text_color);
151
  $views_tabs_font_size = $theme->views_tabs_font_size;
152
  $show_cat = $theme->show_cat;
153
- $header_format = $theme->header_format;
154
 
155
  $date_bg_color = '#' . str_replace('#','',$theme->date_bg_color);
156
  $event_bg_color1 = '#' . str_replace('#','',$theme->event_bg_color1);
@@ -226,37 +226,23 @@ $theme = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'spide
226
  }
227
 
228
  $activedate = explode('/', $header_format);
229
-
230
- for ($i = 0; $i < count($activedate); $i++) {
231
- if ($activedate[$i] == 'w') {
232
- $activedate[$i] = 'l';
233
- }
234
- if ($activedate[$i] == 'm') {
235
  $activedate[$i] = 'F';
236
  }
237
- if ($activedate[$i] == 'y') {
238
  $activedate[$i] = 'Y';
239
  }
240
  }
241
  $activedatestr = "";
242
- for ($i = 0; $i < count($activedate); $i++) {
243
- $activedatestr .= $activedate[$i];
244
- }
245
-
246
- $day_month_year = $day . ' ' . __($month,'sp_calendar') . ' ' . $year;
247
- $dateformat_arrays = array("dFY", "dYF", "FYd", "FdY", "YdF", "YFd" );
248
- $dates_formats = array($day . ' ' . __($month,'sp_calendar') . ' ' . $year,
249
- $day . ' ' . $year . ' ' . __($month,'sp_calendar'),
250
- __($month,'sp_calendar') . ' ' . $year .' '.$day,
251
- __($month,'sp_calendar').' '.$day . ', ' . $year,
252
- $year .' '. $day . ' ' . __($month,'sp_calendar'),
253
- $year.' '.__($month,'sp_calendar') .' '. $day
254
- );
255
- for ($i = 0; $i < count($dateformat_arrays); $i++) {
256
- if (strpos($activedatestr,$dateformat_arrays[$i]) !== false){
257
- $day_month_year = $dates_formats[$i];
258
- }
259
- }
260
  ?>
261
  <html>
262
  <head>
@@ -789,7 +775,7 @@ $theme = $wpdb->get_row($wpdb->prepare('SELECT * FROM ' . $wpdb->prefix . 'spide
789
  </td>
790
  <td style="text-align:center; margin:0;" width="40%">
791
  <input type="hidden" name="month" readonly="" value="<?php echo $month?>"/>
792
- <span style="line-height: 30px;font-family:arial; color:<?php echo $text_color_month; ?>; font-size:<?php echo $month_font_size ?>px;text-shadow: 1px 1px black;"><?php echo $day_month_year; ?></span>
793
  </td>
794
  <?php
795
  if ($day == $month_day_count && Month_num(Month_name(Month_num($month) + 1)) != '1') {
9
  $date = ((isset($_GET['date']) && IsDate_inputed(esc_html($_GET['date']))) ? esc_html($_GET['date']) : '');
10
  $view_select = (isset($_GET['select']) ? esc_html($_GET['select']) : 'month,');
11
  $path_sp_cal = (isset($_GET['cur_page_url']) ? esc_html($_GET['cur_page_url']) : '');
12
+ $site_url = get_admin_url().'admin-ajax.php';
13
  ///////////////////////////////////////////////////////////////////////////////////
14
 
15
 
150
  $views_tabs_text_color = '#' . str_replace('#','',$theme->views_tabs_text_color);
151
  $views_tabs_font_size = $theme->views_tabs_font_size;
152
  $show_cat = $theme->show_cat;
153
+ $header_format = (isset($theme->header_format) ? $theme->header_format : 'w/d/m/y');
154
 
155
  $date_bg_color = '#' . str_replace('#','',$theme->date_bg_color);
156
  $event_bg_color1 = '#' . str_replace('#','',$theme->event_bg_color1);
226
  }
227
 
228
  $activedate = explode('/', $header_format);
229
+ for ($i = 0; $i < 4; $i++) {
230
+ if (isset($activedate[$i]) && $activedate[$i] == 'w') unset($activedate[$i]);
231
+ if (isset($activedate[$i]) && $activedate[$i] == 'm') {
 
 
 
232
  $activedate[$i] = 'F';
233
  }
234
+ if (isset($activedate[$i]) && $activedate[$i] == 'y') {
235
  $activedate[$i] = 'Y';
236
  }
237
  }
238
  $activedatestr = "";
239
+ $header_date_format = implode(' ', $activedate);
240
+ $name_year = date($header_date_format, strtotime($date));
241
+ $exp_name_year = explode(' ', $name_year);
242
+ $exp_name_year = explode(' ', $name_year);
243
+ for($j = 0; $j < count($exp_name_year); $j++){
244
+ $activedatestr .= __($exp_name_year[$j], 'sp_calendar') . ' ';
245
+ }
 
 
 
 
 
 
 
 
 
 
 
246
  ?>
247
  <html>
248
  <head>
775
  </td>
776
  <td style="text-align:center; margin:0;" width="40%">
777
  <input type="hidden" name="month" readonly="" value="<?php echo $month?>"/>
778
+ <span style="line-height: 30px;font-family:arial; color:<?php echo $text_color_month; ?>; font-size:<?php echo $month_font_size ?>px;text-shadow: 1px 1px black;"><?php echo $activedatestr; ?></span>
779
  </td>
780
  <?php
781
  if ($day == $month_day_count && Month_num(Month_name(Month_num($month) + 1)) != '1') {
front_end/bigcalendarday_widget.php CHANGED
@@ -9,7 +9,7 @@ function big_calendar_day_widget() {
9
  $date = ((isset($_GET['date']) && IsDate_inputed(esc_html($_GET['date']))) ? esc_html($_GET['date']) : '');
10
  $view_select = (isset($_GET['select']) ? esc_html($_GET['select']) : 'month,');
11
  $path_sp_cal = (isset($_GET['cur_page_url']) ? esc_html($_GET['cur_page_url']) : '');
12
- $site_url = get_option( "home", get_site_url()).'/wp-admin/admin-ajax.php';
13
  ///////////////////////////////////////////////////////////////////////////////////
14
 
15
  if(isset($_GET['cat_id']))
9
  $date = ((isset($_GET['date']) && IsDate_inputed(esc_html($_GET['date']))) ? esc_html($_GET['date']) : '');
10
  $view_select = (isset($_GET['select']) ? esc_html($_GET['select']) : 'month,');
11
  $path_sp_cal = (isset($_GET['cur_page_url']) ? esc_html($_GET['cur_page_url']) : '');
12
+ $site_url = get_admin_url().'admin-ajax.php';
13
  ///////////////////////////////////////////////////////////////////////////////////
14
 
15
  if(isset($_GET['cat_id']))
front_end/bigcalendarlist.php CHANGED
@@ -9,7 +9,7 @@ function big_calendar_list() {
9
  $date = ((isset($_GET['date']) && IsDate_inputed(esc_html($_GET['date']))) ? esc_html($_GET['date']) : '');
10
  $view_select = (isset($_GET['select']) ? esc_html($_GET['select']) : 'month,');
11
  $path_sp_cal = (isset($_GET['cur_page_url']) ? esc_html($_GET['cur_page_url']) : '');
12
- $site_url = get_option( "home", get_site_url()).'/wp-admin/admin-ajax.php';
13
  ///////////////////////////////////////////////////////////////////////////////////
14
 
15
 
@@ -148,7 +148,7 @@ $cat_ids = substr($cat_ids, 0,-1);
148
  $views_tabs_text_color = '#' . str_replace('#','',$theme->views_tabs_text_color);
149
  $views_tabs_font_size = $theme->views_tabs_font_size;
150
  $show_cat = $theme->show_cat;
151
- $header_format = $theme->header_format;
152
 
153
  $date_bg_color = '#' . str_replace('#','',$theme->date_bg_color);
154
  $event_bg_color1 = '#' . str_replace('#','',$theme->event_bg_color1);
@@ -200,7 +200,8 @@ $cat_ids = substr($cat_ids, 0,-1);
200
  $this_month = substr($year . '-' . add_0((Month_num($month))), 5, 2);
201
  $prev_month = add_0((int) $this_month - 1);
202
  $next_month = add_0((int) $this_month + 1);
203
-
 
204
  $view = 'bigcalendarlist';
205
  $views = explode(',', $view_select);
206
  $defaultview = 'list';
@@ -212,27 +213,22 @@ $cat_ids = substr($cat_ids, 0,-1);
212
  if(count($views) == 1 && $views[0] == $defaultview) {
213
  $display = "display:none";
214
  }
215
-
216
-
217
- $activedate = explode('/', $header_format);
218
-
219
- for ($i = 0; $i < count($activedate); $i++) {
220
- if ($activedate[$i] == 'w') {
221
- $activedate[$i] = 'l';
222
- }
223
- if ($activedate[$i] == 'm') {
224
- $activedate[$i] = 'F';
225
- }
226
- if ($activedate[$i] == 'y') {
227
- $activedate[$i] = 'Y';
228
- }
229
- }
230
- $activedatestr = "";
231
- for ($i = 0; $i < count($activedate); $i++) {
232
- $activedatestr .= $activedate[$i];
233
  }
234
-
235
- $name_year = __($month, 'sp_calendar') .' '. $year;
 
 
 
 
236
 
237
  ?>
238
  <html>
@@ -749,7 +745,7 @@ position: relative;
749
  </td>
750
  <td style="text-align:center; margin:0;" width="40%">
751
  <input type="hidden" name="month" readonly="" value="<?php echo $month?>"/>
752
- <span style="line-height: 30px;font-family: Segoe UI; color:<?php echo $text_color_month;?>; font-size:<?php echo $month_font_size ?>px;text-shadow: 1px 1px black;"><?php echo $name_year; ?></span>
753
  </td>
754
  <td style="margin:0; text-align:left; padding: 0px 0px 0px 30px !important;" width="11%" class="cala_arrow">
755
  <a style="text-shadow: 1px 1px 2px black;color:<?php echo $color_arrow_month ?>" href="javascript:showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>','<?php
9
  $date = ((isset($_GET['date']) && IsDate_inputed(esc_html($_GET['date']))) ? esc_html($_GET['date']) : '');
10
  $view_select = (isset($_GET['select']) ? esc_html($_GET['select']) : 'month,');
11
  $path_sp_cal = (isset($_GET['cur_page_url']) ? esc_html($_GET['cur_page_url']) : '');
12
+ $site_url = get_admin_url().'admin-ajax.php';
13
  ///////////////////////////////////////////////////////////////////////////////////
14
 
15
 
148
  $views_tabs_text_color = '#' . str_replace('#','',$theme->views_tabs_text_color);
149
  $views_tabs_font_size = $theme->views_tabs_font_size;
150
  $show_cat = $theme->show_cat;
151
+ $header_format = (isset($theme->header_format) ? $theme->header_format : 'w/d/m/y');
152
 
153
  $date_bg_color = '#' . str_replace('#','',$theme->date_bg_color);
154
  $event_bg_color1 = '#' . str_replace('#','',$theme->event_bg_color1);
200
  $this_month = substr($year . '-' . add_0((Month_num($month))), 5, 2);
201
  $prev_month = add_0((int) $this_month - 1);
202
  $next_month = add_0((int) $this_month + 1);
203
+
204
+ $activedatestr = "";
205
  $view = 'bigcalendarlist';
206
  $views = explode(',', $view_select);
207
  $defaultview = 'list';
213
  if(count($views) == 1 && $views[0] == $defaultview) {
214
  $display = "display:none";
215
  }
216
+
217
+
218
+ $date_format_array = explode('/', $header_format);
219
+ for ($i = 0; $i < 4; $i++) {
220
+ if (isset($date_format_array[$i]) && ($date_format_array[$i] == 'd' || $date_format_array[$i] == 'w')) {
221
+ unset($date_format_array[$i]);
222
+ }
223
+ if (isset($date_format_array[$i]) && $date_format_array[$i] == 'm') $date_format_array[$i] = 'F';
224
+ if (isset($date_format_array[$i]) && $date_format_array[$i] == 'y') $date_format_array[$i] = 'Y';
 
 
 
 
 
 
 
 
 
225
  }
226
+ $header_date_format = implode(' ', $date_format_array);
227
+ $name_year = date($header_date_format, strtotime($date));
228
+ $exp_name_year = explode(' ', $name_year);
229
+ for($j = 0; $j < count($exp_name_year); $j++){
230
+ $activedatestr .= __($exp_name_year[$j], 'sp_calendar') . ' ';
231
+ }
232
 
233
  ?>
234
  <html>
745
  </td>
746
  <td style="text-align:center; margin:0;" width="40%">
747
  <input type="hidden" name="month" readonly="" value="<?php echo $month?>"/>
748
+ <span style="line-height: 30px;font-family: Segoe UI; color:<?php echo $text_color_month;?>; font-size:<?php echo $month_font_size ?>px;text-shadow: 1px 1px black;"><?php echo $activedatestr; ?></span>
749
  </td>
750
  <td style="margin:0; text-align:left; padding: 0px 0px 0px 30px !important;" width="11%" class="cala_arrow">
751
  <a style="text-shadow: 1px 1px 2px black;color:<?php echo $color_arrow_month ?>" href="javascript:showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>','<?php
front_end/bigcalendarlist_widget.php CHANGED
@@ -9,7 +9,7 @@ function big_calendar_list_widget() {
9
  $date = ((isset($_GET['date']) && IsDate_inputed(esc_html($_GET['date']))) ? esc_html($_GET['date']) : '');
10
  $view_select = (isset($_GET['select']) ? esc_html($_GET['select']) : 'month,');
11
  $path_sp_cal = (isset($_GET['cur_page_url']) ? esc_html($_GET['cur_page_url']) : '');
12
- $site_url = get_option( "home", get_site_url()).'/wp-admin/admin-ajax.php';
13
  ///////////////////////////////////////////////////////////////////////////////////
14
 
15
  if(isset($_GET['cat_id']))
9
  $date = ((isset($_GET['date']) && IsDate_inputed(esc_html($_GET['date']))) ? esc_html($_GET['date']) : '');
10
  $view_select = (isset($_GET['select']) ? esc_html($_GET['select']) : 'month,');
11
  $path_sp_cal = (isset($_GET['cur_page_url']) ? esc_html($_GET['cur_page_url']) : '');
12
+ $site_url = get_admin_url().'admin-ajax.php';
13
  ///////////////////////////////////////////////////////////////////////////////////
14
 
15
  if(isset($_GET['cat_id']))
front_end/bigcalendarmonth.php CHANGED
@@ -11,7 +11,7 @@ function big_calendar_month() {
11
  $path_sp_cal = (isset($_GET['cur_page_url']) ? esc_html($_GET['cur_page_url']) : '');
12
  $query = "SELECT * FROM " . $wpdb->prefix . "spidercalendar_calendar where id=".$calendar_id."";
13
  $calendar = $wpdb->query($query);
14
- $site_url = get_option( "home", get_site_url()).'/wp-admin/admin-ajax.php';
15
 
16
  ///////////////////////////////////////////////////////////////////////////////////
17
 
@@ -134,7 +134,7 @@ $cat_ids = substr($cat_ids, 0,-1);
134
  $next_month_font_size = $theme->next_month_font_size;
135
  $prev_month_font_size = $theme->prev_month_font_size;
136
  $month_type = $theme->month_type;
137
- $header_format = $theme->header_format;
138
  $ev_title_bg_color = '#' . str_replace('#','',$theme->ev_title_bg_color);
139
 
140
  $date_bg_color = '#' . str_replace('#','',$theme->date_bg_color);
@@ -205,13 +205,28 @@ $cat_ids = substr($cat_ids, 0,-1);
205
  $year = substr($date, 0, 4);
206
  $month = Month_name(substr($date, 5, 2));
207
  $day = substr($date, 8, 2);
208
-
209
  $cell_width = $cal_width / 7;
210
  $cell_width = (int) $cell_width - 2;
211
 
212
  $this_month = substr($year . '-' . add_0((Month_num($month))), 5, 2);
213
  $prev_month = add_0((int) $this_month - 1);
214
  $next_month = add_0((int) $this_month + 1);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
215
 
216
  $view = 'bigcalendarmonth';
217
  $views = explode(',', $view_select);
@@ -523,40 +538,6 @@ echo '<style>
523
  </style>
524
  </head>
525
  <body>
526
- <?php
527
- $activedate = explode('/', $header_format);
528
-
529
- for ($i = 0; $i < count($activedate); $i++) {
530
- if ($activedate[$i] == 'w') {
531
- $activedate[$i] = 'l';
532
- }
533
- if ($activedate[$i] == 'm') {
534
- $activedate[$i] = 'F';
535
- }
536
- if ($activedate[$i] == 'y') {
537
- $activedate[$i] = 'Y';
538
- }
539
- }
540
- $activedatestr = "";
541
- for ($i = 0; $i < count($activedate); $i++) {
542
- $activedatestr .= $activedate[$i];
543
- }
544
- $name_year = '<p class="month_name">'.__($month, 'sp_calendar') .'</p> '. $year;
545
- $dateformat_arrays = array("dFY", "dYF", "FYd", "FdY", "YdF", "YFd" );
546
- $dates_formats = array('<p class="month_name">'.__($month, 'sp_calendar') .'</p> '. $year,
547
- $year . ' <p class="month_name">' . __($month, 'sp_calendar').'</p>',
548
- '<p class="month_name">'.__($month, 'sp_calendar') .'</p> '. $year,
549
- '<p class="month_name">'.__($month, 'sp_calendar') .'</p> '. $year,
550
- $year . ' <p class="month_name">' . __($month, 'sp_calendar').'</p>',
551
- $year . ' <p class="month_name">' . __($month, 'sp_calendar').'</p>'
552
- );
553
- for ($i = 0; $i < count($dateformat_arrays); $i++) {
554
- if (strpos($activedatestr,$dateformat_arrays[$i]) !== false){
555
- $name_year = $dates_formats[$i];
556
- }
557
- }
558
-
559
- ?>
560
  <div id="afterbig<?php echo $many_sp_calendar; ?>" style="<?php echo $display ?>">
561
  <div style="width:100%;">
562
  <table cellpadding="0" cellspacing="0" style="width:100%;">
@@ -760,7 +741,7 @@ echo '<style>
760
  </td>
761
  <td style="text-align:center; margin:0;" width="10%">
762
  <input type="hidden" name="month" readonly="" value="<?php echo $month; ?>"/>
763
- <span style="line-height: 30px;font-family: Segoe UI; color:<?php echo $text_color_month; ?>; font-size:<?php echo $month_font_size; ?>px;text-shadow: 1px 1px black;"><?php echo $name_year; ?></span>
764
  </td>
765
  <td style="margin:0; padding: 0px 0px 0px 30px;text-align:left" width="11%" class="cala_arrow">
766
  <a style="text-shadow: 1px 1px 2px black; color:<?php echo $color_arrow_month; ?>" href="javascript:showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>','<?php
11
  $path_sp_cal = (isset($_GET['cur_page_url']) ? esc_html($_GET['cur_page_url']) : '');
12
  $query = "SELECT * FROM " . $wpdb->prefix . "spidercalendar_calendar where id=".$calendar_id."";
13
  $calendar = $wpdb->query($query);
14
+ $site_url = get_admin_url().'admin-ajax.php';
15
 
16
  ///////////////////////////////////////////////////////////////////////////////////
17
 
134
  $next_month_font_size = $theme->next_month_font_size;
135
  $prev_month_font_size = $theme->prev_month_font_size;
136
  $month_type = $theme->month_type;
137
+ $header_format = (isset($theme->header_format) ? $theme->header_format : 'w/d/m/y');
138
  $ev_title_bg_color = '#' . str_replace('#','',$theme->ev_title_bg_color);
139
 
140
  $date_bg_color = '#' . str_replace('#','',$theme->date_bg_color);
205
  $year = substr($date, 0, 4);
206
  $month = Month_name(substr($date, 5, 2));
207
  $day = substr($date, 8, 2);
 
208
  $cell_width = $cal_width / 7;
209
  $cell_width = (int) $cell_width - 2;
210
 
211
  $this_month = substr($year . '-' . add_0((Month_num($month))), 5, 2);
212
  $prev_month = add_0((int) $this_month - 1);
213
  $next_month = add_0((int) $this_month + 1);
214
+ $activedatestr = "";
215
+
216
+ $date_format_array = explode('/', $header_format);
217
+ for ($i = 0; $i < 4; $i++) {
218
+ if (isset($date_format_array[$i]) && ($date_format_array[$i] == 'd' || $date_format_array[$i] == 'w')) {
219
+ unset($date_format_array[$i]);
220
+ }
221
+ if (isset($date_format_array[$i]) && $date_format_array[$i] == 'm') $date_format_array[$i] = 'F';
222
+ if (isset($date_format_array[$i]) && $date_format_array[$i] == 'y') $date_format_array[$i] = 'Y';
223
+ }
224
+ $header_date_format = implode(' ', $date_format_array);
225
+ $name_year = date($header_date_format, strtotime($date));
226
+ $exp_name_year = explode(' ', $name_year);
227
+ for($j = 0; $j < count($exp_name_year); $j++){
228
+ $activedatestr .= __($exp_name_year[$j], 'sp_calendar') . ' ';
229
+ }
230
 
231
  $view = 'bigcalendarmonth';
232
  $views = explode(',', $view_select);
538
  </style>
539
  </head>
540
  <body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
541
  <div id="afterbig<?php echo $many_sp_calendar; ?>" style="<?php echo $display ?>">
542
  <div style="width:100%;">
543
  <table cellpadding="0" cellspacing="0" style="width:100%;">
741
  </td>
742
  <td style="text-align:center; margin:0;" width="10%">
743
  <input type="hidden" name="month" readonly="" value="<?php echo $month; ?>"/>
744
+ <span style="line-height: 30px;font-family: Segoe UI; color:<?php echo $text_color_month; ?>; font-size:<?php echo $month_font_size; ?>px;text-shadow: 1px 1px black;"><?php echo $activedatestr; ?></span>
745
  </td>
746
  <td style="margin:0; padding: 0px 0px 0px 30px;text-align:left" width="11%" class="cala_arrow">
747
  <a style="text-shadow: 1px 1px 2px black; color:<?php echo $color_arrow_month; ?>" href="javascript:showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>','<?php
front_end/bigcalendarmonth_widget.php CHANGED
@@ -9,7 +9,7 @@ function big_calendar_month_widget() {
9
  $date = ((isset($_GET['date']) && IsDate_inputed(esc_html($_GET['date']))) ? esc_html($_GET['date']) : '');
10
  $view_select = (isset($_GET['select']) ? esc_html($_GET['select']) : 'month,');
11
  $path_sp_cal = (isset($_GET['cur_page_url']) ? esc_html($_GET['cur_page_url']) : '');
12
- $site_url = get_site_url().'/wp-admin/admin-ajax.php';
13
  ///////////////////////////////////////////////////////////////////////////////////
14
 
15
 
9
  $date = ((isset($_GET['date']) && IsDate_inputed(esc_html($_GET['date']))) ? esc_html($_GET['date']) : '');
10
  $view_select = (isset($_GET['select']) ? esc_html($_GET['select']) : 'month,');
11
  $path_sp_cal = (isset($_GET['cur_page_url']) ? esc_html($_GET['cur_page_url']) : '');
12
+ $site_url = get_admin_url().'admin-ajax.php';
13
  ///////////////////////////////////////////////////////////////////////////////////
14
 
15
 
front_end/bigcalendarweek.php CHANGED
@@ -10,7 +10,7 @@ function big_calendar_week() {
10
  $view_select = (isset($_GET['select']) ? esc_html($_GET['select']) : 'month,');
11
  $path_sp_cal = (isset($_GET['cur_page_url']) ? esc_html($_GET['cur_page_url']) : '');
12
  $months = (isset($_GET['months']) ? esc_html($_GET['months']) : '');
13
- $site_url = get_option( "home", get_site_url()).'/wp-admin/admin-ajax.php';
14
  ///////////////////////////////////////////////////////////////////////////////////
15
 
16
 
@@ -149,7 +149,7 @@ $cat_ids = substr($cat_ids, 0,-1);
149
  $views_tabs_bg_color = '#' . str_replace('#','',$theme->views_tabs_bg_color);
150
  $views_tabs_text_color = '#' . str_replace('#','',$theme->views_tabs_text_color);
151
  $views_tabs_font_size = $theme->views_tabs_font_size;
152
- $header_format = $theme->header_format;
153
 
154
  $date_bg_color = '#' . str_replace('#','',$theme->date_bg_color);
155
  $event_bg_color1 = '#' . str_replace('#','',$theme->event_bg_color1);
@@ -233,6 +233,8 @@ $cat_ids = substr($cat_ids, 0,-1);
233
  $prev_month = '12';
234
  }
235
 
 
 
236
  $view = 'bigcalendarweek';
237
  $views = explode(',', $view_select);
238
  $defaultview = 'week';
@@ -245,49 +247,25 @@ $cat_ids = substr($cat_ids, 0,-1);
245
  $display = "display:none";
246
  }
247
 
248
-
249
- $activedate = explode('/', $header_format);
250
-
251
- for ($i = 0; $i < count($activedate); $i++) {
252
- if ($activedate[$i] == 'w') {
253
- $activedate[$i] = 'l';
254
- }
255
- if ($activedate[$i] == 'm') {
256
- $activedate[$i] = 'F';
257
- }
258
- if ($activedate[$i] == 'y') {
259
- $activedate[$i] = 'Y';
260
- }
261
  }
262
- $activedatestr = "";
263
- for ($i = 0; $i < count($activedate); $i++) {
264
- $activedatestr .= $activedate[$i];
265
- }
266
-
267
- $weekstartday = substr($week_days[0],8,2);
268
- $weekendday = substr($week_days[6],8,2);
269
- $startmonth = substr($week_days[0],5,2);
270
- $endmonth = substr($week_days[6],5,2);
271
-
272
- $startmonth_name = month_name($startmonth);
273
- $endmonth_name = month_name($endmonth);
274
-
275
- $weekdays = $weekstartday . ' '. __($startmonth_name,'sp_calendar') . ' - ' . $weekendday .' '.__($endmonth_name,'sp_calendar');
276
- $dateformat_arrays = array("dFY", "dYF", "FYd", "FdY", "YdF", "YFd" );
277
- $dates_formats = array(
278
- $weekstartday . ' '. __($startmonth_name,'sp_calendar') . ' - ' . $weekendday .' '.__( $endmonth_name,'sp_calendar'),
279
- $weekstartday . ' '. __($startmonth_name,'sp_calendar') . ' - ' . $weekendday .' '.__($endmonth_name,'sp_calendar'),
280
- __($startmonth_name,'sp_calendar').' '. $weekstartday . ' - ' . __($endmonth_name,'sp_calendar') .' '. $weekendday,
281
- __($startmonth_name,'sp_calendar').' '. $weekstartday . ' - ' . __($endmonth_name,'sp_calendar') .' '. $weekendday,
282
- $weekstartday . ' '. __($startmonth_name,'sp_calendar') . ' - ' . $weekendday .' '.__($endmonth_name,'sp_calendar'),
283
- __($startmonth_name,'sp_calendar').' '. $weekstartday . ' - ' . __($endmonth_name,'sp_calendar') .' '. $weekendday
284
- );
285
- for ($i = 0; $i < count($dateformat_arrays); $i++) {
286
- if (strpos($activedatestr,$dateformat_arrays[$i]) !== false){
287
- $weekdays = $dates_formats[$i];
288
- }
289
- }
290
-
291
  ?>
292
  <html>
293
  <head>
@@ -810,7 +788,7 @@ position: relative;
810
  </td>
811
  <td style="text-align:center; margin:0;" width="40%">
812
  <input type="hidden" name="month" readonly="" value="<?php echo $month; ?>"/>
813
- <span style="line-height: 30px;font-family:arial; color:<?php echo $text_color_month; ?>; font-size:<?php echo $month_font_size; ?>px;text-shadow: 1px 1px black;"><?php echo $weekdays; ?></span>
814
  </td>
815
  <td style="margin:0; padding: 0px 0px 0px 30px !important; text-align:left" width="11%" class="cala_arrow">
816
  <a style="text-shadow: 1px 1px 2px black;color:<?php echo $color_arrow_month; ?>" href="javascript:showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>','<?php
10
  $view_select = (isset($_GET['select']) ? esc_html($_GET['select']) : 'month,');
11
  $path_sp_cal = (isset($_GET['cur_page_url']) ? esc_html($_GET['cur_page_url']) : '');
12
  $months = (isset($_GET['months']) ? esc_html($_GET['months']) : '');
13
+ $site_url = get_admin_url().'admin-ajax.php';
14
  ///////////////////////////////////////////////////////////////////////////////////
15
 
16
 
149
  $views_tabs_bg_color = '#' . str_replace('#','',$theme->views_tabs_bg_color);
150
  $views_tabs_text_color = '#' . str_replace('#','',$theme->views_tabs_text_color);
151
  $views_tabs_font_size = $theme->views_tabs_font_size;
152
+ $header_format = (isset($theme->header_format) ? $theme->header_format : 'w/d/m/y');
153
 
154
  $date_bg_color = '#' . str_replace('#','',$theme->date_bg_color);
155
  $event_bg_color1 = '#' . str_replace('#','',$theme->event_bg_color1);
233
  $prev_month = '12';
234
  }
235
 
236
+ $activedatestr1 = "";
237
+ $activedatestr2 = "";
238
  $view = 'bigcalendarweek';
239
  $views = explode(',', $view_select);
240
  $defaultview = 'week';
247
  $display = "display:none";
248
  }
249
 
250
+ $date_format_array = explode('/', $header_format);
251
+ for ($i = 0; $i < 4; $i++) {
252
+ if (isset($date_format_array[$i]) && ($date_format_array[$i] == 'w' || $date_format_array[$i] == 'y'))
253
+ unset($date_format_array[$i]);
254
+ if (isset($date_format_array[$i]) && $date_format_array[$i] == 'm')
255
+ $date_format_array[$i] = 'F';
 
 
 
 
 
 
 
256
  }
257
+ $header_date_format = implode(' ', $date_format_array);
258
+ $start_month = date($header_date_format, strtotime($week_days[0]));
259
+ $end_month = date($header_date_format, strtotime($week_days[6]));
260
+ $exp_start_month = explode(' ', $start_month);
261
+ $exp_end_month = explode(' ', $end_month);
262
+ for($j = 0; $j < count($exp_start_month); $j++){
263
+ $activedatestr1 .= __($exp_start_month[$j], 'sp_calendar') . ' ';
264
+ }
265
+ for($j = 0; $j < count($exp_end_month); $j++){
266
+ $activedatestr2 .= __($exp_end_month[$j], 'sp_calendar') . ' ';
267
+ }
268
+ $activedatestr = $activedatestr1 . '- ' . $activedatestr2;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
269
  ?>
270
  <html>
271
  <head>
788
  </td>
789
  <td style="text-align:center; margin:0;" width="40%">
790
  <input type="hidden" name="month" readonly="" value="<?php echo $month; ?>"/>
791
+ <span style="line-height: 30px;font-family:arial; color:<?php echo $text_color_month; ?>; font-size:<?php echo $month_font_size; ?>px;text-shadow: 1px 1px black;"><?php echo $activedatestr; ?></span>
792
  </td>
793
  <td style="margin:0; padding: 0px 0px 0px 30px !important; text-align:left" width="11%" class="cala_arrow">
794
  <a style="text-shadow: 1px 1px 2px black;color:<?php echo $color_arrow_month; ?>" href="javascript:showbigcalendar('bigcalendar<?php echo $many_sp_calendar; ?>','<?php
front_end/bigcalendarweek_widget.php CHANGED
@@ -10,7 +10,7 @@ function big_calendar_week_widget() {
10
  $view_select = (isset($_GET['select']) ? esc_html($_GET['select']) : 'month,');
11
  $path_sp_cal = (isset($_GET['cur_page_url']) ? esc_html($_GET['cur_page_url']) : '');
12
  $months = (isset($_GET['months']) ? esc_html($_GET['months']) : '');
13
- $site_url = get_option( "home", get_site_url()).'/wp-admin/admin-ajax.php';
14
  ///////////////////////////////////////////////////////////////////////////////////
15
 
16
  if(isset($_GET['cat_id']))
10
  $view_select = (isset($_GET['select']) ? esc_html($_GET['select']) : 'month,');
11
  $path_sp_cal = (isset($_GET['cur_page_url']) ? esc_html($_GET['cur_page_url']) : '');
12
  $months = (isset($_GET['months']) ? esc_html($_GET['months']) : '');
13
+ $site_url = get_admin_url().'admin-ajax.php';
14
  ///////////////////////////////////////////////////////////////////////////////////
15
 
16
  if(isset($_GET['cat_id']))
images/Featured-Plugins-page.png ADDED
Binary file
languages/sp_calendar-nl_NL.mo CHANGED
Binary file
languages/sp_calendar-nl_NL.po CHANGED
@@ -3,7 +3,7 @@ msgstr ""
3
  "Project-Id-Version: spider_calendar\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2013-08-13 17:44+0400\n"
6
- "PO-Revision-Date: 2016-01-19 12:20+0400\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
@@ -198,7 +198,7 @@ msgstr "November"
198
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek.php:89
199
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek_widget.php:55
200
  msgid "December"
201
- msgstr "Desember"
202
 
203
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday.php:379
204
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday_widget.php:241
3
  "Project-Id-Version: spider_calendar\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2013-08-13 17:44+0400\n"
6
+ "PO-Revision-Date: 2016-03-24 14:43+0400\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
198
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek.php:89
199
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarweek_widget.php:55
200
  msgid "December"
201
+ msgstr "December"
202
 
203
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday.php:379
204
  #: C:\wamp\www\wordpress3.5\wp-content\plugins\spider-event-calendar/front_end/bigcalendarday_widget.php:241
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-calendar.html
4
  Tags: calendar, calendars, event, event calendar, event manager, events calendar,calendar widget, event registration, event management,events, Kalender, agenda, calendario, availability calendar,o nline calendar, holiday calendar, scheduling, free calendar, Calender, upcoming events, event widget , event list, calendar localization, Organizer, editorial calendar, Interactive Calendar, news calendar, meeting, appointment, event tracking, event organizer, upcoming events widget, event page, event bookings, recurring, recurring events, conference, date, dates, schedule, times, venue, AJAX, responsive, shortcode, seminar, summit, reservation
5
  Requires at least: 3.4
6
  Tested up to: 4.4
7
- Stable tag: 1.5.37
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -142,8 +142,11 @@ Vietnamese (vi)
142
 
143
  == Changelog ==
144
 
 
 
 
145
  = 1.5.37 =
146
- Fixed: Minor bugs
147
  Fixed: Finnish translation
148
 
149
  = 1.5.36 =
4
  Tags: calendar, calendars, event, event calendar, event manager, events calendar,calendar widget, event registration, event management,events, Kalender, agenda, calendario, availability calendar,o nline calendar, holiday calendar, scheduling, free calendar, Calender, upcoming events, event widget , event list, calendar localization, Organizer, editorial calendar, Interactive Calendar, news calendar, meeting, appointment, event tracking, event organizer, upcoming events widget, event page, event bookings, recurring, recurring events, conference, date, dates, schedule, times, venue, AJAX, responsive, shortcode, seminar, summit, reservation
5
  Requires at least: 3.4
6
  Tested up to: 4.4
7
+ Stable tag: 1.5.38
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
142
 
143
  == Changelog ==
144
 
145
+ = 1.5.38 =
146
+ Fixed: Calendar header date format
147
+
148
  = 1.5.37 =
149
+ Fixed: Minor bugs
150
  Fixed: Finnish translation
151
 
152
  = 1.5.36 =
spider_calendar_admin_class.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  class SC_Admin {
4
  public static $instance = null;
5
- protected $version = '1.5.37';
6
  public $prefix = "sc_";
7
  protected $notices = null;
8
  public static function get_instance() {
2
 
3
  class SC_Admin {
4
  public static $instance = null;
5
+ protected $version = '1.5.38';
6
  public $prefix = "sc_";
7
  protected $notices = null;
8
  public static function get_instance() {
spider_calendar_update.php CHANGED
@@ -146,7 +146,7 @@ if ($calexist1 == 0) {
146
  ) ENGINE=MyISAM DEFAULT CHARSET=utf8;";
147
  $wpdb->query($spider_theme_table);
148
  $spider_theme_rows = "INSERT INTO `" . $wpdb->prefix . "spidercalendar_theme` (`id`, `title`, `width`, `cell_height`, `bg_top`, `bg_bottom`, `border_color`, `text_color_year`, `text_color_month`, `text_color_week_days`, `text_color_other_months`, `text_color_this_month_unevented`, `text_color_this_month_evented`, `event_title_color`, `current_day_border_color`, `bg_color_this_month_evented`, `next_prev_event_arrowcolor`, `show_event_bgcolor`, `cell_border_color`, `arrow_color_year`, `week_days_cell_height`, `arrow_color_month`, `text_color_sun_days`, `title_color`, `next_prev_event_bgcolor`, `title_font_size`, `title_font`, `title_style`, `date_color`, `date_size`, `date_font`, `date_style`, `popup_width`, `popup_height`, `number_of_shown_evetns`, `sundays_font_size`, `other_days_font_size`, `weekdays_font_size`, `border_width`, `top_height`, `bg_color_other_months`, `sundays_bg_color`, `weekdays_bg_color`, `week_start_day`, `weekday_sunday_bg_color`, `border_radius`, `year_font_size`, `month_font_size`, `arrow_size`, `next_month_text_color`, `prev_month_text_color`, `next_month_arrow_color`, `prev_month_arrow_color`, `next_month_font_size`, `prev_month_font_size`, `month_type`, `date_format`, `show_time`, `show_cat`, `show_repeat`, `date_bg_color`, `event_bg_color1`, `event_bg_color2`, `event_num_bg_color1`, `event_num_bg_color2`, `event_num_color`, `date_font_size`, `event_num_font_size`, `event_table_height`, `date_height`, `ev_title_bg_color`, `week_font_size`, `day_month_font_size`, `week_font_color`, `day_month_font_color`, `views_tabs_bg_color`, `views_tabs_text_color`, `views_tabs_font_size`, `day_start`, `header_format`) VALUES
149
- (13, 'Shiny Blue', '700', '90', '005478', 'F8F8F8', '005478', 'F9F2F4', 'F9F2F4', 'CCD1D2', '004B6C', '004B6C', '004B6C', '005478', '005478', 'F8F8F8', '97A0A6', 'B4C5CC', 'CCD1D2 ', 'CCD1D2', '30', 'CCD1D2', '004B6C', 'FFFFFF', '00608A', '', '', 'normal', '262626', '', '', 'normal', '600', '500', '1', '17', '17', '17', '0', '90', 'F8F8F8', 'F8F8F8', '006285', 'su', '006285', '0', '25', '25', '25', 'CCD1D2', 'CCD1D2', 'CCD1D2', '1010A4', '16', '16', '2', 'w/d/m/y', 1, 1, 1, 'D6D4D5', 'F8F8F8', 'DEDCDD', '005478', '006E91', 'FFFFFF', '15', '13', '30', '25', 'F8F8F8', '15', '12', '005476', '737373', '01799C', 'FFFFFF', '13', 1, 'w/m/d/y');";
150
  $wpdb->query($spider_theme_rows);
151
 
152
  $wpdb->query("DROP TABLE IF EXISTS `" . $wpdb->prefix . "spidercalendar_widget_theme`");
146
  ) ENGINE=MyISAM DEFAULT CHARSET=utf8;";
147
  $wpdb->query($spider_theme_table);
148
  $spider_theme_rows = "INSERT INTO `" . $wpdb->prefix . "spidercalendar_theme` (`id`, `title`, `width`, `cell_height`, `bg_top`, `bg_bottom`, `border_color`, `text_color_year`, `text_color_month`, `text_color_week_days`, `text_color_other_months`, `text_color_this_month_unevented`, `text_color_this_month_evented`, `event_title_color`, `current_day_border_color`, `bg_color_this_month_evented`, `next_prev_event_arrowcolor`, `show_event_bgcolor`, `cell_border_color`, `arrow_color_year`, `week_days_cell_height`, `arrow_color_month`, `text_color_sun_days`, `title_color`, `next_prev_event_bgcolor`, `title_font_size`, `title_font`, `title_style`, `date_color`, `date_size`, `date_font`, `date_style`, `popup_width`, `popup_height`, `number_of_shown_evetns`, `sundays_font_size`, `other_days_font_size`, `weekdays_font_size`, `border_width`, `top_height`, `bg_color_other_months`, `sundays_bg_color`, `weekdays_bg_color`, `week_start_day`, `weekday_sunday_bg_color`, `border_radius`, `year_font_size`, `month_font_size`, `arrow_size`, `next_month_text_color`, `prev_month_text_color`, `next_month_arrow_color`, `prev_month_arrow_color`, `next_month_font_size`, `prev_month_font_size`, `month_type`, `date_format`, `show_time`, `show_cat`, `show_repeat`, `date_bg_color`, `event_bg_color1`, `event_bg_color2`, `event_num_bg_color1`, `event_num_bg_color2`, `event_num_color`, `date_font_size`, `event_num_font_size`, `event_table_height`, `date_height`, `ev_title_bg_color`, `week_font_size`, `day_month_font_size`, `week_font_color`, `day_month_font_color`, `views_tabs_bg_color`, `views_tabs_text_color`, `views_tabs_font_size`, `day_start`, `header_format`) VALUES
149
+ (13, 'Shiny Blue', '700', '90', '005478', 'F8F8F8', '005478', 'F9F2F4', 'F9F2F4', 'CCD1D2', '004B6C', '004B6C', '004B6C', '005478', '005478', 'F8F8F8', '97A0A6', 'B4C5CC', 'CCD1D2 ', 'CCD1D2', '30', 'CCD1D2', '004B6C', 'FFFFFF', '00608A', '', '', 'normal', '262626', '', '', 'normal', '600', '500', '1', '17', '17', '17', '0', '90', 'F8F8F8', 'F8F8F8', '006285', 'su', '006285', '0', '25', '25', '25', 'CCD1D2', 'CCD1D2', 'CCD1D2', '1010A4', '16', '16', '2', 'w/d/m/y', 1, 1, 1, 'D6D4D5', 'F8F8F8', 'DEDCDD', '005478', '006E91', 'FFFFFF', '15', '13', '30', '25', 'F8F8F8', '15', '12', '005476', '737373', '01799C', 'FFFFFF', '13', 1, 'w/d/m/y');";
150
  $wpdb->query($spider_theme_rows);
151
 
152
  $wpdb->query("DROP TABLE IF EXISTS `" . $wpdb->prefix . "spidercalendar_widget_theme`");