Version Description
Changed: Removed Add Venue link
Fixed: Delete event from calendar page issue
Download this release
Release Info
Developer | webdorado |
Plugin | Event Calendar WD – Responsive Event Calendar plugin |
Version | 1.0.6 |
Comparing to | |
See all releases |
Code changes from version 1.0.5 to 1.0.6
- ecwd.php +1 -1
- ecwd_admin_class.php +1 -1
- ecwd_class.php +1 -1
- includes/ecwd-cpt-filter.php +6 -4
- includes/ecwd-functions.php +13 -11
- readme.txt +8 -4
- views/admin/ecwd-event-meta.php +1 -1
- views/single-event.php +17 -18
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.
|
7 |
* Author: WebDorado
|
8 |
* Author URI: http://web-dorado.com
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
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.6
|
7 |
* Author: WebDorado
|
8 |
* Author URI: http://web-dorado.com
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
ecwd_admin_class.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
class ECWD_Admin {
|
7 |
|
8 |
protected static $instance = null;
|
9 |
-
protected $version = '1.0.
|
10 |
protected $ecwd_page = null;
|
11 |
|
12 |
private function __construct() {
|
6 |
class ECWD_Admin {
|
7 |
|
8 |
protected static $instance = null;
|
9 |
+
protected $version = '1.0.6';
|
10 |
protected $ecwd_page = null;
|
11 |
|
12 |
private function __construct() {
|
ecwd_class.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
|
8 |
class ECWD {
|
9 |
|
10 |
-
protected $version = '1.0.
|
11 |
protected $plugin_name = 'event-calendar-wd';
|
12 |
protected $prefix = 'ecwd';
|
13 |
protected $old_version = '1.4.11';
|
7 |
|
8 |
class ECWD {
|
9 |
|
10 |
+
protected $version = '1.0.6';
|
11 |
protected $plugin_name = 'event-calendar-wd';
|
12 |
protected $prefix = 'ecwd';
|
13 |
protected $old_version = '1.4.11';
|
includes/ecwd-cpt-filter.php
CHANGED
@@ -84,25 +84,27 @@ if (!class_exists('Tax_CTP_Filter')) {
|
|
84 |
}
|
85 |
|
86 |
public function generate_taxonomy_options($tax_slug, $parent = '', $level = 0, $selected = null) {
|
87 |
-
$args = array();
|
88 |
if (!is_null($parent)) {
|
89 |
$args = array('parent' => $parent);
|
90 |
}
|
91 |
-
$args['hide_empty'] = false;
|
92 |
$terms = get_terms($tax_slug, $args);
|
93 |
$tab = '';
|
94 |
for ($i = 0; $i < $level; $i++) {
|
95 |
$tab.='--';
|
96 |
}
|
|
|
97 |
foreach ($terms as $term) {
|
98 |
-
|
|
|
99 |
$this->generate_taxonomy_options($tax_slug, $term->term_id, $level + 1, $selected);
|
100 |
}
|
101 |
}
|
102 |
|
103 |
public function event_table_filter($query) {
|
|
|
104 |
$types = array_keys($this->cpt);
|
105 |
-
if (is_admin() AND in_array($query->query['post_type'], $types)) {
|
106 |
$qv = &$query->query_vars;
|
107 |
$qv['meta_query'] = array();
|
108 |
|
84 |
}
|
85 |
|
86 |
public function generate_taxonomy_options($tax_slug, $parent = '', $level = 0, $selected = null) {
|
87 |
+
$args = array('show_empty' => 1);
|
88 |
if (!is_null($parent)) {
|
89 |
$args = array('parent' => $parent);
|
90 |
}
|
|
|
91 |
$terms = get_terms($tax_slug, $args);
|
92 |
$tab = '';
|
93 |
for ($i = 0; $i < $level; $i++) {
|
94 |
$tab.='--';
|
95 |
}
|
96 |
+
|
97 |
foreach ($terms as $term) {
|
98 |
+
|
99 |
+
echo '<option value=' . $term->slug, $selected == $term->slug ? ' selected="selected"' : '', '>' . $tab . $term->name . ' (' . $term->count . ')</option>';
|
100 |
$this->generate_taxonomy_options($tax_slug, $term->term_id, $level + 1, $selected);
|
101 |
}
|
102 |
}
|
103 |
|
104 |
public function event_table_filter($query) {
|
105 |
+
global $typenow;
|
106 |
$types = array_keys($this->cpt);
|
107 |
+
if (is_admin() AND in_array($query->query['post_type'], $types) && in_array($typenow, $types)) {
|
108 |
$qv = &$query->query_vars;
|
109 |
$qv['meta_query'] = array();
|
110 |
|
includes/ecwd-functions.php
CHANGED
@@ -319,19 +319,21 @@ function ecwd_set_template( $template ) {
|
|
319 |
return $template;
|
320 |
}
|
321 |
|
322 |
-
function ecwd_event_post( $post ) {
|
323 |
-
global $ecwd_options;
|
324 |
-
$post->comment_status = 'closed';
|
325 |
-
if ( is_single() ) {
|
326 |
-
if ( $post->post_type == ECWD_PLUGIN_PREFIX . '_event' ) {
|
327 |
-
if(isset($ecwd_options['event_comments']) && $ecwd_options['event_comments']==1) {
|
328 |
-
$post->comment_status= 'open';
|
329 |
-
}
|
330 |
-
}
|
331 |
-
}
|
332 |
|
333 |
-
|
|
|
|
|
|
|
|
|
|
|
334 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
335 |
|
336 |
add_action( 'the_post', ECWD_PLUGIN_PREFIX . '_event_post' );
|
337 |
|
319 |
return $template;
|
320 |
}
|
321 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
322 |
|
323 |
+
function ecwd_event_post( $post ) {
|
324 |
+
global $ecwd_options;
|
325 |
+
if ( is_single() && isset( $post->comment_status ) && $post->post_type == ECWD_PLUGIN_PREFIX . '_event' ) {
|
326 |
+
$post->comment_status = 'closed';
|
327 |
+
if ( isset( $ecwd_options['event_comments'] ) && $ecwd_options['event_comments'] == 1 ) {
|
328 |
+
$post->comment_status = 'open';
|
329 |
}
|
330 |
+
}
|
331 |
+
return $post;
|
332 |
+
}
|
333 |
+
|
334 |
+
|
335 |
+
|
336 |
+
|
337 |
|
338 |
add_action( 'the_post', ECWD_PLUGIN_PREFIX . '_event_post' );
|
339 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-event-calendar-wd.html
|
|
4 |
Tags: calendar, calendars, event, event calendar, event manager, events calendar, calendar widget, event registration, event management,events, agenda, 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
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.2
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -111,12 +111,16 @@ After downloading the ZIP file of the Event Calendar WD plugin,
|
|
111 |
|
112 |
== Changelog ==
|
113 |
|
|
|
|
|
|
|
|
|
114 |
= 1.0.5 =
|
115 |
-
New: Events Filters in backend
|
116 |
-
Fixed: Bug in shortcode
|
117 |
|
118 |
= 1.0.4 =
|
119 |
-
Fixed: Bug in add/edit calendar
|
120 |
|
121 |
= 1.0.3 =
|
122 |
New: Event template
|
4 |
Tags: calendar, calendars, event, event calendar, event manager, events calendar, calendar widget, event registration, event management,events, agenda, 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
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.2
|
7 |
+
Stable tag: 1.0.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
111 |
|
112 |
== Changelog ==
|
113 |
|
114 |
+
= 1.0.6 =
|
115 |
+
Changed: Removed Add Venue link
|
116 |
+
Fixed: Delete event from calendar page issue
|
117 |
+
|
118 |
= 1.0.5 =
|
119 |
+
New: Events Filters in backend
|
120 |
+
Fixed: Bug in shortcode
|
121 |
|
122 |
= 1.0.4 =
|
123 |
+
Fixed: Bug in add/edit calendar
|
124 |
|
125 |
= 1.0.3 =
|
126 |
New: Event template
|
views/admin/ecwd-event-meta.php
CHANGED
@@ -75,7 +75,7 @@ $ecwd_event_video = get_post_meta($post->ID, ECWD_PLUGIN_PREFIX . '_event_video'
|
|
75 |
</p>
|
76 |
<?php
|
77 |
} else {
|
78 |
-
|
79 |
} ?>
|
80 |
</td>
|
81 |
</tr>
|
75 |
</p>
|
76 |
<?php
|
77 |
} else {
|
78 |
+
?><?php _e('There is no venue added yet', 'ecwd');?><?php
|
79 |
} ?>
|
80 |
</td>
|
81 |
</tr>
|
views/single-event.php
CHANGED
@@ -29,8 +29,7 @@ if ( isset( $ecwd_options['social_icons'] ) && $ecwd_options['social_icons'] !=
|
|
29 |
$ecwd_event_location = get_post_meta( $post->ID, ECWD_PLUGIN_PREFIX . '_event_location', true );
|
30 |
$ecwd_event_latlong = get_post_meta( $post->ID, ECWD_PLUGIN_PREFIX . '_lat_long', true );
|
31 |
$ecwd_event_zoom = get_post_meta( $post->ID, ECWD_PLUGIN_PREFIX . '_map_zoom', true );
|
32 |
-
$ecwd_event_show_map = get_post_meta($post->ID, ECWD_PLUGIN_PREFIX . '_event_show_map', true);
|
33 |
-
|
34 |
if ( ! $ecwd_event_zoom ) {
|
35 |
$ecwd_event_zoom = 17;
|
36 |
}
|
@@ -151,26 +150,26 @@ get_header();
|
|
151 |
</div>
|
152 |
</div>
|
153 |
</div>
|
154 |
-
|
155 |
?>
|
156 |
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
<?php } ?>
|
171 |
<?php
|
172 |
-
|
173 |
-
if ($ecwd_event_show_map==1
|
174 |
$map_events = array();
|
175 |
$map_events[0]['latlong'] = explode( ',', $ecwd_event_latlong );
|
176 |
if ( $ecwd_event_location != '' ) {
|
29 |
$ecwd_event_location = get_post_meta( $post->ID, ECWD_PLUGIN_PREFIX . '_event_location', true );
|
30 |
$ecwd_event_latlong = get_post_meta( $post->ID, ECWD_PLUGIN_PREFIX . '_lat_long', true );
|
31 |
$ecwd_event_zoom = get_post_meta( $post->ID, ECWD_PLUGIN_PREFIX . '_map_zoom', true );
|
32 |
+
$ecwd_event_show_map = get_post_meta( $post->ID, ECWD_PLUGIN_PREFIX . '_event_show_map', true );
|
|
|
33 |
if ( ! $ecwd_event_zoom ) {
|
34 |
$ecwd_event_zoom = 17;
|
35 |
}
|
150 |
</div>
|
151 |
</div>
|
152 |
</div>
|
153 |
+
<?php if ( $social_icons ) {
|
154 |
?>
|
155 |
|
156 |
+
<div class="ecwd-social">
|
157 |
+
<span class="share-links">
|
158 |
+
<a href="http://twitter.com/home?status=<?php echo get_permalink( $post_id ) ?>" class="ecwd-twitter"
|
159 |
+
target="_blank" data-original-title="Tweet It">
|
160 |
+
<span class="visuallyhidden">Twitter</span></a>
|
161 |
+
<a href="http://www.facebook.com/sharer.php?u=<?php echo get_permalink( $post_id ) ?>" class="ecwd-facebook"
|
162 |
+
target="_blank" data-original-title="Share on Facebook">
|
163 |
+
<span class="visuallyhidden">Facebook</span></a>
|
164 |
+
<a href="http://plus.google.com/share?url=<?php echo get_permalink( $post_id ) ?>" class="ecwd-google-plus"
|
165 |
+
target="_blank" data-original-title="Share on Google+">
|
166 |
+
<span class="visuallyhidden">Google+</span></a>
|
167 |
+
</span>
|
168 |
+
</div>
|
169 |
<?php } ?>
|
170 |
<?php
|
171 |
+
//if($ecwd_event_show_map==1){
|
172 |
+
if ( $ecwd_event_show_map == 1 && $ecwd_event_latlong ) {
|
173 |
$map_events = array();
|
174 |
$map_events[0]['latlong'] = explode( ',', $ecwd_event_latlong );
|
175 |
if ( $ecwd_event_location != '' ) {
|