Calendar by WD – Responsive Event Calendar - Version 1.5.59

Version Description

Fixed: register_activation_hook not being called because of conflict with some plugins

Download this release

Release Info

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

Code changes from version 1.5.58 to 1.5.59

Files changed (2) hide show
  1. calendar.php +74 -75
  2. readme.txt +5 -2
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.58
7
  Author: WebDorado
8
  Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
9
  License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
10
  */
11
- $wd_spider_calendar_version="1.5.58";
12
  // LANGUAGE localization.
13
  function sp_calendar_language_load() {
14
  load_plugin_textdomain('sp_calendar', FALSE, basename(dirname(__FILE__)) . '/languages');
@@ -1406,79 +1406,6 @@ function calendar_export() {
1406
  }
1407
 
1408
 
1409
- if (!function_exists('spcal_bp_install_notice')) {
1410
-
1411
- if(get_option('wds_seo_notice_status')==='' || get_option('wds_seo_notice_status')==='1'){
1412
- return;
1413
- }
1414
-
1415
- function spcal_bp_script_style() {
1416
- $screen = get_current_screen();
1417
- $screen_id = $screen->id;
1418
- 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") {
1419
- return;
1420
- }
1421
-
1422
- $spcal_bp_plugin_url = plugins_url('', __FILE__);
1423
- wp_enqueue_script('spcal_bck_install', $spcal_bp_plugin_url . '/js/wd_bp_install.js', array('jquery'));
1424
- wp_enqueue_style('spcal_bck_install', $spcal_bp_plugin_url . '/style_for_cal/wd_bp_install.css');
1425
- }
1426
- add_action('admin_enqueue_scripts', 'spcal_bp_script_style');
1427
-
1428
- /**
1429
- * Show notice to install backup plugin
1430
- */
1431
- function spcal_bp_install_notice() {
1432
- $screen = get_current_screen();
1433
- $screen_id = $screen->id;
1434
- 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") {
1435
- return;
1436
- }
1437
-
1438
- $spcal_bp_plugin_url = plugins_url('', __FILE__);
1439
- $prefix = 'sp';
1440
- $meta_value = get_option('wd_seo_notice_status');
1441
- if ($meta_value === '' || $meta_value === false) {
1442
- ob_start();
1443
- ?>
1444
- <div class="notice notice-info" id="wd_bp_notice_cont">
1445
- <p>
1446
- <img id="wd_bp_logo_notice" src="<?php echo $spcal_bp_plugin_url . '/images/seo_logo.png'; ?>">
1447
- <?php _e("Spider Event Calendar advises:Optimize your web pages for search engines with the", $prefix) ?>
1448
- <a href="https://wordpress.org/plugins/seo-by-10web/" title="<?php _e("More details", $prefix) ?>"
1449
- target="_blank"><?php _e("FREE SEO", $prefix) ?></a>
1450
- <?php _e("plugin.", $prefix) ?>
1451
- <a class="button button-primary"
1452
- href="<?php echo esc_url(wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=seo-by-10web'), 'install-plugin_seo-by-10web')); ?>">
1453
- <span onclick="wd_bp_notice_install()"><?php _e("Install", $prefix); ?></span>
1454
- </a>
1455
- </p>
1456
- <button type="button" class="wd_bp_notice_dissmiss notice-dismiss"><span class="screen-reader-text"></span>
1457
- </button>
1458
- </div>
1459
- <script>spcal_bp_url = '<?php echo add_query_arg(array('action' => 'wd_seo_dismiss',), admin_url('admin-ajax.php')); ?>'</script>
1460
- <?php
1461
- echo ob_get_clean();
1462
- }
1463
- }
1464
-
1465
- if (!is_dir(plugin_dir_path(dirname(__FILE__)) . 'seo-by-10web')) {
1466
- add_action('admin_notices', 'spcal_bp_install_notice');
1467
- }
1468
-
1469
- /**
1470
- * Add usermeta to db
1471
- *
1472
- * empty: notice,
1473
- * 1 : never show again
1474
- */
1475
- function spcal_bp_install_notice_status() {
1476
- update_option('wd_seo_notice_status', '1', 'no');
1477
- }
1478
- add_action('wp_ajax_wd_seo_dismiss', 'spcal_bp_install_notice_status');
1479
- }
1480
-
1481
-
1482
  add_filter("plugin_row_meta", 'spidercal_add_plugin_meta_links', 10, 2);
