Version Description
Download this release
Release Info
| Developer | webdorado |
| Plugin | |
| Version | 1.4.4 |
| Comparing to | |
| See all releases | |
Code changes from version 1.4.3 to 1.4.4
- calendar.php +1 -1
- readme.txt +19 -13
- spidercalendar_upcoming_events_widget.php +22 -26
calendar.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
Plugin Name: Spider Event Calendar
|
| 5 |
Plugin URI: http://web-dorado.com/products/wordpress-calendar.html
|
| 6 |
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.
|
| 7 |
-
Version: 1.4.
|
| 8 |
Author: http://web-dorado.com/
|
| 9 |
License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
| 10 |
*/
|
| 4 |
Plugin Name: Spider Event Calendar
|
| 5 |
Plugin URI: http://web-dorado.com/products/wordpress-calendar.html
|
| 6 |
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.
|
| 7 |
+
Version: 1.4.4
|
| 8 |
Author: http://web-dorado.com/
|
| 9 |
License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
| 10 |
*/
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Donate link: http://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,online 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, event page
|
| 5 |
Requires at least: 3.0
|
| 6 |
Tested up to: 3.7.1
|
| 7 |
-
Stable tag: 1.4.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -38,18 +38,24 @@ Possibility to add multiple events for a single date, including events from diff
|
|
| 38 |
* Possibility to choose between four view modes (Month, List, Week and Day).
|
| 39 |
* An option to create categories.
|
| 40 |
* Possibility to assign a category for each event, option of having different colors for each category.
|
| 41 |
-
*
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
*
|
| 47 |
-
*
|
| 48 |
-
*
|
| 49 |
-
*
|
| 50 |
-
*
|
| 51 |
-
*
|
| 52 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
|
| 54 |
###IMPORTANT: If you think you found a bug in Spider Calendar or have any problem/question concerning the plugin, please check out [Support Forum](http://web-dorado.com/forum/spider-calendar-wordpress.html) in our website. If you do not find a solution here, do not hesitate to contact us at [info@web-dorado.com](mailto:info@web-dorado.com).
|
| 55 |
|
| 4 |
Tags: calendar , calendars, event, event calendar, event manager, events calendar,calendar widget, event registration, event management,events, Kalender, agenda, calendario, availability calendar,online 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, event page
|
| 5 |
Requires at least: 3.0
|
| 6 |
Tested up to: 3.7.1
|
| 7 |
+
Stable tag: 1.4.4
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 38 |
* Possibility to choose between four view modes (Month, List, Week and Day).
|
| 39 |
* An option to create categories.
|
| 40 |
* Possibility to assign a category for each event, option of having different colors for each category.
|
| 41 |
+
* Filtering possibility in the front end: when clicking upon the category it will display events of that category only.
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
Upgrade to [WordPress Calendar Pro](http://web-dorado.com/products/wordpress-calendar.html) to add features:
|
| 45 |
+
|
| 46 |
+
* Spider Event Calendar allows you to change the colors of the calendar and fit it to the colors of your website.
|
| 47 |
+
* Spider Event Calendar has 17 standard themes included in extension package for the plugin and 6 themes for the widget.
|
| 48 |
+
* You can set width of the Spider Event Calendar in the widget and in the [WordPress calendar plugin](http://web-dorado.com/products/wordpress-calendar.html) as well.
|
| 49 |
+
* You can change calendar date color, font size and font family in the popup.
|
| 50 |
+
* Possibility to change arrow color and background color in the popup in the Spider Event Calendar.
|
| 51 |
+
* Possibility to change popup background color in the Spider Event Calendar.
|
| 52 |
+
* Possibility to define the height and width of the popup in the Spider Event Calendar.
|
| 53 |
+
* Possibility to define the number of displayed events in the popup in the Spider Event Calendar.
|
| 54 |
+
* Possibility to change next, previous and current month font size and color in the Spider Event Calendar.
|
| 55 |
+
* Possibility to change current day cell border color in the Spider Event Calendar.
|
| 56 |
+
* Possibility to define the main border radius, color and width in the Spider Event Calendar.
|
| 57 |
+
* You have also possibility to change popup window parameters in the Spider Event Calendar.
|
| 58 |
+
|
| 59 |
|
| 60 |
###IMPORTANT: If you think you found a bug in Spider Calendar or have any problem/question concerning the plugin, please check out [Support Forum](http://web-dorado.com/forum/spider-calendar-wordpress.html) in our website. If you do not find a solution here, do not hesitate to contact us at [info@web-dorado.com](mailto:info@web-dorado.com).
|
| 61 |
|
spidercalendar_upcoming_events_widget.php
CHANGED
|
@@ -498,13 +498,11 @@ echo '<div class="module'.$id.'">';
|
|
| 498 |
|
| 499 |
if($view_type==0)
|
| 500 |
{
|
| 501 |
-
$query="
|
| 502 |
-
|
| 503 |
$evs = $wpdb->get_results($query);
|
| 504 |
-
$st_date=date('Y-m-d');
|
| 505 |
|
|
|
|
| 506 |
$dates=array();
|
| 507 |
-
|
| 508 |
foreach($evs as $ev)
|
| 509 |
{
|
| 510 |
|
|
@@ -514,7 +512,6 @@ $en=$ev->date_end;
|
|
| 514 |
else
|
| 515 |
$en=date('Y-m-d', strtotime('+24 year', strtotime($st)));
|
| 516 |
|
| 517 |
-
|
| 518 |
$date_st=explode('-',$st);
|
| 519 |
|
| 520 |
$date_end=explode('-',$en);
|
|
@@ -523,9 +520,7 @@ $st_d= mktime(0, 0, 0, $date_st[1], $date_st[2], $date_st[0]);
|
|
| 523 |
$en_d = mktime(0, 0, 0, $date_end[1], $date_end[2], $date_end[0]);
|
| 524 |
$tarb=$en_d-$st_d;
|
| 525 |
|
| 526 |
-
|
| 527 |
$weekly_array=explode(',',$ev->week);
|
| 528 |
-
|
| 529 |
for($j=0; $j<=6;$j++)
|
| 530 |
{
|
| 531 |
if( in_array(date("D", mktime(0, 0, 0, $date_st[1], $date_st[2]+$j, $date_st[0])),$weekly_array))
|
|
@@ -744,7 +739,7 @@ $gag[$ev_id]=compare_str_to_array1($st_date,$date);
|
|
| 744 |
$dates=sorrt1($st_date,$dates);
|
| 745 |
|
| 746 |
|
| 747 |
-
$
|
| 748 |
$j=0;
|
| 749 |
|
| 750 |
$p=0;
|
|
@@ -753,16 +748,18 @@ $p=0;
|
|
| 753 |
foreach($dates as $ev_id=>$date)
|
| 754 |
{
|
| 755 |
|
| 756 |
-
$query0=" SELECT * FROM " . $wpdb->prefix . "spidercalendar_event WHERE id=".$ev_id
|
| 757 |
$curr_event = $wpdb->get_row($query0);
|
| 758 |
|
| 759 |
//var_dump($curr_event);
|
| 760 |
|
|
|
|
|
|
|
| 761 |
|
| 762 |
$event_id = $curr_event->id;
|
| 763 |
$event_title = $curr_event->title;
|
| 764 |
|
| 765 |
-
$event_date =
|
| 766 |
$event_end_date = $curr_event->date_end;
|
| 767 |
$event_text = $curr_event->text_for_date;
|
| 768 |
$calendar_id = $curr_event->calendar;
|
|
@@ -779,7 +776,6 @@ $jd=gregoriantojd($month,$day,$year);
|
|
| 779 |
$weekday = jddayofweek($jd,2);
|
| 780 |
$date = $weekday.' '.$month_date_year;
|
| 781 |
echo $weekday;*/
|
| 782 |
-
|
| 783 |
echo '<div id="event_table'.$id.'" >';
|
| 784 |
if($show_numbering==1)
|
| 785 |
{
|
|
@@ -795,7 +791,7 @@ href="' . add_query_arg(array(
|
|
| 795 |
'tbWidth' => $popup_width,
|
| 796 |
'tbHeight' => $popup_height
|
| 797 |
), admin_url('admin-ajax.php')) . '"
|
| 798 |
-
></br><b>'. $
|
| 799 |
|
| 800 |
}
|
| 801 |
else
|
|
@@ -1033,10 +1029,9 @@ if($event_from_day_interval==0)
|
|
| 1033 |
$st_date=date('Y-m-d');
|
| 1034 |
$en_date=date('Y-m-d', strtotime('+'.$since.' day', strtotime($st_date)));
|
| 1035 |
if($ordering==0)
|
| 1036 |
-
$order="ORDER BY
|
| 1037 |
else
|
| 1038 |
$order="ORDER BY RAND()";
|
| 1039 |
-
$curdate="AND CURDATE()< date";
|
| 1040 |
|
| 1041 |
$limit=$count;
|
| 1042 |
}
|
|
@@ -1045,22 +1040,19 @@ else
|
|
| 1045 |
$st_date=$start_day_calendar;
|
| 1046 |
$en_date=date('Y-m-d', strtotime('+'.$since1.' day', strtotime($st_date)));
|
| 1047 |
if($ordering1==0)
|
| 1048 |
-
$order="ORDER BY
|
| 1049 |
else
|
| 1050 |
$order="ORDER BY RAND()";
|
| 1051 |
-
$curdate = "AND ".$start_day_calendar."< date";
|
| 1052 |
$limit=$count1;
|
| 1053 |
}
|
| 1054 |
|
| 1055 |
|
| 1056 |
-
$query=" SELECT * FROM " . $wpdb->prefix . "spidercalendar_event WHERE calendar= ".$calendar_id."
|
| 1057 |
-
|
| 1058 |
$evs= $wpdb->get_results($query);
|
| 1059 |
-
|
| 1060 |
$dates=array();
|
| 1061 |
foreach($evs as $ev)
|
| 1062 |
{
|
| 1063 |
-
|
| 1064 |
$st=$ev->date;
|
| 1065 |
if($ev->date_end!='0000-00-00' AND $ev->date_end!='')
|
| 1066 |
{
|
|
@@ -1300,7 +1292,7 @@ $dates=sorrt($st_date,$dates,$en_date);
|
|
| 1300 |
|
| 1301 |
|
| 1302 |
|
| 1303 |
-
$
|
| 1304 |
$j=0;
|
| 1305 |
|
| 1306 |
$p=0;
|
|
@@ -1309,12 +1301,16 @@ $p=0;
|
|
| 1309 |
foreach($dates as $ev_id=>$date)
|
| 1310 |
{
|
| 1311 |
|
| 1312 |
-
if(
|
|
|
|
|
|
|
|
|
|
| 1313 |
{
|
| 1314 |
|
| 1315 |
$query0=" SELECT * FROM " . $wpdb->prefix . "spidercalendar_event WHERE id=".$ev_id;
|
| 1316 |
$curr_event1 = $wpdb->get_results($query0);
|
| 1317 |
$order_event_current_day=$curr_event1[0];
|
|
|
|
| 1318 |
$event_id = $order_event_current_day->id;
|
| 1319 |
$event_title = $order_event_current_day->title;
|
| 1320 |
$event_date =compare_str_to_array($st_date,$date,$en_date);
|
|
@@ -1346,7 +1342,7 @@ href="' . add_query_arg(array(
|
|
| 1346 |
'TB_iframe' => 1,
|
| 1347 |
'tbWidth' => $popup_width,
|
| 1348 |
'tbHeight' => $popup_height
|
| 1349 |
-
), admin_url('admin-ajax.php')) . '" ><b>'. $
|
| 1350 |
}
|
| 1351 |
else
|
| 1352 |
{
|
|
@@ -1382,7 +1378,7 @@ $activedatestr = '';
|
|
| 1382 |
$date_format_array = explode(' ', $date_format);
|
| 1383 |
|
| 1384 |
for ($i = 0; $i < count($date_format_array); $i++) {
|
| 1385 |
-
$activedatestr .=__(date("" . $date_format_array[$i] . "", strtotime($event_date)), 'sp_calendar') . ' ';
|
| 1386 |
}
|
| 1387 |
|
| 1388 |
if($show_time==1)
|
|
@@ -1710,7 +1706,7 @@ sort($dates[$ev->id]);
|
|
| 1710 |
|
| 1711 |
}
|
| 1712 |
|
| 1713 |
-
$
|
| 1714 |
$j=0;
|
| 1715 |
$ev=0;
|
| 1716 |
|
|
@@ -1750,7 +1746,7 @@ href="' . add_query_arg(array(
|
|
| 1750 |
'TB_iframe' => 1,
|
| 1751 |
'tbWidth' => $popup_width,
|
| 1752 |
'tbHeight' => $popup_height
|
| 1753 |
-
), admin_url('admin-ajax.php')) . '" ></br><b>'. $
|
| 1754 |
}
|
| 1755 |
else
|
| 1756 |
{
|
| 498 |
|
| 499 |
if($view_type==0)
|
| 500 |
{
|
| 501 |
+
$query="SELECT * FROM " . $wpdb->prefix . "spidercalendar_event WHERE calendar=".$calendar_id." AND published='1' ORDER BY date";
|
|
|
|
| 502 |
$evs = $wpdb->get_results($query);
|
|
|
|
| 503 |
|
| 504 |
+
$st_date=date('Y-m-d');
|
| 505 |
$dates=array();
|
|
|
|
| 506 |
foreach($evs as $ev)
|
| 507 |
{
|
| 508 |
|
| 512 |
else
|
| 513 |
$en=date('Y-m-d', strtotime('+24 year', strtotime($st)));
|
| 514 |
|
|
|
|
| 515 |
$date_st=explode('-',$st);
|
| 516 |
|
| 517 |
$date_end=explode('-',$en);
|
| 520 |
$en_d = mktime(0, 0, 0, $date_end[1], $date_end[2], $date_end[0]);
|
| 521 |
$tarb=$en_d-$st_d;
|
| 522 |
|
|
|
|
| 523 |
$weekly_array=explode(',',$ev->week);
|
|
|
|
| 524 |
for($j=0; $j<=6;$j++)
|
| 525 |
{
|
| 526 |
if( in_array(date("D", mktime(0, 0, 0, $date_st[1], $date_st[2]+$j, $date_st[0])),$weekly_array))
|
| 739 |
$dates=sorrt1($st_date,$dates);
|
| 740 |
|
| 741 |
|
| 742 |
+
$isk=1;
|
| 743 |
$j=0;
|
| 744 |
|
| 745 |
$p=0;
|
| 748 |
foreach($dates as $ev_id=>$date)
|
| 749 |
{
|
| 750 |
|
| 751 |
+
$query0=" SELECT * FROM " . $wpdb->prefix . "spidercalendar_event WHERE id=".$ev_id;
|
| 752 |
$curr_event = $wpdb->get_row($query0);
|
| 753 |
|
| 754 |
//var_dump($curr_event);
|
| 755 |
|
| 756 |
+
if(compare_str_to_array1($st_date,$date)=='')
|
| 757 |
+
continue;
|
| 758 |
|
| 759 |
$event_id = $curr_event->id;
|
| 760 |
$event_title = $curr_event->title;
|
| 761 |
|
| 762 |
+
$event_date = compare_str_to_array1($st_date,$date);
|
| 763 |
$event_end_date = $curr_event->date_end;
|
| 764 |
$event_text = $curr_event->text_for_date;
|
| 765 |
$calendar_id = $curr_event->calendar;
|
| 776 |
$weekday = jddayofweek($jd,2);
|
| 777 |
$date = $weekday.' '.$month_date_year;
|
| 778 |
echo $weekday;*/
|
|
|
|
| 779 |
echo '<div id="event_table'.$id.'" >';
|
| 780 |
if($show_numbering==1)
|
| 781 |
{
|
| 791 |
'tbWidth' => $popup_width,
|
| 792 |
'tbHeight' => $popup_height
|
| 793 |
), admin_url('admin-ajax.php')) . '"
|
| 794 |
+
></br><b>'. $isk++.'.'.$event_title.'</b></a></div>';
|
| 795 |
|
| 796 |
}
|
| 797 |
else
|
| 1029 |
$st_date=date('Y-m-d');
|
| 1030 |
$en_date=date('Y-m-d', strtotime('+'.$since.' day', strtotime($st_date)));
|
| 1031 |
if($ordering==0)
|
| 1032 |
+
$order="ORDER BY date";
|
| 1033 |
else
|
| 1034 |
$order="ORDER BY RAND()";
|
|
|
|
| 1035 |
|
| 1036 |
$limit=$count;
|
| 1037 |
}
|
| 1040 |
$st_date=$start_day_calendar;
|
| 1041 |
$en_date=date('Y-m-d', strtotime('+'.$since1.' day', strtotime($st_date)));
|
| 1042 |
if($ordering1==0)
|
| 1043 |
+
$order="ORDER BY date";
|
| 1044 |
else
|
| 1045 |
$order="ORDER BY RAND()";
|
|
|
|
| 1046 |
$limit=$count1;
|
| 1047 |
}
|
| 1048 |
|
| 1049 |
|
| 1050 |
+
$query=" SELECT * FROM " . $wpdb->prefix . "spidercalendar_event WHERE calendar= ".$calendar_id." AND published='1' ".$order." LIMIT 0, ".$limit;
|
|
|
|
| 1051 |
$evs= $wpdb->get_results($query);
|
|
|
|
| 1052 |
$dates=array();
|
| 1053 |
foreach($evs as $ev)
|
| 1054 |
{
|
| 1055 |
+
|
| 1056 |
$st=$ev->date;
|
| 1057 |
if($ev->date_end!='0000-00-00' AND $ev->date_end!='')
|
| 1058 |
{
|
| 1292 |
|
| 1293 |
|
| 1294 |
|
| 1295 |
+
$isk=1;
|
| 1296 |
$j=0;
|
| 1297 |
|
| 1298 |
$p=0;
|
| 1301 |
foreach($dates as $ev_id=>$date)
|
| 1302 |
{
|
| 1303 |
|
| 1304 |
+
if(compare_str_to_array($st_date,$date,$en_date)=='')
|
| 1305 |
+
continue;
|
| 1306 |
+
|
| 1307 |
+
if(compare_str_to_array($st_date,$date,$en_date)!='')
|
| 1308 |
{
|
| 1309 |
|
| 1310 |
$query0=" SELECT * FROM " . $wpdb->prefix . "spidercalendar_event WHERE id=".$ev_id;
|
| 1311 |
$curr_event1 = $wpdb->get_results($query0);
|
| 1312 |
$order_event_current_day=$curr_event1[0];
|
| 1313 |
+
|
| 1314 |
$event_id = $order_event_current_day->id;
|
| 1315 |
$event_title = $order_event_current_day->title;
|
| 1316 |
$event_date =compare_str_to_array($st_date,$date,$en_date);
|
| 1342 |
'TB_iframe' => 1,
|
| 1343 |
'tbWidth' => $popup_width,
|
| 1344 |
'tbHeight' => $popup_height
|
| 1345 |
+
), admin_url('admin-ajax.php')) . '" ><b>'. $isk++.'.'.$event_title.'</b></a></div>';
|
| 1346 |
}
|
| 1347 |
else
|
| 1348 |
{
|
| 1378 |
$date_format_array = explode(' ', $date_format);
|
| 1379 |
|
| 1380 |
for ($i = 0; $i < count($date_format_array); $i++) {
|
| 1381 |
+
$activedatestr .= __(date("" . $date_format_array[$i] . "", strtotime($event_date)), 'sp_calendar') . ' ';
|
| 1382 |
}
|
| 1383 |
|
| 1384 |
if($show_time==1)
|
| 1706 |
|
| 1707 |
}
|
| 1708 |
|
| 1709 |
+
$isk=1;
|
| 1710 |
$j=0;
|
| 1711 |
$ev=0;
|
| 1712 |
|
| 1746 |
'TB_iframe' => 1,
|
| 1747 |
'tbWidth' => $popup_width,
|
| 1748 |
'tbHeight' => $popup_height
|
| 1749 |
+
), admin_url('admin-ajax.php')) . '" ></br><b>'. $isk++.'.'.$event_title.'</b></a></div>';
|
| 1750 |
}
|
| 1751 |
else
|
| 1752 |
{
|
