Calendar by WD – Responsive Event Calendar - Version 1.5.55

Version Description

Fixed: Load admin styles only on calendar pages
Changed: Introducing brand new free Backup WD plugin

Download this release

Release Info

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

Code changes from version 1.5.54 to 1.5.55

calendar.php CHANGED
@@ -3,12 +3,12 @@
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.54
7
  Author: WebDorado
8
  Author URI: https://web-dorado.com
9
  License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
10
  */
11
- $wd_spider_calendar_version="1.5.54";
12
  // LANGUAGE localization.
13
  function sp_calendar_language_load() {
14
  load_plugin_textdomain('sp_calendar', FALSE, basename(dirname(__FILE__)) . '/languages');
@@ -31,7 +31,7 @@ function sp_cal_registr_some_scripts(){
31
  "prefix" => "sp_calendar" ,
32
  "deactivate_class" => 'sp_calendar_deactivate_link',
33
  "email" => $admin_data->data->user_email,
34
- "plugin_wd_url" => "https://web-dorado.com/products/wordpress-google-maps-plugin.html",
35
  ));
36
  }
37
 
@@ -470,6 +470,15 @@ function sp_calendar_register($plugin_array) {
470
  return $plugin_array;
471
  }
472
 
 
 
 
 
 
 
 
 
 
473
  // Function create in menu.