1483
 
1484
  function spidercal_add_plugin_meta_links($meta_fields, $file){
@@ -1575,4 +1502,76 @@ $spider_category_event_table = "CREATE TABLE IF NOT EXISTS `" . $wpdb->prefix .
1575
  spider_calendar_chech_update();
1576
  }
1577
  register_activation_hook(__FILE__, 'spidercal_activate');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1578
  ?>
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.59
7
  Author: WebDorado
8
  Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
9
  License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
10
  */
11
+ $wd_spider_calendar_version="1.5.59";
12
  // LANGUAGE localization.
13
  function sp_calendar_language_load() {
14
  load_plugin_textdomain('sp_calendar', FALSE, basename(dirname(__FILE__)) . '/languages');
1406
  }
1407
 
1408
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1409
  add_filter("plugin_row_meta", 'spidercal_add_plugin_meta_links', 10, 2);
1410
 
1411
  function spidercal_add_plugin_meta_links($meta_fields, $file){
1502
  spider_calendar_chech_update();
1503
  }
1504
  register_activation_hook(__FILE__, 'spidercal_activate');
1505
+
1506
+ if (!function_exists('spcal_bp_install_notice')) {
1507
+
1508
+ if(get_option('wds_seo_notice_status')==='' || get_option('wds_seo_notice_status')==='1'){
1509
+ return;
1510
+ }
1511
+
1512
+ function spcal_bp_script_style() {
1513
+ $screen = get_current_screen();
1514
+ $screen_id = $screen->id;
1515
+ 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") {
1516
+ return;
1517
+ }
1518
+
1519
+ $spcal_bp_plugin_url = plugins_url('', __FILE__);
1520
+ wp_enqueue_script('spcal_bck_install', $spcal_bp_plugin_url . '/js/wd_bp_install.js', array('jquery'));
1521
+ wp_enqueue_style('spcal_bck_install', $spcal_bp_plugin_url . '/style_for_cal/wd_bp_install.css');
1522
+ }
1523
+ add_action('admin_enqueue_scripts', 'spcal_bp_script_style');
1524
+
1525
+ /**
1526
+ * Show notice to install backup plugin
1527
+ */
1528
+ function spcal_bp_install_notice() {
1529
+ $screen = get_current_screen();
1530
+ $screen_id = $screen->id;
1531
+ 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") {
1532
+ return;
1533
+ }
1534
+
1535
+ $spcal_bp_plugin_url = plugins_url('', __FILE__);
1536
+ $prefix = 'sp';
1537
+ $meta_value = get_option('wd_seo_notice_status');
1538
+ if ($meta_value === '' || $meta_value === false) {
1539
+ ob_start();
1540
+ ?>
1541
+ <div class="notice notice-info" id="wd_bp_notice_cont">
1542
+ <p>
1543
+ <img id="wd_bp_logo_notice" src="<?php echo $spcal_bp_plugin_url . '/images/seo_logo.png'; ?>">
1544
+ <?php _e("Spider Event Calendar advises:Optimize your web pages for search engines with the", $prefix) ?>
1545
+ <a href="https://wordpress.org/plugins/seo-by-10web/" title="<?php _e("More details", $prefix) ?>"
1546
+ target="_blank"><?php _e("FREE SEO", $prefix) ?></a>
1547
+ <?php _e("plugin.", $prefix) ?>
1548
+ <a class="button button-primary"
1549
+ href="<?php echo esc_url(wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=seo-by-10web'), 'install-plugin_seo-by-10web')); ?>">
1550
+ <span onclick="wd_bp_notice_install()"><?php _e("Install", $prefix); ?></span>
1551
+ </a>
1552
+ </p>
1553
+ <button type="button" class="wd_bp_notice_dissmiss notice-dismiss"><span class="screen-reader-text"></span>
1554
+ </button>
1555
+ </div>
1556
+ <script>spcal_bp_url = '<?php echo add_query_arg(array('action' => 'wd_seo_dismiss',), admin_url('admin-ajax.php')); ?>'</script>
1557
+ <?php
1558
+ echo ob_get_clean();
1559
+ }
1560
+ }
1561
+
1562
+ if (!is_dir(plugin_dir_path(dirname(__FILE__)) . 'seo-by-10web')) {
1563
+ add_action('admin_notices', 'spcal_bp_install_notice');
1564
+ }
1565
+
1566
+ /**
1567
+ * Add usermeta to db
1568
+ *
1569
+ * empty: notice,
1570
+ * 1 : never show again
1571
+ */
1572
+ function spcal_bp_install_notice_status() {
1573
+ update_option('wd_seo_notice_status', '1', 'no');
1574
+ }
1575
+ add_action('wp_ajax_wd_seo_dismiss', 'spcal_bp_install_notice_status');
1576
+ }
1577
  ?>
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: webdorado, wdsupport, 10web
3
  Tags: calendar, event, event calendar, events, events calendar, calendars, event manager, calendar widget, event management, free calendar, Calender, upcoming events
