Event Calendar WD – Responsive Event Calendar plugin - Version 1.0.88

Version Description

  • Added: Helper bar
Download this release

Release Info

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

Code changes from version 1.0.87 to 1.0.88

css/admin/admin.css CHANGED
@@ -739,4 +739,65 @@ ul.ecwd_list_container li.ecwd_list div{
739
  }
740
  #mail_template_list .mail_name{
741
  width:90%;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
742
  }
739
  }
740
  #mail_template_list .mail_name{
741
  width:90%;
742
+ }
743
+
744
+ body.wp-admin.post-type-ecwd_event #posts-filter .alignleft.actions a.button{
745
+ display:inline-block;
746
+ margin: 0;
747
+ }
748
+
749
+
750
+ .ecwd_help_bar_wrap{
751
+ clear: both;
752
+ float: left;
753
+ width: 99%;
754
+ background-color: #ffffff;
755
+ padding: 12px 10px 8px;
756
+ box-sizing: border-box;
757
+ margin-bottom: 12px;
758
+ margin-top:5px;
759
+
760
+ -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1);
761
+ -moz-box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1);
762
+ box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1);
763
+ }
764
+
765
+ .ecwd_help_bar_wrap > *{
766
+ display: block;
767
+ min-height:25px;
768
+ }
769
+ .ecwd_help_bar_wrap * {
770
+ font-size: 16px !important;
771
+ }
772
+
773
+ .ecwd_help_bar_text{
774
+ float:left;
775
+ padding:0 6px;
776
+ }
777
+ .ecwd_hb_t_link{
778
+ float: left;
779
+ color: #00a0d2;
780
+ text-decoration: underline;
781
+ }
782
+ .ecwd_hb_s_link{
783
+ float: right;
784
+ }
785
+ .ecwd_hb_s_text{
786
+ display: block;
787
+ float: right;
788
+ padding-top: 2px;
789
+ }
790
+
791
+ .ecwd_hb_buy_pro{
792
+ color: #ffffff;
793
+ background-color: #45A6B7;
794
+ float: right;
795
+ margin: -2px 0 0 10px;
796
+ padding: 2px 7px 0;
797
+ text-decoration: none;
798
+ border-radius: 3px;
799
+ }
800
+ .ecwd_hb_buy_pro:hover {
801
+ color: #ffffff;
802
+ background-color: #008EC2;
803
  }
css/images/i_support.png ADDED
Binary file
ecwd.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Event Calendar WD
4
  * Plugin URI: https://web-dorado.com/products/wordpress-event-calendar-wd.html
5
  * Description: Event Calendar WD is an easy event management and planning tool with advanced features.
6
- * Version: 1.0.87
7
  * Author: WebDorado
8
  * Author URI: http://web-dorado.com
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -24,7 +24,7 @@ if (!defined('ECWD_URL')) {
24
  }
25
 
26
  if (!defined('ECWD_VERSION')) {
27
- define('ECWD_VERSION', "1.0.87");
28
  }
29
 
30
  if (!defined('ECWD_PLUGIN_MAIN_FILE')) {
3
  * Plugin Name: Event Calendar WD
4
  * Plugin URI: https://web-dorado.com/products/wordpress-event-calendar-wd.html
5
  * Description: Event Calendar WD is an easy event management and planning tool with advanced features.
6
+ * Version: 1.0.88
7
  * Author: WebDorado
8
  * Author URI: http://web-dorado.com
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
24
  }
25
 
26
  if (!defined('ECWD_VERSION')) {
27
+ define('ECWD_VERSION', "1.0.88");
28
  }
29
 
