Version Description
Fixed: Time format issue
Download this release
Release Info
| Developer | webdorado |
| Plugin | |
| Version | 1.0.17 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.16 to 1.0.17
- css/images/featured/plus.png +0 -0
- ecwd.php +1 -1
- ecwd_admin_class.php +16 -3
- ecwd_class.php +1 -1
- includes/calendar-class.php +2 -1
- includes/ecwd-cpt-class.php +34 -19
- includes/ecwd-functions.php +17 -14
- includes/register-settings.php +32 -29
- js/admin/admin.js +12 -10
- readme.txt +5 -2
- views/admin/ecwd-event-meta.php +516 -489
- views/admin/licensing.php +2 -2
- views/ecwd-event-content.php +2 -1
- views/ecwd-organizer-content.php +2 -1
- views/ecwd-venue-content.php +2 -1
- views/single-event.php +2 -2
css/images/featured/plus.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.
|
| 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.17
|
| 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() {
|
|
@@ -56,11 +56,24 @@ class ECWD_Admin {
|
|
| 56 |
|
| 57 |
|
| 58 |
public static function activate() {
|
| 59 |
-
//setup default theme if there is no one
|
| 60 |
-
|
| 61 |
if ( ! defined( 'ECWD_PLUGIN_PREFIX' ) ) {
|
| 62 |
define( 'ECWD_PLUGIN_PREFIX', 'ecwd' );
|
| 63 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
|
| 65 |
}
|
| 66 |
|
| 6 |
class ECWD_Admin {
|
| 7 |
|
| 8 |
protected static $instance = null;
|
| 9 |
+
protected $version = '1.0.17';
|
| 10 |
protected $ecwd_page = null;
|
| 11 |
|
| 12 |
private function __construct() {
|
| 56 |
|
| 57 |
|
| 58 |
public static function activate() {
|
|
|
|
|
|
|
| 59 |
if ( ! defined( 'ECWD_PLUGIN_PREFIX' ) ) {
|
| 60 |
define( 'ECWD_PLUGIN_PREFIX', 'ecwd' );
|
| 61 |
}
|
| 62 |
+
$has_option = get_option('ecwd_old_events');
|
| 63 |
+
if($has_option === false) {
|
| 64 |
+
$old_event = get_posts( array(
|
| 65 |
+
'posts_per_page' => 1,
|
| 66 |
+
'orderby' => 'date',
|
| 67 |
+
'order' => 'DESC',
|
| 68 |
+
'post_type' => 'ecwd_event',
|
| 69 |
+
'post_status' => 'any'
|
| 70 |
+
) );
|
| 71 |
+
if ( $old_event && isset( $old_event[0]->post_date ) ) {
|
| 72 |
+
add_option( 'ecwd_old_events', 1 );
|
| 73 |
+
} else {
|
| 74 |
+
add_option( 'ecwd_old_events', 0 );
|
| 75 |
+
}
|
| 76 |
+
}
|
| 77 |
|
| 78 |
}
|
| 79 |
|
ecwd_class.php
CHANGED
|
@@ -6,7 +6,7 @@
|
|
| 6 |
*/
|
| 7 |
class ECWD {
|
| 8 |
|
| 9 |
-
protected $version = '1.0.
|
| 10 |
protected $plugin_name = 'event-calendar-wd';
|
| 11 |
protected $prefix = 'ecwd';
|
| 12 |
protected $old_version = '1.0.13';
|
| 6 |
*/
|
| 7 |
class ECWD {
|
| 8 |
|
| 9 |
+
protected $version = '1.0.17';
|
| 10 |
protected $plugin_name = 'event-calendar-wd';
|
| 11 |
protected $prefix = 'ecwd';
|
| 12 |
protected $old_version = '1.0.13';
|
includes/calendar-class.php
CHANGED
|
@@ -83,7 +83,8 @@ class Calendar {
|
|
| 83 |
}
|
| 84 |
$this->timeformat .= (isset( $ecwd_options['time_type'])?' '.$ecwd_options['time_type']: '');
|
| 85 |
if(isset($ecwd_options['time_type']) && $ecwd_options['time_type'] !=''){
|
| 86 |
-
|
|
|
|
| 87 |
}
|
| 88 |
if ( isset( $ecwd_options['week_starts'] ) && $ecwd_options['week_starts'] != '' ) {
|
| 89 |
$this->weekstartday = $ecwd_options['week_starts'];
|
| 83 |
}
|
| 84 |
$this->timeformat .= (isset( $ecwd_options['time_type'])?' '.$ecwd_options['time_type']: '');
|
| 85 |
if(isset($ecwd_options['time_type']) && $ecwd_options['time_type'] !=''){
|
| 86 |
+
$this->timeformat = str_replace('H', 'g', $this->timeformat);
|
| 87 |
+
$this->timeformat = str_replace('h', 'g', $this->timeformat);
|
| 88 |
}
|
| 89 |
if ( isset( $ecwd_options['week_starts'] ) && $ecwd_options['week_starts'] != '' ) {
|
| 90 |
$this->weekstartday = $ecwd_options['week_starts'];
|
includes/ecwd-cpt-class.php
CHANGED
|
@@ -82,7 +82,7 @@ class ECWD_Cpt {
|
|
| 82 |
add_filter( 'manage_' . ECWD_PLUGIN_PREFIX . '_event_posts_columns', array( $this, 'add_column_headers' ) );
|
| 83 |
|
| 84 |
add_filter( 'template_include', array( $this, 'ecwd_templates' ) );
|
| 85 |
-
add_filter( 'request', array(&$this, 'ecwd_archive_order'));
|
| 86 |
|
| 87 |
//category filter
|
| 88 |
add_filter( 'init', array( $this, 'event_restrict_manage' ) );
|
|
@@ -206,9 +206,12 @@ class ECWD_Cpt {
|
|
| 206 |
|
| 207 |
$this->rewriteSlug = ( isset( $ecwd_options['events_slug'] ) && $ecwd_options['events_slug'] !== '' ) ? $ecwd_options['events_slug'] : $defaultSlug . 's';
|
| 208 |
$this->rewriteSlugSingular = ( isset( $ecwd_options['event_slug'] ) && $ecwd_options['event_slug'] !== '' ) ? $ecwd_options['event_slug'] : $defaultSlug;
|
| 209 |
-
$rewrite = array(
|
| 210 |
-
|
| 211 |
-
|
|
|
|
|
|
|
|
|
|
| 212 |
}
|
| 213 |
//calendars
|
| 214 |
$calendar_labels = array(
|
|
@@ -233,7 +236,7 @@ class ECWD_Cpt {
|
|
| 233 |
'publicly_queryable' => true,
|
| 234 |
'show_ui' => true,
|
| 235 |
'show_in_menu' => true,
|
| 236 |
-
'menu_position' =>'26,11',
|
| 237 |
'query_var' => true,
|
| 238 |
'capability_type' => 'post',
|
| 239 |
'has_archive' => false,
|
|
@@ -270,7 +273,7 @@ class ECWD_Cpt {
|
|
| 270 |
'publicly_queryable' => true,
|
| 271 |
'show_ui' => true,
|
| 272 |
'show_in_menu' => true,
|
| 273 |
-
'menu_position' =>'26,13',
|
| 274 |
'query_var' => true,
|
| 275 |
'capability_type' => 'post',
|
| 276 |
'taxonomies' => array(),
|
|
@@ -279,7 +282,8 @@ class ECWD_Cpt {
|
|
| 279 |
'menu_icon' => plugins_url( '/assets/organizer-icon.png', ECWD_MAIN_FILE ),
|
| 280 |
'supports' => array(
|
| 281 |
'title',
|
| 282 |
-
'editor',
|
|
|
|
| 283 |
),
|
| 284 |
'rewrite' => $organizer_rewrite
|
| 285 |
);
|
|
@@ -308,7 +312,7 @@ class ECWD_Cpt {
|
|
| 308 |
'publicly_queryable' => true,
|
| 309 |
'show_ui' => true,
|
| 310 |
'show_in_menu' => true,
|
| 311 |
-
'menu_position' =>'26,14',
|
| 312 |
'query_var' => true,
|
| 313 |
'capability_type' => 'post',
|
| 314 |
'taxonomies' => array(
|
|
@@ -331,7 +335,6 @@ class ECWD_Cpt {
|
|
| 331 |
register_post_type( self::EVENT_POST_TYPE, $args );
|
| 332 |
|
| 333 |
|
| 334 |
-
|
| 335 |
//venues
|
| 336 |
$venues_labels = array(
|
| 337 |
'name' => __( 'Venues', 'ecwd' ),
|
|
@@ -354,7 +357,7 @@ class ECWD_Cpt {
|
|
| 354 |
'publicly_queryable' => true,
|
| 355 |
'show_ui' => true,
|
| 356 |
'show_in_menu' => true,
|
| 357 |
-
'menu_position' =>'26,15',
|
| 358 |
'query_var' => true,
|
| 359 |
'capability_type' => 'post',
|
| 360 |
'taxonomies' => array(),
|
|
@@ -363,7 +366,8 @@ class ECWD_Cpt {
|
|
| 363 |
'menu_icon' => plugins_url( '/assets/venue-icon.png', ECWD_MAIN_FILE ),
|
| 364 |
'supports' => array(
|
| 365 |
'title',
|
| 366 |
-
'editor',
|
|
|
|
| 367 |
),
|
| 368 |
'rewrite' => $venue_rewrite
|
| 369 |
);
|
|
@@ -643,13 +647,14 @@ class ECWD_Cpt {
|
|
| 643 |
$ip_addr = $_SERVER['REMOTE_ADDR'];
|
| 644 |
$long = '';
|
| 645 |
$lat = '';
|
| 646 |
-
$
|
|
|
|
| 647 |
'post_type' => ECWD_PLUGIN_PREFIX . '_venue',
|
| 648 |
'post_status' => 'publish',
|
| 649 |
'posts_per_page' => - 1,
|
| 650 |
'ignore_sticky_posts' => 1
|
| 651 |
);
|
| 652 |
-
$venues
|
| 653 |
include_once( ECWD_DIR . '/views/admin/ecwd-event-meta.php' );
|
| 654 |
}
|
| 655 |
|
|
@@ -805,12 +810,13 @@ class ECWD_Cpt {
|
|
| 805 |
//order orgs and venues by post name
|
| 806 |
function ecwd_archive_order( $vars ) {
|
| 807 |
global $ecwd_options;
|
| 808 |
-
$orderby = isset($ecwd_options['cpt_order'])
|
| 809 |
-
$types
|
| 810 |
-
if ( !is_admin() && isset($vars['post_type']) && is_post_type_hierarchical($vars['post_type']) && in_array($vars['post_type']
|
| 811 |
$vars['orderby'] = $orderby;
|
| 812 |
-
$vars['order']
|
| 813 |
}
|
|
|
|
| 814 |
return $vars;
|
| 815 |
}
|
| 816 |
|
|
@@ -1140,7 +1146,7 @@ class ECWD_Cpt {
|
|
| 1140 |
'show_ui' => true,
|
| 1141 |
'show_admin_column' => true,
|
| 1142 |
'query_var' => true,
|
| 1143 |
-
'rewrite' => array( 'slug' =>'event_category' ),
|
| 1144 |
);
|
| 1145 |
//register_taxonomy_for_object_type(ECWD_PLUGIN_PREFIX.'_event_category', array(ECWD_PLUGIN_PREFIX.'_event'));
|
| 1146 |
register_taxonomy( ECWD_PLUGIN_PREFIX . '_event_category', array( ECWD_PLUGIN_PREFIX . '_event' ), $args );
|
|
@@ -1152,7 +1158,7 @@ class ECWD_Cpt {
|
|
| 1152 |
'hierarchical' => false,
|
| 1153 |
'label' => __( 'Event Tags', 'ecwd' ),
|
| 1154 |
'singular_name' => __( 'Event Tag', 'ecwd' ),
|
| 1155 |
-
'rewrite'
|
| 1156 |
'query_var' => true
|
| 1157 |
)
|
| 1158 |
);
|
|
@@ -1323,6 +1329,15 @@ class ECWD_Cpt {
|
|
| 1323 |
}
|
| 1324 |
}
|
| 1325 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1326 |
public static function get_instance() {
|
| 1327 |
if ( null == self::$instance ) {
|
| 1328 |
self::$instance = new self;
|
| 82 |
add_filter( 'manage_' . ECWD_PLUGIN_PREFIX . '_event_posts_columns', array( $this, 'add_column_headers' ) );
|
| 83 |
|
| 84 |
add_filter( 'template_include', array( $this, 'ecwd_templates' ) );
|
| 85 |
+
add_filter( 'request', array( &$this, 'ecwd_archive_order' ) );
|
| 86 |
|
| 87 |
//category filter
|
| 88 |
add_filter( 'init', array( $this, 'event_restrict_manage' ) );
|
| 206 |
|
| 207 |
$this->rewriteSlug = ( isset( $ecwd_options['events_slug'] ) && $ecwd_options['events_slug'] !== '' ) ? $ecwd_options['events_slug'] : $defaultSlug . 's';
|
| 208 |
$this->rewriteSlugSingular = ( isset( $ecwd_options['event_slug'] ) && $ecwd_options['event_slug'] !== '' ) ? $ecwd_options['event_slug'] : $defaultSlug;
|
| 209 |
+
$rewrite = array(
|
| 210 |
+
'slug' => _x( $this->rewriteSlugSingular, 'URL slug', 'ecwd' ),
|
| 211 |
+
"with_front" => true
|
| 212 |
+
);
|
| 213 |
+
$venue_rewrite = array( 'slug' => _x( 'venue', 'URL slug', 'ecwd' ), "with_front" => true );
|
| 214 |
+
$organizer_rewrite = array( 'slug' => _x( 'organizer', 'URL slug', 'ecwd' ), "with_front" => true );
|
| 215 |
}
|
| 216 |
//calendars
|
| 217 |
$calendar_labels = array(
|
| 236 |
'publicly_queryable' => true,
|
| 237 |
'show_ui' => true,
|
| 238 |
'show_in_menu' => true,
|
| 239 |
+
'menu_position' => '26,11',
|
| 240 |
'query_var' => true,
|
| 241 |
'capability_type' => 'post',
|
| 242 |
'has_archive' => false,
|
| 273 |
'publicly_queryable' => true,
|
| 274 |
'show_ui' => true,
|
| 275 |
'show_in_menu' => true,
|
| 276 |
+
'menu_position' => '26,13',
|
| 277 |
'query_var' => true,
|
| 278 |
'capability_type' => 'post',
|
| 279 |
'taxonomies' => array(),
|
| 282 |
'menu_icon' => plugins_url( '/assets/organizer-icon.png', ECWD_MAIN_FILE ),
|
| 283 |
'supports' => array(
|
| 284 |
'title',
|
| 285 |
+
'editor',
|
| 286 |
+
'thumbnail'
|
| 287 |
),
|
| 288 |
'rewrite' => $organizer_rewrite
|
| 289 |
);
|
| 312 |
'publicly_queryable' => true,
|
| 313 |
'show_ui' => true,
|
| 314 |
'show_in_menu' => true,
|
| 315 |
+
'menu_position' => '26,14',
|
| 316 |
'query_var' => true,
|
| 317 |
'capability_type' => 'post',
|
| 318 |
'taxonomies' => array(
|
| 335 |
register_post_type( self::EVENT_POST_TYPE, $args );
|
| 336 |
|
| 337 |
|
|
|
|
| 338 |
//venues
|
| 339 |
$venues_labels = array(
|
| 340 |
'name' => __( 'Venues', 'ecwd' ),
|
| 357 |
'publicly_queryable' => true,
|
| 358 |
'show_ui' => true,
|
| 359 |
'show_in_menu' => true,
|
| 360 |
+
'menu_position' => '26,15',
|
| 361 |
'query_var' => true,
|
| 362 |
'capability_type' => 'post',
|
| 363 |
'taxonomies' => array(),
|
| 366 |
'menu_icon' => plugins_url( '/assets/venue-icon.png', ECWD_MAIN_FILE ),
|
| 367 |
'supports' => array(
|
| 368 |
'title',
|
| 369 |
+
'editor',
|
| 370 |
+
'thumbnail'
|
| 371 |
),
|
| 372 |
'rewrite' => $venue_rewrite
|
| 373 |
);
|
| 647 |
$ip_addr = $_SERVER['REMOTE_ADDR'];
|
| 648 |
$long = '';
|
| 649 |
$lat = '';
|
| 650 |
+
$is_ = $this->is();
|
| 651 |
+
$args = array(
|
| 652 |
'post_type' => ECWD_PLUGIN_PREFIX . '_venue',
|
| 653 |
'post_status' => 'publish',
|
| 654 |
'posts_per_page' => - 1,
|
| 655 |
'ignore_sticky_posts' => 1
|
| 656 |
);
|
| 657 |
+
$venues = get_posts( $args );
|
| 658 |
include_once( ECWD_DIR . '/views/admin/ecwd-event-meta.php' );
|
| 659 |
}
|
| 660 |
|
| 810 |
//order orgs and venues by post name
|
| 811 |
function ecwd_archive_order( $vars ) {
|
| 812 |
global $ecwd_options;
|
| 813 |
+
$orderby = isset( $ecwd_options['cpt_order'] ) ? $ecwd_options['cpt_order'] : 'post_name';
|
| 814 |
+
$types = array( self::ORGANIZER_POST_TYPE, self::VENUE_POST_TYPE );
|
| 815 |
+
if ( ! is_admin() && isset( $vars['post_type'] ) && is_post_type_hierarchical( $vars['post_type'] ) && in_array( $vars['post_type'], $types ) ) {
|
| 816 |
$vars['orderby'] = $orderby;
|
| 817 |
+
$vars['order'] = 'ASC';
|
| 818 |
}
|
| 819 |
+
|
| 820 |
return $vars;
|
| 821 |
}
|
| 822 |
|
| 1146 |
'show_ui' => true,
|
| 1147 |
'show_admin_column' => true,
|
| 1148 |
'query_var' => true,
|
| 1149 |
+
'rewrite' => array( 'slug' => 'event_category' ),
|
| 1150 |
);
|
| 1151 |
//register_taxonomy_for_object_type(ECWD_PLUGIN_PREFIX.'_event_category', array(ECWD_PLUGIN_PREFIX.'_event'));
|
| 1152 |
register_taxonomy( ECWD_PLUGIN_PREFIX . '_event_category', array( ECWD_PLUGIN_PREFIX . '_event' ), $args );
|
| 1158 |
'hierarchical' => false,
|
| 1159 |
'label' => __( 'Event Tags', 'ecwd' ),
|
| 1160 |
'singular_name' => __( 'Event Tag', 'ecwd' ),
|
| 1161 |
+
'rewrite' => array( 'slug' => 'event_tag' ),
|
| 1162 |
'query_var' => true
|
| 1163 |
)
|
| 1164 |
);
|
| 1329 |
}
|
| 1330 |
}
|
| 1331 |
|
| 1332 |
+
private function is() {
|
| 1333 |
+
if ( 1 == get_option( 'ecwd_old_events' ) ) {
|
| 1334 |
+
return true;
|
| 1335 |
+
} else {
|
| 1336 |
+
return false;
|
| 1337 |
+
}
|
| 1338 |
+
|
| 1339 |
+
}
|
| 1340 |
+
|
| 1341 |
public static function get_instance() {
|
| 1342 |
if ( null == self::$instance ) {
|
| 1343 |
self::$instance = new self;
|
includes/ecwd-functions.php
CHANGED
|
@@ -328,6 +328,7 @@ function ecwd_event_post( $post ) {
|
|
| 328 |
$post->comment_status = 'open';
|
| 329 |
}
|
| 330 |
}
|
|
|
|
| 331 |
return $post;
|
| 332 |
}
|
| 333 |
|
|
@@ -348,10 +349,11 @@ function ecwd_add_meta_tags() {
|
|
| 348 |
if ( isset( $ecwd_options['time_format'] ) && $ecwd_options['time_format'] != '' ) {
|
| 349 |
$time_format = $ecwd_options['time_format'];
|
| 350 |
}
|
| 351 |
-
$time_format .= (isset( $ecwd_options['time_type'])?' '
|
| 352 |
-
|
| 353 |
-
|
| 354 |
-
|
|
|
|
| 355 |
$ecwd_event_location = get_post_meta( $post->ID, ECWD_PLUGIN_PREFIX . '_event_location', true );
|
| 356 |
$description = '';
|
| 357 |
if ( $ecwd_all_day_event == 1 ) {
|
|
@@ -393,10 +395,11 @@ function ecwd_print_countdown( $event_id, $widget = 1, $theme_id = null, $args =
|
|
| 393 |
if ( isset( $ecwd_options['time_format'] ) && $ecwd_options['time_format'] != '' ) {
|
| 394 |
$time_format = $ecwd_options['time_format'];
|
| 395 |
}
|
| 396 |
-
$time_format .= (isset( $ecwd_options['time_type'])?' '
|
| 397 |
-
|
| 398 |
-
|
| 399 |
-
|
|
|
|
| 400 |
$defaults = array(
|
| 401 |
'title_text' => '',
|
| 402 |
'sort' => 'asc',
|
|
@@ -404,8 +407,8 @@ function ecwd_print_countdown( $event_id, $widget = 1, $theme_id = null, $args =
|
|
| 404 |
);
|
| 405 |
|
| 406 |
$args = array_merge( $defaults, $args );
|
| 407 |
-
extract($args);
|
| 408 |
-
$finish_text = isset($args['finish_text'])
|
| 409 |
|
| 410 |
$date = ( isset( $args['date'] ) ? $args['date'] : '' );
|
| 411 |
$d = new ECWD_Display( '', $title_text, $sort );
|
|
@@ -438,10 +441,10 @@ function ecwd_print_countdown( $event_id, $widget = 1, $theme_id = null, $args =
|
|
| 438 |
$markup .= '<div class="ecwd_countdown">';
|
| 439 |
$markup .= '<input type="hidden" name="ecwd_end_time" value="' . $start . '"/>';
|
| 440 |
$markup .= '<input type="hidden" name="ecwd_timezone" value="' . $diff . '"/>';
|
| 441 |
-
$markup .= '<input type="hidden" name="ecwd_text_days" value="' . __('DAYS', 'ecwd') . '"/>';
|
| 442 |
-
$markup .= '<input type="hidden" name="ecwd_text_hours" value="' . __('HOURS', 'ecwd') . '"/>';
|
| 443 |
-
$markup .= '<input type="hidden" name="ecwd_text_minutes" value="' . __('MINUTES', 'ecwd') . '"/>';
|
| 444 |
-
$markup .= '<input type="hidden" name="ecwd_text_seconds" value="' . __('SECONDS', 'ecwd') . '"/>';
|
| 445 |
$markup .= '<input type="hidden" name="ecwd_finish_text" value="' . $finish_text . '"/>';
|
| 446 |
if ( $theme_id ) {
|
| 447 |
$theme = get_post_meta( $theme_id, 'ecwd_countdown_theme', true );
|
| 328 |
$post->comment_status = 'open';
|
| 329 |
}
|
| 330 |
}
|
| 331 |
+
|
| 332 |
return $post;
|
| 333 |
}
|
| 334 |
|
| 349 |
if ( isset( $ecwd_options['time_format'] ) && $ecwd_options['time_format'] != '' ) {
|
| 350 |
$time_format = $ecwd_options['time_format'];
|
| 351 |
}
|
| 352 |
+
$time_format .= ( isset( $ecwd_options['time_type'] ) ? ' ' . $ecwd_options['time_type'] : '' );
|
| 353 |
+
if ( isset( $ecwd_options['time_type'] ) && $ecwd_options['time_type'] != '' ) {
|
| 354 |
+
$time_format = str_replace( 'H', 'g', $time_format );
|
| 355 |
+
$time_format = str_replace( 'h', 'g', $time_format );
|
| 356 |
+
}
|
| 357 |
$ecwd_event_location = get_post_meta( $post->ID, ECWD_PLUGIN_PREFIX . '_event_location', true );
|
| 358 |
$description = '';
|
| 359 |
if ( $ecwd_all_day_event == 1 ) {
|
| 395 |
if ( isset( $ecwd_options['time_format'] ) && $ecwd_options['time_format'] != '' ) {
|
| 396 |
$time_format = $ecwd_options['time_format'];
|
| 397 |
}
|
| 398 |
+
$time_format .= ( isset( $ecwd_options['time_type'] ) ? ' ' . $ecwd_options['time_type'] : '' );
|
| 399 |
+
if ( isset( $ecwd_options['time_type'] ) && $ecwd_options['time_type'] != '' ) {
|
| 400 |
+
$time_format = str_replace( 'H', 'g', $time_format );
|
| 401 |
+
$time_format = str_replace( 'h', 'g', $time_format );
|
| 402 |
+
}
|
| 403 |
$defaults = array(
|
| 404 |
'title_text' => '',
|
| 405 |
'sort' => 'asc',
|
| 407 |
);
|
| 408 |
|
| 409 |
$args = array_merge( $defaults, $args );
|
| 410 |
+
extract( $args );
|
| 411 |
+
$finish_text = isset( $args['finish_text'] ) ? $args['finish_text'] : '';
|
| 412 |
|
| 413 |
$date = ( isset( $args['date'] ) ? $args['date'] : '' );
|
| 414 |
$d = new ECWD_Display( '', $title_text, $sort );
|
| 441 |
$markup .= '<div class="ecwd_countdown">';
|
| 442 |
$markup .= '<input type="hidden" name="ecwd_end_time" value="' . $start . '"/>';
|
| 443 |
$markup .= '<input type="hidden" name="ecwd_timezone" value="' . $diff . '"/>';
|
| 444 |
+
$markup .= '<input type="hidden" name="ecwd_text_days" value="' . __( 'DAYS', 'ecwd' ) . '"/>';
|
| 445 |
+
$markup .= '<input type="hidden" name="ecwd_text_hours" value="' . __( 'HOURS', 'ecwd' ) . '"/>';
|
| 446 |
+
$markup .= '<input type="hidden" name="ecwd_text_minutes" value="' . __( 'MINUTES', 'ecwd' ) . '"/>';
|
| 447 |
+
$markup .= '<input type="hidden" name="ecwd_text_seconds" value="' . __( 'SECONDS', 'ecwd' ) . '"/>';
|
| 448 |
$markup .= '<input type="hidden" name="ecwd_finish_text" value="' . $finish_text . '"/>';
|
| 449 |
if ( $theme_id ) {
|
| 450 |
$theme = get_post_meta( $theme_id, 'ecwd_countdown_theme', true );
|
includes/register-settings.php
CHANGED
|
@@ -42,42 +42,42 @@ function ecwd_register_settings() {
|
|
| 42 |
/* General Settings */
|
| 43 |
|
| 44 |
'general' => array(
|
| 45 |
-
'time_zone'
|
| 46 |
'id' => 'time_zone',
|
| 47 |
'name' => __( 'TimeZone', 'ecwd' ),
|
| 48 |
'desc' => __( 'If the timezone is not set, the server timezone will be used (if set in php settings), otherwise the Europe/Berlin timezone will be used', 'ecwd' ),
|
| 49 |
'size' => 'medium-text',
|
| 50 |
'type' => 'text'
|
| 51 |
),
|
| 52 |
-
'date_format'
|
| 53 |
'id' => 'date_format',
|
| 54 |
'name' => __( 'Date format', 'ecwd' ),
|
| 55 |
'desc' => __( 'Set the format for displaying event dates. Ex Y-m-d or Y/m/d', 'ecwd' ),
|
| 56 |
'size' => 'medium-text',
|
| 57 |
'type' => 'text'
|
| 58 |
),
|
| 59 |
-
'time_format'
|
| 60 |
'id' => 'time_format',
|
| 61 |
'name' => __( 'Time format', 'ecwd' ),
|
| 62 |
'desc' => __( 'Set the format for displaying event time. Ex H:i or H/i', 'ecwd' ),
|
| 63 |
'size' => 'medium-text',
|
| 64 |
'type' => 'text'
|
| 65 |
),
|
| 66 |
-
'time_type'
|
| 67 |
'id' => 'time_type',
|
| 68 |
'name' => __( 'Show AM/PM', 'ecwd' ),
|
| 69 |
'desc' => __( 'Select the time format type', 'ecwd' ),
|
| 70 |
'size' => 'medium-text',
|
| 71 |
'type' => 'time_type_select'
|
| 72 |
),
|
| 73 |
-
'week_starts'
|
| 74 |
'id' => 'week_starts',
|
| 75 |
'name' => __( 'Week start day', 'ecwd' ),
|
| 76 |
'desc' => __( 'Define the starting day for the week.', 'ecwd' ),
|
| 77 |
'size' => 'medium-text',
|
| 78 |
'type' => 'week_select'
|
| 79 |
),
|
| 80 |
-
'enable_rewrite'
|
| 81 |
'id' => 'enable_rewrite',
|
| 82 |
'name' => __( 'Enable rewrite', 'ecwd' ),
|
| 83 |
'default' => 'events',
|
|
@@ -85,7 +85,7 @@ function ecwd_register_settings() {
|
|
| 85 |
'type' => 'radio',
|
| 86 |
'default' => 1
|
| 87 |
),
|
| 88 |
-
'events_slug'
|
| 89 |
'id' => 'events_slug',
|
| 90 |
'name' => __( 'Events slug', 'ecwd' ),
|
| 91 |
'default' => 'events',
|
|
@@ -93,7 +93,7 @@ function ecwd_register_settings() {
|
|
| 93 |
'size' => 'medium-text',
|
| 94 |
'type' => 'text'
|
| 95 |
),
|
| 96 |
-
'event_slug'
|
| 97 |
'id' => 'event_slug',
|
| 98 |
'name' => __( 'Single Event slug', 'ecwd' ),
|
| 99 |
'default' => 'event',
|
|
@@ -101,42 +101,36 @@ function ecwd_register_settings() {
|
|
| 101 |
'size' => 'medium-text',
|
| 102 |
'type' => 'text'
|
| 103 |
),
|
| 104 |
-
'event_comments'
|
| 105 |
'id' => 'event_comments',
|
| 106 |
'name' => __( 'Enable comments for events', 'ecwd' ),
|
| 107 |
'desc' => __( 'Check to enable commenting.', 'ecwd' ),
|
| 108 |
'type' => 'checkbox'
|
| 109 |
),
|
| 110 |
-
'event_loop'
|
| 111 |
'id' => 'event_loop',
|
| 112 |
'name' => __( 'Include events in main loop', 'ecwd' ),
|
| 113 |
'desc' => __( 'Check to display events within website post list in main pages.', 'ecwd' ),
|
| 114 |
'type' => 'checkbox'
|
| 115 |
),
|
| 116 |
-
'cpt_order'
|
| 117 |
'id' => 'cpt_order',
|
| 118 |
'name' => __( 'Order of Organizers and Venues by', 'ecwd' ),
|
| 119 |
'desc' => __( 'Select Order of Organizers and Venues.', 'ecwd' ),
|
| 120 |
'type' => 'order_select'
|
| 121 |
),
|
| 122 |
-
'social_icons'
|
| 123 |
'id' => 'social_icons',
|
| 124 |
'name' => __( 'Enable Social Icons', 'ecwd' ),
|
| 125 |
'desc' => __( 'Check to display social icons in event, organizer and venue pages.', 'ecwd' ),
|
| 126 |
'type' => 'checkbox'
|
| 127 |
),
|
| 128 |
-
'
|
| 129 |
-
'id'
|
| 130 |
-
'name'
|
| 131 |
-
'desc'
|
| 132 |
-
'type'
|
| 133 |
-
|
| 134 |
-
'related_events' => array(
|
| 135 |
-
'id' => 'related_events',
|
| 136 |
-
'name' => __( 'Show related events in the event page', 'ecwd' ),
|
| 137 |
-
'desc' =>'',
|
| 138 |
-
'type' => 'radio',
|
| 139 |
-
'default'=>1
|
| 140 |
),
|
| 141 |
'category_and_tags' => array(
|
| 142 |
'id' => 'category_and_tags',
|
|
@@ -147,6 +141,14 @@ function ecwd_register_settings() {
|
|
| 147 |
)
|
| 148 |
|
| 149 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 150 |
|
| 151 |
/* If the options do not exist then create them for each section */
|
| 152 |
if ( false == get_option( ECWD_PLUGIN_PREFIX . '_settings' ) ) {
|
|
@@ -195,7 +197,7 @@ function ecwd_get_settings_field_args( $option, $section ) {
|
|
| 195 |
'options' => isset( $option['options'] ) ? $option['options'] : '',
|
| 196 |
'std' => isset( $option['std'] ) ? $option['std'] : '',
|
| 197 |
'href' => isset( $option['href'] ) ? $option['href'] : '',
|
| 198 |
-
'default'
|
| 199 |
);
|
| 200 |
|
| 201 |
// Link label to input using 'label_for' argument if text, textarea, password, select, or variations of.
|
|
@@ -246,6 +248,7 @@ function ecwd_time_type_select_callback( $args ) {
|
|
| 246 |
|
| 247 |
echo $html;
|
| 248 |
}
|
|
|
|
| 249 |
/*
|
| 250 |
* Order select callback function
|
| 251 |
*/
|
|
@@ -306,7 +309,7 @@ function ecwd_status_select_callback( $args ) {
|
|
| 306 |
|
| 307 |
function ecwd_checkbox_callback( $args ) {
|
| 308 |
global $ecwd_options;
|
| 309 |
-
$checked = isset( $ecwd_options[ $args['id'] ] ) ? checked( 1, $ecwd_options[ $args['id'] ], false ) : (isset( $args['default'])?checked( 1, $args['default'], false):'');
|
| 310 |
$html = "\n" . '<div class="checkbox-div"><input type="checkbox" id="ecwd_settings_' . $args['section'] . '[' . $args['id'] . ']" name="ecwd_settings_' . $args['section'] . '[' . $args['id'] . ']" value="1" ' . $checked . '/><label for="ecwd_settings_' . $args['section'] . '[' . $args['id'] . ']"></label></div>' . "\n";
|
| 311 |
// Render description text directly to the right in a label if it exists.
|
| 312 |
if ( ! empty( $args['desc'] ) ) {
|
|
@@ -326,11 +329,11 @@ function ecwd_radio_callback( $args ) {
|
|
| 326 |
|
| 327 |
$checked_no = isset( $ecwd_options[ $args['id'] ] ) ? checked( 0, $ecwd_options[ $args['id'] ], false ) : '';
|
| 328 |
|
| 329 |
-
$checked_yes = isset( $ecwd_options[ $args['id'] ] ) ? checked( 1, $ecwd_options[ $args['id'] ], false ) : (isset($args['default'])? checked( 1, $args['default'], false ):'');
|
| 330 |
|
| 331 |
|
| 332 |
-
$html
|
| 333 |
-
$html
|
| 334 |
// Render description text directly to the right in a label if it exists.
|
| 335 |
if ( ! empty( $args['desc'] ) ) {
|
| 336 |
$html .= '<p class="description">' . $args['desc'] . '</p>' . "\n";
|
| 42 |
/* General Settings */
|
| 43 |
|
| 44 |
'general' => array(
|
| 45 |
+
'time_zone' => array(
|
| 46 |
'id' => 'time_zone',
|
| 47 |
'name' => __( 'TimeZone', 'ecwd' ),
|
| 48 |
'desc' => __( 'If the timezone is not set, the server timezone will be used (if set in php settings), otherwise the Europe/Berlin timezone will be used', 'ecwd' ),
|
| 49 |
'size' => 'medium-text',
|
| 50 |
'type' => 'text'
|
| 51 |
),
|
| 52 |
+
'date_format' => array(
|
| 53 |
'id' => 'date_format',
|
| 54 |
'name' => __( 'Date format', 'ecwd' ),
|
| 55 |
'desc' => __( 'Set the format for displaying event dates. Ex Y-m-d or Y/m/d', 'ecwd' ),
|
| 56 |
'size' => 'medium-text',
|
| 57 |
'type' => 'text'
|
| 58 |
),
|
| 59 |
+
'time_format' => array(
|
| 60 |
'id' => 'time_format',
|
| 61 |
'name' => __( 'Time format', 'ecwd' ),
|
| 62 |
'desc' => __( 'Set the format for displaying event time. Ex H:i or H/i', 'ecwd' ),
|
| 63 |
'size' => 'medium-text',
|
| 64 |
'type' => 'text'
|
| 65 |
),
|
| 66 |
+
'time_type' => array(
|
| 67 |
'id' => 'time_type',
|
| 68 |
'name' => __( 'Show AM/PM', 'ecwd' ),
|
| 69 |
'desc' => __( 'Select the time format type', 'ecwd' ),
|
| 70 |
'size' => 'medium-text',
|
| 71 |
'type' => 'time_type_select'
|
| 72 |
),
|
| 73 |
+
'week_starts' => array(
|
| 74 |
'id' => 'week_starts',
|
| 75 |
'name' => __( 'Week start day', 'ecwd' ),
|
| 76 |
'desc' => __( 'Define the starting day for the week.', 'ecwd' ),
|
| 77 |
'size' => 'medium-text',
|
| 78 |
'type' => 'week_select'
|
| 79 |
),
|
| 80 |
+
'enable_rewrite' => array(
|
| 81 |
'id' => 'enable_rewrite',
|
| 82 |
'name' => __( 'Enable rewrite', 'ecwd' ),
|
| 83 |
'default' => 'events',
|
| 85 |
'type' => 'radio',
|
| 86 |
'default' => 1
|
| 87 |
),
|
| 88 |
+
'events_slug' => array(
|
| 89 |
'id' => 'events_slug',
|
| 90 |
'name' => __( 'Events slug', 'ecwd' ),
|
| 91 |
'default' => 'events',
|
| 93 |
'size' => 'medium-text',
|
| 94 |
'type' => 'text'
|
| 95 |
),
|
| 96 |
+
'event_slug' => array(
|
| 97 |
'id' => 'event_slug',
|
| 98 |
'name' => __( 'Single Event slug', 'ecwd' ),
|
| 99 |
'default' => 'event',
|
| 101 |
'size' => 'medium-text',
|
| 102 |
'type' => 'text'
|
| 103 |
),
|
| 104 |
+
'event_comments' => array(
|
| 105 |
'id' => 'event_comments',
|
| 106 |
'name' => __( 'Enable comments for events', 'ecwd' ),
|
| 107 |
'desc' => __( 'Check to enable commenting.', 'ecwd' ),
|
| 108 |
'type' => 'checkbox'
|
| 109 |
),
|
| 110 |
+
'event_loop' => array(
|
| 111 |
'id' => 'event_loop',
|
| 112 |
'name' => __( 'Include events in main loop', 'ecwd' ),
|
| 113 |
'desc' => __( 'Check to display events within website post list in main pages.', 'ecwd' ),
|
| 114 |
'type' => 'checkbox'
|
| 115 |
),
|
| 116 |
+
'cpt_order' => array(
|
| 117 |
'id' => 'cpt_order',
|
| 118 |
'name' => __( 'Order of Organizers and Venues by', 'ecwd' ),
|
| 119 |
'desc' => __( 'Select Order of Organizers and Venues.', 'ecwd' ),
|
| 120 |
'type' => 'order_select'
|
| 121 |
),
|
| 122 |
+
'social_icons' => array(
|
| 123 |
'id' => 'social_icons',
|
| 124 |
'name' => __( 'Enable Social Icons', 'ecwd' ),
|
| 125 |
'desc' => __( 'Check to display social icons in event, organizer and venue pages.', 'ecwd' ),
|
| 126 |
'type' => 'checkbox'
|
| 127 |
),
|
| 128 |
+
'related_events' => array(
|
| 129 |
+
'id' => 'related_events',
|
| 130 |
+
'name' => __( 'Show related events in the event page', 'ecwd' ),
|
| 131 |
+
'desc' => '',
|
| 132 |
+
'type' => 'radio',
|
| 133 |
+
'default' => 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 134 |
),
|
| 135 |
'category_and_tags' => array(
|
| 136 |
'id' => 'category_and_tags',
|
| 141 |
)
|
| 142 |
|
| 143 |
);
|
| 144 |
+
if ( 1 == get_option( 'ecwd_old_events' ) ) {
|
| 145 |
+
$ecwd_settings['general']['show_repeat_rate'] = array(
|
| 146 |
+
'id' => 'show_repeat_rate',
|
| 147 |
+
'name' => __( 'Show the repeat rate', 'ecwd' ),
|
| 148 |
+
'desc' => __( 'Check to show the repeat rate in event page .', 'ecwd' ),
|
| 149 |
+
'type' => 'checkbox'
|
| 150 |
+
);
|
| 151 |
+
}
|
| 152 |
|
| 153 |
/* If the options do not exist then create them for each section */
|
| 154 |
if ( false == get_option( ECWD_PLUGIN_PREFIX . '_settings' ) ) {
|
| 197 |
'options' => isset( $option['options'] ) ? $option['options'] : '',
|
| 198 |
'std' => isset( $option['std'] ) ? $option['std'] : '',
|
| 199 |
'href' => isset( $option['href'] ) ? $option['href'] : '',
|
| 200 |
+
'default' => isset( $option['default'] ) ? $option['default'] : ''
|
| 201 |
);
|
| 202 |
|
| 203 |
// Link label to input using 'label_for' argument if text, textarea, password, select, or variations of.
|
| 248 |
|
| 249 |
echo $html;
|
| 250 |
}
|
| 251 |
+
|
| 252 |
/*
|
| 253 |
* Order select callback function
|
| 254 |
*/
|
| 309 |
|
| 310 |
function ecwd_checkbox_callback( $args ) {
|
| 311 |
global $ecwd_options;
|
| 312 |
+
$checked = isset( $ecwd_options[ $args['id'] ] ) ? checked( 1, $ecwd_options[ $args['id'] ], false ) : ( isset( $args['default'] ) ? checked( 1, $args['default'], false ) : '' );
|
| 313 |
$html = "\n" . '<div class="checkbox-div"><input type="checkbox" id="ecwd_settings_' . $args['section'] . '[' . $args['id'] . ']" name="ecwd_settings_' . $args['section'] . '[' . $args['id'] . ']" value="1" ' . $checked . '/><label for="ecwd_settings_' . $args['section'] . '[' . $args['id'] . ']"></label></div>' . "\n";
|
| 314 |
// Render description text directly to the right in a label if it exists.
|
| 315 |
if ( ! empty( $args['desc'] ) ) {
|
| 329 |
|
| 330 |
$checked_no = isset( $ecwd_options[ $args['id'] ] ) ? checked( 0, $ecwd_options[ $args['id'] ], false ) : '';
|
| 331 |
|
| 332 |
+
$checked_yes = isset( $ecwd_options[ $args['id'] ] ) ? checked( 1, $ecwd_options[ $args['id'] ], false ) : ( isset( $args['default'] ) ? checked( 1, $args['default'], false ) : '' );
|
| 333 |
|
| 334 |
|
| 335 |
+
$html = "\n" . ' <div class="checkbox-div"><input type="radio" id="ecwd_settings_' . $args['section'] . '[' . $args['id'] . ']_yes" name="ecwd_settings_' . $args['section'] . '[' . $args['id'] . ']" value="1" ' . $checked_yes . '/><label for="ecwd_settings_' . $args['section'] . '[' . $args['id'] . ']_yes"></label></div> <label for="ecwd_settings_' . $args['section'] . '[' . $args['id'] . ']_yes">Yes</label>' . "\n";
|
| 336 |
+
$html .= '<div class="checkbox-div"> <input type="radio" id="ecwd_settings_' . $args['section'] . '[' . $args['id'] . ']_no" name="ecwd_settings_' . $args['section'] . '[' . $args['id'] . ']" value="0" ' . $checked_no . '/><label for="ecwd_settings_' . $args['section'] . '[' . $args['id'] . ']_no"></label></div> <label for="ecwd_settings_' . $args['section'] . '[' . $args['id'] . ']_no">No</label>' . "\n";
|
| 337 |
// Render description text directly to the right in a label if it exists.
|
| 338 |
if ( ! empty( $args['desc'] ) ) {
|
| 339 |
$html .= '<p class="description">' . $args['desc'] . '</p>' . "\n";
|
js/admin/admin.js
CHANGED
|
@@ -101,16 +101,18 @@
|
|
| 101 |
alert('Date to must be greater or equal to Date from');
|
| 102 |
e.preventDefault();
|
| 103 |
}
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
if (
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
|
|
|
|
|
|
| 114 |
}
|
| 115 |
}
|
| 116 |
});
|
| 101 |
alert('Date to must be greater or equal to Date from');
|
| 102 |
e.preventDefault();
|
| 103 |
}
|
| 104 |
+
if($('input[name="ecwd_event_repeat_event"]').length>0) {
|
| 105 |
+
var repeat = $('input[name="ecwd_event_repeat_event"]:checked').val();
|
| 106 |
+
var until = Date.parse($('#ecwd_event_repeat_until_input').val());
|
| 107 |
+
if (repeat !== 'no_repeat') {
|
| 108 |
+
if (until == '' || isNaN(until)) {
|
| 109 |
+
alert('Please set the repeat until date');
|
| 110 |
+
e.preventDefault();
|
| 111 |
+
}
|
| 112 |
+
if (!isNaN(dateFrom) && !isNaN(until) && until <= dateFrom) {
|
| 113 |
+
alert('Repeat until date must be greater than Date from');
|
| 114 |
+
e.preventDefault();
|
| 115 |
+
}
|
| 116 |
}
|
| 117 |
}
|
| 118 |
});
|
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 |
|
|
@@ -30,11 +30,11 @@ You can choose to display the event calendar with all four views (choosing the o
|
|
| 30 |
* Google Maps integration
|
| 31 |
* Event search
|
| 32 |
* Social media integration
|
| 33 |
-
* Recurring events
|
| 34 |
* Month, week, day, list views
|
| 35 |
|
| 36 |
Upgrade to [WordPress Event Calendar Pro](http://web-dorado.com/products/wordpress-event-calendar-wd.html) to add features:
|
| 37 |
|
|
|
|
| 38 |
* 5 beautiful customizable themes
|
| 39 |
* Posterboard view
|
| 40 |
* 4 days view
|
|
@@ -130,6 +130,9 @@ After downloading the ZIP file of the Event Calendar WD plugin,
|
|
| 130 |
|
| 131 |
== Changelog ==
|
| 132 |
|
|
|
|
|
|
|
|
|
|
| 133 |
= 1.0.16 =
|
| 134 |
Added: Show the repeat rate in event page option
|
| 135 |
|
| 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.17
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 30 |
* Google Maps integration
|
| 31 |
* Event search
|
| 32 |
* Social media integration
|
|
|
|
| 33 |
* Month, week, day, list views
|
| 34 |
|
| 35 |
Upgrade to [WordPress Event Calendar Pro](http://web-dorado.com/products/wordpress-event-calendar-wd.html) to add features:
|
| 36 |
|
| 37 |
+
* Recurring events
|
| 38 |
* 5 beautiful customizable themes
|
| 39 |
* Posterboard view
|
| 40 |
* 4 days view
|
| 130 |
|
| 131 |
== Changelog ==
|
| 132 |
|
| 133 |
+
= 1.0.17 =
|
| 134 |
+
Fixed: Time format issue
|
| 135 |
+
|
| 136 |
= 1.0.16 =
|
| 137 |
Added: Show the repeat rate in event page option
|
| 138 |
|
views/admin/ecwd-event-meta.php
CHANGED
|
@@ -4,518 +4,545 @@
|
|
| 4 |
*/
|
| 5 |
global $post;
|
| 6 |
$post_id = $post->ID;
|
| 7 |
-
$meta
|
| 8 |
|
| 9 |
// Load up all post meta data
|
| 10 |
-
$ecwd_event_venue
|
| 11 |
-
$ecwd_event_location = get_post_meta($post->ID, ECWD_PLUGIN_PREFIX . '_event_location', true);
|
| 12 |
-
$ecwd_event_show_map = get_post_meta($post->ID, ECWD_PLUGIN_PREFIX . '_event_show_map', true);
|
| 13 |
-
if($ecwd_event_show_map==''){
|
| 14 |
-
|
| 15 |
}
|
| 16 |
-
$ecwd_lat_long
|
| 17 |
-
$ecwd_event_date_from
|
| 18 |
-
$ecwd_event_date_to
|
| 19 |
-
$ecwd_event_url
|
| 20 |
-
$ecwd_event_repeat_event
|
| 21 |
-
$ecwd_event_repeat_how
|
| 22 |
-
$ecwd_event_repeat_repeat_until = get_post_meta($post->ID, ECWD_PLUGIN_PREFIX . '_event_repeat_repeat_until', true);
|
| 23 |
-
$ecwd_all_day_event
|
| 24 |
-
$ecwd_event_day
|
| 25 |
-
$ecwd_map_zoom
|
| 26 |
-
if (!is_array($ecwd_event_day)) {
|
| 27 |
-
|
| 28 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
$
|
| 35 |
-
if (!$ecwd_event_repeat_month_on_days) $ecwd_event_repeat_month_on_days = 1;
|
| 36 |
-
$ecwd_event_repeat_year_on_days = get_post_meta($post->ID, ECWD_PLUGIN_PREFIX . '_event_repeat_year_on_days', true);
|
| 37 |
-
|
| 38 |
-
if (!$ecwd_event_repeat_year_on_days) $ecwd_event_repeat_year_on_days = 1;
|
| 39 |
-
$ecwd_event_repeat_on_the_m = get_post_meta($post->ID, ECWD_PLUGIN_PREFIX . '_event_repeat_on_the_m', true);
|
| 40 |
-
$ecwd_event_repeat_on_the_y = get_post_meta($post->ID, ECWD_PLUGIN_PREFIX . '_event_repeat_on_the_y', true);
|
| 41 |
|
| 42 |
|
| 43 |
-
$ecwd_monthly_list_monthly = get_post_meta($post->ID, ECWD_PLUGIN_PREFIX . '_monthly_list_monthly', true);
|
| 44 |
-
$ecwd_monthly_week_monthly = get_post_meta($post->ID, ECWD_PLUGIN_PREFIX . '_monthly_week_monthly', true);
|
| 45 |
|
| 46 |
-
$ecwd_monthly_list_yearly = get_post_meta($post->ID, ECWD_PLUGIN_PREFIX . '_monthly_list_yearly', true);
|
| 47 |
-
$ecwd_monthly_week_yearly = get_post_meta($post->ID, ECWD_PLUGIN_PREFIX . '_monthly_week_yearly', true);
|
| 48 |
-
$ecwd_event_year_month
|
| 49 |
-
$ecwd_event_video
|
| 50 |
?>
|
| 51 |
|
| 52 |
|
| 53 |
<table class="form-table">
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
<!-- <div id="
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 237 |
|
| 238 |
<span id="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_how_label_daily"
|
| 239 |
class="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_how_label hidden">
|
| 240 |
-
<?php _e('day(s)', 'ecwd'); ?>
|
| 241 |
</span>
|
| 242 |
|
| 243 |
<span id="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_how_label_weekly"
|
| 244 |
class=" <?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_how_label hidden">
|
| 245 |
-
<?php _e('weeks(s)', 'ecwd'); ?>
|
| 246 |
-
|
| 247 |
</span>
|
| 248 |
<span id="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_how_label_monthly"
|
| 249 |
class=" <?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_how_label hidden">
|
| 250 |
-
<?php _e('month(s)', 'ecwd'); ?>
|
| 251 |
</span>
|
| 252 |
<span id="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_how_label_yearly"
|
| 253 |
class=" <?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_how_label hidden">
|
| 254 |
-
<?php _e('year(s) in ', 'ecwd'); ?>
|
| 255 |
</span>
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
|
| 282 |
-
|
| 283 |
-
|
| 284 |
-
|
| 285 |
-
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
|
| 299 |
-
|
| 300 |
-
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
|
| 307 |
-
|
| 308 |
-
|
| 309 |
-
|
| 310 |
-
|
| 311 |
-
|
| 312 |
-
|
| 313 |
-
|
| 314 |
-
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
|
| 318 |
-
|
| 319 |
-
|
| 320 |
-
|
| 321 |
-
|
| 322 |
-
|
| 323 |
-
|
| 324 |
-
|
| 325 |
-
|
| 326 |
-
|
| 327 |
-
|
| 328 |
-
|
| 329 |
-
|
| 330 |
-
|
| 331 |
-
|
| 332 |
-
|
| 333 |
-
|
| 334 |
-
|
| 335 |
-
|
| 336 |
-
|
| 337 |
-
|
| 338 |
-
|
| 339 |
-
|
| 340 |
-
|
| 341 |
-
|
| 342 |
-
|
| 343 |
-
|
| 344 |
-
|
| 345 |
-
|
| 346 |
-
|
| 347 |
-
|
| 348 |
-
|
| 349 |
-
|
| 350 |
-
|
| 351 |
-
|
| 352 |
-
|
| 353 |
-
|
| 354 |
-
|
| 355 |
-
|
| 356 |
-
|
| 357 |
-
|
| 358 |
-
<!--
|
| 359 |
-
|
| 360 |
-
|
| 361 |
-
|
| 362 |
-
|
| 363 |
-
|
| 364 |
-
|
| 365 |
-
|
| 366 |
-
|
| 367 |
-
|
| 368 |
-
|
| 369 |
-
|
| 370 |
-
|
| 371 |
-
|
| 372 |
-
|
| 373 |
-
|
| 374 |
-
|
| 375 |
-
|
| 376 |
-
|
| 377 |
-
|
| 378 |
-
|
| 379 |
-
|
| 380 |
-
|
| 381 |
-
|
| 382 |
-
|
| 383 |
-
|
| 384 |
-
|
| 385 |
-
|
| 386 |
-
|
| 387 |
-
|
| 388 |
-
|
| 389 |
-
|
| 390 |
-
|
| 391 |
-
|
| 392 |
-
|
| 393 |
-
|
| 394 |
-
|
| 395 |
-
|
| 396 |
-
|
| 397 |
-
|
| 398 |
-
|
| 399 |
-
|
| 400 |
-
|
| 401 |
-
|
| 402 |
-
|
| 403 |
-
|
| 404 |
-
|
| 405 |
-
|
| 406 |
-
|
| 407 |
-
|
| 408 |
-
|
| 409 |
-
|
| 410 |
-
|
| 411 |
-
|
| 412 |
-
|
| 413 |
-
|
| 414 |
-
|
| 415 |
-
|
| 416 |
-
|
| 417 |
-
|
| 418 |
-
|
| 419 |
-
|
| 420 |
-
|
| 421 |
-
|
| 422 |
-
|
| 423 |
-
|
| 424 |
-
|
| 425 |
-
|
| 426 |
-
|
| 427 |
-
|
| 428 |
-
|
| 429 |
-
|
| 430 |
-
|
| 431 |
-
|
| 432 |
-
|
| 433 |
-
|
| 434 |
-
|
| 435 |
-
|
| 436 |
-
|
| 437 |
-
|
| 438 |
-
|
| 439 |
-
|
| 440 |
-
|
| 441 |
-
|
| 442 |
-
|
| 443 |
-
|
| 444 |
-
|
| 445 |
-
<
|
| 446 |
-
|
| 447 |
-
|
| 448 |
-
|
| 449 |
-
|
| 450 |
-
|
| 451 |
-
|
| 452 |
-
|
| 453 |
-
|
| 454 |
-
|
| 455 |
-
|
| 456 |
-
|
| 457 |
-
|
| 458 |
-
|
| 459 |
-
|
| 460 |
-
|
| 461 |
-
|
| 462 |
-
|
| 463 |
-
|
| 464 |
-
|
| 465 |
-
|
| 466 |
-
|
| 467 |
-
|
| 468 |
-
|
| 469 |
-
|
| 470 |
-
|
| 471 |
-
|
| 472 |
-
|
| 473 |
-
|
| 474 |
-
|
| 475 |
-
|
| 476 |
-
|
| 477 |
-
|
| 478 |
-
|
| 479 |
-
|
| 480 |
-
|
| 481 |
-
|
| 482 |
-
|
| 483 |
-
|
| 484 |
-
|
| 485 |
-
|
| 486 |
-
|
| 487 |
-
|
| 488 |
-
|
| 489 |
-
|
| 490 |
-
|
| 491 |
-
|
| 492 |
-
|
| 493 |
-
|
| 494 |
-
|
| 495 |
-
|
| 496 |
-
|
| 497 |
-
|
| 498 |
-
|
| 499 |
-
|
| 500 |
-
|
| 501 |
-
|
| 502 |
-
|
| 503 |
-
|
| 504 |
-
|
| 505 |
-
|
| 506 |
-
|
| 507 |
-
|
| 508 |
-
|
| 509 |
-
|
| 510 |
-
|
| 511 |
-
|
| 512 |
-
|
| 513 |
-
|
| 514 |
-
|
| 515 |
-
|
| 516 |
-
|
| 517 |
-
|
| 518 |
-
|
| 519 |
-
|
| 520 |
-
|
| 521 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
*/
|
| 5 |
global $post;
|
| 6 |
$post_id = $post->ID;
|
| 7 |
+
$meta = get_post_meta( $post_id );
|
| 8 |
|
| 9 |
// Load up all post meta data
|
| 10 |
+
$ecwd_event_venue = get_post_meta( $post->ID, ECWD_PLUGIN_PREFIX . '_event_venue', true );
|
| 11 |
+
$ecwd_event_location = get_post_meta( $post->ID, ECWD_PLUGIN_PREFIX . '_event_location', true );
|
| 12 |
+
$ecwd_event_show_map = get_post_meta( $post->ID, ECWD_PLUGIN_PREFIX . '_event_show_map', true );
|
| 13 |
+
if ( $ecwd_event_show_map == '' ) {
|
| 14 |
+
$ecwd_event_show_map = 1;
|
| 15 |
}
|
| 16 |
+
$ecwd_lat_long = get_post_meta( $post->ID, ECWD_PLUGIN_PREFIX . '_lat_long', true );
|
| 17 |
+
$ecwd_event_date_from = get_post_meta( $post->ID, ECWD_PLUGIN_PREFIX . '_event_date_from', true );
|
| 18 |
+
$ecwd_event_date_to = get_post_meta( $post->ID, ECWD_PLUGIN_PREFIX . '_event_date_to', true );
|
| 19 |
+
$ecwd_event_url = get_post_meta( $post->ID, ECWD_PLUGIN_PREFIX . '_event_url', true );
|
| 20 |
+
$ecwd_event_repeat_event = get_post_meta( $post->ID, ECWD_PLUGIN_PREFIX . '_event_repeat_event', true );
|
| 21 |
+
$ecwd_event_repeat_how = get_post_meta( $post->ID, ECWD_PLUGIN_PREFIX . '_event_repeat_how', true );
|
| 22 |
+
$ecwd_event_repeat_repeat_until = get_post_meta( $post->ID, ECWD_PLUGIN_PREFIX . '_event_repeat_repeat_until', true );
|
| 23 |
+
$ecwd_all_day_event = get_post_meta( $post->ID, ECWD_PLUGIN_PREFIX . '_all_day_event', true );
|
| 24 |
+
$ecwd_event_day = get_post_meta( $post->ID, ECWD_PLUGIN_PREFIX . '_event_day', true );
|
| 25 |
+
$ecwd_map_zoom = get_post_meta( $post->ID, ECWD_PLUGIN_PREFIX . '_map_zoom', true );
|
| 26 |
+
if ( ! is_array( $ecwd_event_day ) ) {
|
| 27 |
+
$ecwd_event_day = array();
|
| 28 |
}
|
| 29 |
+
$ecwd_event_repeat_month_on_days = get_post_meta( $post->ID, ECWD_PLUGIN_PREFIX . '_event_repeat_month_on_days', true );
|
| 30 |
+
if ( ! $ecwd_event_repeat_month_on_days ) {
|
| 31 |
+
$ecwd_event_repeat_month_on_days = 1;
|
| 32 |
+
}
|
| 33 |
+
$ecwd_event_repeat_year_on_days = get_post_meta( $post->ID, ECWD_PLUGIN_PREFIX . '_event_repeat_year_on_days', true );
|
| 34 |
|
| 35 |
+
if ( ! $ecwd_event_repeat_year_on_days ) {
|
| 36 |
+
$ecwd_event_repeat_year_on_days = 1;
|
| 37 |
+
}
|
| 38 |
+
$ecwd_event_repeat_on_the_m = get_post_meta( $post->ID, ECWD_PLUGIN_PREFIX . '_event_repeat_on_the_m', true );
|
| 39 |
+
$ecwd_event_repeat_on_the_y = get_post_meta( $post->ID, ECWD_PLUGIN_PREFIX . '_event_repeat_on_the_y', true );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
|
| 42 |
+
$ecwd_monthly_list_monthly = get_post_meta( $post->ID, ECWD_PLUGIN_PREFIX . '_monthly_list_monthly', true );
|
| 43 |
+
$ecwd_monthly_week_monthly = get_post_meta( $post->ID, ECWD_PLUGIN_PREFIX . '_monthly_week_monthly', true );
|
| 44 |
|
| 45 |
+
$ecwd_monthly_list_yearly = get_post_meta( $post->ID, ECWD_PLUGIN_PREFIX . '_monthly_list_yearly', true );
|
| 46 |
+
$ecwd_monthly_week_yearly = get_post_meta( $post->ID, ECWD_PLUGIN_PREFIX . '_monthly_week_yearly', true );
|
| 47 |
+
$ecwd_event_year_month = get_post_meta( $post->ID, ECWD_PLUGIN_PREFIX . '_event_year_month', true );
|
| 48 |
+
$ecwd_event_video = get_post_meta( $post->ID, ECWD_PLUGIN_PREFIX . '_event_video', true );
|
| 49 |
?>
|
| 50 |
|
| 51 |
|
| 52 |
<table class="form-table">
|
| 53 |
+
<tr>
|
| 54 |
+
<th scope="row"><?php _e( 'Event Venue', 'ecwd' ); ?></th>
|
| 55 |
+
<td>
|
| 56 |
+
<?php if ( ! empty( $venues ) ) { ?>
|
| 57 |
+
<select name="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_venue"
|
| 58 |
+
id="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_venue">
|
| 59 |
+
<option value="0">None</option>
|
| 60 |
+
<?php
|
| 61 |
+
foreach ( $venues as $venue ) {
|
| 62 |
+
$venue_location = get_post_meta( $venue->ID, ECWD_PLUGIN_PREFIX . '_venue_location', true );
|
| 63 |
+
$venue_lat_long = get_post_meta( $venue->ID, ECWD_PLUGIN_PREFIX . '_venue_lat_long', true );
|
| 64 |
+
$venue_zoom = get_post_meta( $venue->ID, ECWD_PLUGIN_PREFIX . '_map_zoom', true );
|
| 65 |
+
?>
|
| 66 |
+
<option value="<?php echo $venue->ID; ?>" data-location="<?php echo $venue_location; ?>"
|
| 67 |
+
data-marker="<?php echo $venue_lat_long; ?>"
|
| 68 |
+
data-zoom="<?php echo $venue_zoom; ?>" <?php echo selected( $venue->ID, $ecwd_event_venue ); ?>><?php echo $venue->post_title; ?></option>
|
| 69 |
+
<?php
|
| 70 |
+
}
|
| 71 |
+
?>
|
| 72 |
+
</select>
|
| 73 |
+
<p class="description">
|
| 74 |
+
<?php _e( 'Select the venue of the event.', 'ecwd' ); ?>
|
| 75 |
+
</p>
|
| 76 |
+
<?php
|
| 77 |
+
} else {
|
| 78 |
+
?><?php _e( 'There is no venue added yet', 'ecwd' ); ?><?php
|
| 79 |
+
} ?>
|
| 80 |
+
</td>
|
| 81 |
+
</tr>
|
| 82 |
+
<tr>
|
| 83 |
+
<th scope="row"><?php _e( 'Event Location', 'ecwd' ); ?></th>
|
| 84 |
+
<td>
|
| 85 |
+
<input type="text" name="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_location"
|
| 86 |
+
id="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_location"
|
| 87 |
+
value="<?php echo $ecwd_event_location; ?>" size="70"/>
|
| 88 |
+
|
| 89 |
+
<div class="google_map">
|
| 90 |
+
<?php
|
| 91 |
+
if ( ! $ecwd_map_zoom ) {
|
| 92 |
+
$ecwd_map_zoom = 17;
|
| 93 |
+
}
|
| 94 |
+
$ecwd_marker = 1;
|
| 95 |
+
if ( ! $ecwd_lat_long ) {
|
| 96 |
+
$ecwd_map_zoom = 9;
|
| 97 |
+
$ecwd_lat_long = $lat . ',' . $long;
|
| 98 |
+
$ecwd_marker = 0;
|
| 99 |
+
}
|
| 100 |
+
?>
|
| 101 |
+
<input type="hidden" name="<?php echo ECWD_PLUGIN_PREFIX; ?>_lat_long"
|
| 102 |
+
id="<?php echo ECWD_PLUGIN_PREFIX; ?>_lat_long"
|
| 103 |
+
value="<?php echo $ecwd_lat_long; ?>"/>
|
| 104 |
+
<input type="hidden" name="<?php echo ECWD_PLUGIN_PREFIX; ?>_marker"
|
| 105 |
+
id="<?php echo ECWD_PLUGIN_PREFIX; ?>_marker" value="<?php echo $ecwd_marker; ?>"/>
|
| 106 |
+
<input type="hidden" name="<?php echo ECWD_PLUGIN_PREFIX; ?>_map_zoom"
|
| 107 |
+
id="<?php echo ECWD_PLUGIN_PREFIX; ?>_map_zoom"
|
| 108 |
+
value="<?php echo $ecwd_map_zoom; ?>"/>
|
| 109 |
+
|
| 110 |
+
<div id="map-canvas" style="width: 100%; height: 100%; min-height: 300px;">
|
| 111 |
+
|
| 112 |
+
</div>
|
| 113 |
+
</div>
|
| 114 |
+
<p class="description">
|
| 115 |
+
<?php _e( 'If venue is not specified you can fill in the address of the event location or click on the map to drag and drop the marker to the event location.', 'ecwd' ); ?>
|
| 116 |
+
</p>
|
| 117 |
+
</td>
|
| 118 |
+
</tr>
|
| 119 |
+
<tr>
|
| 120 |
+
<th scope="row"><?php _e( 'Show map in event page', 'ecwd' ); ?></th>
|
| 121 |
+
<td>
|
| 122 |
+
<div class="checkbox-div">
|
| 123 |
+
<input type='checkbox' class='ecwd_event_show_map' id='ecwd_event_show_map'
|
| 124 |
+
name='ecwd_event_show_map' value="1" <?php checked( $ecwd_event_show_map, '1' ); ?>/>
|
| 125 |
+
<label for="ecwd_event_show_map"></label>
|
| 126 |
+
</div>
|
| 127 |
+
</td>
|
| 128 |
+
</tr>
|
| 129 |
+
<tr>
|
| 130 |
+
<th scope="row"><?php _e( 'Event Dates', 'ecwd' ); ?></th>
|
| 131 |
+
<td>
|
| 132 |
+
<?php _e( 'From', 'ecwd' ); ?>
|
| 133 |
+
<input type="text" name="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_date_from"
|
| 134 |
+
id="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_date_from"
|
| 135 |
+
class="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_date"
|
| 136 |
+
value="<?php echo $ecwd_event_date_from; ?>"/>
|
| 137 |
+
<!-- <p class="description">
|
| 138 |
+
</p>-->
|
| 139 |
+
<?php _e( 'To', 'ecwd' ); ?>
|
| 140 |
+
<input type="text" name="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_date_to"
|
| 141 |
+
id="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_date_to"
|
| 142 |
+
class="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_date"
|
| 143 |
+
value="<?php echo $ecwd_event_date_to; ?>"/>
|
| 144 |
+
|
| 145 |
+
<!-- <div id="-->
|
| 146 |
+
<?php //echo ECWD_PLUGIN_PREFIX; ?><!--_event_pickup_date" class="button" value="">Days</div>-->
|
| 147 |
+
<!-- <div id="-->
|
| 148 |
+
<?php //echo ECWD_PLUGIN_PREFIX; ?><!--_event_pickup_time" class="button" value="">Time</div>-->
|
| 149 |
+
<div class="checkbox-div">
|
| 150 |
+
<input type='checkbox' class='ecwd_all_day_event' id='ecwd_all_day_event'
|
| 151 |
+
name='ecwd_all_day_event' value="1" <?php checked( $ecwd_all_day_event, '1' ); ?>/>
|
| 152 |
+
<label for="ecwd_all_day_event"></label>
|
| 153 |
+
</div>
|
| 154 |
+
<label for="ecwd_all_day_event">All day</label>
|
| 155 |
+
<!--<p class="description">
|
| 156 |
+
</p>-->
|
| 157 |
+
|
| 158 |
+
|
| 159 |
+
<p class="description">
|
| 160 |
+
<?php _e( 'Fill in the starting and ending dates and time of the event. If the event lasts entire day, check the box on the right.', 'ecwd' ); ?>
|
| 161 |
+
</p>
|
| 162 |
+
|
| 163 |
+
</td>
|
| 164 |
+
</tr>
|
| 165 |
+
<?php if ( $is_ !== false ) { ?>
|
| 166 |
+
<tr id="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeats_div">
|
| 167 |
+
<th scope="row"><label class="repeat_format"><?php _e( 'Repeat rate', 'ecwd' ); ?></label></th>
|
| 168 |
+
<td>
|
| 169 |
+
<div class="<?php echo ECWD_PLUGIN_PREFIX; ?>_repeat">
|
| 170 |
+
<div class="<?php echo ECWD_PLUGIN_PREFIX; ?>_repeat_type_list">
|
| 171 |
+
<!-- dont repeat -->
|
| 172 |
+
<div class="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_event_div">
|
| 173 |
+
<p>
|
| 174 |
+
<label>
|
| 175 |
+
<input checked='checked'
|
| 176 |
+
id="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_dont_repeat_radio"
|
| 177 |
+
class="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_event_radio"
|
| 178 |
+
type="radio"
|
| 179 |
+
name="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_event"
|
| 180 |
+
value="no_repeat" <?php checked( $ecwd_event_repeat_event, 'no_repeat' ) ?>/>
|
| 181 |
+
<?php _e( 'Don\'t repeat', 'ecwd' ); ?>
|
| 182 |
+
</label>
|
| 183 |
+
</p>
|
| 184 |
+
</div>
|
| 185 |
+
<!-- daily -->
|
| 186 |
+
<div class="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_event_div">
|
| 187 |
+
<label>
|
| 188 |
+
<input class="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_event_radio" type="radio"
|
| 189 |
+
name="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_event"
|
| 190 |
+
value="daily" <?php checked( $ecwd_event_repeat_event, 'daily' ) ?>/>
|
| 191 |
+
<?php _e( 'Daily', 'ecwd' ); ?>
|
| 192 |
+
</label>
|
| 193 |
+
|
| 194 |
+
|
| 195 |
+
</div>
|
| 196 |
+
|
| 197 |
+
<!-- weekly -->
|
| 198 |
+
<div class="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_event_div">
|
| 199 |
+
<label>
|
| 200 |
+
<input class="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_event_radio" type="radio"
|
| 201 |
+
name="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_event"
|
| 202 |
+
value="weekly" <?php checked( $ecwd_event_repeat_event, 'weekly' ) ?>/>
|
| 203 |
+
<?php _e( 'Weekly', 'ecwd' ); ?>
|
| 204 |
+
</label>
|
| 205 |
+
|
| 206 |
+
<p class="description">
|
| 207 |
+
|
| 208 |
+
</p>
|
| 209 |
+
</div>
|
| 210 |
+
|
| 211 |
+
<!-- monthly -->
|
| 212 |
+
<div class="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_event_div">
|
| 213 |
+
<label>
|
| 214 |
+
<input class="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_event_radio"
|
| 215 |
+
id="<?php echo ECWD_PLUGIN_PREFIX; ?>_repeat_event_monthly" type="radio"
|
| 216 |
+
name="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_event"
|
| 217 |
+
value="monthly" <?php checked( $ecwd_event_repeat_event, 'monthly' ) ?> />
|
| 218 |
+
<?php _e( 'Monthly', 'ecwd' ); ?>
|
| 219 |
+
</label>
|
| 220 |
+
|
| 221 |
+
<p class="description"></p>
|
| 222 |
+
|
| 223 |
+
|
| 224 |
+
</div>
|
| 225 |
+
<!-- yearly -->
|
| 226 |
+
<div class="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_event_div">
|
| 227 |
+
<label>
|
| 228 |
+
<input class="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_event_radio" type="radio"
|
| 229 |
+
name="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_event"
|
| 230 |
+
value="yearly" <?php checked( $ecwd_event_repeat_event, 'yearly' ) ?>/>
|
| 231 |
+
<?php _e( 'Yearly', 'ecwd' ); ?>
|
| 232 |
+
</label>
|
| 233 |
+
</div>
|
| 234 |
+
</div>
|
| 235 |
+
<div class="<?php echo ECWD_PLUGIN_PREFIX; ?>_repeat_advanced ">
|
| 236 |
+
<div id="ecwd_daily" class="hidden">
|
| 237 |
+
<label class="repeat_format"><?php _e( 'Repeat every', 'ecwd' ); ?></label>
|
| 238 |
+
<input type="text" name="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_how"
|
| 239 |
+
value="<?php echo $ecwd_event_repeat_how ?>"/>
|
| 240 |
|
| 241 |
<span id="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_how_label_daily"
|
| 242 |
class="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_how_label hidden">
|
| 243 |
+
<?php _e( 'day(s)', 'ecwd' ); ?>
|
| 244 |
</span>
|
| 245 |
|
| 246 |
<span id="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_how_label_weekly"
|
| 247 |
class=" <?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_how_label hidden">
|
| 248 |
+
<?php _e( 'weeks(s)', 'ecwd' ); ?>
|
| 249 |
+
<?php _e( 'on ', 'ecwd' ); ?>:
|
| 250 |
</span>
|
| 251 |
<span id="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_how_label_monthly"
|
| 252 |
class=" <?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_how_label hidden">
|
| 253 |
+
<?php _e( 'month(s)', 'ecwd' ); ?>
|
| 254 |
</span>
|
| 255 |
<span id="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_how_label_yearly"
|
| 256 |
class=" <?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_how_label hidden">
|
| 257 |
+
<?php _e( 'year(s) in ', 'ecwd' ); ?>
|
| 258 |
</span>
|
| 259 |
+
</div>
|
| 260 |
+
|
| 261 |
+
<div id="ecwd_weekly" class="hidden">
|
| 262 |
+
<div id="<?php echo ECWD_PLUGIN_PREFIX; ?>_choose_day_container">
|
| 263 |
+
<div>
|
| 264 |
+
<!-- each day is a field -->
|
| 265 |
+
<div class="checkbox-div">
|
| 266 |
+
<input type='checkbox' name="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_day[]"
|
| 267 |
+
id="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_monday"
|
| 268 |
+
value='monday' <?php if ( in_array( 'monday', $ecwd_event_day ) ) {
|
| 269 |
+
echo 'checked="checked"';
|
| 270 |
+
} ?> />
|
| 271 |
+
<label for="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_monday"></label>
|
| 272 |
+
</div>
|
| 273 |
+
<label
|
| 274 |
+
for="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_monday"><?php _e( 'Monday', 'ecwd' ); ?></label>
|
| 275 |
+
</div>
|
| 276 |
+
<div>
|
| 277 |
+
<div class="checkbox-div">
|
| 278 |
+
<input type='checkbox' name="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_day[]"
|
| 279 |
+
id="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_tuesday"
|
| 280 |
+
value='tuesday' <?php if ( in_array( 'tuesday', $ecwd_event_day ) ) {
|
| 281 |
+
echo 'checked="checked"';
|
| 282 |
+
} ?> />
|
| 283 |
+
<label for="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_tuesday"></label>
|
| 284 |
+
</div>
|
| 285 |
+
<label
|
| 286 |
+
for="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_tuesday"><?php _e( 'Tuesday', 'ecwd' ); ?></label>
|
| 287 |
+
</div>
|
| 288 |
+
|
| 289 |
+
<div>
|
| 290 |
+
<div class="checkbox-div">
|
| 291 |
+
<input type='checkbox' name="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_day[]"
|
| 292 |
+
id="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_wednesday"
|
| 293 |
+
value='wednesday' <?php if ( in_array( 'wednesday', $ecwd_event_day ) ) {
|
| 294 |
+
echo 'checked="checked"';
|
| 295 |
+
} ?> />
|
| 296 |
+
<label for="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_wednesday"></label>
|
| 297 |
+
</div>
|
| 298 |
+
<label
|
| 299 |
+
for="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_wednesday"><?php _e( 'Wednesday', 'ecwd' ); ?></label>
|
| 300 |
+
</div>
|
| 301 |
+
<div>
|
| 302 |
+
<div class="checkbox-div">
|
| 303 |
+
<input type='checkbox' name="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_day[]"
|
| 304 |
+
id="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_thursday"
|
| 305 |
+
value='thursday' <?php if ( in_array( 'thursday', $ecwd_event_day ) ) {
|
| 306 |
+
echo 'checked="checked"';
|
| 307 |
+
} ?> />
|
| 308 |
+
<label for="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_thursday"></label>
|
| 309 |
+
</div>
|
| 310 |
+
<label
|
| 311 |
+
for="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_thursday"><?php _e( 'Thursday', 'ecwd' ); ?></label>
|
| 312 |
+
</div>
|
| 313 |
+
<div>
|
| 314 |
+
<div class="checkbox-div">
|
| 315 |
+
<input type='checkbox' name="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_day[]"
|
| 316 |
+
id="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_friday"
|
| 317 |
+
value='friday' <?php if ( in_array( 'friday', $ecwd_event_day ) ) {
|
| 318 |
+
echo 'checked="checked"';
|
| 319 |
+
} ?> />
|
| 320 |
+
<label for="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_friday"></label>
|
| 321 |
+
</div>
|
| 322 |
+
<label
|
| 323 |
+
for="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_friday"><?php _e( 'Friday', 'ecwd' ); ?></label>
|
| 324 |
+
</div>
|
| 325 |
+
<div>
|
| 326 |
+
<div class="checkbox-div">
|
| 327 |
+
<input type='checkbox' name="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_day[]"
|
| 328 |
+
id="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_saturday"
|
| 329 |
+
value='saturday' <?php if ( in_array( 'saturday', $ecwd_event_day ) ) {
|
| 330 |
+
echo 'checked="checked"';
|
| 331 |
+
} ?> />
|
| 332 |
+
<label for="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_saturday"></label>
|
| 333 |
+
</div>
|
| 334 |
+
<label
|
| 335 |
+
for="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_saturday"><?php _e( 'Saturday', 'ecwd' ); ?></label>
|
| 336 |
+
</div>
|
| 337 |
+
<div>
|
| 338 |
+
<div class="checkbox-div">
|
| 339 |
+
<input type='checkbox' name="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_day[]"
|
| 340 |
+
id="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_sunday"
|
| 341 |
+
value='sunday' <?php if ( in_array( 'sunday', $ecwd_event_day ) ) {
|
| 342 |
+
echo 'checked="checked"';
|
| 343 |
+
} ?> />
|
| 344 |
+
<label for="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_sunday"></label>
|
| 345 |
+
</div>
|
| 346 |
+
<label
|
| 347 |
+
for="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_sunday"><?php _e( 'Sunday', 'ecwd' ); ?></label>
|
| 348 |
+
</div>
|
| 349 |
+
</div>
|
| 350 |
+
</div>
|
| 351 |
+
<div id="ecwd_monthly" class="hidden">
|
| 352 |
+
<div>
|
| 353 |
+
|
| 354 |
+
|
| 355 |
+
<input type='radio' value="1" <?php checked( $ecwd_event_repeat_month_on_days, '1' ) ?>
|
| 356 |
+
name="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_month_on_days"
|
| 357 |
+
id="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_month_on_days_1"
|
| 358 |
+
class="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_choose"/>
|
| 359 |
+
<label class="repeat_format_monthly"
|
| 360 |
+
for="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_month_on_days_1"><?php _e( 'On the same day', 'ecwd' ); ?></label>
|
| 361 |
+
<!-- <input type="text" name="-->
|
| 362 |
+
<?php //echo ECWD_PLUGIN_PREFIX; ?><!--_event_repeat_on_the_m"-->
|
| 363 |
+
<!-- class='-->
|
| 364 |
+
<?php //echo ECWD_PLUGIN_PREFIX; ?><!--_event_repeat_on_the'-->
|
| 365 |
+
<!-- value="-->
|
| 366 |
+
<?php //echo $ecwd_event_repeat_on_the_m; ?><!--"/>-->
|
| 367 |
+
</div>
|
| 368 |
+
|
| 369 |
+
<div class="ecwd_event_repeat_event_div">
|
| 370 |
+
|
| 371 |
+
<input type='radio' value="2" <?php checked( $ecwd_event_repeat_month_on_days, '2' ) ?>
|
| 372 |
+
name="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_month_on_days"
|
| 373 |
+
id="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_month_on_days_2"
|
| 374 |
+
class="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_list_radio"/>
|
| 375 |
+
|
| 376 |
+
<label class="repeat_format_monthly"
|
| 377 |
+
for="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_month_on_days_2"><?php _e( 'On the: ', 'ecwd' ); ?></label>
|
| 378 |
+
<select name="<?php echo ECWD_PLUGIN_PREFIX; ?>_monthly_list_monthly"
|
| 379 |
+
class="select_to_enable_disable">
|
| 380 |
+
<option <?php selected( $ecwd_monthly_list_monthly, 'first' ); ?>
|
| 381 |
+
value="first"><?php _e( 'First', 'ecwd' ); ?> </option>
|
| 382 |
+
<option <?php selected( $ecwd_monthly_list_monthly, 'second' ); ?>
|
| 383 |
+
value="second"><?php _e( 'Second', 'ecwd' ); ?></option>
|
| 384 |
+
<option <?php selected( $ecwd_monthly_list_monthly, 'third' ); ?>
|
| 385 |
+
value="third"><?php _e( 'Third', 'ecwd' ); ?></option>
|
| 386 |
+
<option <?php selected( $ecwd_monthly_list_monthly, 'fourth' ); ?>
|
| 387 |
+
value="fourth"><?php _e( 'Fourth', 'ecwd' ); ?></option>
|
| 388 |
+
<option <?php selected( $ecwd_monthly_list_monthly, 'last' ); ?>
|
| 389 |
+
value="last"><?php _e( 'Last', 'ecwd' ); ?></option>
|
| 390 |
+
</select>
|
| 391 |
+
<select name="<?php echo ECWD_PLUGIN_PREFIX; ?>_monthly_week_monthly"
|
| 392 |
+
class="select_to_enable_disable">
|
| 393 |
+
<option <?php selected( $ecwd_monthly_week_monthly, 'monday' ); ?>
|
| 394 |
+
value="monday"><?php _e( 'Monday', 'ecwd' ); ?></option>
|
| 395 |
+
<option <?php selected( $ecwd_monthly_week_monthly, 'tuesday' ); ?>
|
| 396 |
+
value="tuesday"><?php _e( 'Tuesday', 'ecwd' ); ?></option>
|
| 397 |
+
<option <?php selected( $ecwd_monthly_week_monthly, 'wednesday' ); ?>
|
| 398 |
+
value="wednesday"><?php _e( 'Wednesday', 'ecwd' ); ?></option>
|
| 399 |
+
<option <?php selected( $ecwd_monthly_week_monthly, 'thursday' ); ?>
|
| 400 |
+
value="thursday"><?php _e( 'Thursday', 'ecwd' ); ?></option>
|
| 401 |
+
<option <?php selected( $ecwd_monthly_week_monthly, 'friday' ); ?>
|
| 402 |
+
value="friday"><?php _e( 'Friday', 'ecwd' ); ?></option>
|
| 403 |
+
<option <?php selected( $ecwd_monthly_week_monthly, 'saturday' ); ?>
|
| 404 |
+
value="saturday"><?php _e( 'Saturday', 'ecwd' ); ?></option>
|
| 405 |
+
<option <?php selected( $ecwd_monthly_week_monthly, 'sunday' ); ?>
|
| 406 |
+
value="sunday"><?php _e( 'Sunday', 'ecwd' ); ?></option>
|
| 407 |
+
</select>
|
| 408 |
+
</div>
|
| 409 |
+
</div>
|
| 410 |
+
<div id="ecwd_yearly" class="hidden">
|
| 411 |
+
<select name="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_year_month"
|
| 412 |
+
id="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_year_month" disabled="disabled"
|
| 413 |
+
class="select_to_enable_disable">
|
| 414 |
+
<option <?php selected( $ecwd_event_year_month, '1' ); ?>
|
| 415 |
+
value="1"><?php _e( 'January', 'ecwd' ); ?></option>
|
| 416 |
+
<option <?php selected( $ecwd_event_year_month, '2' ); ?>
|
| 417 |
+
value="2"><?php _e( 'February', 'ecwd' ); ?></option>
|
| 418 |
+
<option <?php selected( $ecwd_event_year_month, '3' ); ?>
|
| 419 |
+
value="3"><?php _e( 'March', 'ecwd' ); ?></option>
|
| 420 |
+
<option <?php selected( $ecwd_event_year_month, '4' ); ?>
|
| 421 |
+
value="4"><?php _e( 'April', 'ecwd' ); ?></option>
|
| 422 |
+
<option <?php selected( $ecwd_event_year_month, '5' ); ?>
|
| 423 |
+
value="5"><?php _e( 'May', 'ecwd' ); ?></option>
|
| 424 |
+
<option <?php selected( $ecwd_event_year_month, '6' ); ?>
|
| 425 |
+
value="6"><?php _e( 'June', 'ecwd' ); ?></option>
|
| 426 |
+
<option <?php selected( $ecwd_event_year_month, '7' ); ?>
|
| 427 |
+
value="7"><?php _e( 'July', 'ecwd' ); ?></option>
|
| 428 |
+
<option <?php selected( $ecwd_event_year_month, '8' ); ?>
|
| 429 |
+
value="8"><?php _e( 'August', 'ecwd' ); ?></option>
|
| 430 |
+
<option <?php selected( $ecwd_event_year_month, '9' ); ?>
|
| 431 |
+
value="9"><?php _e( 'September', 'ecwd' ); ?></option>
|
| 432 |
+
<option <?php selected( $ecwd_event_year_month, '10' ); ?>
|
| 433 |
+
value="10"><?php _e( 'October', 'ecwd' ); ?></option>
|
| 434 |
+
<option <?php selected( $ecwd_event_year_month, '11' ); ?>
|
| 435 |
+
value="11"><?php _e( 'November', 'ecwd' ); ?></option>
|
| 436 |
+
<option <?php selected( $ecwd_event_year_month, '12' ); ?>
|
| 437 |
+
value="12"><?php _e( 'December', 'ecwd' ); ?></option>
|
| 438 |
+
</select>
|
| 439 |
+
|
| 440 |
+
<div class="ecwd_event_repeat_event_div">
|
| 441 |
+
<input type='radio' value="1" <?php checked( $ecwd_event_repeat_year_on_days, '1' ) ?>
|
| 442 |
+
name="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_year_on_days"
|
| 443 |
+
id="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_year_on_days_1"
|
| 444 |
+
class="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_choose"/>
|
| 445 |
+
<label class="repeat_format_monthly"
|
| 446 |
+
for="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_year_on_days_1"><?php _e( 'On the same day', 'ecwd' ); ?>
|
| 447 |
+
:</label>
|
| 448 |
+
<!-- <input type="text" name="-->
|
| 449 |
+
<?php //echo ECWD_PLUGIN_PREFIX; ?><!--_event_repeat_on_the_m"-->
|
| 450 |
+
<!-- class='-->
|
| 451 |
+
<?php //echo ECWD_PLUGIN_PREFIX; ?><!--_event_repeat_on_the'-->
|
| 452 |
+
<!-- value="-->
|
| 453 |
+
<?php //echo $ecwd_event_repeat_on_the_m; ?><!--"/>-->
|
| 454 |
+
</div>
|
| 455 |
+
|
| 456 |
+
<div class="ecwd_event_repeat_event_div">
|
| 457 |
+
<input type='radio' value="2" <?php checked( $ecwd_event_repeat_year_on_days, '2' ) ?>
|
| 458 |
+
name="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_year_on_days"
|
| 459 |
+
id="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_year_on_days_2"
|
| 460 |
+
class="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_list_radio"/>
|
| 461 |
+
|
| 462 |
+
<label class="repeat_format_monthly"
|
| 463 |
+
for="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_year_on_days_2"><?php _e( 'On the: ', 'ecwd' ); ?></label>
|
| 464 |
+
<select name="<?php echo ECWD_PLUGIN_PREFIX; ?>_monthly_list_yearly"
|
| 465 |
+
class="select_to_enable_disable">
|
| 466 |
+
<option <?php selected( $ecwd_monthly_list_yearly, 'first' ); ?>
|
| 467 |
+
value="first"> <?php _e( 'First', 'ecwd' ); ?> </option>
|
| 468 |
+
<option <?php selected( $ecwd_monthly_list_yearly, 'second' ); ?>
|
| 469 |
+
value="second"><?php _e( 'Second', 'ecwd' ); ?></option>
|
| 470 |
+
<option <?php selected( $ecwd_monthly_list_yearly, 'third' ); ?>
|
| 471 |
+
value="third"><?php _e( 'Third', 'ecwd' ); ?></option>
|
| 472 |
+
<option <?php selected( $ecwd_monthly_list_yearly, 'fourth' ); ?>
|
| 473 |
+
value="fourth"><?php _e( 'Fourth', 'ecwd' ); ?></option>
|
| 474 |
+
<option <?php selected( $ecwd_monthly_list_yearly, 'last' ); ?>
|
| 475 |
+
value="last"><?php _e( 'Last', 'ecwd' ); ?></option>
|
| 476 |
+
</select>
|
| 477 |
+
<select name="<?php echo ECWD_PLUGIN_PREFIX; ?>_monthly_week_yearly"
|
| 478 |
+
class="select_to_enable_disable">
|
| 479 |
+
<option <?php selected( $ecwd_monthly_week_yearly, 'monday' ); ?>
|
| 480 |
+
value="monday"><?php _e( 'Monday', 'ecwd' ); ?></option>
|
| 481 |
+
<option <?php selected( $ecwd_monthly_week_yearly, 'tuesday' ); ?>
|
| 482 |
+
value="tuesday"><?php _e( 'Tuesday', 'ecwd' ); ?></option>
|
| 483 |
+
<option <?php selected( $ecwd_monthly_week_yearly, 'wednesday' ); ?>
|
| 484 |
+
value="wednesday"><?php _e( 'Wednesday', 'ecwd' ); ?></option>
|
| 485 |
+
<option <?php selected( $ecwd_monthly_week_yearly, 'thursday' ); ?>
|
| 486 |
+
value="thursday"><?php _e( 'Thursday', 'ecwd' ); ?></option>
|
| 487 |
+
<option <?php selected( $ecwd_monthly_week_yearly, 'friday' ); ?>
|
| 488 |
+
value="friday"><?php _e( 'Friday', 'ecwd' ); ?></option>
|
| 489 |
+
<option <?php selected( $ecwd_monthly_week_yearly, 'saturday' ); ?>
|
| 490 |
+
value="saturday"><?php _e( 'Saturday', 'ecwd' ); ?></option>
|
| 491 |
+
<option <?php selected( $ecwd_monthly_week_yearly, 'sunday' ); ?>
|
| 492 |
+
value="sunday"><?php _e( 'Sunday', 'ecwd' ); ?></option>
|
| 493 |
+
</select>
|
| 494 |
+
</div>
|
| 495 |
+
|
| 496 |
+
</div>
|
| 497 |
+
<!-- repeat until -->
|
| 498 |
+
<div class="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_event_div">
|
| 499 |
+
<p class="description">
|
| 500 |
+
|
| 501 |
+
<div id="ecwd_repeat_until" class="hidden">
|
| 502 |
+
<label class="repeat_format"><?php _e( 'Repeat until', 'ecwd' ); ?></label>
|
| 503 |
+
<input id='<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_until_input' type="text"
|
| 504 |
+
name="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_repeat_repeat_until"
|
| 505 |
+
value="<?php echo $ecwd_event_repeat_repeat_until; ?>"/>
|
| 506 |
+
</div>
|
| 507 |
+
</p>
|
| 508 |
+
</div>
|
| 509 |
+
|
| 510 |
+
</div>
|
| 511 |
+
<div class="clear"></div>
|
| 512 |
+
</div>
|
| 513 |
+
<p class="description">
|
| 514 |
+
<?php _e( 'Specify the repeating rate of the event.', 'ecwd' ); ?>
|
| 515 |
+
</p>
|
| 516 |
+
</td>
|
| 517 |
+
</tr>
|
| 518 |
+
<?php }else{?>
|
| 519 |
+
<tr>
|
| 520 |
+
<th scope="row"><label class="repeat_format"><?php _e( 'Repeat rate', 'ecwd' ); ?></label></th>
|
| 521 |
+
<td >
|
| 522 |
+
<a href="https://web-dorado.com/files/fromEventCalendarWD.php" target="_blank" ><?php _e('Upgrade to Pro version', 'ecwd');?></a>
|
| 523 |
+
</td>
|
| 524 |
+
</tr>
|
| 525 |
+
<?php } ?>
|
| 526 |
+
<tr>
|
| 527 |
+
<th scope="row"><?php _e( 'Event URL', 'ecwd' ); ?></th>
|
| 528 |
+
<td>
|
| 529 |
+
<input type="text" name="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_url" value="<?php echo $ecwd_event_url; ?>"
|
| 530 |
+
size="70">
|
| 531 |
+
|
| 532 |
+
<p class="description">
|
| 533 |
+
<?php _e( 'Provide a custom URL which will display event details.', 'ecwd' ); ?>
|
| 534 |
+
</p>
|
| 535 |
+
</td>
|
| 536 |
+
</tr>
|
| 537 |
+
<tr>
|
| 538 |
+
<th scope="row"><?php _e( 'Event Video URL', 'ecwd' ); ?></th>
|
| 539 |
+
<td>
|
| 540 |
+
<input type="text" name="<?php echo ECWD_PLUGIN_PREFIX; ?>_event_video"
|
| 541 |
+
value="<?php echo $ecwd_event_video; ?>" size="70">
|
| 542 |
+
|
| 543 |
+
<p class="description">
|
| 544 |
+
<?php _e( 'Provide Youtube or Vimeo URL of the video to accompany the event.', 'ecwd' ); ?>
|
| 545 |
+
</p>
|
| 546 |
+
</td>
|
| 547 |
+
</tr>
|
| 548 |
+
</table>
|
views/admin/licensing.php
CHANGED
|
@@ -32,8 +32,8 @@ global $ecwd_tabs;
|
|
| 32 |
<span>Google Maps integration</span>
|
| 33 |
<span>Event search</span>
|
| 34 |
<span>Social media integration</span>
|
| 35 |
-
<span>Recurring events</span>
|
| 36 |
<span>Month, week, day, list views</span>
|
|
|
|
| 37 |
<span>5 beautiful customizable themes</span>
|
| 38 |
<span>Posterboard view</span>
|
| 39 |
<span>4 days view</span>
|
|
@@ -56,7 +56,7 @@ global $ecwd_tabs;
|
|
| 56 |
<span class="yes"></span>
|
| 57 |
<span class="yes"></span>
|
| 58 |
<span class="yes"></span>
|
| 59 |
-
<span class="
|
| 60 |
<span class="no"></span>
|
| 61 |
<span class="no"></span>
|
| 62 |
<span class="no"></span>
|
| 32 |
<span>Google Maps integration</span>
|
| 33 |
<span>Event search</span>
|
| 34 |
<span>Social media integration</span>
|
|
|
|
| 35 |
<span>Month, week, day, list views</span>
|
| 36 |
+
<span>Recurring events</span>
|
| 37 |
<span>5 beautiful customizable themes</span>
|
| 38 |
<span>Posterboard view</span>
|
| 39 |
<span>4 days view</span>
|
| 56 |
<span class="yes"></span>
|
| 57 |
<span class="yes"></span>
|
| 58 |
<span class="yes"></span>
|
| 59 |
+
<span class="no"></span>
|
| 60 |
<span class="no"></span>
|
| 61 |
<span class="no"></span>
|
| 62 |
<span class="no"></span>
|
views/ecwd-event-content.php
CHANGED
|
@@ -20,7 +20,8 @@ if ( isset( $ecwd_options['time_format'] ) && $ecwd_options['time_format'] != ''
|
|
| 20 |
}
|
| 21 |
$time_format .= (isset( $ecwd_options['time_type'])?' '.$ecwd_options['time_type']: '');
|
| 22 |
if(isset($ecwd_options['time_type']) && $ecwd_options['time_type'] !=''){
|
| 23 |
-
|
|
|
|
| 24 |
}
|
| 25 |
if ( isset( $ecwd_options['social_icons'] ) && $ecwd_options['social_icons'] != '' ) {
|
| 26 |
$ecwd_social_icons = $ecwd_options['social_icons'];
|
| 20 |
}
|
| 21 |
$time_format .= (isset( $ecwd_options['time_type'])?' '.$ecwd_options['time_type']: '');
|
| 22 |
if(isset($ecwd_options['time_type']) && $ecwd_options['time_type'] !=''){
|
| 23 |
+
$time_format = str_replace('H', 'g', $time_format);
|
| 24 |
+
$time_format = str_replace('h', 'g', $time_format);
|
| 25 |
}
|
| 26 |
if ( isset( $ecwd_options['social_icons'] ) && $ecwd_options['social_icons'] != '' ) {
|
| 27 |
$ecwd_social_icons = $ecwd_options['social_icons'];
|
views/ecwd-organizer-content.php
CHANGED
|
@@ -18,7 +18,8 @@ if ( isset( $ecwd_options['time_format'] ) && $ecwd_options['time_format'] != ''
|
|
| 18 |
}
|
| 19 |
$time_format .= (isset( $ecwd_options['time_type'])?' '.$ecwd_options['time_type']: '');
|
| 20 |
if(isset($ecwd_options['time_type']) && $ecwd_options['time_type'] !=''){
|
| 21 |
-
|
|
|
|
| 22 |
}
|
| 23 |
if ( isset( $ecwd_options['social_icons'] ) && $ecwd_options['social_icons'] != '' ) {
|
| 24 |
$ecwd_social_icons = $ecwd_options['social_icons'];
|
| 18 |
}
|
| 19 |
$time_format .= (isset( $ecwd_options['time_type'])?' '.$ecwd_options['time_type']: '');
|
| 20 |
if(isset($ecwd_options['time_type']) && $ecwd_options['time_type'] !=''){
|
| 21 |
+
$time_format = str_replace('H', 'g', $time_format);
|
| 22 |
+
$time_format = str_replace('h', 'g', $time_format);
|
| 23 |
}
|
| 24 |
if ( isset( $ecwd_options['social_icons'] ) && $ecwd_options['social_icons'] != '' ) {
|
| 25 |
$ecwd_social_icons = $ecwd_options['social_icons'];
|
views/ecwd-venue-content.php
CHANGED
|
@@ -14,7 +14,8 @@ if ( isset( $ecwd_options['time_format'] ) && $ecwd_options['time_format'] != ''
|
|
| 14 |
}
|
| 15 |
$time_format .= (isset( $ecwd_options['time_type'])?' '.$ecwd_options['time_type']: '');
|
| 16 |
if(isset($ecwd_options['time_type']) && $ecwd_options['time_type'] !=''){
|
| 17 |
-
|
|
|
|
| 18 |
}
|
| 19 |
if ( isset( $ecwd_options['social_icons'] ) && $ecwd_options['social_icons'] != '' ) {
|
| 20 |
$ecwd_social_icons = $ecwd_options['social_icons'];
|
| 14 |
}
|
| 15 |
$time_format .= (isset( $ecwd_options['time_type'])?' '.$ecwd_options['time_type']: '');
|
| 16 |
if(isset($ecwd_options['time_type']) && $ecwd_options['time_type'] !=''){
|
| 17 |
+
$time_format = str_replace('H', 'g', $time_format);
|
| 18 |
+
$time_format = str_replace('h', 'g', $time_format);
|
| 19 |
}
|
| 20 |
if ( isset( $ecwd_options['social_icons'] ) && $ecwd_options['social_icons'] != '' ) {
|
| 21 |
$ecwd_social_icons = $ecwd_options['social_icons'];
|
views/single-event.php
CHANGED
|
@@ -25,9 +25,9 @@ if (isset($ecwd_options['time_format']) && $ecwd_options['time_format'] != '') {
|
|
| 25 |
}
|
| 26 |
$time_format .= (isset($ecwd_options['time_type']) ? ' ' . $ecwd_options['time_type'] : '');
|
| 27 |
if(isset($ecwd_options['time_type']) && $ecwd_options['time_type'] !='') {
|
| 28 |
-
$time_format = str_replace('H', '
|
|
|
|
| 29 |
}
|
| 30 |
-
|
| 31 |
if (isset($ecwd_options['social_icons']) && $ecwd_options['social_icons'] != '') {
|
| 32 |
$ecwd_social_icons = $ecwd_options['social_icons'];
|
| 33 |
}
|
| 25 |
}
|
| 26 |
$time_format .= (isset($ecwd_options['time_type']) ? ' ' . $ecwd_options['time_type'] : '');
|
| 27 |
if(isset($ecwd_options['time_type']) && $ecwd_options['time_type'] !='') {
|
| 28 |
+
$time_format = str_replace('H', 'g', $time_format);
|
| 29 |
+
$time_format = str_replace('h', 'g', $time_format);
|
| 30 |
}
|
|
|
|
| 31 |
if (isset($ecwd_options['social_icons']) && $ecwd_options['social_icons'] != '') {
|
| 32 |
$ecwd_social_icons = $ecwd_options['social_icons'];
|
| 33 |
}
|