4
  Requires at least: 3.9
5
  Tested up to: 4.9
6
- Stable tag: 1.5.58
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -15,7 +15,7 @@ Event Calendar by WD is a responsive calendar plugin for organizing events. Plug
15
  [WordPress Calendar](https://web-dorado.com/products/wordpress-calendar.html)
16
  [Demo](http://wpdemo.web-dorado.com/spider-calendar/)
17
  [Demo Admin](http://wpdemo.web-dorado.com/wp-admin/admin.php?page=SpiderCalendar)
18
- [User Manual](https://web-dorado.com/spider-calendar-wordpress-guide-step-1.html)
19
 
20
  WordPress event calendar is a FREE user-friendly responsive plugin to manage multiple recurring events and various display options. This free plugin makes event registration and events management easy and lets you display beautiful responsive calendars, upcoming events and more. It’s perfect for websites organising seminars, summits, conferences, concerts, meetings, and more.
21
 
@@ -74,6 +74,9 @@ If you think you found a bug in the plugin or have any problem/question concerni
74
 
75
  == Changelog ==
76
 
 
 
 
77
  = 1.5.58 =
78
  Fixed: JS error on widget
79
 
3
  Tags: calendar, event, event calendar, events, events calendar, calendars, event manager, calendar widget, event management, free calendar, Calender, upcoming events
4
  Requires at least: 3.9
5
  Tested up to: 4.9
6
+ Stable tag: 1.5.59
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
15
  [WordPress Calendar](https://web-dorado.com/products/wordpress-calendar.html)
16
  [Demo](http://wpdemo.web-dorado.com/spider-calendar/)
17
  [Demo Admin](http://wpdemo.web-dorado.com/wp-admin/admin.php?page=SpiderCalendar)
18
+ [User Manual](https://web-dorado.com/wordpress-spider-calendar/installing.html)
19
 
20
  WordPress event calendar is a FREE user-friendly responsive plugin to manage multiple recurring events and various display options. This free plugin makes event registration and events management easy and lets you display beautiful responsive calendars, upcoming events and more. It’s perfect for websites organising seminars, summits, conferences, concerts, meetings, and more.
21
 
74
 
75
  == Changelog ==
76
 
77
+ = 1.5.59 =
78
+ Fixed: register_activation_hook not being called because of conflict with some plugins
79
+
80
  = 1.5.58 =
81
  Fixed: JS error on widget
82