30
  if (!defined('ECWD_PLUGIN_MAIN_FILE')) {
ecwd_admin_class.php CHANGED
@@ -6,7 +6,7 @@
6
  class ECWD_Admin {
7
 
8
  protected static $instance = null;
9
- protected $version = '1.0.87';
10
  protected $ecwd_page = null;
11
  protected $notices = null;
12
 
@@ -37,11 +37,21 @@ class ECWD_Admin {
37
  }
38
  //add_filter( 'auto_update_plugin', array($this, 'ecwd_update'), 10, 2 );
39
  //Web Dorado Logo
40
- add_action('admin_notices', array($this, 'create_logo_to_head'));
41
  // Runs the admin notice ignore function incase a dismiss button has been clicked
42
  add_action('admin_init', array($this, 'admin_notice_ignore'));
43
  add_action('admin_notices', array($this, 'ecwd_admin_notices'));
44
- add_action('admin_init', array($this, 'include_ecwd_pointer_class'));
 
 
 
 
 
 
 
 
 
 
45
  }
46
 
47
  /**
@@ -661,7 +671,80 @@ class ECWD_Admin {
661
  ), $links
662
  );
663
  }
664
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
665
  public static function ecwd_freemius(){
666
  if (!isset($_REQUEST['ajax'])) {
667
 
@@ -808,6 +891,7 @@ class ECWD_Admin {
808
  "deactivate" => true,
809
  "subscribe" => true,
810
  "custom_post" => 'edit.php?post_type=ecwd_calendar',
 
811
  );
812
 
813
  dorado_web_init($ecwd_options);
6
  class ECWD_Admin {
7
 
8
  protected static $instance = null;
9
+ protected $version = '1.0.88';
10
  protected $ecwd_page = null;
11
  protected $notices = null;
12
 
37
  }
38
  //add_filter( 'auto_update_plugin', array($this, 'ecwd_update'), 10, 2 );
39
  //Web Dorado Logo
40
+ // add_action('admin_notices', array($this, 'create_logo_to_head'));
41
  // Runs the admin notice ignore function incase a dismiss button has been clicked
42
  add_action('admin_init', array($this, 'admin_notice_ignore'));
43
  add_action('admin_notices', array($this, 'ecwd_admin_notices'));
44
+ add_action('admin_notices', array($this, 'ecwd_helper_bar'), 10000);
45
+ add_filter('parent_file', array($this, 'ecwd_submenu_parent_file'));
46
+ }
47
+
48
+
49
+ function ecwd_submenu_parent_file($parent_file) {
50
+ $screen = get_current_screen();
51
+ if ($screen->post_type == "ecwd_organizer" || $screen->post_type == "ecwd_venue") {
52
+ return "edit.php?post_type=ecwd_calendar";
53
+ }
54
+ return $parent_file;
55
  }
56
 
57
  /**
671
  ), $links
672
  );
673
  }
674
+
675
+ public function ecwd_helper_bar() {
676
+ $current_screen = get_current_screen();
677
+ if ($current_screen->parent_file != "edit.php?post_type=ecwd_calendar") {
678
+ return;
679
+ }
680
+
681
+ $text = $user_guide_link = null;
682
+ switch ($current_screen->id) {
683
+ case "edit-ecwd_calendar":
684
+ case "ecwd_calendar":
685
+ $text = 'This section allows you to create, edit and delete Calendars';
686
+ $user_guide_link = 'https://web-dorado.com/wordpress-event-calendar-wd/creating-modifying-calendars.html';
687
+ break;
688
+ case "edit-ecwd_event":
689
+ case "ecwd_event":
690
+ $text = 'This section allows you to create, edit and delete Events';
691
+ $user_guide_link = 'https://web-dorado.com/wordpress-event-calendar-wd/creating-modifying-events/all-events.html';
692
+ break;
693
+ case "edit-ecwd_organizer":
694
+ case "ecwd_organizer":
695
+ $text = 'This section allows you to create, edit and delete Organizers';
696
+ $user_guide_link = 'https://web-dorado.com/wordpress-event-calendar-wd/creating-adding-organizers.html';
697
+ break;
698
+ case "edit-ecwd_venue":
699
+ case "ecwd_venue":
700
+ $text = 'This section allows you to create, edit and delete Venues';
701
+ $user_guide_link = 'https://web-dorado.com/wordpress-event-calendar-wd/creating-adding-venues.html';
702
+ break;
703
+ // case "edit-ecwd_theme":
704
+ // case "ecwd_theme":
705
+ // $text = 'This section allows you to create, edit and delete Themes';
706
+ // $user_guide_link = 'https://web-dorado.com/wordpress-event-calendar-wd/calendar-themes.html';
707
+ // break;
708
+ case "edit-ecwd_event_category":
709
+ $text = 'This section allows you to create, edit and delete Event Categories';
710
+ $user_guide_link = 'https://web-dorado.com/wordpress-event-calendar-wd/creating-modifying-events/event-categories.html';
711
+ break;
712
+ case "edit-ecwd_event_tag":
713
+ $text = 'This section allows you to create, edit and delete Event Tags';
714
+ $user_guide_link = 'https://web-dorado.com/wordpress-event-calendar-wd/creating-modifying-events/event-tags.html';
715
+ break;
716
+ case "ecwd_calendar_page_ecwd_general_settings":
717
+ $text = 'Here You Can Change settings';
718
+ $user_guide_link = 'https://web-dorado.com/wordpress-event-calendar-wd/creating-modifying-calendars/settings.html';
719
+ break;
720
+ }
721
+
722
+
723
+ if ($text !== null && $user_guide_link !== null) {
724
+ $this->add_helper_bar($text, $user_guide_link);
725
+ }
726
+
727
+ }
728
+
729
+ private function add_helper_bar($text, $user_guide_link) {
730
+ ?>
731
+ <div class="ecwd_help_bar_wrap">
732
+ <span class="ecwd_help_bar_text"><?php _e($text, "ecwd"); ?></span>
733
+ <a class="ecwd_hb_t_link" target="_blank" href=<?php echo $user_guide_link; ?>>
734
+ <?php _e('Read More in User Guide', "ecwd"); ?>
735
+ </a>
736
+ <a class="ecwd_hb_buy_pro" target="_blank"
737
+ href="https://web-dorado.com/products/wordpress-event-calendar-wd.html"><?php _e('Upgrade to Pro Version', "ecwd"); ?>
738
+ </a>
739
+ <a class="ecwd_hb_s_link" target="_blank" href="https://wordpress.org/support/plugin/event-calendar-wd">
740
+ <img src="<?php echo ECWD_URL; ?>/css/images/i_support.png">
741
+ <span class="ecwd_hb_s_text"><?php _e('Support Forum', "ecwd"); ?></span>
742
+ </a>
743
+ </div>
744
+ <?php
745
+ }
746
+
747
+
748
  public static function ecwd_freemius(){
749
  if (!isset($_REQUEST['ajax'])) {
750
 
891
  "deactivate" => true,
892
  "subscribe" => true,
893
  "custom_post" => 'edit.php?post_type=ecwd_calendar',
894
+ "menu_position" => 26
895
  );
896
 
897
  dorado_web_init($ecwd_options);
ecwd_class.php CHANGED
@@ -6,7 +6,7 @@
6
  */
7
  class ECWD {
8
 
9
- protected $version = '1.0.87';
10
  protected $plugin_name = 'event-calendar-wd';
11
  protected $prefix = 'ecwd';
12
  protected static $instance = null;
@@ -138,7 +138,6 @@ class ECWD {
138
  }
139
 
140
  include_once('includes/ecwd-notices-class.php');
141
- require_once('includes/notices.php');
142
  include_once( 'includes/ecwd-functions.php' );
143
  include_once( 'includes/ecwd-event-class.php' );
144
  include_once( 'includes/ecwd-display-class.php' );
6
  */
7
  class ECWD {
8
 
9
+ protected $version = '1.0.88';
10
  protected $plugin_name = 'event-calendar-wd';
11
  protected $prefix = 'ecwd';
12
  protected static $instance = null;
138
  }
139
 
140
  include_once('includes/ecwd-notices-class.php');
 
141
  include_once( 'includes/ecwd-functions.php' );
142
  include_once( 'includes/ecwd-event-class.php' );
143
  include_once( 'includes/ecwd-display-class.php' );
includes/ecwd-cpt-class.php CHANGED
@@ -906,8 +906,10 @@ class ECWD_Cpt {
906
  );
907
  $new_event_id = wp_insert_post($new_event);
908
  if ($new_event_id) {
909
- update_post_meta($new_event_id, ECWD_PLUGIN_PREFIX . '_event_date_from', esc_attr($_POST[ECWD_PLUGIN_PREFIX . '_event_date_from']));
910
- update_post_meta($new_event_id, ECWD_PLUGIN_PREFIX . '_event_date_to', esc_attr($_POST[ECWD_PLUGIN_PREFIX . '_event_date_to']));
 
 
911
  update_post_meta($new_event_id, ECWD_PLUGIN_PREFIX . '_event_calendars', array($calendar_id));
912
  $status = 'success';
913
  $data = array('event_id' => $new_event_id);
906
  );
907
  $new_event_id = wp_insert_post($new_event);
908
  if ($new_event_id) {
909
+ $from = date("Y/m/d", strtotime(esc_attr($_POST[ECWD_PLUGIN_PREFIX . '_event_date_from'])));
910
+ $to = date("Y/m/d", strtotime(esc_attr($_POST[ECWD_PLUGIN_PREFIX . '_event_date_to'])));
911
+ update_post_meta($new_event_id, ECWD_PLUGIN_PREFIX . '_event_date_from', $from);
912
+ update_post_meta($new_event_id, ECWD_PLUGIN_PREFIX . '_event_date_to', $to);
913
  update_post_meta($new_event_id, ECWD_PLUGIN_PREFIX . '_event_calendars', array($calendar_id));
914
  $status = 'success';
915
  $data = array('event_id' => $new_event_id);
includes/notices.php DELETED
@@ -1,55 +0,0 @@
1
- <?php
2
- /**
3
- * Created by PhpStorm.
4
- * User: lusinda
5
- * Date: 8/27/15
6
- * Time: 7:05 PM
7
- */
8
- if ( ! defined( 'ABSPATH' ) ) exit;
9
-
10
-
11
-
12
- function ecwd_admin_notices( $notices ) {
13
-
14
- $two_week_review_ignore = add_query_arg( array( 'ecwd_admin_notice_ignore' => 'two_week_review' ) );
15
- $two_week_review_temp = add_query_arg( array( 'ecwd_admin_notice_temp_ignore' => 'two_week_review', 'int' => 14 ) );
16
- $one_week_support = add_query_arg( array( 'ecwd_admin_notice_ignore' => 'one_week_support' ) );
17
- $promo_close = add_query_arg( array( 'ecwd_admin_notice_ignore' => 'ecwd_new_year_promo' ) );
18
- $notices['ecwd_new_year_promo'] = array(
19
- 'title' => __( 'Hey! How\'s It Going?', 'ecwd' ),
20
- 'msg' => '<div class="ecwd_hny"><a href="https://web-dorado.com/products/wordpress-event-calendar-wd.html?source=promo" target="_blank"></a></div>',
21
- 'link' => '<li><span class="dashicons dashicons-dismiss"></span><a href="' . $promo_close . '">' . __( 'Never show again' ,'ecwd' ) . '</a></li>',
22
- 'start' => '2015-12-31',
23
- 'end' => '2016-01-01',
24
- 'int' => 0
25
- );
26
-
27
- $notices['two_week_review'] = array(
28
- 'title' => __( 'Leave A Review?', 'ecwd' ),
29
- 'msg' => __( 'We hope you\'ve enjoyed using Event Calendar WD! Would you consider leaving us a review on WordPress.org?', 'ecwd' ),
30
- 'link' => '<li><span class="dashicons dashicons-external"></span><a href="http://wordpress.org/support/view/plugin-reviews/event-calendar-wd?filter=5" target="_blank">' . __( 'Sure! I\'d love to!', 'ecwd' ) . '</a></li>
31
- <li> <span class="dashicons dashicons-smiley"></span><a href="' . $two_week_review_ignore . '"> ' . __( 'I\'ve already left a review', 'ecwd' ) . '</a></li>
32
- <li><span class="dashicons dashicons-calendar-alt"></span><a href="' . $two_week_review_temp . '">' . __( 'Maybe Later' ,'ecwd' ) . '</a></li>
33
- <li><span class="dashicons dashicons-dismiss"></span><a href="' . $two_week_review_ignore . '">' . __( 'Never show again' ,'ecwd' ) . '</a></li>',
34
-
35
- 'later_link'=>$two_week_review_temp,
36
- 'int' => 14
37
- );
38
-
39
-
40
- $notices['one_week_support'] = array(
41
- 'title' => __( 'Hey! How\'s It Going?', 'ecwd' ),
42
- 'msg' => __( 'Thank you for using Events Calendar WD! We hope that you\'ve found everything you need, but if you have any questions:', 'ecwd' ),
43
- 'link' => '<li><span class="dashicons dashicons-media-text"></span><a target="_blank" href="https://web-dorado.com/wordpress-event-calendar-wd/installing.html">' . __( 'Check out User Guide', 'ecwd' ) . '</a></li>
44
- <li><span class="dashicons dashicons-sos"></span><a target="_blank" href="https://web-dorado.com/forum/wordpress-event-calendar-wd.html">' . __( 'Get Some Help' ,'ecwd' ) . '</a></li>
45
- <li><span class="dashicons dashicons-dismiss"></span><a href="' . $one_week_support . '">' . __( 'Never show again' ,'ecwd' ) . '</a></li>',
46
- 'int' => 7
47
- );
48
-
49
-
50
-
51
- return $notices;
52
- }
53
-
54
- add_filter( 'ecwd_admin_notices', 'ecwd_admin_notices' );
55
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Event Calendar WD – Responsive Event Calendar for WordPress ===
2
- Contributors: webdorado
3
  Donate link: https://web-dorado.com/products/wordpress-event-calendar-wd.html
4
  Tags: calendar, date, event, event calendar, events, events calendar, meeting, organizer, recurring, reservation, responsive, schedule
5
  Requires at least: 3.9
6
  Tested up to: 4.7
7
- Stable tag: 1.0.87
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -12,6 +12,7 @@ Event Calendar WD plugin allows organizing and publishin your events in an easy
12
 
13
  == Description ==
14
 
 
15
 
16
  Looking for an enhanced tool for displaying and managing various events within the site? Whether you have a single event you want to display on a calendar or multiple events per day, the Event Calendar plugin will help you to organize the events using elegant views.
17
 
@@ -155,6 +156,9 @@ After downloading the ZIP file of the Event Calendar WD plugin,
155
 
156
  == Changelog ==
157
 
 
 
 
158
  = 1.0.87 =
159
  * Added: Overview page
160
  * Changed: Deactivation
1
  === Event Calendar WD – Responsive Event Calendar for WordPress ===
2
+ Contributors: webdorado,wdsupport
3
  Donate link: https://web-dorado.com/products/wordpress-event-calendar-wd.html
4
  Tags: calendar, date, event, event calendar, events, events calendar, meeting, organizer, recurring, reservation, responsive, schedule
5
  Requires at least: 3.9
6
  Tested up to: 4.7
7
+ Stable tag: 1.0.88
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
12
 
13
  == Description ==
14
 
15
+ = Event Calendar WD =
16
 
17
  Looking for an enhanced tool for displaying and managing various events within the site? Whether you have a single event you want to display on a calendar or multiple events per day, the Event Calendar plugin will help you to organize the events using elegant views.
18
 
156
 
157
  == Changelog ==
158
 
159
+ = 1.0.88 =
160
+ * Added: Helper bar
161
+
162
  = 1.0.87 =
163
  * Added: Overview page
164
  * Changed: Deactivation