474
  function sp_calendar_options_panel() {
475
  if( get_option( "sp_calendar_subscribe_done" ) == 1 ){
@@ -543,7 +552,7 @@ function spider_calendar_admin_styles_scripts() {
543
  wp_enqueue_script("Calendar", plugins_url("elements/calendar.js", __FILE__), array(), $wd_spider_calendar_version, FALSE);
544
  wp_enqueue_script("calendar-setup", plugins_url("elements/calendar-setup.js", __FILE__), array(), $wd_spider_calendar_version, FALSE);
545
  wp_enqueue_script("calendar_function", plugins_url("elements/calendar_function.js", __FILE__), array(), $wd_spider_calendar_version, FALSE);
546
- wp_enqueue_style("Css", plugins_url("elements/calendar-jos.css", __FILE__), array(), $wd_spider_calendar_version, FALSE);
547
 
548
  if( isset($_GET['page']) && $_GET['page'] == "Uninstall_sp_calendar" ) {
549
  wp_enqueue_style("sp_calendar_deactivate-css", plugins_url("wd/assets/css/deactivate_popup.css", __FILE__), array(), $wd_spider_calendar_version, FALSE);
@@ -556,28 +565,32 @@ function spider_calendar_event_category_admin_styles_scripts(){
556
  wp_enqueue_script("calendar-setup", plugins_url("elements/calendar-setup.js", __FILE__), array(), $wd_spider_calendar_version, FALSE);
557
  wp_enqueue_script('wp-color-picker');
558
  wp_enqueue_style( 'wp-color-picker' );
559
- wp_enqueue_style("Css", plugins_url("elements/calendar-jos.css", __FILE__), array(), $wd_spider_calendar_version, FALSE);
560
  }
561
 
562
  add_filter('admin_head', 'spide_ShowTinyMCE');
563
  function spide_ShowTinyMCE() {
564
- // conditions here
565
- wp_enqueue_script('common');
566
- wp_enqueue_script('jquery-color');
567
- wp_print_scripts('editor');
568
- if (function_exists('add_thickbox')) {
569
- add_thickbox();
570
- }
571
- wp_print_scripts('media-upload');
572
- if(version_compare(get_bloginfo('version'),3.3)<0){
573
- if (function_exists('wp_tiny_mce')) {
574
- wp_tiny_mce();
575
- }
 
 
 
 
 
 
 
 
576
  }
577
- wp_admin_css();
578
- wp_enqueue_script('utils');
579
- do_action("admin_print_styles-post-php");
580
- do_action('admin_print_styles');
581
  }
582
 
583
  // Add menu.
@@ -1042,6 +1055,7 @@ function Uninstall_sp_calendar() {
1042
  $base_name = plugin_basename('Spider_Calendar');
1043
  $base_page = 'admin.php?page=' . $base_name;
1044
  $mode = (isset($_GET['mode']) ? trim($_GET['mode']) : '');
 
1045
  ?>
1046
  <?php upgrade_pro_sp(); ?>
1047
  <br />
@@ -1087,6 +1101,7 @@ function Uninstall_sp_calendar() {
1087
  echo '</p>';
1088
  echo '</form>';
1089
  delete_option('sp_calendar_subscribe_done');
 
1090
  $mode = 'end-UNINSTALL';
1091
  }
1092
  }
@@ -1105,7 +1120,6 @@ function Uninstall_sp_calendar() {
1105
  <?php wp_nonce_field('Spider_Calendar uninstall'); ?>
1106
  <div class="wrap">
1107
  <div id="icon-Spider_Calendar" class="icon32"><br/></div>
1108
- <h2><?php echo 'Uninstall Spider Event Calendar'; ?></h2>
1109
 
1110
  <p>
1111
  <?php echo 'Deactivating Spider Event Calendar plugin does not remove any data that may have been created. To completely remove this plugin, you can uninstall it here.'; ?>
@@ -1385,6 +1399,79 @@ function calendar_export() {
1385
  <?php
1386
  }
1387
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1388
  function spidercal_activate($networkwide){
1389
  if (function_exists('is_multisite') && is_multisite()) {
1390
  // Check if it is a network activation - if so, run the activation function for each blog id.
@@ -1452,13 +1539,4 @@ $spider_category_event_table = "CREATE TABLE IF NOT EXISTS `" . $wpdb->prefix .
1452
  spider_calendar_chech_update();
1453
  }
1454
  register_activation_hook(__FILE__, 'spidercal_activate');
1455
-
1456
- function spider_calendar_ajax_func() {
1457
- ?>
1458
- <script>
1459
- var spider_calendar_ajax = '<?php echo admin_url("admin-ajax.php"); ?>';
1460
- </script>
1461
- <?php
1462
- }
1463
- add_action('admin_head', 'spider_calendar_ajax_func');
1464
  ?>
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.55
7
  Author: WebDorado
8
  Author URI: https://web-dorado.com
9
  License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
10
  */
11
+ $wd_spider_calendar_version="1.5.55";
12
  // LANGUAGE localization.
13
  function sp_calendar_language_load() {
14
  load_plugin_textdomain('sp_calendar', FALSE, basename(dirname(__FILE__)) . '/languages');
31
  "prefix" => "sp_calendar" ,
32
  "deactivate_class" => 'sp_calendar_deactivate_link',
33
  "email" => $admin_data->data->user_email,
34
+ "plugin_wd_url" => "https://web-dorado.com/products/wordpress-calendar.html",
35
  ));
36
  }
37
 
470
  return $plugin_array;
471
  }
472
 
473
+ function spider_calendar_ajax_func() {
474
+ ?>
475
+ <script>
476
+ var spider_calendar_ajax = '<?php echo admin_url("admin-ajax.php"); ?>';
477
+ </script>
478
+ <?php
479
+ }
480
+ add_action('admin_head', 'spider_calendar_ajax_func');
481
+
482
  // Function create in menu.
483
  function sp_calendar_options_panel() {
484
  if( get_option( "sp_calendar_subscribe_done" ) == 1 ){
552
  wp_enqueue_script("Calendar", plugins_url("elements/calendar.js", __FILE__), array(), $wd_spider_calendar_version, FALSE);
553
  wp_enqueue_script("calendar-setup", plugins_url("elements/calendar-setup.js", __FILE__), array(), $wd_spider_calendar_version, FALSE);
554
  wp_enqueue_script("calendar_function", plugins_url("elements/calendar_function.js", __FILE__), array(), $wd_spider_calendar_version, FALSE);
555
+ wp_enqueue_style("spcalendar-jos", plugins_url("elements/calendar-jos.css", __FILE__), array(), $wd_spider_calendar_version, FALSE);
556
 
557
  if( isset($_GET['page']) && $_GET['page'] == "Uninstall_sp_calendar" ) {
558
  wp_enqueue_style("sp_calendar_deactivate-css", plugins_url("wd/assets/css/deactivate_popup.css", __FILE__), array(), $wd_spider_calendar_version, FALSE);
565
  wp_enqueue_script("calendar-setup", plugins_url("elements/calendar-setup.js", __FILE__), array(), $wd_spider_calendar_version, FALSE);
566
  wp_enqueue_script('wp-color-picker');
567
  wp_enqueue_style( 'wp-color-picker' );
568
+ wp_enqueue_style("spcalendar-jos", plugins_url("elements/calendar-jos.css", __FILE__), array(), $wd_spider_calendar_version, FALSE);
569
  }
570
 
571
  add_filter('admin_head', 'spide_ShowTinyMCE');
572
  function spide_ShowTinyMCE() {
573
+ $screen = get_current_screen();
574
+ $screen_id = $screen->id;
575
+ if($screen_id=="toplevel_page_SpiderCalendar" || $screen_id=="calendar_page_spider_calendar_event_category" || $screen_id=="calendar_page_spider_calendar_themes" || $screen_id=="calendar_page_spider_widget_calendar_themes" || $screen_id=="calendar_page_calendar_export"|| $screen_id=="calendar_page_Uninstall_sp_calendar" || $screen_id=="calendar_page_overview_sp_calendar") {
576
+ // conditions here
577
+ wp_enqueue_script('common');
578
+ wp_enqueue_script('jquery-color');
579
+ wp_print_scripts('editor');
580
+ if (function_exists('add_thickbox')) {
581
+ add_thickbox();
582
+ }
583
+ wp_print_scripts('media-upload');
584
+ if (version_compare(get_bloginfo('version'), 3.3) < 0) {
585
+ if (function_exists('wp_tiny_mce')) {
586
+ wp_tiny_mce();
587
+ }
588
+ }
589
+ wp_admin_css();
590
+ wp_enqueue_script('utils');
591
+ do_action("admin_print_styles-post-php");
592
+ do_action('admin_print_styles');
593
  }
 
 
 
 
594
  }
595
 
596
  // Add menu.
1055
  $base_name = plugin_basename('Spider_Calendar');
1056
  $base_page = 'admin.php?page=' . $base_name;
1057
  $mode = (isset($_GET['mode']) ? trim($_GET['mode']) : '');
1058
+
1059
  ?>
1060
  <?php upgrade_pro_sp(); ?>
1061
  <br />
1101
  echo '</p>';
1102
  echo '</form>';
1103
  delete_option('sp_calendar_subscribe_done');
1104
+
1105
  $mode = 'end-UNINSTALL';
1106
  }
1107
  }
1120
  <?php wp_nonce_field('Spider_Calendar uninstall'); ?>
1121
  <div class="wrap">
1122
  <div id="icon-Spider_Calendar" class="icon32"><br/></div>
 
1123
 
1124
  <p>
1125
  <?php echo 'Deactivating Spider Event Calendar plugin does not remove any data that may have been created. To completely remove this plugin, you can uninstall it here.'; ?>
1399
  <?php
1400
  }
1401
 
1402
+
1403
+ if (!function_exists('spcal_bp_install_notice')) {
1404
+
1405
+ if(get_option('wds_bk_notice_status')==='' || get_option('wds_bk_notice_status')==='1'){
1406
+ return;
1407
+ }
1408
+
1409
+ function spcal_bp_script_style() {
1410
+ $screen = get_current_screen();
1411
+ $screen_id = $screen->id;
1412
+ if($screen_id!="toplevel_page_SpiderCalendar" && $screen_id!="calendar_page_spider_calendar_event_category" && $screen_id!="calendar_page_spider_calendar_themes" && $screen_id!="calendar_page_spider_widget_calendar_themes" && $screen_id!="calendar_page_calendar_export" && $screen_id!="calendar_page_Uninstall_sp_calendar" && $screen_id!="calendar_page_overview_sp_calendar"&& $screen_id!="calendar_page_Spider_calendar_Licensing") {
1413
+ return;
1414
+ }
1415
+
1416
+ $spcal_bp_plugin_url = plugins_url('', __FILE__);
1417
+ wp_enqueue_script('spcal_bck_install', $spcal_bp_plugin_url . '/js/wd_bp_install.js', array('jquery'));
1418
+ wp_enqueue_style('spcal_bck_install', $spcal_bp_plugin_url . '/style_for_cal/wd_bp_install.css');
1419
+ }
1420
+ add_action('admin_enqueue_scripts', 'spcal_bp_script_style');
1421
+
1422
+ /**
1423
+ * Show notice to install backup plugin
1424
+ */
1425
+ function spcal_bp_install_notice() {
1426
+ $screen = get_current_screen();
1427
+ $screen_id = $screen->id;
1428
+ if($screen_id!="toplevel_page_SpiderCalendar" && $screen_id!="calendar_page_spider_calendar_event_category" && $screen_id!="calendar_page_spider_calendar_themes" && $screen_id!="calendar_page_spider_widget_calendar_themes" && $screen_id!="calendar_page_calendar_export" && $screen_id!="calendar_page_Uninstall_sp_calendar" && $screen_id!="calendar_page_overview_sp_calendar"&& $screen_id!="calendar_page_Spider_calendar_Licensing") {
1429
+ return;
1430
+ }
1431
+
1432
+ $spcal_bp_plugin_url = plugins_url('', __FILE__);
1433
+ $prefix = 'sp';
1434
+ $meta_value = get_option('wd_bk_notice_status');
1435
+ if ($meta_value === '' || $meta_value === false) {
1436
+ ob_start();
1437
+ ?>
1438
+ <div class="notice notice-info" id="wd_bp_notice_cont">
1439
+ <p>
1440
+ <img id="wd_bp_logo_notice" src="<?php echo $spcal_bp_plugin_url . '/images/backup-logo.png'; ?>">
1441
+ <?php _e("Spider Event Calendar advises: Install brand new FREE", $prefix) ?>
1442
+ <a href="https://wordpress.org/plugins/backup-wd/" title="<?php _e("More details", $prefix) ?>"
1443
+ target="_blank"><?php _e("Backup WD", $prefix) ?></a>
1444
+ <?php _e("plugin to keep your data and website safe.", $prefix) ?>
1445
+ <a class="button button-primary"
1446
+ href="<?php echo esc_url(wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=backup-wd'), 'install-plugin_backup-wd')); ?>">
1447
+ <span onclick="wd_bp_notice_install()"><?php _e("Install", $prefix); ?></span>
1448
+ </a>
1449
+ </p>
1450
+ <button type="button" class="wd_bp_notice_dissmiss notice-dismiss"><span class="screen-reader-text"></span>
1451
+ </button>
1452
+ </div>
1453
+ <script>spcal_bp_url = '<?php echo add_query_arg(array('action' => 'wd_bp_dismiss',), admin_url('admin-ajax.php')); ?>'</script>
1454
+ <?php
1455
+ echo ob_get_clean();
1456
+ }
1457
+ }
1458
+
1459
+ if (!is_dir(plugin_dir_path(dirname(__FILE__)) . 'backup-wd')) {
1460
+ add_action('admin_notices', 'spcal_bp_install_notice');
1461
+ }
1462
+
1463
+ /**
1464
+ * Add usermeta to db
1465
+ *
1466
+ * empty: notice,
1467
+ * 1 : never show again
1468
+ */
1469
+ function spcal_bp_install_notice_status() {
1470
+ update_option('wd_bk_notice_status', '1', 'no');
1471
+ }
1472
+ add_action('wp_ajax_wd_bp_dismiss', 'spcal_bp_install_notice_status');
1473
+ }
1474
+
1475
  function spidercal_activate($networkwide){
1476
  if (function_exists('is_multisite') && is_multisite()) {
1477
  // Check if it is a network activation - if so, run the activation function for each blog id.
1539
  spider_calendar_chech_update();
1540
  }
1541
  register_activation_hook(__FILE__, 'spidercal_activate');
 
 
 
 
 
 
 
 
 
1542
  ?>
calendar_functions.html.php CHANGED
@@ -882,10 +882,9 @@ $row=$wpdb->get_row($wpdb->prepare ("SELECT * FROM " . $wpdb->prefix . "spiderca
882
  <div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea"><?php the_editor(stripslashes($row->description),"description","title" ); ?>
883
  </div>
884
  <?php }else{
885
- if(isset($row->description)) $desc1 = $row->description;
886
- else $desc1 = "";
887
- wp_editor($desc1, "description"); }?>
888
-
889
  </div>
890
  </div></td>
891
 
@@ -916,40 +915,21 @@ $row=$wpdb->get_row($wpdb->prepare ("SELECT * FROM " . $wpdb->prefix . "spiderca
916
  }
917
 
918
 
919
- function html_upcoming_widget($rows, $pageNav, $sort){
920
- require_once("spidercalendar_upcoming_events_widget.php");
921
- global $wpdb;
922
- $input_id=esc_html($_GET['id_input']);
923
- $w_id = esc_html($_GET['w_id']);
924
- $tbody_id='event'.$w_id;
925
- $calendar_id=esc_html($_GET['upcalendar_id']);
926
- ?><html>
927
  <head>
928
- <link rel="stylesheet" id="thickbox-css" href="<?php echo plugins_url("elements/calendar-jos.css", __FILE__) ?>" type="text/css" media="all">
929
- <?php wp_print_scripts("Canlendar_upcoming");
 
930
  wp_print_scripts("calendnar-setup_upcoming");
931
  wp_print_scripts("calenndar_function_upcoming");
932
  ?>
933
-
934
- <style>
935
- .calendar .button {
936
- display: table-cell !important;
937
- }
938
-
939
- .wd_button{
940
- border: 1px solid #D5D5D5 !important;
941
- border-radius: 10px;
942
- width: 30px;
943
- height: 25px;
944
- }
945
- }
946
- input[type=checkbox]:checked:before,
947
- th.sorted.asc .sorting-indicator:before, th.desc:hover span.sorting-indicator:before,
948
- th.sorted.desc .sorting-indicator:before, th.asc:hover span.sorting-indicator:before{
949
- content: close-quote !important;
950
- }
951
-
952
- </style>
953
  <script language="javascript">
954
  function ordering(name, as_or_desc) {
955
  document.getElementById('asc_or_desc').value = as_or_desc;
@@ -977,125 +957,63 @@ function html_upcoming_widget($rows, $pageNav, $sort){
977
  }
978
  }
979
 
980
-
981
  function isChecked(isitchecked){
982
- if (isitchecked == true){
983
- document.adminForm.boxchecked.value++;
984
- }
985
- else {
986
- document.adminForm.boxchecked.value--;
987
- }
988
- }
989
-
990
-
991
- function checkAll( n, fldName ) {
992
-
993
- if (!fldName) {
994
-
995
- fldName = 'cb';
996
-
997
- }
998
-
999
- var f = document.admin_form;
1000
-
1001
- var c = f.toggle.checked;
1002
-
1003
- var n2 = 0;
1004
-
1005
- for (i=0; i < n; i++) {
1006
-
1007
- cb = eval( 'f.' + fldName + '' + i );
1008
-
1009
- if (cb) {
1010
-
1011
- cb.checked = c;
1012
-
1013
- n2++;
1014
-
1015
  }
1016
-
1017
- }
1018
-
1019
- if (c) {
1020
-
1021
- document.admin_form.boxchecked.value = n2;
1022
-
1023
- } else {
1024
-
1025
- document.admin_form.boxchecked.value = 0;
1026
-
1027
  }
1028
-
1029
- }
1030
-
1031
-
1032
 
1033
-
1034
- function select_events()
1035
-
1036
- {
1037
- var id =[];
1038
- var title =[];
1039
-
1040
- for(i=0; i<<?php echo count($rows)?>; i++)
1041
- if(document.getElementById("p"+i))
1042
- if(document.getElementById("p"+i).checked)
1043
- {
1044
- id.push(document.getElementById("p"+i).value);
1045
- title.push(document.getElementById("title_"+i).value);
1046
-
1047
  }
1048
- window.parent.jSelectEvents('<?php echo $input_id ?>','<?php echo $tbody_id ?>','<?php echo $w_id ?>',id, title);
 
 
 
 
 
1049
  }
1050
-
1051
-
 
 
 
 
 
 
 
 
 
 
 
1052
  </script>
1053
- <?php
1054
-
1055
-
1056
- if(get_bloginfo( 'version' )>3.3){
1057
-
1058
- ?>
1059
-
1060
- <link rel="stylesheet" href="<?php echo bloginfo("url") ?>/wp-admin/load-styles.php?c=0&amp;dir=ltr&amp;load=admin-bar,wp-admin&amp;ver=7f0753feec257518ac1fec83d5bced6a" type="text/css" media="all">
1061
-
1062
- <?php
1063
-
1064
- }
1065
-
1066
- else
1067
-
1068
- {
1069
-
1070
- ?>
1071
-
1072
- <link rel="stylesheet" href="<?php echo bloginfo("url") ?>/wp-admin/load-styles.php?c=1&amp;dir=ltr&amp;load=global,wp-admin&amp;ver=aba7495e395713976b6073d5d07d3b17" type="text/css" media="all">
1073
-
1074
- <?php
1075
-
1076
- }
1077
-
1078
- ?>
1079
-
1080
- <link rel="stylesheet" id="thickbox-css" href="<?php echo bloginfo('url')?>/wp-includes/js/thickbox/thickbox.css?ver=20111117" type="text/css" media="all">
1081
-
1082
- <!---- <link rel="stylesheet" id="colors-css" href="<?php echo bloginfo('url')?>/wp-admin/css/colors-classic.css?ver=20111206" type="text/css" media="all"> --->
1083
  </head>
1084
  <body>
1085
- <form method="post" onKeyPress="doNothing()" action="<?php echo admin_url('admin-ajax.php') ?>?action=upcoming&id_input=<?php echo $input_id;?>&upcalendar_id=<?php echo $calendar_id;?>&w_id=<?php echo $w_id;?>" id="admin_form" name="admin_form">
1086
- <table cellspacing="10" width="100%">
1087
-
1088
- <tr>
1089
- <td width="100%"><h2>Event Manager</h2></td></td>
1090
- <td align="right" width="100%">
1091
-
1092
- <button onClick="select_events();" style="width:98px; height:34px; background:url(<?php echo plugins_url('',__FILE__) ?>/front_end/images/add_but.png) no-repeat;border:none;cursor:pointer;">&nbsp;</button>
1093
- </td>
1094
- </tr>
1095
- </table>
1096
  <?php
1097
  if (isset($_POST['serch_or_not']) && ($_POST['serch_or_not'] == "search")) {
1098
- $serch_value = esc_js(esc_html(stripslashes($_POST['search_events_by_title'])));
1099
  }
1100
  else {
1101
  $serch_value = "";
@@ -1120,15 +1038,15 @@ else
1120
  print_html_nav($pageNav['total'], $pageNav['limit'], $serch_fields);
1121
  ?>
1122
  <style>
1123
- .sorting-indicator {
1124
- width: 7px;
1125
- height: 4px;
1126
- margin-top: 8px;
1127
- margin-left: 7px;
1128
- background-image: url('images/sort.gif');
1129
- background-repeat: no-repeat;
1130
- }
1131
- .wd_button{
1132
  border: 1px solid #D5D5D5 !important;
1133
  border-radius: 10px;
1134
  width: 30px;
@@ -1198,6 +1116,7 @@ else
1198
  <?php
1199
  die();
1200
  }
 
1201
 
1202
  // Events.
1203
  function html_show_spider_event($rows, $pageNav, $sort, $calendar_id, $cal_name) {
@@ -1771,7 +1690,8 @@ ON " . $wpdb->prefix . "spidercalendar_event.category=" . $wpdb->prefix . "spide
1771
  <?php the_editor(stripslashes(""),"text_for_date","title" ); ?>
1772
  </div>
1773
  <?php }else{
1774
- wp_editor("", "text_for_date"); }?>
 
1775
  </div>
1776
  </div>
1777
  </td>
@@ -2299,9 +2219,9 @@ function html_edit_spider_event($row, $calendar_id, $id, $cal_name) {
2299
  <div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea"><?php the_editor(stripslashes($row->description),"text_for_date","title" ); ?>
2300
  </div>
2301
  <?php }else{
2302
- if(isset($row->text_for_date)) $desc1 = $row->text_for_date;
2303
- else $desc1 = "";
2304
- wp_editor($desc1, "text_for_date"); }?>
2305
  </div>
2306
  </div>
2307
  </td>
882
  <div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea"><?php the_editor(stripslashes($row->description),"description","title" ); ?>
883
  </div>
884
  <?php }else{
885
+
886
+ $desc1 = ( isset($row->description) ? $row->description : "" );
887
+ wp_editor($desc1, "description", array('teeny' => TRUE)); } ?>
 
888
  </div>
889
  </div></td>
890
 
915
  }
916
 
917
 
918
+ function html_upcoming_widget($rows, $pageNav, $sort){
919
+ require_once("spidercalendar_upcoming_events_widget.php");
920
+ global $wpdb;
921
+ $input_id=esc_html($_GET['id_input']);
922
+ $w_id = esc_html($_GET['w_id']);
923
+ $tbody_id='event'.$w_id;
924
+ $calendar_id=esc_html($_GET['upcalendar_id']); ?>
925
+ <html>
926
  <head>
927
+ <link rel="stylesheet" href="<?php echo get_option("siteurl"); ?>/wp-admin/load-styles.php?c=1&amp;load%5B%5D=dashicons,common,forms,list-tables" type="text/css" media="all">
928
+ <link rel="stylesheet" id="calendar-jos" href="<?php echo plugins_url("elements/calendar-jos.css", __FILE__) ?>" type="text/css" media="all">
929
+ <?php wp_print_scripts("Canlendar_upcoming");
930
  wp_print_scripts("calendnar-setup_upcoming");
931
  wp_print_scripts("calenndar_function_upcoming");
932
  ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
933
  <script language="javascript">
934
  function ordering(name, as_or_desc) {
935
  document.getElementById('asc_or_desc').value = as_or_desc;
957
  }
958
  }
959
 
 
960
  function isChecked(isitchecked){
961
+ if (isitchecked == true){
962
+ document.adminForm.boxchecked.value++;
963
+ }
964
+ else {
965
+ document.adminForm.boxchecked.value--;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
966
  }
 
 
 
 
 
 
 
 
 
 
 
967
  }
 
 
 
 
968
 
969
+ function checkAll( n, fldName ) {
970
+ if (!fldName) {
971
+ fldName = 'cb';
972
+ }
973
+ var f = document.admin_form;
974
+ var c = f.toggle.checked;
975
+ var n2 = 0;
976
+ for (i=0; i < n; i++) {
977
+ cb = eval( 'f.' + fldName + '' + i );
978
+ if (cb) {
979
+ cb.checked = c;
980
+ n2++;
 
 
981
  }
982
+ }
983
+ if (c) {
984
+ document.admin_form.boxchecked.value = n2;
985
+ } else {
986
+ document.admin_form.boxchecked.value = 0;
987
+ }
988
  }
989
+ function select_events(){
990
+ var id =[];
991
+ var title =[];
992
+
993
+ for(i=0; i<<?php echo count($rows)?>; i++)
994
+ if(document.getElementById("p"+i))
995
+ if(document.getElementById("p"+i).checked)
996
+ {
997
+ id.push(document.getElementById("p"+i).value);
998
+ title.push(document.getElementById("title_"+i).value);
999
+ }
1000
+ window.parent.jSelectEvents('<?php echo $input_id ?>','<?php echo $tbody_id ?>','<?php echo $w_id ?>',id, title);
1001
+ }
1002
  </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1003
  </head>
1004
  <body>
1005
+ <form method="post" onKeyPress="doNothing()" action="<?php echo admin_url('admin-ajax.php') ?>?action=upcoming&id_input=<?php echo $input_id;?>&upcalendar_id=<?php echo $calendar_id;?>&w_id=<?php echo $w_id;?>" id="admin_form" name="admin_form" class="upcoming_table">
1006
+ <table cellspacing="10" width="100%">
1007
+ <tr>
1008
+ <td width="100%"><h2>Event Manager</h2></td></td>
1009
+ <td align="right" width="100%">
1010
+ <button onClick="select_events();" style="width:98px; height:34px; background:url(<?php echo plugins_url('',__FILE__) ?>/front_end/images/add_but.png) no-repeat;border:none;cursor:pointer;">&nbsp;</button>
1011
+ </td>
1012
+ </tr>
1013
+ </table>
 
 
1014
  <?php
1015
  if (isset($_POST['serch_or_not']) && ($_POST['serch_or_not'] == "search")) {
1016
+ $serch_value = $_POST['search_events_by_title'];
1017
  }
1018
  else {
1019
  $serch_value = "";
1038
  print_html_nav($pageNav['total'], $pageNav['limit'], $serch_fields);
1039
  ?>
1040
  <style>
1041
+ .sorting-indicator {
1042
+ width: 7px;
1043
+ height: 4px;
1044
+ margin-top: 8px;
1045
+ margin-left: 7px;
1046
+ background-image: url('images/sort.gif');
1047
+ background-repeat: no-repeat;
1048
+ }
1049
+ .wd_button{
1050
  border: 1px solid #D5D5D5 !important;
1051
  border-radius: 10px;
1052
  width: 30px;
1116
  <?php
1117
  die();
1118
  }
1119
+
1120
 
1121
  // Events.
1122
  function html_show_spider_event($rows, $pageNav, $sort, $calendar_id, $cal_name) {
1690
  <?php the_editor(stripslashes(""),"text_for_date","title" ); ?>
1691
  </div>
1692
  <?php }else{
1693
+ wp_editor("", "text_for_date", array('teeny' => TRUE)); }?>
1694
+
1695
  </div>
1696
  </div>
1697
  </td>
2219
  <div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea"><?php the_editor(stripslashes($row->description),"text_for_date","title" ); ?>
2220
  </div>
2221
  <?php }else{
2222
+
2223
+ $desc1 = ( isset($row->text_for_date) ? $row->text_for_date : "" );
2224
+ wp_editor($desc1, "text_for_date", array('teeny' => TRUE)); } ?>
2225
  </div>
2226
  </div>
2227
  </td>
elements/calendar-jos.css CHANGED
@@ -420,6 +420,22 @@ html.thickbox_open{
420
  table-layout: auto;
421
  }
422
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
423
  @media screen and (max-width: 768px) {
424
  .wdc_calendar #cal_event p:not(.ev_name){
425
  display: block; /* Fallback for non-webkit */
420
  table-layout: auto;
421
  }
422
 
423
+ #TB_ajaxWindowTitle{
424
+ height: 0 !important;
425
+ }
426
+
427
+ .upcoming_table{
428
+ padding: 10px 30px;
429
+ }
430
+
431
+ .upcoming_table .widefat .check-column{
432
+ padding: 10px 0 4px;
433
+ }
434
+
435
+ .upcoming_table th span.sorting-indicator{
436
+ background-image: none;
437
+ }
438
+
439
  @media screen and (max-width: 768px) {
440
  .wdc_calendar #cal_event p:not(.ev_name){
441
  display: block; /* Fallback for non-webkit */
images/backup-logo.png ADDED
Binary file
js/wd_bp_install.js ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function () {
2
+ /*Ajax hide notice forever */
3
+ jQuery(".wd_bp_notice_dissmiss").on("click", function () {
4
+ jQuery("#wd_bp_notice_cont").hide();
5
+ jQuery.post(spcal_bp_url);
6
+ })
7
+ });
8
+
9
+ // Set option status 1 - never show again during install btn click in notice
10
+ function wd_bp_notice_install() {
11
+ jQuery.post(spcal_bp_url);
12
+ }
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: webdorado, wdsupport
3
  Donate link: https://web-dorado.com/products/wordpress-calendar.html
4
  Tags: calendar, date, event, event calendar, events, events calendar, meeting, organizer, recurring, reservation, responsive, schedule, calendars, event manager, calendar widget, event registration, event management, agenda, holiday calendar , scheduling, free calendar, Calender, upcoming events , event widget , event list, calendar localization, editorial calendar, Interactive Calendar, news calendar, appointment, event tracking, event organizer, upcoming events widget, event page, event bookings, recurring events, conference, dates, times, venue, responsive calendar, seminar, summit, facebook integration, widget, online calendar, calendar shortcode, events list, custom calendar, google calendar, event subscription, ical, facebook event calendar, event filter, calendar manager, online reservation, booking calendar, event booking, reservation calendar, customizable calendar, upcoming events calendar, events feed, event ticketing, rsvp, tickets, bookings
5
  Requires at least: 3.4
6
- Tested up to: 4.8
7
- Stable tag: 1.5.54
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -85,7 +85,7 @@ Upgrade to [WordPress Calendar Pro](https://web-dorado.com/products/wordpress-ca
85
  * Possibility to set a number of events to be displayed within a single day
86
 
87
  ###IMPORTANT:
88
- If you think you found a bug in Spider Calendar or have any problem/question concerning the plugin, please check out [Support Forum](https://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).
89
 
90
 
91
  ### Supported languages
@@ -151,6 +151,10 @@ Vietnamese (vi)
151
 
152
  == Changelog ==
153
 
 
 
 
 
154
  = 1.5.54 =
155
  Fixed: Network activate issue
156
 
3
  Donate link: https://web-dorado.com/products/wordpress-calendar.html
4
  Tags: calendar, date, event, event calendar, events, events calendar, meeting, organizer, recurring, reservation, responsive, schedule, calendars, event manager, calendar widget, event registration, event management, agenda, holiday calendar , scheduling, free calendar, Calender, upcoming events , event widget , event list, calendar localization, editorial calendar, Interactive Calendar, news calendar, appointment, event tracking, event organizer, upcoming events widget, event page, event bookings, recurring events, conference, dates, times, venue, responsive calendar, seminar, summit, facebook integration, widget, online calendar, calendar shortcode, events list, custom calendar, google calendar, event subscription, ical, facebook event calendar, event filter, calendar manager, online reservation, booking calendar, event booking, reservation calendar, customizable calendar, upcoming events calendar, events feed, event ticketing, rsvp, tickets, bookings
5
  Requires at least: 3.4
6
+ Tested up to: 4.9
7
+ Stable tag: 1.5.55
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
85
  * Possibility to set a number of events to be displayed within a single day
86
 
87
  ###IMPORTANT:
88
+ If you think you found a bug in Spider Calendar or have any problem/question concerning the plugin, please check out [Support Forum](https://wordpress.org/support/plugin/spider-event-calendar). If you do not find a solution here, do not hesitate to contact us at [info@web-dorado.com](mailto:info@web-dorado.com).
89
 
90
 
91
  ### Supported languages
151
 
152
  == Changelog ==
153
 
154
+ = 1.5.55 =
155
+ Fixed: Load admin styles only on calendar pages
156
+ Changed: Introducing brand new free Backup WD plugin
157
+
158
  = 1.5.54 =
159
  Fixed: Network activate issue
160
 
spidercalendar_upcoming_events_widget.php CHANGED
@@ -7,7 +7,7 @@ function cal_scripts(){
7
  wp_enqueue_script("Calendar", plugins_url("elements/calendar.js", __FILE__), array(), $wd_spider_calendar_version, FALSE);
8
  wp_enqueue_script("calendar-setup", plugins_url("elements/calendar-setup.js", __FILE__), array(), $wd_spider_calendar_version, FALSE);
9
  wp_enqueue_script("calendar_function", plugins_url("elements/calendar_function.js", __FILE__), array(), $wd_spider_calendar_version, FALSE);
10
- wp_enqueue_style("Css", plugins_url("elements/calendar-jos.css", __FILE__), array(), $wd_spider_calendar_version, FALSE);
11
  wp_enqueue_script('wp-color-picker');
12
  wp_enqueue_style( 'wp-color-picker' );
13
  }
7
  wp_enqueue_script("Calendar", plugins_url("elements/calendar.js", __FILE__), array(), $wd_spider_calendar_version, FALSE);
8
  wp_enqueue_script("calendar-setup", plugins_url("elements/calendar-setup.js", __FILE__), array(), $wd_spider_calendar_version, FALSE);
9
  wp_enqueue_script("calendar_function", plugins_url("elements/calendar_function.js", __FILE__), array(), $wd_spider_calendar_version, FALSE);
10
+ wp_enqueue_style("spcalendar-jos", plugins_url("elements/calendar-jos.css", __FILE__), array(), $wd_spider_calendar_version, FALSE);
11
  wp_enqueue_script('wp-color-picker');
12
  wp_enqueue_style( 'wp-color-picker' );
13
  }
style_for_cal/wd_bp_install.css ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @media only screen and (max-width: 500px) {
2
+ body #wd_backup_logo {
3
+ max-width: 100%;
4
+ }
5
+ body #wd_bp_notice_cont p {
6
+ padding-right: 25px !important;
7
+ }
8
+ }
9
+
10
+ #wd_bp_logo_notice {
11
+ width: 40px;
12
+ float: left;
13
+ margin-right: 10px;
14
+ }
15
+
16
+ #wd_bp_notice_cont {
17
+ position: relative;
18
+ margin: 6px 15px 6px 0px;
19
+ clear: both;
20
+ }
21
+
22
+ .wds_backup_install p {
23
+ padding-top: 0px;
24
+ margin-top: 0px;
25
+ }
26
+
27
+ #wd_bp_notice_cont a {
28
+ margin: 0 5px;
29
+ }
30
+
31
+ #wd_bp_notice_cont .dashicons-dismiss:before {
32
+ content: "\f153";
33
+ background: 0 0;
34
+ color: #72777c;
35
+ display: block;
36
+ font: 400 16px/20px dashicons;
37
+ speak: none;
38
+ height: 20px;
39
+ text-align: center;
40
+ width: 20px;
41
+ -webkit-font-smoothing: antialiased;
42
+ -moz-osx-font-smoothing: grayscale;
43
+ }
44
+
45
+ .wd_bp_notice_dissmiss {
46
+ margin-top: 5px;
47
+ }
48
+