Version Description
Fixed: Show event url issue Added: "noindex, nofollow" to calendar links Added: Open pop in new tab option Added: Japanese support
Download this release
Release Info
Developer | webdorado |
Plugin | Event Calendar WD – Responsive Event Calendar plugin |
Version | 1.0.20 |
Comparing to | |
See all releases |
Code changes from version 1.0.19 to 1.0.20
- css/calendar.css +1 -1
- css/style.css +52 -10
- ecwd.php +3 -1
- ecwd_admin_class.php +1 -1
- ecwd_class.php +16 -23
- includes/calendar-class.php +44 -201
- includes/register-settings.php +7 -0
- js/scripts.js +271 -261
- languages/ecwd-ja.mo +0 -0
- languages/ecwd-ja.po +379 -0
- readme.txt +7 -1
- views/single-event.php +4 -2
css/calendar.css
CHANGED
@@ -17,7 +17,7 @@ table.cal_blue.ecwd_calendar_container .weekend {
|
|
17 |
}
|
18 |
|
19 |
table.cal_blue.ecwd_calendar_container .normal-day-heading, table.cal_blue.ecwd_calendar_container .weekend-heading{
|
20 |
-
background: #FFFFFF;
|
21 |
}
|
22 |
|
23 |
|
17 |
}
|
18 |
|
19 |
table.cal_blue.ecwd_calendar_container .normal-day-heading, table.cal_blue.ecwd_calendar_container .weekend-heading{
|
20 |
+
background: #FFFFFF !important;
|
21 |
}
|
22 |
|
23 |
|
css/style.css
CHANGED
@@ -7,7 +7,9 @@
|
|
7 |
|
8 |
|
9 |
|
10 |
-
.calendar_main:after, #ecwd-events-content .event-detalis:after
|
|
|
|
|
11 |
content: '';
|
12 |
clear: both;
|
13 |
display:table;
|
@@ -81,14 +83,14 @@
|
|
81 |
max-width: 95%;
|
82 |
}
|
83 |
.cal_blue.ecwd_calendar_container {
|
84 |
-
width:100
|
85 |
-
color:#262e3a;
|
86 |
-
border:none;
|
87 |
-
background:#FFFFFF;
|
88 |
font-family: "Lucida Grande","Lucida Sans Unicode",sans-serif;
|
89 |
-
font-size:10px;
|
90 |
-
table-layout: fixed;
|
91 |
-
margin: 0 0 10px 0;
|
92 |
}
|
93 |
table.cal_blue.ecwd_calendar_container #month_selector {
|
94 |
width:auto;
|
@@ -119,7 +121,7 @@ table.cal_blue.ecwd_calendar_container td {
|
|
119 |
}
|
120 |
|
121 |
table.cal_blue.ecwd_calendar_container .normal-day-heading, table.cal_blue.ecwd_calendar_container .weekend-heading {
|
122 |
-
color:#585858;
|
123 |
font-size:1.6em;
|
124 |
height:1.2em;
|
125 |
line-height:1.2em;
|
@@ -1309,6 +1311,7 @@ div[class^="ecwd-page-"].ecwd_calendar .ecwd-week-date.resp{
|
|
1309 |
.ecwd_calendar .ecwd_list .ecwd-list-img-container img{
|
1310 |
margin-top: 1px;
|
1311 |
max-width: 100%;
|
|
|
1312 |
height: auto;
|
1313 |
}
|
1314 |
|
@@ -1330,6 +1333,7 @@ div[class^="ecwd-page-"].ecwd_calendar .ecwd-week-date.resp{
|
|
1330 |
text-transform: none;
|
1331 |
letter-spacing: 0;
|
1332 |
clear: none;
|
|
|
1333 |
}
|
1334 |
|
1335 |
|
@@ -1469,13 +1473,13 @@ div[class^="ecwd-page-"].ecwd_calendar .ecwd-week-date.resp{
|
|
1469 |
.event-organizers,
|
1470 |
.event-detalis-org,
|
1471 |
.event-venue{
|
1472 |
-
clear:both;
|
1473 |
padding-left: 26px;
|
1474 |
font-size: 14px;
|
1475 |
font-style: italic;
|
1476 |
line-height: 1.4;
|
1477 |
margin: 5px 0;
|
1478 |
color: #010101;
|
|
|
1479 |
}
|
1480 |
|
1481 |
.event-detalis .event-detalis-org,.event-detalis .event-venue{
|
@@ -1500,6 +1504,7 @@ div[class^="ecwd-page-"].ecwd_calendar .ecwd-week-date.resp{
|
|
1500 |
.event-organizers{
|
1501 |
background:url(images/org.png) no-repeat left;
|
1502 |
}
|
|
|
1503 |
.event-venue{
|
1504 |
background:url(images/loc.png) no-repeat left;
|
1505 |
}
|
@@ -1507,6 +1512,39 @@ div[class^="ecwd-page-"].ecwd_calendar .ecwd-week-date.resp{
|
|
1507 |
background:none;
|
1508 |
}
|
1509 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1510 |
/*#######################EVENT PAGE##############################*/
|
1511 |
|
1512 |
#ecwd-events-content{
|
@@ -2465,6 +2503,10 @@ a.ecwd-google-plus{
|
|
2465 |
|
2466 |
}
|
2467 |
|
|
|
|
|
|
|
|
|
2468 |
|
2469 |
|
2470 |
/*
|
7 |
|
8 |
|
9 |
|
10 |
+
.calendar_main:after, #ecwd-events-content .event-detalis:after,
|
11 |
+
.ecwd_list .event-organizers:after,
|
12 |
+
.ecwd_list .event-venue:after {
|
13 |
content: '';
|
14 |
clear: both;
|
15 |
display:table;
|
83 |
max-width: 95%;
|
84 |
}
|
85 |
.cal_blue.ecwd_calendar_container {
|
86 |
+
width:100% !important;
|
87 |
+
color:#262e3a !important;
|
88 |
+
border:none !important;
|
89 |
+
background:#FFFFFF !important;
|
90 |
font-family: "Lucida Grande","Lucida Sans Unicode",sans-serif;
|
91 |
+
font-size:10px !important;
|
92 |
+
table-layout: fixed !important;
|
93 |
+
margin: 0 0 10px 0 !important;
|
94 |
}
|
95 |
table.cal_blue.ecwd_calendar_container #month_selector {
|
96 |
width:auto;
|
121 |
}
|
122 |
|
123 |
table.cal_blue.ecwd_calendar_container .normal-day-heading, table.cal_blue.ecwd_calendar_container .weekend-heading {
|
124 |
+
color:#585858 !important;
|
125 |
font-size:1.6em;
|
126 |
height:1.2em;
|
127 |
line-height:1.2em;
|
1311 |
.ecwd_calendar .ecwd_list .ecwd-list-img-container img{
|
1312 |
margin-top: 1px;
|
1313 |
max-width: 100%;
|
1314 |
+
width: 100%;
|
1315 |
height: auto;
|
1316 |
}
|
1317 |
|
1333 |
text-transform: none;
|
1334 |
letter-spacing: 0;
|
1335 |
clear: none;
|
1336 |
+
display: block !important;
|
1337 |
}
|
1338 |
|
1339 |
|
1473 |
.event-organizers,
|
1474 |
.event-detalis-org,
|
1475 |
.event-venue{
|
|
|
1476 |
padding-left: 26px;
|
1477 |
font-size: 14px;
|
1478 |
font-style: italic;
|
1479 |
line-height: 1.4;
|
1480 |
margin: 5px 0;
|
1481 |
color: #010101;
|
1482 |
+
clear: both;
|
1483 |
}
|
1484 |
|
1485 |
.event-detalis .event-detalis-org,.event-detalis .event-venue{
|
1504 |
.event-organizers{
|
1505 |
background:url(images/org.png) no-repeat left;
|
1506 |
}
|
1507 |
+
|
1508 |
.event-venue{
|
1509 |
background:url(images/loc.png) no-repeat left;
|
1510 |
}
|
1512 |
background:none;
|
1513 |
}
|
1514 |
|
1515 |
+
.day-event-list .event-organizers,
|
1516 |
+
.day-event-list .event-venue,
|
1517 |
+
.ecwd_list .event-organizers,
|
1518 |
+
.ecwd_list .event-venue,
|
1519 |
+
.day4-event-list .event-organizers,
|
1520 |
+
.day4-event-list .event-venue,
|
1521 |
+
.week-event-list .event-organizers,
|
1522 |
+
.week-event-list .event-venue{
|
1523 |
+
clear:none;
|
1524 |
+
display:flex;
|
1525 |
+
margin-bottom:5px;
|
1526 |
+
}
|
1527 |
+
|
1528 |
+
.day4-event-list .event-content,
|
1529 |
+
.ecwd_list .event-content,
|
1530 |
+
.day-event-list .event-content,
|
1531 |
+
.week-event-list .event-content{
|
1532 |
+
margin-top: 10px;
|
1533 |
+
}
|
1534 |
+
.ecwd_list .event-organizers img{
|
1535 |
+
float:left;
|
1536 |
+
margin: 1px 7px 0 0 !important;
|
1537 |
+
}
|
1538 |
+
.ecwd_list .event-venue img{
|
1539 |
+
float:left;
|
1540 |
+
margin: 6px 7px 0 0 !important;
|
1541 |
+
}
|
1542 |
+
.ecwd_list .event-organizers .ecwd-org-cont,
|
1543 |
+
.ecwd_list .event-venue .ecwd-org-cont{
|
1544 |
+
float:left;
|
1545 |
+
}
|
1546 |
+
|
1547 |
+
|
1548 |
/*#######################EVENT PAGE##############################*/
|
1549 |
|
1550 |
#ecwd-events-content{
|
2503 |
|
2504 |
}
|
2505 |
|
2506 |
+
table.ecwd_calendar_container > tbody > tr >td{
|
2507 |
+
vertical-align: top !important;
|
2508 |
+
}
|
2509 |
+
|
2510 |
|
2511 |
|
2512 |
/*
|
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
|
@@ -17,6 +17,8 @@ if( ! defined( 'ECWD_MAIN_FILE' ) ) {
|
|
17 |
}if( ! defined( 'ECWD_DIR' ) ) {
|
18 |
define( 'ECWD_DIR', dirname(__FILE__));
|
19 |
|
|
|
|
|
20 |
}
|
21 |
|
22 |
add_action( 'plugins_loaded', array( 'ECWD', 'get_instance' ) );
|
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.20
|
7 |
* Author: WebDorado
|
8 |
* Author URI: http://web-dorado.com
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
17 |
}if( ! defined( 'ECWD_DIR' ) ) {
|
18 |
define( 'ECWD_DIR', dirname(__FILE__));
|
19 |
|
20 |
+
}if(! defined( 'ECWD_URL' ) ){
|
21 |
+
define ('ECWD_URL',plugins_url(plugin_basename(dirname(__FILE__))));
|
22 |
}
|
23 |
|
24 |
add_action( 'plugins_loaded', array( 'ECWD', 'get_instance' ) );
|
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.20';
|
10 |
protected $ecwd_page = null;
|
11 |
|
12 |
private function __construct() {
|
ecwd_class.php
CHANGED
@@ -6,10 +6,9 @@
|
|
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';
|
13 |
protected static $instance = null;
|
14 |
|
15 |
private function __construct() {
|
@@ -20,7 +19,7 @@ class ECWD {
|
|
20 |
$this->user_info();
|
21 |
add_action( 'init', array( $this, 'add_localization' ) );
|
22 |
add_filter( 'body_class', array( $this, 'theme_body_class' ) );
|
23 |
-
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
|
24 |
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_styles' ) );
|
25 |
}
|
26 |
|
@@ -103,22 +102,24 @@ class ECWD {
|
|
103 |
* Load public facing scripts
|
104 |
*/
|
105 |
public function enqueue_scripts() {
|
106 |
-
global $wp_scripts;
|
107 |
$map_included = false;
|
108 |
-
if(
|
109 |
-
|
110 |
-
|
111 |
-
if(
|
112 |
-
$
|
113 |
-
|
114 |
-
|
|
|
115 |
|
|
|
116 |
}
|
117 |
}
|
118 |
-
}
|
119 |
|
120 |
-
|
121 |
-
|
|
|
122 |
}
|
123 |
wp_enqueue_script( $this->prefix . '-gmap-public', plugins_url( 'js/gmap/gmap3.js', __FILE__ ), array( 'jquery' ), $this->version, true );
|
124 |
wp_enqueue_script( $this->prefix . '-public', plugins_url( 'js/scripts.js', __FILE__ ), array(
|
@@ -126,7 +127,7 @@ class ECWD {
|
|
126 |
'jquery-ui-draggable',
|
127 |
'masonry'
|
128 |
), $this->version, true );
|
129 |
-
|
130 |
}
|
131 |
|
132 |
/*
|
@@ -164,14 +165,6 @@ class ECWD {
|
|
164 |
return $this->version;
|
165 |
}
|
166 |
|
167 |
-
/**
|
168 |
-
* Return the plugin old version.
|
169 |
-
*/
|
170 |
-
public function get_old_version() {
|
171 |
-
return $this->old_version;
|
172 |
-
}
|
173 |
-
|
174 |
-
|
175 |
/**
|
176 |
* Return an instance of this class.
|
177 |
*/
|
6 |
*/
|
7 |
class ECWD {
|
8 |
|
9 |
+
protected $version = '1.0.20';
|
10 |
protected $plugin_name = 'event-calendar-wd';
|
11 |
protected $prefix = 'ecwd';
|
|
|
12 |
protected static $instance = null;
|
13 |
|
14 |
private function __construct() {
|
19 |
$this->user_info();
|
20 |
add_action( 'init', array( $this, 'add_localization' ) );
|
21 |
add_filter( 'body_class', array( $this, 'theme_body_class' ) );
|
22 |
+
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ), 20 );
|
23 |
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_styles' ) );
|
24 |
}
|
25 |
|
102 |
* Load public facing scripts
|
103 |
*/
|
104 |
public function enqueue_scripts() {
|
105 |
+
global $wp_scripts, $post;
|
106 |
$map_included = false;
|
107 |
+
if($post->post_type == 'ecwd_event'){
|
108 |
+
if ( isset( $wp_scripts->registered ) && $wp_scripts->registered ) {
|
109 |
+
foreach ( $wp_scripts->registered as $wp_script ) {
|
110 |
+
if ( $wp_script->src && ( strpos( $wp_script->src, 'maps.googleapis.com' ) || strpos( $wp_script->src, 'maps.google.com' ) ) !== false ) {
|
111 |
+
if ( is_array( $wp_scripts->queue ) && in_array( $wp_script->handle, $wp_scripts->queue ) ) {
|
112 |
+
$map_included = true;
|
113 |
+
break;
|
114 |
+
}
|
115 |
|
116 |
+
}
|
117 |
}
|
118 |
}
|
|
|
119 |
|
120 |
+
if ( ! $map_included ) {
|
121 |
+
wp_enqueue_script( $this->prefix . '-maps-public', 'https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&libraries=places', array( 'jquery' ), $this->version, true );
|
122 |
+
}
|
123 |
}
|
124 |
wp_enqueue_script( $this->prefix . '-gmap-public', plugins_url( 'js/gmap/gmap3.js', __FILE__ ), array( 'jquery' ), $this->version, true );
|
125 |
wp_enqueue_script( $this->prefix . '-public', plugins_url( 'js/scripts.js', __FILE__ ), array(
|
127 |
'jquery-ui-draggable',
|
128 |
'masonry'
|
129 |
), $this->version, true );
|
130 |
+
wp_localize_script($this->prefix . '-public',$this->prefix .'_plugin_url' , ECWD_URL);
|
131 |
}
|
132 |
|
133 |
/*
|
165 |
return $this->version;
|
166 |
}
|
167 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
/**
|
169 |
* Return an instance of this class.
|
170 |
*/
|
includes/calendar-class.php
CHANGED
@@ -26,10 +26,13 @@ class Calendar {
|
|
26 |
public $tags = array();
|
27 |
public $venues = array();
|
28 |
public $organizers = array();
|
29 |
-
public $displays = array( 'full', 'list', 'week', 'day'
|
30 |
public $filters = array( 'categories', 'tags', 'venues', 'organizers' );
|
31 |
public $event_search = 'yes';
|
32 |
public $displaysName;
|
|
|
|
|
|
|
33 |
//--------------------------------------------------------------------------------------------
|
34 |
// Weekday names/abbreviations (array must start with Sunday=0)
|
35 |
//--------------------------------------------------------------------------------------------
|
@@ -69,7 +72,7 @@ class Calendar {
|
|
69 |
public $jd, $year, $month, $day, $displaytype, $numdaysinmonth, $monthstartday, $monthname, $previousmonth, $nextmonth;
|
70 |
public $events = array();
|
71 |
|
72 |
-
// types: mini,full,list,mini-list,
|
73 |
public function __construct( $type = 'full', $date = '', $staticdisplaytype = false, $widget = 0, $limit = false, $page = 1, $displays = null, $filters = null, $event_search = 'yes' ) {
|
74 |
// static displaytype
|
75 |
global $ecwd_options;
|
@@ -81,11 +84,15 @@ class Calendar {
|
|
81 |
if ( isset( $ecwd_options['time_format'] ) && $ecwd_options['time_format'] != '' ) {
|
82 |
$this->timeformat = $ecwd_options['time_format'];
|
83 |
}
|
|
|
|
|
|
|
84 |
$this->timeformat .= (isset( $ecwd_options['time_type'])?' '.$ecwd_options['time_type']: '');
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
|
|
89 |
if ( isset( $ecwd_options['week_starts'] ) && $ecwd_options['week_starts'] != '' ) {
|
90 |
$this->weekstartday = $ecwd_options['week_starts'];
|
91 |
}
|
@@ -187,12 +194,7 @@ class Calendar {
|
|
187 |
'name' => __( 'Day', 'ecwd' ),
|
188 |
'date' => $this->daydate
|
189 |
),
|
190 |
-
|
191 |
-
'4day' => array(
|
192 |
-
'name' => __( '4 Days', 'ecwd' ),
|
193 |
-
'date' => $this->year . '-' . $this->month . '-' . $this->day
|
194 |
-
),
|
195 |
-
'posterboard' => array( 'name' => __( 'Posterboard', 'ecwd' ), 'date' => $this->monthdate ),
|
196 |
);
|
197 |
$this->event_search = $event_search;
|
198 |
$this->listlimit = $limit;
|
@@ -251,9 +253,7 @@ class Calendar {
|
|
251 |
"mini-list",
|
252 |
"week",
|
253 |
'day',
|
254 |
-
|
255 |
-
'map',
|
256 |
-
'posterboard'
|
257 |
) )
|
258 |
) { // mini and full cal
|
259 |
$html .= '
|
@@ -369,162 +369,7 @@ class Calendar {
|
|
369 |
//$this->events = $this->arraySort($this->events, 'from');
|
370 |
}
|
371 |
if ( $this->displaytype == 'map' ) {
|
372 |
-
$map_events = array();
|
373 |
-
|
374 |
-
if ( count( $this->events ) > 0 ) {
|
375 |
-
foreach ( $this->events as $i => $event ) {
|
376 |
-
if ( strtotime( $event['from'] ) >= strtotime( $this->year . '-' . $this->month . '-1' ) &&
|
377 |
-
strtotime( $event['from'] ) <= strtotime( date( 'Y-m-t', strtotime( $this->date ) ) )
|
378 |
-
) {
|
379 |
-
if ( $event['latlong'] != '' ) {
|
380 |
-
if ( $event['from'] != '' ) {
|
381 |
-
$map_events[ $i ]['from'] = date( $this->dateformat, strtotime( $event['from'] ) );
|
382 |
-
}
|
383 |
-
if ( $event['to'] != '' && $event['from'] != $event['to'] ) {
|
384 |
-
$map_events[ $i ]['to'] = date( $this->dateformat, strtotime( $event['to'] ) );
|
385 |
-
}
|
386 |
-
if ( isset( $event['all_day_event'] ) && $event['all_day_event'] == 1 ) {
|
387 |
-
$map_events[ $i ]['starttime'] = __( 'All day', 'ecwd' );
|
388 |
-
} else {
|
389 |
-
if ( $event['starttime'] != '' ) {
|
390 |
-
$map_events[ $i ]['starttime'] = date( $this->timeformat, strtotime( $event['starttime'] ) );
|
391 |
-
}
|
392 |
-
if ( $event['endtime'] != '' ) {
|
393 |
-
$map_events[ $i ]['endtime'] = date( $this->timeformat, strtotime( $event['endtime'] ) );
|
394 |
-
}
|
395 |
-
}
|
396 |
-
|
397 |
-
if ( $event['location'] != '' ) {
|
398 |
-
$map_events[ $i ]['location'] = $event['location'];
|
399 |
-
}
|
400 |
-
if ( $event['link'] != '' ) {
|
401 |
-
$map_events[ $i ]['link'] = $event['link'];
|
402 |
-
}
|
403 |
-
$map_events[ $i ]['latlong'] = explode( ',', $event['latlong'] );
|
404 |
-
|
405 |
-
$map_events[ $i ]['infow'] = '<div class="ecwd_map_event">';
|
406 |
-
if ( $event['permalink'] ) {
|
407 |
-
$map_events[ $i ]['infow'] .= '<a href="' . $event['permalink'] . '"';
|
408 |
-
if ( isset( $event['color'] ) && $event['color'] !== '' ) {
|
409 |
-
$map_events[ $i ]['infow'] .= ' style= "color:' . $event['color'] . '"';
|
410 |
-
}
|
411 |
-
$map_events[ $i ]['infow'] .= '>' . $event['title'] . '</a>';
|
412 |
-
} else {
|
413 |
-
$map_events[ $i ]['infow'] .= '<span class="title"';
|
414 |
-
if ( isset( $event['color'] ) && $event['color'] !== '' ) {
|
415 |
-
$map_events[ $i ]['infow'] .= ' style= "color:' . $event['color'] . '"';
|
416 |
-
}
|
417 |
-
$map_events[ $i ]['infow'] . '>' . $event['title'] . '<span>';
|
418 |
-
}
|
419 |
-
$map_events[ $i ]['infow'] .= '<span class="date">';
|
420 |
-
if ( isset( $event['all_day_event'] ) && $event['all_day_event'] == 1 ) {
|
421 |
-
$map_events[ $i ]['infow'] .= date( $this->dateformat, strtotime( $event['from'] ) ) . ' - ' . ( ( strtotime( $event['to'] ) != '' && strtotime( $event['from'] ) != strtotime( $event['to'] ) ) ? date( $this->dateformat, strtotime( $event['to'] ) ) : "" ) . ' ' . __( 'All day', 'ecwd' );
|
422 |
-
} else {
|
423 |
-
if ( $event['to'] != '' && $event['from'] != $event['to'] ) {
|
424 |
-
$map_events[ $i ]['infow'] .= date( $this->dateformat, strtotime( $event['from'] ) ) . ' ' . date( $this->timeformat, strtotime( $event['starttime'] ) );
|
425 |
-
$map_events[ $i ]['infow'] .= ' - ';
|
426 |
-
$map_events[ $i ]['infow'] .= date( $this->dateformat, strtotime( $event['to'] ) ) . ' ' . date( $this->timeformat, strtotime( $event['endtime'] ) );
|
427 |
-
} else {
|
428 |
-
$map_events[ $i ]['infow'] .= date( $this->dateformat, strtotime( $event['from'] ) ) . ' ' . date( $this->timeformat, strtotime( $event['starttime'] ) );
|
429 |
-
}
|
430 |
-
}
|
431 |
-
$map_events[ $i ]['infow'] .= '</span>';
|
432 |
-
|
433 |
-
$map_events[ $i ]['infow'] .= '<span class="location">' . $event['location'] . '</span>';
|
434 |
-
$map_events[ $i ]['infow'] .= '</div>';
|
435 |
-
}
|
436 |
-
}
|
437 |
-
}
|
438 |
-
|
439 |
-
$markers = json_encode( $map_events );
|
440 |
-
|
441 |
-
$html .= '<div class="ecwd_map_div" style="width: 100%; height: 100%; min-height: 300px;" ></div>';
|
442 |
-
$html .= '<textarea class="ecwd_markers" class="hidden" style="display: none;">' . $markers . '</textarea>';
|
443 |
-
} else {
|
444 |
-
$html .= '<div class="event-main-content no-events">' . __( 'No events', 'ecwd' ) . '</div>';
|
445 |
-
}
|
446 |
-
} elseif ( $this->displaytype == 'posterboard' ) {
|
447 |
-
|
448 |
-
$html .= '<div class="ecwd-poster-board">';
|
449 |
-
if ( $this->events ) {
|
450 |
-
foreach ( $this->events as $i => $event ) {
|
451 |
-
if ( ! isset( $event['color'] ) ) {
|
452 |
-
$event['color'] = '#ffffff';
|
453 |
-
}
|
454 |
-
if ( ! isset( $event['terms']['ecwd_taxonomy_image'] ) ) {
|
455 |
-
$event['terms']['ecwd_taxonomy_image'] = '';
|
456 |
-
}
|
457 |
-
|
458 |
-
if ( strtotime( $event['from'] ) >= strtotime( $this->year . '-' . $this->month . '-1' ) &&
|
459 |
-
strtotime( $event['from'] ) <= strtotime( date( 'Y-m-t', strtotime( $this->date ) ) )
|
460 |
-
) {
|
461 |
-
$datenumber1 = substr( date( 'd', strtotime( $event['from'] ) ), 0, 1 );
|
462 |
-
$datenumber2 = substr( date( 'd', strtotime( $event['from'] ) ), 1, 1 );
|
463 |
-
$dates = '<span class="weekday-block" itemprop="startDate" content="' . date( 'Y-m-d', strtotime( $event['from'] ) ) . 'T' . date( 'H:i', strtotime( $event['starttime'] ) ) . '"><span class="weekday">' . date( 'D', strtotime( $event['from'] ) ) . '</span> ';
|
464 |
-
$dates .= '<span class="month">' . date( 'M', strtotime( $event['from'] ) ) . '</span></span> ';
|
465 |
-
$dates .= '<span class="datenumber1">' . $datenumber1 . '</span> ';
|
466 |
-
$dates .= '<span class="datenumber2">' . $datenumber2 . '</span> ';
|
467 |
-
|
468 |
-
|
469 |
-
$html .= '<div class="ecwd-poster-item" itemscope itemtype="http://schema.org/Event">';
|
470 |
-
$image = $this->getAndReplaceFirstImage( $event['details'] );
|
471 |
-
if ( get_the_post_thumbnail( $event['id'] ) || $event['image'] ) {
|
472 |
-
if ( get_the_post_thumbnail( $event['id'] ) ) {
|
473 |
-
$html .= '<div class="ecwd-poster-img">' . get_the_post_thumbnail( $event['id'] ) . '</div>';
|
474 |
-
} else {
|
475 |
-
$html .= '<div class="ecwd-poster-img"><img src="' . $event['image'] . '" /></div>';
|
476 |
-
}
|
477 |
-
} elseif ( $image['image'] != null ) {
|
478 |
-
$html .= '<div class="ecwd-poster-img"><img src="' . $image['image'] . '" /></div>';
|
479 |
-
$event['details'] = $image['content'];
|
480 |
-
}
|
481 |
-
|
482 |
-
$html .= '<div class="ecwd-event-content"><div class="ecwd-event-details">';
|
483 |
-
$html .= '<div class="ecwd-event-header"><div class="date">' . $dates . '</div>';
|
484 |
-
if ( $event['permalink'] !== '' ) {
|
485 |
-
$html .= '<h2 itemprop="name" ><a href="' . $event['permalink'] . '" style="color: ' . $event['color'] . '">' . $event['title'] . '</a></h2>';
|
486 |
-
} else {
|
487 |
-
$html .= '<h2 itemprop="name" style="color: ' . $event['color'] . '">' . $event['title'] . '</h2>';
|
488 |
-
}
|
489 |
-
$html .= '</div>';
|
490 |
-
|
491 |
-
if ( isset( $event['organizers'] ) && count( $event['organizers'] ) > 0 ) {
|
492 |
-
$html .= '<div class="event-organizers">';
|
493 |
-
foreach ( $event['organizers'] as $organizer ) {
|
494 |
-
$html .= '<div class="event-organizer" itemprop="organizer"> <a href="' . $organizer['permalink'] . '">' . $organizer['name'] . '</a></div>';
|
495 |
-
}
|
496 |
-
$html .= '</div>';
|
497 |
-
}
|
498 |
-
if ( isset( $event['location'] ) && $event['location'] !== '' ) {
|
499 |
-
$html .= '<div class="event-venue" itemprop="location" itemscope itemtype="http://schema.org/Place">
|
500 |
-
<span itemprop="name">';
|
501 |
-
if ( isset( $event['venue']['name'] ) && $event['venue']['name'] !== '' ) {
|
502 |
-
$html .= '<a href="' . $event['venue']['permalink'] . '">' . $event['venue']['name'] . '</a>';
|
503 |
-
}
|
504 |
-
|
505 |
-
$html .= '</span>
|
506 |
-
<div class="address" itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
|
507 |
-
' . $event['location'] . '
|
508 |
-
</div>
|
509 |
-
</div>';
|
510 |
-
}
|
511 |
-
$html .= '</div>';
|
512 |
-
$html .= '
|
513 |
-
<div class="post-descr">
|
514 |
-
<div class="post-' . $event['id'] . '">
|
515 |
-
' . $event['details'] . '
|
516 |
-
</div>
|
517 |
-
</div>';
|
518 |
-
|
519 |
-
$html .= '</div></div>';
|
520 |
-
|
521 |
-
}
|
522 |
-
}
|
523 |
-
} else {
|
524 |
-
$html .= '<div class="event-main-content no-events">' . __( 'No events', 'ecwd' ) . '</div>';
|
525 |
-
}
|
526 |
|
527 |
-
$html .= '</div>';
|
528 |
} else {
|
529 |
$pages = 0;
|
530 |
$page = $this->page;
|
@@ -566,7 +411,7 @@ class Calendar {
|
|
566 |
}
|
567 |
$html .= '<div class="event-main-content">';
|
568 |
if ( $event['permalink'] != '' ) {
|
569 |
-
$html .= '<h3 class="event-title" itemprop="name"><a href="' . $event['permalink'] . '" itemprop="url" style="color:' . $event['color'] . ';">' . $event['title'] . '</a></h3>';
|
570 |
} else {
|
571 |
$html .= '<h3 class="event-title" style="color:' . $event['color'] . ';" itemprop="name">' . $event['title'] . '</h3>';
|
572 |
}
|
@@ -599,15 +444,15 @@ class Calendar {
|
|
599 |
}
|
600 |
$html .= '</div>';
|
601 |
if ( isset( $event['organizers'] ) && count( $event['organizers'] ) > 0 ) {
|
602 |
-
$html .= '<div class="event-organizers">';
|
603 |
foreach ( $event['organizers'] as $organizer ) {
|
604 |
$html .= '<div class="event-organizer" itemprop="organizer"> <a href="' . $organizer['permalink'] . '">' . $organizer['name'] . '</a></div>';
|
605 |
}
|
606 |
-
$html .= '</div>';
|
607 |
}
|
608 |
|
609 |
if ( $event['location'] !== '' ) {
|
610 |
-
$html .= '<div class="event-venue" itemprop="location" itemscope itemtype="http://schema.org/Place">
|
611 |
<span itemprop="name">';
|
612 |
if ( isset( $event['venue']['name'] ) ) {
|
613 |
$html .= '<a href="' . $event['venue']['permalink'] . '">' . $event['venue']['name'] . '</a>';
|
@@ -617,7 +462,8 @@ class Calendar {
|
|
617 |
<div class="address" itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
|
618 |
' . ( $event['location'] ? $event['location'] : "" ) . '
|
619 |
</div>
|
620 |
-
</div>
|
|
|
621 |
}
|
622 |
$html .= '<div class="event-content" itemprop="description">' . ( $event['details'] ? $event['details'] : $this->eventemptytext ) . '</div></div>';
|
623 |
|
@@ -655,19 +501,19 @@ class Calendar {
|
|
655 |
if ( $pages > 1 ) {
|
656 |
$html .= '<div class="ecwd-pagination">';
|
657 |
if ( $this->page > 1 ) {
|
658 |
-
$html .= '<span class="cpage-span"><a href="?date=' . $this->year . '-' . $this->month . '&t=' . $this->displaytype . '&cpage=' . ( $this->page - 1 ) . '" class="cpage">...</a></span>';
|
659 |
}
|
660 |
for ( $i = ( $this->page - 3 ); $i < ( $this->page + 4 ); $i ++ ) {
|
661 |
if ( $i <= $pages and $i >= 1 ) {
|
662 |
if ( $this->page == $i ) {
|
663 |
$html .= '<span class="cpage-span"><span class="page">' . $i . '</span></span>';
|
664 |
} else {
|
665 |
-
$html .= '<span class="cpage-span"><a href="?date=' . $this->year . '-' . $this->month . '&t=' . $this->displaytype . '&cpage=' . $i . '" class="cpage">' . $i . '</a></span>';
|
666 |
}
|
667 |
}
|
668 |
}
|
669 |
if ( $this->page < $pages ) {
|
670 |
-
$html .= '<span class="cpage-span"><a href="?date=' . $this->year . '-' . $this->month . '&t=' . $this->displaytype . '&cpage=' . ( $this->page + 1 ) . '" class="cpage">...</a></span>';
|
671 |
}
|
672 |
$html .= '</div>';
|
673 |
}
|
@@ -699,9 +545,9 @@ class Calendar {
|
|
699 |
$next_dateparam = $this->getWeekFirstDayDate( $next_year['year'] . '-' . $next_year['month'] . '-' . $next_year['day'] );
|
700 |
}
|
701 |
$html .= '<div class="current-month">
|
702 |
-
<a href="?date=' . $previous_dateparam . '&t=' . $this->displaytype . '"><</a>
|
703 |
' . $this->year . '
|
704 |
-
<a href="?date=' . $next_dateparam . '&t=' . $this->displaytype . '">></a>
|
705 |
<div>';
|
706 |
if ( $this->displaytype !== 'week' && $this->displaytype !== '4day' && $this->displaytype !== 'day' ) {
|
707 |
|
@@ -733,10 +579,7 @@ class Calendar {
|
|
733 |
"list",
|
734 |
"mini-list",
|
735 |
'day',
|
736 |
-
'week'
|
737 |
-
'4day',
|
738 |
-
'map',
|
739 |
-
'posterboard'
|
740 |
) )
|
741 |
) { // mini and full cal
|
742 |
$html .= '
|
@@ -787,11 +630,7 @@ class Calendar {
|
|
787 |
//$this->day = ;
|
788 |
|
789 |
} elseif ( $this->displaytype == 'week' ) {
|
790 |
-
} elseif ( $this->displaytype == '4day' ) {
|
791 |
-
} elseif ( $this->displaytype == 'map' ) {
|
792 |
-
} elseif ( $this->displaytype == 'posterboard' ) {
|
793 |
}
|
794 |
-
|
795 |
//$html .= '</div>';
|
796 |
}
|
797 |
|
@@ -826,7 +665,7 @@ class Calendar {
|
|
826 |
$previoustext = '<span><</span><span class="month-name"> ' . __( $this->previousmonth, 'ecwd' ) . ' ' . $prev_date . '</span>';
|
827 |
}
|
828 |
|
829 |
-
$html = '<div class="previous"><a href="?date=' . $dateparam . '&t=' . $this->displaytype . '">' . $previoustext . '</a></div>';
|
830 |
|
831 |
return $html;
|
832 |
}
|
@@ -876,7 +715,7 @@ class Calendar {
|
|
876 |
if ( strtotime( $date ) == strtotime( date( 'Y-m-d' ) ) ) {
|
877 |
return $date;
|
878 |
} else {
|
879 |
-
if ( $this->displaytype == 'full' || $this->displaytype == 'month' || $this->displaytype == 'mini'
|
880 |
return date( 'Y-n-j', strtotime( date( 'Y-m-1' ), strtotime( $date ) ) );
|
881 |
} elseif ( $this->displaytype == 'week' ) {
|
882 |
return date( 'Y-n-j', strtotime( strtolower( $this->weekdays[ $this->weekstartday ] ) . " this week", strtotime( $date ) ) );
|
@@ -928,7 +767,7 @@ class Calendar {
|
|
928 |
$divider = $this->monthselector === false ? ' | ' : '';
|
929 |
$nexttext = '<span class="month-name">' . $next_date . ' ' . $divider . __( $this->nextmonth, 'ecwd' ) . ' </span><span>></span>';
|
930 |
}
|
931 |
-
$html = '<div class="next"><a href="?date=' . $dateparam . '&t=' . $this->displaytype . '">' . $nexttext . '</a></div>';
|
932 |
|
933 |
return $html;
|
934 |
}
|
@@ -951,10 +790,9 @@ class Calendar {
|
|
951 |
$html .= '<div class="ecwd-dropdown-menu">';
|
952 |
foreach ( $widgetDisplays as $display ) {
|
953 |
if ( $display !== 'none' && isset( $this->displaysName[ $display ] ) ) {
|
954 |
-
$html .= '<div class="type">' . '<a href="?date=' . $this->displaysName[ $display ]['date'] . '&t=' . $display . '">' . $this->displaysName[ $display ]['name'] . '</a>' . '</div>';
|
955 |
}
|
956 |
}
|
957 |
-
|
958 |
$html .= '</div></div>';
|
959 |
|
960 |
} else {
|
@@ -973,7 +811,7 @@ class Calendar {
|
|
973 |
$html .= ' ecwd-selected-mode';
|
974 |
$html .= '">' . '<a>' . $this->displaysName[ $display ]['name'] . '</a>' . '</li>';
|
975 |
} else {
|
976 |
-
$html .= '">' . '<a href="?date=' . $this->displaysName[ $display ]['date'] . '&t=' . $display . '">' . $this->displaysName[ $display ]['name'] . '</a>' . '</li>';
|
977 |
}
|
978 |
}
|
979 |
}
|
@@ -1145,7 +983,7 @@ class Calendar {
|
|
1145 |
}*/
|
1146 |
}
|
1147 |
if ( $cellevent['permalink'] ) {
|
1148 |
-
$eventcontent .= '<a href="' . $cellevent['permalink'] . '"><span itemprop="name">' . $cellevent['title'] . '</span></a>';
|
1149 |
} else {
|
1150 |
$eventcontent .= '<span itemprop="name">' . $cellevent['title'] . '</span>';
|
1151 |
}
|
@@ -1162,7 +1000,7 @@ class Calendar {
|
|
1162 |
$eventcontent .= ' <span class="event-metalabel" style="background:' . $cellevent['color'] . '"></span>
|
1163 |
<h5 style="color:' . $cellevent['color'] . '" itemprop="name">';
|
1164 |
if ( isset( $cellevent['permalink'] ) && $cellevent['permalink'] !== '' ) {
|
1165 |
-
$eventcontent .= '<a href="' . $cellevent['permalink'] . '" style="color: ' . $cellevent['color'] . '">' . $cellevent['title'] . '</a>';
|
1166 |
} else {
|
1167 |
$eventcontent .= $cellevent['title'];
|
1168 |
}
|
@@ -1172,7 +1010,7 @@ class Calendar {
|
|
1172 |
$eventcontent .= ' <span class="event-metalabel"></span>
|
1173 |
<h5 itemprop="name">';
|
1174 |
if ( isset( $cellevent['permalink'] ) && $cellevent['permalink'] !== '' ) {
|
1175 |
-
$eventcontent .= '<a href="' . $cellevent['permalink'] . '">' . $cellevent['title'] . '</a>';
|
1176 |
} else {
|
1177 |
$eventcontent .= $cellevent['title'];
|
1178 |
}
|
@@ -1206,12 +1044,14 @@ class Calendar {
|
|
1206 |
$eventdate .= '</div>';
|
1207 |
$eventcontent .= $eventdate;
|
1208 |
}
|
|
|
1209 |
if ( isset( $cellevent['organizers'] ) && count( $cellevent['organizers'] ) > 0 ) {
|
1210 |
$eventcontent .= '<div class="event-organizers">';
|
1211 |
foreach ( $cellevent['organizers'] as $organizer ) {
|
1212 |
$eventcontent .= '<div class="event-organizer" itemprop="organizer"> <a href="' . $organizer['permalink'] . '">' . $organizer['name'] . '</a></div>';
|
1213 |
}
|
1214 |
$eventcontent .= '</div>';
|
|
|
1215 |
}
|
1216 |
if ( $cellevent['location'] !== '' ) {
|
1217 |
$eventcontent .= '<div class="event-venue" itemprop="location" itemscope itemtype="http://schema.org/Place">';
|
@@ -1223,6 +1063,7 @@ class Calendar {
|
|
1223 |
}
|
1224 |
$eventcontent .= '</div>';
|
1225 |
}
|
|
|
1226 |
if ( isset( $cellevent['link'] ) && $cellevent['link'] != '' ) {
|
1227 |
$eventcontent .= '<div class="ecwd-link"> <a href="' . $cellevent['link'] . '" itemprop="url">' . $cellevent['link'] . '</a></div>';
|
1228 |
}
|
@@ -1245,6 +1086,7 @@ class Calendar {
|
|
1245 |
|
1246 |
$eventcontent .= '</div><div class="ecwd-event-arrow-right"></div>';
|
1247 |
|
|
|
1248 |
$eventcontent .= '</li> ';
|
1249 |
|
1250 |
|
@@ -1253,6 +1095,7 @@ class Calendar {
|
|
1253 |
// }
|
1254 |
|
1255 |
}
|
|
|
1256 |
$content .= $eventcontent;
|
1257 |
|
1258 |
if ( $i > 2 && $this->displaytype !== 'mini' ) {
|
@@ -1315,7 +1158,7 @@ class Calendar {
|
|
1315 |
}
|
1316 |
|
1317 |
if ( $cellevent['permalink'] != '' ) {
|
1318 |
-
$html .= '<h3 class="event-title" itemprop="name"> <a href="' . $cellevent['permalink'] . '"';
|
1319 |
if ( isset( $cellevent['color'] ) && $cellevent['color'] !== '' ) {
|
1320 |
$html .= ' style="color:' . $cellevent['color'] . ';"';
|
1321 |
}
|
@@ -1358,11 +1201,11 @@ class Calendar {
|
|
1358 |
}
|
1359 |
$html .= '</div>';
|
1360 |
if ( isset( $cellevent['organizers'] ) && count( $cellevent['organizers'] ) > 0 ) {
|
1361 |
-
$
|
1362 |
foreach ( $cellevent['organizers'] as $organizer ) {
|
1363 |
-
$
|
1364 |
}
|
1365 |
-
$
|
1366 |
}
|
1367 |
if ( $cellevent['location'] != '' ) {
|
1368 |
$html .= '<div class="event-venue" itemprop="location" itemscope itemtype="http://schema.org/Place">
|
26 |
public $tags = array();
|
27 |
public $venues = array();
|
28 |
public $organizers = array();
|
29 |
+
public $displays = array( 'full', 'list', 'week', 'day');
|
30 |
public $filters = array( 'categories', 'tags', 'venues', 'organizers' );
|
31 |
public $event_search = 'yes';
|
32 |
public $displaysName;
|
33 |
+
public $eventlinktarget;
|
34 |
+
public $event_popup = "no";
|
35 |
+
|
36 |
//--------------------------------------------------------------------------------------------
|
37 |
// Weekday names/abbreviations (array must start with Sunday=0)
|
38 |
//--------------------------------------------------------------------------------------------
|
72 |
public $jd, $year, $month, $day, $displaytype, $numdaysinmonth, $monthstartday, $monthname, $previousmonth, $nextmonth;
|
73 |
public $events = array();
|
74 |
|
75 |
+
// types: mini,full,list,mini-list,(default=full)
|
76 |
public function __construct( $type = 'full', $date = '', $staticdisplaytype = false, $widget = 0, $limit = false, $page = 1, $displays = null, $filters = null, $event_search = 'yes' ) {
|
77 |
// static displaytype
|
78 |
global $ecwd_options;
|
84 |
if ( isset( $ecwd_options['time_format'] ) && $ecwd_options['time_format'] != '' ) {
|
85 |
$this->timeformat = $ecwd_options['time_format'];
|
86 |
}
|
87 |
+
|
88 |
+
$this->eventlinktarget .= (isset( $ecwd_options['events_new_tab']) && $ecwd_options['events_new_tab']==1 ?' target="_blank" ': '');
|
89 |
+
|
90 |
$this->timeformat .= (isset( $ecwd_options['time_type'])?' '.$ecwd_options['time_type']: '');
|
91 |
+
if(isset($ecwd_options['time_type']) && $ecwd_options['time_type'] !=''){
|
92 |
+
$this->timeformat = str_replace('H', 'g', $this->timeformat);
|
93 |
+
$this->timeformat = str_replace('h', 'g', $this->timeformat);
|
94 |
+
|
95 |
+
}
|
96 |
if ( isset( $ecwd_options['week_starts'] ) && $ecwd_options['week_starts'] != '' ) {
|
97 |
$this->weekstartday = $ecwd_options['week_starts'];
|
98 |
}
|
194 |
'name' => __( 'Day', 'ecwd' ),
|
195 |
'date' => $this->daydate
|
196 |
),
|
197 |
+
|
|
|
|
|
|
|
|
|
|
|
198 |
);
|
199 |
$this->event_search = $event_search;
|
200 |
$this->listlimit = $limit;
|
253 |
"mini-list",
|
254 |
"week",
|
255 |
'day',
|
256 |
+
|
|
|
|
|
257 |
) )
|
258 |
) { // mini and full cal
|
259 |
$html .= '
|
369 |
//$this->events = $this->arraySort($this->events, 'from');
|
370 |
}
|
371 |
if ( $this->displaytype == 'map' ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
372 |
|
|
|
373 |
} else {
|
374 |
$pages = 0;
|
375 |
$page = $this->page;
|
411 |
}
|
412 |
$html .= '<div class="event-main-content">';
|
413 |
if ( $event['permalink'] != '' ) {
|
414 |
+
$html .= '<h3 class="event-title" itemprop="name"><a href="' . $event['permalink'] . '" '.$this->eventlinktarget.' itemprop="url" style="color:' . $event['color'] . ';">' . $event['title'] . '</a></h3>';
|
415 |
} else {
|
416 |
$html .= '<h3 class="event-title" style="color:' . $event['color'] . ';" itemprop="name">' . $event['title'] . '</h3>';
|
417 |
}
|
444 |
}
|
445 |
$html .= '</div>';
|
446 |
if ( isset( $event['organizers'] ) && count( $event['organizers'] ) > 0 ) {
|
447 |
+
$html .= '<div class="event-organizers"><div class="ecwd-org-cont">';
|
448 |
foreach ( $event['organizers'] as $organizer ) {
|
449 |
$html .= '<div class="event-organizer" itemprop="organizer"> <a href="' . $organizer['permalink'] . '">' . $organizer['name'] . '</a></div>';
|
450 |
}
|
451 |
+
$html .= '</div></div>';
|
452 |
}
|
453 |
|
454 |
if ( $event['location'] !== '' ) {
|
455 |
+
$html .= '<div class="event-venue" itemprop="location" itemscope itemtype="http://schema.org/Place"><div class="ecwd-org-cont">
|
456 |
<span itemprop="name">';
|
457 |
if ( isset( $event['venue']['name'] ) ) {
|
458 |
$html .= '<a href="' . $event['venue']['permalink'] . '">' . $event['venue']['name'] . '</a>';
|
462 |
<div class="address" itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
|
463 |
' . ( $event['location'] ? $event['location'] : "" ) . '
|
464 |
</div>
|
465 |
+
</div>
|
466 |
+
</div>';
|
467 |
}
|
468 |
$html .= '<div class="event-content" itemprop="description">' . ( $event['details'] ? $event['details'] : $this->eventemptytext ) . '</div></div>';
|
469 |
|
501 |
if ( $pages > 1 ) {
|
502 |
$html .= '<div class="ecwd-pagination">';
|
503 |
if ( $this->page > 1 ) {
|
504 |
+
$html .= '<span class="cpage-span"><a href="?date=' . $this->year . '-' . $this->month . '&t=' . $this->displaytype . '&cpage=' . ( $this->page - 1 ) . '" class="cpage" rel="noindex, nofollow">...</a></span>';
|
505 |
}
|
506 |
for ( $i = ( $this->page - 3 ); $i < ( $this->page + 4 ); $i ++ ) {
|
507 |
if ( $i <= $pages and $i >= 1 ) {
|
508 |
if ( $this->page == $i ) {
|
509 |
$html .= '<span class="cpage-span"><span class="page">' . $i . '</span></span>';
|
510 |
} else {
|
511 |
+
$html .= '<span class="cpage-span"><a href="?date=' . $this->year . '-' . $this->month . '&t=' . $this->displaytype . '&cpage=' . $i . '" class="cpage" rel="noindex, nofollow">' . $i . '</a></span>';
|
512 |
}
|
513 |
}
|
514 |
}
|
515 |
if ( $this->page < $pages ) {
|
516 |
+
$html .= '<span class="cpage-span"><a href="?date=' . $this->year . '-' . $this->month . '&t=' . $this->displaytype . '&cpage=' . ( $this->page + 1 ) . '" class="cpage" rel="noindex, nofollow">...</a></span>';
|
517 |
}
|
518 |
$html .= '</div>';
|
519 |
}
|
545 |
$next_dateparam = $this->getWeekFirstDayDate( $next_year['year'] . '-' . $next_year['month'] . '-' . $next_year['day'] );
|
546 |
}
|
547 |
$html .= '<div class="current-month">
|
548 |
+
<a href="?date=' . $previous_dateparam . '&t=' . $this->displaytype . '" rel="noindex, nofollow"><</a>
|
549 |
' . $this->year . '
|
550 |
+
<a href="?date=' . $next_dateparam . '&t=' . $this->displaytype . '" rel="noindex, nofollow">></a>
|
551 |
<div>';
|
552 |
if ( $this->displaytype !== 'week' && $this->displaytype !== '4day' && $this->displaytype !== 'day' ) {
|
553 |
|
579 |
"list",
|
580 |
"mini-list",
|
581 |
'day',
|
582 |
+
'week'
|
|
|
|
|
|
|
583 |
) )
|
584 |
) { // mini and full cal
|
585 |
$html .= '
|
630 |
//$this->day = ;
|
631 |
|
632 |
} elseif ( $this->displaytype == 'week' ) {
|
|
|
|
|
|
|
633 |
}
|
|
|
634 |
//$html .= '</div>';
|
635 |
}
|
636 |
|
665 |
$previoustext = '<span><</span><span class="month-name"> ' . __( $this->previousmonth, 'ecwd' ) . ' ' . $prev_date . '</span>';
|
666 |
}
|
667 |
|
668 |
+
$html = '<div class="previous"><a href="?date=' . $dateparam . '&t=' . $this->displaytype . '" rel="noindex, nofollow">' . $previoustext . '</a></div>';
|
669 |
|
670 |
return $html;
|
671 |
}
|
715 |
if ( strtotime( $date ) == strtotime( date( 'Y-m-d' ) ) ) {
|
716 |
return $date;
|
717 |
} else {
|
718 |
+
if ( $this->displaytype == 'full' || $this->displaytype == 'month' || $this->displaytype == 'mini' || $this->displaytype == 'list' ) {
|
719 |
return date( 'Y-n-j', strtotime( date( 'Y-m-1' ), strtotime( $date ) ) );
|
720 |
} elseif ( $this->displaytype == 'week' ) {
|
721 |
return date( 'Y-n-j', strtotime( strtolower( $this->weekdays[ $this->weekstartday ] ) . " this week", strtotime( $date ) ) );
|
767 |
$divider = $this->monthselector === false ? ' | ' : '';
|
768 |
$nexttext = '<span class="month-name">' . $next_date . ' ' . $divider . __( $this->nextmonth, 'ecwd' ) . ' </span><span>></span>';
|
769 |
}
|
770 |
+
$html = '<div class="next"><a href="?date=' . $dateparam . '&t=' . $this->displaytype . '" rel="noindex, nofollow">' . $nexttext . '</a></div>';
|
771 |
|
772 |
return $html;
|
773 |
}
|
790 |
$html .= '<div class="ecwd-dropdown-menu">';
|
791 |
foreach ( $widgetDisplays as $display ) {
|
792 |
if ( $display !== 'none' && isset( $this->displaysName[ $display ] ) ) {
|
793 |
+
$html .= '<div class="type">' . '<a href="?date=' . $this->displaysName[ $display ]['date'] . '&t=' . $display . '" rel="noindex, nofollow">' . $this->displaysName[ $display ]['name'] . '</a>' . '</div>';
|
794 |
}
|
795 |
}
|
|
|
796 |
$html .= '</div></div>';
|
797 |
|
798 |
} else {
|
811 |
$html .= ' ecwd-selected-mode';
|
812 |
$html .= '">' . '<a>' . $this->displaysName[ $display ]['name'] . '</a>' . '</li>';
|
813 |
} else {
|
814 |
+
$html .= '">' . '<a href="?date=' . $this->displaysName[ $display ]['date'] . '&t=' . $display . '" rel="noindex, nofollow">' . $this->displaysName[ $display ]['name'] . '</a>' . '</li>';
|
815 |
}
|
816 |
}
|
817 |
}
|
983 |
}*/
|
984 |
}
|
985 |
if ( $cellevent['permalink'] ) {
|
986 |
+
$eventcontent .= '<a href="' . $cellevent['permalink'] . '" '.$this->eventlinktarget.'><span itemprop="name">' . $cellevent['title'] . '</span></a>';
|
987 |
} else {
|
988 |
$eventcontent .= '<span itemprop="name">' . $cellevent['title'] . '</span>';
|
989 |
}
|
1000 |
$eventcontent .= ' <span class="event-metalabel" style="background:' . $cellevent['color'] . '"></span>
|
1001 |
<h5 style="color:' . $cellevent['color'] . '" itemprop="name">';
|
1002 |
if ( isset( $cellevent['permalink'] ) && $cellevent['permalink'] !== '' ) {
|
1003 |
+
$eventcontent .= '<a href="' . $cellevent['permalink'] . '" '.$this->eventlinktarget.' style="color: ' . $cellevent['color'] . '">' . $cellevent['title'] . '</a>';
|
1004 |
} else {
|
1005 |
$eventcontent .= $cellevent['title'];
|
1006 |
}
|
1010 |
$eventcontent .= ' <span class="event-metalabel"></span>
|
1011 |
<h5 itemprop="name">';
|
1012 |
if ( isset( $cellevent['permalink'] ) && $cellevent['permalink'] !== '' ) {
|
1013 |
+
$eventcontent .= '<a href="' . $cellevent['permalink'] . '" '.$this->eventlinktarget.'>' . $cellevent['title'] . '</a>';
|
1014 |
} else {
|
1015 |
$eventcontent .= $cellevent['title'];
|
1016 |
}
|
1044 |
$eventdate .= '</div>';
|
1045 |
$eventcontent .= $eventdate;
|
1046 |
}
|
1047 |
+
|
1048 |
if ( isset( $cellevent['organizers'] ) && count( $cellevent['organizers'] ) > 0 ) {
|
1049 |
$eventcontent .= '<div class="event-organizers">';
|
1050 |
foreach ( $cellevent['organizers'] as $organizer ) {
|
1051 |
$eventcontent .= '<div class="event-organizer" itemprop="organizer"> <a href="' . $organizer['permalink'] . '">' . $organizer['name'] . '</a></div>';
|
1052 |
}
|
1053 |
$eventcontent .= '</div>';
|
1054 |
+
|
1055 |
}
|
1056 |
if ( $cellevent['location'] !== '' ) {
|
1057 |
$eventcontent .= '<div class="event-venue" itemprop="location" itemscope itemtype="http://schema.org/Place">';
|
1063 |
}
|
1064 |
$eventcontent .= '</div>';
|
1065 |
}
|
1066 |
+
|
1067 |
if ( isset( $cellevent['link'] ) && $cellevent['link'] != '' ) {
|
1068 |
$eventcontent .= '<div class="ecwd-link"> <a href="' . $cellevent['link'] . '" itemprop="url">' . $cellevent['link'] . '</a></div>';
|
1069 |
}
|
1086 |
|
1087 |
$eventcontent .= '</div><div class="ecwd-event-arrow-right"></div>';
|
1088 |
|
1089 |
+
|
1090 |
$eventcontent .= '</li> ';
|
1091 |
|
1092 |
|
1095 |
// }
|
1096 |
|
1097 |
}
|
1098 |
+
|
1099 |
$content .= $eventcontent;
|
1100 |
|
1101 |
if ( $i > 2 && $this->displaytype !== 'mini' ) {
|
1158 |
}
|
1159 |
|
1160 |
if ( $cellevent['permalink'] != '' ) {
|
1161 |
+
$html .= '<h3 class="event-title" itemprop="name"> <a href="' . $cellevent['permalink'] . '" '.$this->eventlinktarget;
|
1162 |
if ( isset( $cellevent['color'] ) && $cellevent['color'] !== '' ) {
|
1163 |
$html .= ' style="color:' . $cellevent['color'] . ';"';
|
1164 |
}
|
1201 |
}
|
1202 |
$html .= '</div>';
|
1203 |
if ( isset( $cellevent['organizers'] ) && count( $cellevent['organizers'] ) > 0 ) {
|
1204 |
+
$html .= '<div class="event-organizers">';
|
1205 |
foreach ( $cellevent['organizers'] as $organizer ) {
|
1206 |
+
$html .= '<div class="event-organizer" itemprop="organizer"> <a href="' . $organizer['permalink'] . '">' . $organizer['name'] . '</a></div>';
|
1207 |
}
|
1208 |
+
$html .= '</div>';
|
1209 |
}
|
1210 |
if ( $cellevent['location'] != '' ) {
|
1211 |
$html .= '<div class="event-venue" itemprop="location" itemscope itemtype="http://schema.org/Place">
|
includes/register-settings.php
CHANGED
@@ -119,6 +119,13 @@ function ecwd_register_settings() {
|
|
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' ),
|
119 |
'desc' => __( 'Select Order of Organizers and Venues.', 'ecwd' ),
|
120 |
'type' => 'order_select'
|
121 |
),
|
122 |
+
'events_new_tab' => array(
|
123 |
+
'id' => 'events_new_tab',
|
124 |
+
'name' => __( 'Open events in new tab', 'ecwd' ),
|
125 |
+
'desc' => '',
|
126 |
+
'type' => 'radio',
|
127 |
+
'default' => 0
|
128 |
+
),
|
129 |
'social_icons' => array(
|
130 |
'id' => 'social_icons',
|
131 |
'name' => __( 'Enable Social Icons', 'ecwd' ),
|
js/scripts.js
CHANGED
@@ -3,16 +3,26 @@
|
|
3 |
/**
|
4 |
* Public JS functions
|
5 |
*/
|
6 |
-
|
7 |
-
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
var view_click = 1;
|
10 |
var click = 1;
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
setTimeout(function () {
|
17 |
show_filters(0);
|
18 |
showMiniCalendarEventOnHover();
|
@@ -25,53 +35,53 @@
|
|
25 |
doMasonry();
|
26 |
}, 1);
|
27 |
|
28 |
-
if (
|
29 |
showMap();
|
30 |
}
|
31 |
jQuery('.ecwd_reset_filters').click(function () {
|
32 |
-
|
33 |
});
|
34 |
|
35 |
jQuery('body').on('click', '.ecwd_calendar_prev_next .next, .ecwd_calendar_prev_next .previous, .ecwd_calendar .type, .cpage, .current-month a, .ecwd_filter, .ecwd_reset_filters', function (e) {
|
36 |
-
var days =
|
37 |
return this.value;
|
38 |
}).get();
|
39 |
-
var cats =
|
40 |
return this.value;
|
41 |
}).get();
|
42 |
-
var tags =
|
43 |
return this.value;
|
44 |
}).get();
|
45 |
-
var venues =
|
46 |
return this.value;
|
47 |
}).get();
|
48 |
-
var organizers =
|
49 |
return this.value;
|
50 |
}).get();
|
51 |
-
var el =
|
52 |
-
if (
|
53 |
e.preventDefault();
|
54 |
}
|
55 |
-
var navLink =
|
56 |
if ((!navLink.attr('href') || navLink.attr('href') == 'undefined') && !navLink.is(':checkbox') && navLink.attr('class') != 'ecwd_reset_filters') {
|
57 |
-
navLink =
|
58 |
}
|
59 |
var main_div = navLink.closest('.calendar_main');
|
60 |
|
61 |
-
var calendar_ids_class =
|
62 |
-
var display =
|
63 |
var calendar_ids = calendar_ids_class[2];
|
64 |
-
var query =
|
65 |
-
var tag =
|
66 |
-
var venue =
|
67 |
-
var organizer =
|
68 |
-
var category =
|
69 |
-
var displays =
|
70 |
-
var date =
|
71 |
-
var page_items =
|
72 |
-
var event_search =
|
73 |
-
var filters =
|
74 |
-
|
75 |
jQuery.post(ecwd.ajaxurl, {
|
76 |
action: 'ecwd_ajax',
|
77 |
ecwd_calendar_ids: calendar_ids,
|
@@ -112,8 +122,7 @@
|
|
112 |
doMasonry();
|
113 |
}
|
114 |
|
115 |
-
|
116 |
-
})
|
117 |
e.stopPropagation();
|
118 |
});
|
119 |
|
@@ -133,19 +142,19 @@
|
|
133 |
});
|
134 |
|
135 |
jQuery('.ecwd-tag-container .ecwd-dropdown-menu > div').click(function (e) {
|
136 |
-
|
137 |
doSearch(this);
|
138 |
});
|
139 |
jQuery('.ecwd-category-container .ecwd-dropdown-menu > div').click(function (e) {
|
140 |
-
|
141 |
doSearch(this);
|
142 |
});
|
143 |
jQuery('.ecwd-venue-container .ecwd-dropdown-menu > div').click(function (e) {
|
144 |
-
|
145 |
doSearch(this);
|
146 |
});
|
147 |
jQuery('.ecwd-organizer-container .ecwd-dropdown-menu > div').click(function (e) {
|
148 |
-
|
149 |
doSearch(this);
|
150 |
});
|
151 |
}
|
@@ -153,21 +162,21 @@
|
|
153 |
|
154 |
function doSearch(el) {
|
155 |
|
156 |
-
var main_div =
|
157 |
-
var navLink =
|
158 |
-
var query =
|
159 |
-
var tag =
|
160 |
-
var venue =
|
161 |
-
var organizer =
|
162 |
-
var category =
|
163 |
-
var calendar_ids_class =
|
164 |
var calendar_ids = calendar_ids_class[2];
|
165 |
-
var displays =
|
166 |
-
var page_items =
|
167 |
-
var event_search =
|
168 |
-
var filters =
|
169 |
-
|
170 |
-
|
171 |
action: 'ecwd_ajax',
|
172 |
ecwd_query: query,
|
173 |
ecwd_category: category,
|
@@ -185,6 +194,7 @@
|
|
185 |
ecwd_nonce: ecwd.ajaxnonce
|
186 |
}, function (data) {
|
187 |
$(main_div).find('div.ecwd_calendar').replaceWith(data);
|
|
|
188 |
showFullCalendarEventOnHover();
|
189 |
upcomingEventsSlider();
|
190 |
showWidgetEventDesc();
|
@@ -199,8 +209,9 @@
|
|
199 |
doMasonry();
|
200 |
}
|
201 |
|
|
|
202 |
});
|
203 |
-
|
204 |
}
|
205 |
|
206 |
function showMiniCalendarEventOnHover() {
|
@@ -209,66 +220,66 @@
|
|
209 |
var ulEvent, day;
|
210 |
var ulEventFull, dayFull;
|
211 |
jQuery('body').on('click', 'div.ecwd_calendar .has-events', function (e) {
|
212 |
-
dayFull =
|
213 |
dayFull = dayFull[2];
|
214 |
-
ulEventFull =
|
215 |
-
if (parseInt(
|
216 |
-
if (dayFull ==
|
217 |
-
&&
|
218 |
-
|
219 |
} else {
|
220 |
showEvent(ulEventFull, this);
|
221 |
}
|
222 |
-
|
223 |
}
|
224 |
});
|
225 |
|
226 |
function showEvent(el, calendar) {
|
227 |
if (el.parent().parent().parent().parent().attr('class').indexOf("full") != -1) {
|
228 |
-
|
229 |
} else if (el.parent().parent().parent().parent().attr('class').indexOf("mini") != -1) {
|
230 |
-
|
231 |
}
|
232 |
|
233 |
}
|
234 |
|
235 |
function showFullCalendarEventOnHover() {
|
236 |
-
if (parseInt(
|
237 |
-
|
238 |
-
|
239 |
-
if(
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
});
|
253 |
|
254 |
-
|
255 |
-
|
256 |
});
|
257 |
}
|
258 |
|
259 |
-
|
260 |
-
|
261 |
-
if(
|
262 |
-
|
263 |
else
|
264 |
-
|
265 |
});
|
266 |
}
|
267 |
|
268 |
|
269 |
|
270 |
-
|
271 |
-
|
272 |
});
|
273 |
|
274 |
|
@@ -285,8 +296,8 @@
|
|
285 |
});
|
286 |
|
287 |
function doMasonry() {
|
288 |
-
var $container =
|
289 |
-
if($container.length &&
|
290 |
$container.imagesLoaded(function () {
|
291 |
$container.masonry({
|
292 |
itemSelector: '.ecwd-poster-item'
|
@@ -298,81 +309,80 @@
|
|
298 |
|
299 |
function showFilterSliderArrow() {
|
300 |
var li_position, li_width, last_child;
|
301 |
-
|
302 |
-
var cwidth =
|
303 |
-
|
304 |
if (cwidth == 0)
|
305 |
cwidth = 600;
|
306 |
-
if (
|
307 |
var ecwd_calendar_view_tabs_width = parseInt(cwidth) - 50;
|
308 |
else
|
309 |
var ecwd_calendar_view_tabs_width = parseInt(cwidth);
|
310 |
-
if (parseInt(jQuery('body').width()) <= 768 ||
|
311 |
var ecwd_calendar_view_visible_count = parseInt(ecwd_calendar_view_tabs_width / 110);
|
312 |
-
} else if (parseInt(jQuery('body').width()) <= 500 ||
|
313 |
var ecwd_calendar_view_visible_count = parseInt(ecwd_calendar_view_tabs_width / 90);
|
314 |
} else {
|
315 |
var ecwd_calendar_view_visible_count = parseInt(ecwd_calendar_view_tabs_width / 150);
|
316 |
}
|
317 |
-
|
318 |
-
//var ecwd_view_item_width =
|
319 |
var ecwd_view_item_width = ecwd_calendar_view_tabs_width/ecwd_calendar_view_visible_count;
|
320 |
|
321 |
-
|
322 |
-
if (
|
323 |
li_position = keyli;
|
324 |
-
li_width =
|
325 |
}
|
326 |
});
|
327 |
|
328 |
-
if (!(
|
329 |
-
|
330 |
-
$(element).find('.filter-arrow-right').hide();
|
331 |
else {
|
332 |
-
|
333 |
}
|
334 |
-
if(
|
335 |
last_child = 1;
|
336 |
}
|
337 |
|
338 |
-
if (
|
339 |
-
|
340 |
else
|
341 |
-
|
342 |
if (ecwd_calendar_view_visible_count <= li_position && li_position!=0) {
|
343 |
-
|
344 |
-
|
345 |
}else
|
346 |
-
|
347 |
});
|
348 |
|
349 |
|
350 |
-
|
351 |
-
var view_filter_width =
|
352 |
-
var view_filter_container_width =
|
353 |
-
var view_filter_count = parseInt(
|
354 |
-
var events_item_width =
|
355 |
-
if (
|
356 |
-
|
357 |
-
if (parseInt(
|
358 |
-
|
359 |
-
if (click && view_filter_container_width < view_filter_width * view_filter_count && parseInt(
|
360 |
click = 0;
|
361 |
-
|
362 |
click = 1
|
363 |
});
|
364 |
}
|
365 |
|
366 |
});
|
367 |
-
|
368 |
-
var view_filter_width =
|
369 |
-
if (
|
370 |
-
|
371 |
-
if (parseInt(
|
372 |
-
|
373 |
-
if (click && parseInt(
|
374 |
click = 0;
|
375 |
-
|
376 |
click = 1
|
377 |
});
|
378 |
}
|
@@ -383,21 +393,21 @@
|
|
383 |
function upcomingEventsSlider() {
|
384 |
var current_date = Date.parse(Date());
|
385 |
|
386 |
-
var upcoming_events_slider_main =
|
387 |
-
|
388 |
|
389 |
|
390 |
-
|
391 |
-
|
392 |
|
393 |
-
if (
|
394 |
-
|
395 |
}
|
396 |
|
397 |
|
398 |
var min = 0;
|
399 |
-
|
400 |
-
var item_date = Date.parse(
|
401 |
if(item_date<current_date){
|
402 |
min++;
|
403 |
}else{
|
@@ -405,43 +415,43 @@
|
|
405 |
}
|
406 |
});
|
407 |
|
408 |
-
if(min && min ==
|
409 |
min--;
|
410 |
}
|
411 |
|
412 |
-
|
413 |
|
414 |
-
if (parseInt(
|
415 |
-
|
416 |
}
|
417 |
-
if(parseInt(
|
418 |
-
|
419 |
}
|
420 |
|
421 |
-
|
422 |
-
var events_item_width =
|
423 |
|
424 |
-
var events_item_count = parseInt(
|
425 |
-
if (
|
426 |
-
|
427 |
-
if (click && upcoming_events_slider_main < events_item_width * events_item_count && parseInt(
|
428 |
click = 0;
|
429 |
-
|
430 |
click = 1
|
431 |
});
|
432 |
}
|
433 |
-
if (parseInt(
|
434 |
-
|
435 |
});
|
436 |
-
|
437 |
-
var events_item_width =
|
438 |
-
if (
|
439 |
-
|
440 |
-
if (parseInt(
|
441 |
-
|
442 |
-
if (click && parseInt(
|
443 |
click = 0;
|
444 |
-
|
445 |
click = 1
|
446 |
});
|
447 |
}
|
@@ -449,19 +459,19 @@
|
|
449 |
});
|
450 |
}
|
451 |
function showWidgetEventDesc() {
|
452 |
-
|
453 |
-
if (
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
if (
|
460 |
-
|
461 |
-
|
462 |
} else {
|
463 |
-
|
464 |
-
|
465 |
}
|
466 |
});
|
467 |
}
|
@@ -469,52 +479,52 @@
|
|
469 |
}
|
470 |
|
471 |
function calendarFullResponsive() {
|
472 |
-
if (
|
473 |
-
|
474 |
-
if (
|
475 |
-
var content =
|
476 |
-
if (
|
477 |
-
|
478 |
-
|
479 |
} else {
|
480 |
-
var content =
|
481 |
-
|
482 |
-
|
483 |
|
484 |
}
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
if (
|
491 |
-
|
492 |
-
|
493 |
} else {
|
494 |
-
|
495 |
-
|
496 |
}
|
497 |
});
|
498 |
})
|
499 |
}
|
500 |
})
|
501 |
} else if (jQuery(window).width() > 500) {
|
502 |
-
|
503 |
-
if (
|
504 |
-
//
|
505 |
-
if (
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
} else {
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
}
|
516 |
|
517 |
-
|
518 |
}
|
519 |
})
|
520 |
|
@@ -522,63 +532,63 @@
|
|
522 |
|
523 |
}
|
524 |
setTimeout(function () {
|
525 |
-
if (parseInt(
|
526 |
-
|
527 |
-
|
528 |
-
if (
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
} else {
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
}
|
537 |
});
|
538 |
});
|
539 |
} else {
|
540 |
-
|
541 |
-
|
542 |
-
if (
|
543 |
-
|
544 |
-
|
545 |
"max-width": "100%",
|
546 |
"width": "100%"
|
547 |
});
|
548 |
-
|
549 |
-
|
550 |
showFilterSliderArrow();
|
551 |
-
if (
|
552 |
doMasonry();
|
553 |
}
|
554 |
} else {
|
555 |
-
|
556 |
-
|
557 |
"max-width": "27%",
|
558 |
"float": "left"
|
559 |
});
|
560 |
-
|
561 |
"max-width": "71%",
|
562 |
"float": "left"
|
563 |
});
|
564 |
-
|
565 |
-
|
566 |
showFilterSliderArrow();
|
567 |
-
if (
|
568 |
doMasonry();
|
569 |
}
|
570 |
}
|
571 |
});
|
572 |
});
|
573 |
}
|
574 |
-
|
575 |
-
|
576 |
-
if (
|
577 |
-
|
578 |
-
|
579 |
} else {
|
580 |
-
|
581 |
-
|
582 |
}
|
583 |
});
|
584 |
});
|
@@ -586,26 +596,26 @@
|
|
586 |
|
587 |
function show_filters(main_div) {
|
588 |
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
}
|
602 |
}
|
603 |
-
|
|
|
604 |
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
if (main_div.find(".ecwd_show_filters span").hasClass('open')) {
|
610 |
main_div.find(".ecwd_calendar").css({"max-width": "71%", "float": "left"});
|
611 |
main_div.find(".ecwd_filters").css({"max-width": "27%", "float": "left"});
|
@@ -625,10 +635,10 @@
|
|
625 |
var maps = [];
|
626 |
jQuery(".ecwd_map_div").each(function (k, v) {
|
627 |
maps[k] = this;
|
628 |
-
var locations = JSON.parse(
|
629 |
var locations_len = Object.keys(locations).length;
|
630 |
|
631 |
-
|
632 |
|
633 |
var markers = [];
|
634 |
var zoom = 17;
|
@@ -649,7 +659,7 @@
|
|
649 |
}
|
650 |
|
651 |
}
|
652 |
-
|
653 |
map:{
|
654 |
options: {
|
655 |
zoom: zoom,
|
@@ -663,13 +673,13 @@
|
|
663 |
},
|
664 |
events: {
|
665 |
click: function (marker, event, context) {
|
666 |
-
var map =
|
667 |
-
infowindow =
|
668 |
if (infowindow) {
|
669 |
infowindow.open(map, marker);
|
670 |
infowindow.setContent(context.data);
|
671 |
} else {
|
672 |
-
|
673 |
infowindow: {
|
674 |
anchor: marker,
|
675 |
options: {content: context.data}
|
3 |
/**
|
4 |
* Public JS functions
|
5 |
*/
|
6 |
+
|
7 |
+
|
8 |
+
(function ($){
|
9 |
+
|
10 |
+
if(jQuery('#ecwd-calendar-main-css').length == 0){
|
11 |
+
jQuery("<link/>", {
|
12 |
+
id: 'ecwd-calendar-main-css',
|
13 |
+
rel: "stylesheet",
|
14 |
+
type: "text/css",
|
15 |
+
href: ecwd_plugin_url+'/css/calendar.css?ver=1'
|
16 |
+
}).appendTo("head");
|
17 |
+
}
|
18 |
+
var cwidth = jQuery(".calendar_main .ecwd_calendar").width();
|
19 |
var view_click = 1;
|
20 |
var click = 1;
|
21 |
+
jQuery('a[href="#ecwd-modal-preview"]').click(function(){
|
22 |
+
setTimeout(function () {
|
23 |
+
showFilterSliderArrow();
|
24 |
+
}, 1);
|
25 |
+
});
|
26 |
setTimeout(function () {
|
27 |
show_filters(0);
|
28 |
showMiniCalendarEventOnHover();
|
35 |
doMasonry();
|
36 |
}, 1);
|
37 |
|
38 |
+
if (jQuery('.ecwd_map_div').length > 0) {
|
39 |
showMap();
|
40 |
}
|
41 |
jQuery('.ecwd_reset_filters').click(function () {
|
42 |
+
jQuery(this).closest('.ecwd_filters').find('input:checkbox').attr('checked', false);
|
43 |
});
|
44 |
|
45 |
jQuery('body').on('click', '.ecwd_calendar_prev_next .next, .ecwd_calendar_prev_next .previous, .ecwd_calendar .type, .cpage, .current-month a, .ecwd_filter, .ecwd_reset_filters', function (e) {
|
46 |
+
var days = jQuery('input[name="ecwd_weekdays[]"]:checked').map(function () {
|
47 |
return this.value;
|
48 |
}).get();
|
49 |
+
var cats = jQuery('input[name="ecwd_categories[]"]:checked').map(function () {
|
50 |
return this.value;
|
51 |
}).get();
|
52 |
+
var tags = jQuery('input[name="ecwd_tags[]"]:checked').map(function () {
|
53 |
return this.value;
|
54 |
}).get();
|
55 |
+
var venues = jQuery('input[name="ecwd_venues[]"]:checked').map(function () {
|
56 |
return this.value;
|
57 |
}).get();
|
58 |
+
var organizers = jQuery('input[name="ecwd_organizers[]"]:checked').map(function () {
|
59 |
return this.value;
|
60 |
}).get();
|
61 |
+
var el = jQuery(this);
|
62 |
+
if (!jQuery(this).is(':checkbox')) {
|
63 |
e.preventDefault();
|
64 |
}
|
65 |
+
var navLink = jQuery(this);
|
66 |
if ((!navLink.attr('href') || navLink.attr('href') == 'undefined') && !navLink.is(':checkbox') && navLink.attr('class') != 'ecwd_reset_filters') {
|
67 |
+
navLink = jQuery(this).find('a');
|
68 |
}
|
69 |
var main_div = navLink.closest('.calendar_main');
|
70 |
|
71 |
+
var calendar_ids_class = jQuery(main_div).find('div.ecwd_calendar').find('div:first-child').attr('class').split('-');
|
72 |
+
var display = jQuery(main_div).find('div.ecwd_calendar').attr('class').split(' ')[0].split('-')[2];
|
73 |
var calendar_ids = calendar_ids_class[2];
|
74 |
+
var query = jQuery(main_div).find('input.ecwd-search').val();
|
75 |
+
var tag = jQuery('.ecwd_tags').val();
|
76 |
+
var venue = jQuery('.ecwd_venues').val();
|
77 |
+
var organizer = jQuery('.ecwd_organizers').val();
|
78 |
+
var category = jQuery('.ecwd_categories').val();
|
79 |
+
var displays = jQuery(main_div).find('.ecwd_displays').val();
|
80 |
+
var date = jQuery(main_div).find('.ecwd_date').val();
|
81 |
+
var page_items = jQuery(main_div).find('.ecwd_page_items').val();
|
82 |
+
var event_search = jQuery(main_div).find('.event_search').val();
|
83 |
+
var filters = jQuery(main_div).find('.ecwd_filters').val();
|
84 |
+
jQuery(main_div).find('.ecwd_loader').show();
|
85 |
jQuery.post(ecwd.ajaxurl, {
|
86 |
action: 'ecwd_ajax',
|
87 |
ecwd_calendar_ids: calendar_ids,
|
122 |
doMasonry();
|
123 |
}
|
124 |
|
125 |
+
});
|
|
|
126 |
e.stopPropagation();
|
127 |
});
|
128 |
|
142 |
});
|
143 |
|
144 |
jQuery('.ecwd-tag-container .ecwd-dropdown-menu > div').click(function (e) {
|
145 |
+
jQuery('.ecwd_tags').val(jQuery(this).attr("data-term-tag"));
|
146 |
doSearch(this);
|
147 |
});
|
148 |
jQuery('.ecwd-category-container .ecwd-dropdown-menu > div').click(function (e) {
|
149 |
+
jQuery('.ecwd_categories').val(jQuery(this).attr("data-term-category"));
|
150 |
doSearch(this);
|
151 |
});
|
152 |
jQuery('.ecwd-venue-container .ecwd-dropdown-menu > div').click(function (e) {
|
153 |
+
jQuery('.ecwd_venues').val(jQuery(this).attr("data-term-venue"));
|
154 |
doSearch(this);
|
155 |
});
|
156 |
jQuery('.ecwd-organizer-container .ecwd-dropdown-menu > div').click(function (e) {
|
157 |
+
jQuery('.ecwd_organizers').val(jQuery(this).attr("data-term-organizer"));
|
158 |
doSearch(this);
|
159 |
});
|
160 |
}
|
162 |
|
163 |
function doSearch(el) {
|
164 |
|
165 |
+
var main_div = jQuery(el).closest('.calendar_main');
|
166 |
+
var navLink = jQuery(main_div).find('.previous').find('a');
|
167 |
+
var query = jQuery(main_div).find('input.ecwd-search').val();
|
168 |
+
var tag = jQuery(main_div).find('.ecwd_tags').val();
|
169 |
+
var venue = jQuery(main_div).find('.ecwd_venues').val();
|
170 |
+
var organizer = jQuery(main_div).find('.ecwd_organizers').val();
|
171 |
+
var category = jQuery(main_div).find('.ecwd_categories').val();
|
172 |
+
var calendar_ids_class = jQuery(main_div).find('div.ecwd_calendar').find('div:first-child').attr('class').split('-');
|
173 |
var calendar_ids = calendar_ids_class[2];
|
174 |
+
var displays = jQuery(main_div).find('.ecwd_displays').val();
|
175 |
+
var page_items = jQuery(main_div).find('.ecwd_page_items').val();
|
176 |
+
var event_search = jQuery(main_div).find('.event_search').val();
|
177 |
+
var filters = jQuery(main_div).find('.ecwd_filters').val();
|
178 |
+
jQuery(main_div).find('.ecwd_loader').show();
|
179 |
+
jQuery.post(ecwd.ajaxurl, {
|
180 |
action: 'ecwd_ajax',
|
181 |
ecwd_query: query,
|
182 |
ecwd_category: category,
|
194 |
ecwd_nonce: ecwd.ajaxnonce
|
195 |
}, function (data) {
|
196 |
$(main_div).find('div.ecwd_calendar').replaceWith(data);
|
197 |
+
showMiniCalendarEventOnHover();
|
198 |
showFullCalendarEventOnHover();
|
199 |
upcomingEventsSlider();
|
200 |
showWidgetEventDesc();
|
209 |
doMasonry();
|
210 |
}
|
211 |
|
212 |
+
|
213 |
});
|
214 |
+
jQuery('.ecwd-search-submit').blur();
|
215 |
}
|
216 |
|
217 |
function showMiniCalendarEventOnHover() {
|
220 |
var ulEvent, day;
|
221 |
var ulEventFull, dayFull;
|
222 |
jQuery('body').on('click', 'div.ecwd_calendar .has-events', function (e) {
|
223 |
+
dayFull = jQuery(this).attr('data-date').split('-');
|
224 |
dayFull = dayFull[2];
|
225 |
+
ulEventFull = jQuery(this).find('ul.events');
|
226 |
+
if (parseInt(jQuery(this).closest('.ecwd_calendar').width()) <= 300 || parseInt(jQuery(window).width()) <= 768 || jQuery(this).closest('.ecwd_calendar').hasClass('ecwd-widget-mini')) {
|
227 |
+
if (dayFull == jQuery(this).closest('.ecwd_calendar').find('.ecwd-events-day-details').attr('data-dayNumber')
|
228 |
+
&& jQuery(this).closest('.ecwd_calendar').find('.ecwd-events-day-details').is(':empty') == false) {
|
229 |
+
jQuery(this).closest('.ecwd_calendar').find('.ecwd-events-day-details').html('');
|
230 |
} else {
|
231 |
showEvent(ulEventFull, this);
|
232 |
}
|
233 |
+
jQuery(this).closest('.ecwd_calendar').find('.ecwd-events-day-details').attr('data-dayNumber', dayFull);
|
234 |
}
|
235 |
});
|
236 |
|
237 |
function showEvent(el, calendar) {
|
238 |
if (el.parent().parent().parent().parent().attr('class').indexOf("full") != -1) {
|
239 |
+
jQuery(calendar).closest('.ecwd_calendar').find('.ecwd-events-day-details').html(el.find('.event-details').clone().css('display', 'block'));
|
240 |
} else if (el.parent().parent().parent().parent().attr('class').indexOf("mini") != -1) {
|
241 |
+
jQuery(calendar).closest('.ecwd_calendar').find('.ecwd-events-day-details').html(el.clone());
|
242 |
}
|
243 |
|
244 |
}
|
245 |
|
246 |
function showFullCalendarEventOnHover() {
|
247 |
+
if (parseInt(jQuery(window).width()) >= 768) {
|
248 |
+
jQuery('div.ecwd-page-full .has-events ul.events:not(.more_events) > li:not(.ecwd-calendar-more-event)').on('mouseover', function (e) {
|
249 |
+
//if()
|
250 |
+
if(jQuery(window).width()-e.clientX>400){
|
251 |
+
jQuery(this).find('ul.events').show();
|
252 |
+
jQuery(this).find('div.event-details-container').show();
|
253 |
+
} else{
|
254 |
+
jQuery(this).find('ul.events').show();
|
255 |
+
jQuery(this).find('div.event-details-container').show();
|
256 |
+
jQuery(this).find('div.event-details-container').css({
|
257 |
+
left:"auto",
|
258 |
+
right:parseInt(jQuery(this).width())+25
|
259 |
+
});
|
260 |
+
jQuery(this).find('div.event-details-container .ecwd-event-arrow').css("display","none");
|
261 |
+
jQuery(this).find('div.event-details-container .ecwd-event-arrow-right').css("display","block");
|
262 |
+
}
|
263 |
});
|
264 |
|
265 |
+
jQuery('div.ecwd-page-full .has-events ul.events:not(.more_events) > li:not(.ecwd-calendar-more-event)').on('mouseout', function (e) {
|
266 |
+
jQuery(this).find('div.event-details-container').hide();
|
267 |
});
|
268 |
}
|
269 |
|
270 |
+
jQuery('div.ecwd-page-full .has-events ul.more_events > li').on('click', function (e) {
|
271 |
+
jQuery('div.ecwd-page-full .has-events ul.more_events > li').find('.event-details-container').slideUp();
|
272 |
+
if(jQuery(this).find('.event-details-container').is(":visible"))
|
273 |
+
jQuery(this).find('.event-details-container').slideUp();
|
274 |
else
|
275 |
+
jQuery(this).find('.event-details-container').slideDown();
|
276 |
});
|
277 |
}
|
278 |
|
279 |
|
280 |
|
281 |
+
jQuery('.ecwd-show-map-span').click(function () {
|
282 |
+
jQuery('.ecwd-show-map').show();
|
283 |
});
|
284 |
|
285 |
|
296 |
});
|
297 |
|
298 |
function doMasonry() {
|
299 |
+
var $container = jQuery('.ecwd-poster-board');
|
300 |
+
if($container.length && jQuery('.ecwd-poster-board').find('.ecwd-poster-item').length>0) {
|
301 |
$container.imagesLoaded(function () {
|
302 |
$container.masonry({
|
303 |
itemSelector: '.ecwd-poster-item'
|
309 |
|
310 |
function showFilterSliderArrow() {
|
311 |
var li_position, li_width, last_child;
|
312 |
+
jQuery(".calendar_main:not([class^='ecwd_widget'] .calendar_main) .ecwd_calendar_view_tabs").each(function (key, element) {
|
313 |
+
var cwidth = jQuery(element).closest('.ecwd_calendar').width();
|
314 |
+
//console.log(cwidth);
|
315 |
if (cwidth == 0)
|
316 |
cwidth = 600;
|
317 |
+
if (jQuery(this).find('.ecwd-search').length != 0)
|
318 |
var ecwd_calendar_view_tabs_width = parseInt(cwidth) - 50;
|
319 |
else
|
320 |
var ecwd_calendar_view_tabs_width = parseInt(cwidth);
|
321 |
+
if (parseInt(jQuery('body').width()) <= 768 || jQuery(".calendar_full_content .ecwd_calendar").width() < 600) {
|
322 |
var ecwd_calendar_view_visible_count = parseInt(ecwd_calendar_view_tabs_width / 110);
|
323 |
+
} else if (parseInt(jQuery('body').width()) <= 500 || jQuery(".calendar_full_content .ecwd_calendar").width() < 400) {
|
324 |
var ecwd_calendar_view_visible_count = parseInt(ecwd_calendar_view_tabs_width / 90);
|
325 |
} else {
|
326 |
var ecwd_calendar_view_visible_count = parseInt(ecwd_calendar_view_tabs_width / 150);
|
327 |
}
|
328 |
+
jQuery(element).find('.filter-container').width(ecwd_calendar_view_tabs_width);
|
329 |
+
//var ecwd_view_item_width = jQuery(element).find('.filter-container ul li').eq(0).width();
|
330 |
var ecwd_view_item_width = ecwd_calendar_view_tabs_width/ecwd_calendar_view_visible_count;
|
331 |
|
332 |
+
jQuery(element).find('ul li').each(function (keyli, elementli) {
|
333 |
+
if (jQuery(elementli).hasClass('ecwd-selected-mode')) {
|
334 |
li_position = keyli;
|
335 |
+
li_width = jQuery(elementli).width();
|
336 |
}
|
337 |
});
|
338 |
|
339 |
+
if (!(jQuery(element).find('.filter-container').width() + (ecwd_view_item_width / 2.5) < ecwd_view_item_width * parseInt(jQuery(element).find('.filter-container ul li').length) && !(jQuery(element).find("ul li:nth-child(" + (jQuery(element).find('.filter-container ul li').length) + ")").hasClass("ecwd-selected-mode"))))
|
340 |
+
jQuery(element).find('.filter-arrow-right').hide();
|
|
|
341 |
else {
|
342 |
+
jQuery(element).find('.filter-arrow-right').show();
|
343 |
}
|
344 |
+
if(jQuery(element).find("ul li:last-child").hasClass("ecwd-selected-mode")) {
|
345 |
last_child = 1;
|
346 |
}
|
347 |
|
348 |
+
if (jQuery(element).find(".filter-arrow-right").css("display") == "block" || last_child == 1)
|
349 |
+
jQuery(element).find('.filter-container ul li').width((ecwd_calendar_view_tabs_width - 30) / ecwd_calendar_view_visible_count);
|
350 |
else
|
351 |
+
jQuery(element).find('.filter-container ul li').width((ecwd_calendar_view_tabs_width) / ecwd_calendar_view_visible_count);
|
352 |
if (ecwd_calendar_view_visible_count <= li_position && li_position!=0) {
|
353 |
+
jQuery(element).find('ul li').css({left: "-" + ((li_position + 1 - ecwd_calendar_view_visible_count) * jQuery(element).find('.filter-container ul li').eq(0).width()) + "px"});
|
354 |
+
jQuery(element).find('.filter-arrow-left').show();
|
355 |
}else
|
356 |
+
jQuery(element).find('ul li').css({left: "0px"});
|
357 |
});
|
358 |
|
359 |
|
360 |
+
jQuery('.ecwd_calendar_view_tabs .filter-arrow-right').click(function () {
|
361 |
+
var view_filter_width = jQuery(this).parent().find('ul li').eq(0).width();
|
362 |
+
var view_filter_container_width = jQuery(this).parent().width();
|
363 |
+
var view_filter_count = parseInt(jQuery(this).parent().find('ul li').length);
|
364 |
+
var events_item_width = jQuery(this).parent().find('ul li').eq(0).width();
|
365 |
+
if (jQuery(this).parent().find('.filter-arrow-left').css('display') == 'none')
|
366 |
+
jQuery(this).parent().find('.filter-arrow-left').show();
|
367 |
+
if (parseInt(jQuery(this).parent().find('ul li').css('left')) <= -(view_filter_width * (view_filter_count) - view_filter_container_width) + view_filter_width)
|
368 |
+
jQuery(this).hide();
|
369 |
+
if (click && view_filter_container_width < view_filter_width * view_filter_count && parseInt(jQuery(this).parent().find('ul li').css('left')) >= -(view_filter_width * (view_filter_count) - view_filter_container_width)) {
|
370 |
click = 0;
|
371 |
+
jQuery(this).parent().find('ul li').animate({left: "-=" + view_filter_width}, 400, function () {
|
372 |
click = 1
|
373 |
});
|
374 |
}
|
375 |
|
376 |
});
|
377 |
+
jQuery('.ecwd_calendar_view_tabs .filter-arrow-left').click(function () {
|
378 |
+
var view_filter_width = jQuery(this).parent().find('ul li').eq(0).width();
|
379 |
+
if (jQuery(this).parent().find('.filter-arrow-right').css('display') == 'none')
|
380 |
+
jQuery(this).parent().find('.filter-arrow-right').show();
|
381 |
+
if (parseInt(jQuery(this).parent().find('ul li').css('left')) == -view_filter_width)
|
382 |
+
jQuery(this).hide();
|
383 |
+
if (click && parseInt(jQuery(this).parent().find('ul li').css('left')) < 0) {
|
384 |
click = 0;
|
385 |
+
jQuery(this).parent().find('ul li').animate({left: "+=" + view_filter_width}, 400, function () {
|
386 |
click = 1
|
387 |
});
|
388 |
}
|
393 |
function upcomingEventsSlider() {
|
394 |
var current_date = Date.parse(Date());
|
395 |
|
396 |
+
var upcoming_events_slider_main = jQuery('.upcoming_events_slider').width();
|
397 |
+
jQuery('.upcoming_events_slider .upcoming_events_item').width(upcoming_events_slider_main);
|
398 |
|
399 |
|
400 |
+
jQuery('.upcoming_events_slider .upcoming_event_container').width(parseInt(upcoming_events_slider_main) - 80);
|
401 |
+
jQuery('.upcoming_events_slider > ul').width(upcoming_events_slider_main * jQuery('.upcoming_events_slider .upcoming_events_item').length);
|
402 |
|
403 |
+
if (jQuery(".upcoming_events_slider").width() < jQuery('.upcoming_events_slider > ul').width()) {
|
404 |
+
jQuery('.upcoming_events_slider .upcoming_events_slider-arrow-right').show();
|
405 |
}
|
406 |
|
407 |
|
408 |
var min = 0;
|
409 |
+
jQuery('.upcoming_events_slider .upcoming_events_item').each(function () {
|
410 |
+
var item_date = Date.parse(jQuery(this).data('date'));
|
411 |
if(item_date<current_date){
|
412 |
min++;
|
413 |
}else{
|
415 |
}
|
416 |
});
|
417 |
|
418 |
+
if(min && min == jQuery('.upcoming_events_slider .upcoming_events_item').length){
|
419 |
min--;
|
420 |
}
|
421 |
|
422 |
+
jQuery('.upcoming_events_slider .upcoming_events_item').css('left', -upcoming_events_slider_main*min);
|
423 |
|
424 |
+
if (parseInt(jQuery('.upcoming_events_slider .upcoming_events_item').css('left'))< 0){
|
425 |
+
jQuery('.upcoming_events_slider').parent().find('.upcoming_events_slider-arrow-left').show();
|
426 |
}
|
427 |
+
if(parseInt(jQuery('.upcoming_events_slider .upcoming_events_item').css('left'))==-(jQuery('.upcoming_events_slider > ul').width()-upcoming_events_slider_main)){
|
428 |
+
jQuery('.upcoming_events_slider').parent().find('.upcoming_events_slider-arrow-right').hide();
|
429 |
}
|
430 |
|
431 |
+
jQuery('.upcoming_events_slider .upcoming_events_slider-arrow-right').click(function () {
|
432 |
+
var events_item_width = jQuery(this).parent().find('ul li').eq(0).width();
|
433 |
|
434 |
+
var events_item_count = parseInt(jQuery(this).parent().find('ul li').length);
|
435 |
+
if (jQuery(this).parent().find('.upcoming_events_slider-arrow-left').css('display') == 'none')
|
436 |
+
jQuery(this).parent().find('.upcoming_events_slider-arrow-left').show();
|
437 |
+
if (click && upcoming_events_slider_main < events_item_width * events_item_count && parseInt(jQuery(this).parent().find('ul li').css('left')) >= -(events_item_width * (events_item_count) - upcoming_events_slider_main)) {
|
438 |
click = 0;
|
439 |
+
jQuery(this).parent().find('ul li').animate({left: "-=" + events_item_width}, 400, function () {
|
440 |
click = 1
|
441 |
});
|
442 |
}
|
443 |
+
if (parseInt(jQuery(this).parent().find('ul li').css('left')) <= -(jQuery('.upcoming_events_slider > ul').width() - (2 * events_item_width)))
|
444 |
+
jQuery(this).hide();
|
445 |
});
|
446 |
+
jQuery('.upcoming_events_slider .upcoming_events_slider-arrow-left').click(function () {
|
447 |
+
var events_item_width = jQuery(this).parent().find('ul li').eq(0).width();
|
448 |
+
if (jQuery(this).parent().find('.upcoming_events_slider-arrow-right').css('display') == 'none')
|
449 |
+
jQuery(this).parent().find('.upcoming_events_slider-arrow-right').show();
|
450 |
+
if (parseInt(jQuery(this).parent().find('ul li').css('left')) == -events_item_width)
|
451 |
+
jQuery(this).hide();
|
452 |
+
if (click && parseInt(jQuery(this).parent().find('ul li').css('left')) < 0) {
|
453 |
click = 0;
|
454 |
+
jQuery(this).parent().find('ul li').animate({left: "+=" + events_item_width}, 400, function () {
|
455 |
click = 1
|
456 |
});
|
457 |
}
|
459 |
});
|
460 |
}
|
461 |
function showWidgetEventDesc() {
|
462 |
+
jQuery('.ecwd-widget-mini .event-container, .ecwd-widget-mini .ecwd_list .event-main-content').each(function () {
|
463 |
+
if (jQuery(this).find('.arrow-down').length == 0) {
|
464 |
+
jQuery(this).find('.ecwd-list-date-cont').append("<span class='arrow-down'> </span>");
|
465 |
+
jQuery(this).find('.ecwd-list-date-cont').after("<div class='event_dropdown_cont'></div>");
|
466 |
+
jQuery(this).find('.event_dropdown_cont').append(jQuery(this).children(".event-venue,.event-content, .event-organizers"));
|
467 |
+
|
468 |
+
jQuery(this).find('.arrow-down').click(function () {
|
469 |
+
if (jQuery(this).hasClass('open')) {
|
470 |
+
jQuery(this).parent().parent().find('.event_dropdown_cont').slideUp(400);
|
471 |
+
jQuery(this).removeClass('open');
|
472 |
} else {
|
473 |
+
jQuery(this).parent().parent().find('.event_dropdown_cont').slideDown(400);
|
474 |
+
jQuery(this).addClass('open');
|
475 |
}
|
476 |
});
|
477 |
}
|
479 |
}
|
480 |
|
481 |
function calendarFullResponsive() {
|
482 |
+
if (jQuery(window).width() <= 500) {
|
483 |
+
jQuery('div[class^="ecwd-page"] .event-container, div[class^="ecwd-page"] .ecwd_list .event-main-content').each(function () {
|
484 |
+
if (jQuery(this).find('.arrow-down').length == 0) {
|
485 |
+
var content = jQuery(this).find('.event-content').html();
|
486 |
+
if (jQuery(this).hasClass("event-container")) {
|
487 |
+
jQuery(this).find('.event-content').html(jQuery(this).find('.ecwd-list-img').html() + content);
|
488 |
+
jQuery(this).find('.ecwd-list-img').remove();
|
489 |
} else {
|
490 |
+
var content = jQuery(this).find('.event-content').html();
|
491 |
+
jQuery(this).find('.event-content').html(jQuery(this).prev().html() + content);
|
492 |
+
jQuery(this).prev().remove();
|
493 |
|
494 |
}
|
495 |
+
jQuery(this).find('.ecwd-list-date-cont').append("<span class='arrow-down'> </span>");
|
496 |
+
jQuery(this).find('.ecwd-list-date-cont').after("<div class='event_dropdown_cont'></div>");
|
497 |
+
jQuery(this).find('.event_dropdown_cont').append(jQuery(this).children(".event-venue,.event-content, .event-organizers"));
|
498 |
+
jQuery(this).find('.arrow-down').each(function () {
|
499 |
+
jQuery(this).click(function () {
|
500 |
+
if (jQuery(this).hasClass('open')) {
|
501 |
+
jQuery(this).parent().parent().find('.event_dropdown_cont').slideUp(400);
|
502 |
+
jQuery(this).removeClass('open');
|
503 |
} else {
|
504 |
+
jQuery(this).parent().parent().find('.event_dropdown_cont').slideDown(400);
|
505 |
+
jQuery(this).addClass('open');
|
506 |
}
|
507 |
});
|
508 |
})
|
509 |
}
|
510 |
})
|
511 |
} else if (jQuery(window).width() > 500) {
|
512 |
+
jQuery('div[class^="ecwd-page"] .event-container, div[class^="ecwd-page"] .ecwd_list .event-main-content').each(function () {
|
513 |
+
if (jQuery(this).find('.arrow-down').length != 0) {
|
514 |
+
// jQuery(this).css('height','auto');
|
515 |
+
if (jQuery(this).hasClass("event-container")) {
|
516 |
+
jQuery(this).find('.event-title').before('<div class="ecwd-list-img"><div class="ecwd-list-img-container">' + jQuery(this).find('.ecwd-list-img-container').html() + '</div></div>');
|
517 |
+
jQuery(this).find('.event-content .ecwd-list-img-container').remove();
|
518 |
+
jQuery(this).find('.ecwd-list-date-cont').after(jQuery(this).find('.event_dropdown_cont').html());
|
519 |
+
jQuery(this).find('.event_dropdown_cont').remove();
|
520 |
} else {
|
521 |
+
jQuery(this).parent().find('.ecwd-list-date.resp').after('<div class="ecwd-list-img"><div class="ecwd-list-img-container">' + jQuery(this).find('.ecwd-list-img-container').html() + '</div></div>');
|
522 |
+
jQuery(this).find('.event-content .ecwd-list-img-container').remove();
|
523 |
+
jQuery(this).find('.ecwd-list-date-cont').after(jQuery(this).find('.event_dropdown_cont').html());
|
524 |
+
jQuery(this).find('.event_dropdown_cont').remove();
|
525 |
}
|
526 |
|
527 |
+
jQuery(this).find('.arrow-down').remove();
|
528 |
}
|
529 |
})
|
530 |
|
532 |
|
533 |
}
|
534 |
setTimeout(function () {
|
535 |
+
if (parseInt(jQuery('body').width()) <= 768 || jQuery(".calendar_full_content").width() <= 550) {
|
536 |
+
jQuery('.calendar_main').each(function (k, v) {
|
537 |
+
jQuery(this).find('.ecwd_show_filters').click(function () {
|
538 |
+
if (jQuery(this).find('span').hasClass('open')) {
|
539 |
+
jQuery(this).find('span').html(jQuery('.ecwd_show_filters_text').val());
|
540 |
+
jQuery(this).next().hide();
|
541 |
+
jQuery(this).find('span').removeClass('open');
|
542 |
} else {
|
543 |
+
jQuery(this).find('span').html(jQuery('.ecwd_hide_filters_text').val());
|
544 |
+
jQuery(this).next().show();
|
545 |
+
jQuery(this).find('span').addClass('open');
|
546 |
}
|
547 |
});
|
548 |
});
|
549 |
} else {
|
550 |
+
jQuery('.calendar_main').each(function () {
|
551 |
+
jQuery(this).find('.ecwd_show_filters span').click(function () {
|
552 |
+
if (jQuery(this).hasClass('open')) {
|
553 |
+
jQuery(this).html(jQuery('.ecwd_show_filters_text').val());
|
554 |
+
jQuery(this).closest(".calendar_full_content").find(".ecwd_calendar").css({
|
555 |
"max-width": "100%",
|
556 |
"width": "100%"
|
557 |
});
|
558 |
+
jQuery(this).parent().next().hide();
|
559 |
+
jQuery(this).removeClass('open');
|
560 |
showFilterSliderArrow();
|
561 |
+
if (jQuery('.ecwd-poster-board').length > 0) {
|
562 |
doMasonry();
|
563 |
}
|
564 |
} else {
|
565 |
+
jQuery(this).html(jQuery('.ecwd_hide_filters_text').val());
|
566 |
+
jQuery(this).closest(".calendar_full_content").find(".ecwd_filters").css({
|
567 |
"max-width": "27%",
|
568 |
"float": "left"
|
569 |
});
|
570 |
+
jQuery(this).closest(".calendar_full_content").find(".ecwd_calendar").css({
|
571 |
"max-width": "71%",
|
572 |
"float": "left"
|
573 |
});
|
574 |
+
jQuery(this).parent().next().show();
|
575 |
+
jQuery(this).addClass('open');
|
576 |
showFilterSliderArrow();
|
577 |
+
if (jQuery('.ecwd-poster-board').length > 0) {
|
578 |
doMasonry();
|
579 |
}
|
580 |
}
|
581 |
});
|
582 |
});
|
583 |
}
|
584 |
+
jQuery('.ecwd_filter_item').each(function () {
|
585 |
+
jQuery(this).find('.ecwd_filter_heading').click(function () {
|
586 |
+
if (jQuery(this).hasClass('open')) {
|
587 |
+
jQuery(this).next().slideUp(400);
|
588 |
+
jQuery(this).removeClass('open');
|
589 |
} else {
|
590 |
+
jQuery(this).next().slideDown(400);
|
591 |
+
jQuery(this).addClass('open');
|
592 |
}
|
593 |
});
|
594 |
});
|
596 |
|
597 |
function show_filters(main_div) {
|
598 |
|
599 |
+
if (parseInt(jQuery('body').width()) <= 768 || jQuery(".calendar_full_content").width() <= 550) {
|
600 |
+
jQuery(".calendar_full_content .ecwd_calendar").css("max-width", "100%");
|
601 |
+
jQuery(".calendar_full_content .ecwd_filters, .calendar_full_content .ecwd_calendar").css({
|
602 |
+
"max-width": "100%",
|
603 |
+
"width": "100%",
|
604 |
+
"float": "none"
|
605 |
+
});
|
606 |
+
jQuery(".ecwd_show_filters").removeClass('ecwd_show_filters_left').addClass('ecwd_show_filters_top');
|
607 |
+
if (!main_div) {
|
608 |
+
jQuery(".ecwd_show_filters span").html(jQuery('.ecwd_show_filters_text').val());
|
609 |
+
jQuery(".ecwd_show_filters span").removeClass("open");
|
610 |
+
jQuery(".ecwd_filters").hide();
|
|
|
611 |
}
|
612 |
+
}
|
613 |
+
else {
|
614 |
|
615 |
+
if (!main_div) {
|
616 |
+
jQuery(".ecwd_show_filters").removeClass('ecwd_show_filters_top').addClass('ecwd_show_filters_left');
|
617 |
+
} else {
|
618 |
+
if (main_div.find(".ecwd_calendar").hasClass('ecwd-widget-mini') === false) {
|
619 |
if (main_div.find(".ecwd_show_filters span").hasClass('open')) {
|
620 |
main_div.find(".ecwd_calendar").css({"max-width": "71%", "float": "left"});
|
621 |
main_div.find(".ecwd_filters").css({"max-width": "27%", "float": "left"});
|
635 |
var maps = [];
|
636 |
jQuery(".ecwd_map_div").each(function (k, v) {
|
637 |
maps[k] = this;
|
638 |
+
var locations = JSON.parse(jQuery(maps[k]).next('textarea').val());
|
639 |
var locations_len = Object.keys(locations).length;
|
640 |
|
641 |
+
jQuery(maps[k]).gmap3();
|
642 |
|
643 |
var markers = [];
|
644 |
var zoom = 17;
|
659 |
}
|
660 |
|
661 |
}
|
662 |
+
jQuery(maps[k]).gmap3({
|
663 |
map:{
|
664 |
options: {
|
665 |
zoom: zoom,
|
673 |
},
|
674 |
events: {
|
675 |
click: function (marker, event, context) {
|
676 |
+
var map = jQuery(maps[k]).gmap3("get"),
|
677 |
+
infowindow = jQuery(maps[k]).gmap3({get: {name: "infowindow"}});
|
678 |
if (infowindow) {
|
679 |
infowindow.open(map, marker);
|
680 |
infowindow.setContent(context.data);
|
681 |
} else {
|
682 |
+
jQuery(maps[k]).gmap3({
|
683 |
infowindow: {
|
684 |
anchor: marker,
|
685 |
options: {content: context.data}
|
languages/ecwd-ja.mo
ADDED
Binary file
|
languages/ecwd-ja.po
ADDED
@@ -0,0 +1,379 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: event_calendar_wd\n"
|
4 |
+
"POT-Creation-Date: 2015-07-23 13:04+0400\n"
|
5 |
+
"PO-Revision-Date: 2015-08-25 12:08+0400\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"Language: ja\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 1.5.4\n"
|
13 |
+
"X-Poedit-Basepath: ../\n"
|
14 |
+
"Plural-Forms: nplurals=1; plural=0;\n"
|
15 |
+
"X-Poedit-KeywordsList: _e;__\n"
|
16 |
+
"X-Poedit-SearchPathExcluded-0: views/admin\n"
|
17 |
+
"X-Poedit-SearchPathExcluded-1: js\n"
|
18 |
+
"X-Poedit-SearchPathExcluded-2: includes/ecwd-cpt-class.php\n"
|
19 |
+
"X-Poedit-SearchPathExcluded-3: includes/register-settings.php\n"
|
20 |
+
"X-Poedit-SearchPathExcluded-4: includes/ecwd-ical-events-class.php\n"
|
21 |
+
"X-Poedit-SearchPathExcluded-5: includes/ecwd-google-events-class.php\n"
|
22 |
+
"X-Poedit-SearchPathExcluded-6: includes/ecwd-facebook-events-class.php\n"
|
23 |
+
"X-Poedit-SearchPathExcluded-7: ecwd_admin_class.php\n"
|
24 |
+
"X-Poedit-SearchPath-0: .\n"
|
25 |
+
|
26 |
+
#: includes/calendar-class.php:175 includes/calendar-class.php:176
|
27 |
+
#: views/widgets.php:168
|
28 |
+
msgid "Month"
|
29 |
+
msgstr "月"
|
30 |
+
|
31 |
+
#: includes/calendar-class.php:177 views/widgets.php:169
|
32 |
+
msgid "List"
|
33 |
+
msgstr "リスト"
|
34 |
+
|
35 |
+
#: includes/calendar-class.php:179
|
36 |
+
msgid "Week"
|
37 |
+
msgstr "・ウィーク"
|
38 |
+
|
39 |
+
#: includes/calendar-class.php:183
|
40 |
+
msgid "Day"
|
41 |
+
msgstr "デイ"
|
42 |
+
|
43 |
+
#: includes/calendar-class.php:186
|
44 |
+
msgid "Map"
|
45 |
+
msgstr "マップ"
|
46 |
+
|
47 |
+
#: includes/calendar-class.php:188
|
48 |
+
msgid "4 Days"
|
49 |
+
msgstr "4日"
|
50 |
+
|
51 |
+
#: includes/calendar-class.php:191
|
52 |
+
msgid "Posterboard"
|
53 |
+
msgstr "写真を見ます"
|
54 |
+
|
55 |
+
#: includes/calendar-class.php:383 includes/calendar-class.php:417
|
56 |
+
#: includes/calendar-class.php:572 includes/calendar-class.php:1181
|
57 |
+
#: includes/calendar-class.php:1330 includes/ecwd-functions.php:360
|
58 |
+
#: views/ecwd-event-content.php:76 views/ecwd-event-content.php:158
|
59 |
+
#: views/ecwd-organizer-content.php:145 views/ecwd-venue-content.php:178
|
60 |
+
#: views/single-event.php:151 views/single-event.php:247
|
61 |
+
#: views/single-event.php:487
|
62 |
+
msgid "All day"
|
63 |
+
msgstr "一日中"
|
64 |
+
|
65 |
+
#: includes/calendar-class.php:440 includes/calendar-class.php:520
|
66 |
+
#: includes/calendar-class.php:1386
|
67 |
+
msgid "No events"
|
68 |
+
msgstr "イベントはありません"
|
69 |
+
|
70 |
+
#: includes/calendar-class.php:644
|
71 |
+
msgid "No Events"
|
72 |
+
msgstr "イベントはありません"
|
73 |
+
|
74 |
+
#: includes/calendar-class.php:1256
|
75 |
+
msgid "More events"
|
76 |
+
msgstr "その他のイベント"
|
77 |
+
|
78 |
+
#: includes/ecwd-cpt-filter.php:67
|
79 |
+
msgid "From"
|
80 |
+
msgstr "から"
|
81 |
+
|
82 |
+
#: includes/ecwd-cpt-filter.php:74
|
83 |
+
msgid "To"
|
84 |
+
msgstr "まで"
|
85 |
+
|
86 |
+
#: includes/ecwd-display-class.php:876 includes/ecwd-display-class.php:882
|
87 |
+
#: includes/ecwd-display-class.php:900 includes/ecwd-display-class.php:917
|
88 |
+
#: includes/texts.php:60
|
89 |
+
msgid "Repeat every"
|
90 |
+
msgstr "すべての繰り返し"
|
91 |
+
|
92 |
+
#: includes/ecwd-display-class.php:876 includes/texts.php:66
|
93 |
+
msgid "days"
|
94 |
+
msgstr "日"
|
95 |
+
|
96 |
+
#: includes/ecwd-display-class.php:878 includes/texts.php:61
|
97 |
+
msgid "Repeat every day"
|
98 |
+
msgstr "毎日繰り返します"
|
99 |
+
|
100 |
+
#: includes/ecwd-display-class.php:882 includes/texts.php:67
|
101 |
+
msgid "weeks"
|
102 |
+
msgstr "週間"
|
103 |
+
|
104 |
+
#: includes/ecwd-display-class.php:884 includes/texts.php:62
|
105 |
+
msgid "Repeat every week"
|
106 |
+
msgstr "毎週繰り返し"
|
107 |
+
|
108 |
+
#: includes/ecwd-display-class.php:889
|
109 |
+
msgid "on"
|
110 |
+
msgstr "上の"
|
111 |
+
|
112 |
+
#: includes/ecwd-display-class.php:900 includes/texts.php:68
|
113 |
+
msgid "months"
|
114 |
+
msgstr "ヶ月"
|
115 |
+
|
116 |
+
#: includes/ecwd-display-class.php:902 includes/texts.php:63
|
117 |
+
msgid "Repeat every month"
|
118 |
+
msgstr "毎月繰り返し"
|
119 |
+
|
120 |
+
#: includes/ecwd-display-class.php:907 includes/ecwd-display-class.php:931
|
121 |
+
msgid "on the same day"
|
122 |
+
msgstr "同じ日に"
|
123 |
+
|
124 |
+
#: includes/ecwd-display-class.php:912 includes/ecwd-display-class.php:936
|
125 |
+
msgid "on the"
|
126 |
+
msgstr "上の"
|
127 |
+
|
128 |
+
#: includes/ecwd-display-class.php:917 includes/texts.php:69
|
129 |
+
msgid "years"
|
130 |
+
msgstr "年"
|
131 |
+
|
132 |
+
#: includes/ecwd-display-class.php:919 includes/texts.php:64
|
133 |
+
msgid "Repeat every year"
|
134 |
+
msgstr "毎年繰り返し"
|
135 |
+
|
136 |
+
#: includes/ecwd-display-class.php:940 includes/texts.php:70
|
137 |
+
msgid "until"
|
138 |
+
msgstr "まで"
|
139 |
+
|
140 |
+
#: includes/ecwd-functions.php:8
|
141 |
+
msgid "Loading..."
|
142 |
+
msgstr "読み込んでいます..."
|
143 |
+
|
144 |
+
#: includes/ecwd-functions.php:439 includes/texts.php:53
|
145 |
+
msgid "DAYS"
|
146 |
+
msgstr "・デイズ"
|
147 |
+
|
148 |
+
#: includes/ecwd-functions.php:440 includes/texts.php:54
|
149 |
+
msgid "HOURS"
|
150 |
+
msgstr "アワー"
|
151 |
+
|
152 |
+
#: includes/ecwd-functions.php:441 includes/texts.php:55
|
153 |
+
msgid "MINUTES"
|
154 |
+
msgstr "議事録"
|
155 |
+
|
156 |
+
#: includes/ecwd-functions.php:442 includes/texts.php:56
|
157 |
+
msgid "SECONDS"
|
158 |
+
msgstr "秒"
|
159 |
+
|
160 |
+
#: includes/texts.php:2
|
161 |
+
msgid "January"
|
162 |
+
msgstr "1月"
|
163 |
+
|
164 |
+
#: includes/texts.php:3
|
165 |
+
msgid "February"
|
166 |
+
msgstr "2月"
|
167 |
+
|
168 |
+
#: includes/texts.php:4
|
169 |
+
msgid "March"
|
170 |
+
msgstr "3月"
|
171 |
+
|
172 |
+
#: includes/texts.php:5
|
173 |
+
msgid "April"
|
174 |
+
msgstr "4月"
|
175 |
+
|
176 |
+
#: includes/texts.php:6
|
177 |
+
msgid "May"
|
178 |
+
msgstr "5月"
|
179 |
+
|
180 |
+
#: includes/texts.php:7
|
181 |
+
msgid "June"
|
182 |
+
msgstr "6月"
|
183 |
+
|
184 |
+
#: includes/texts.php:8
|
185 |
+
msgid "July"
|
186 |
+
msgstr "7月"
|
187 |
+
|
188 |
+
#: includes/texts.php:9
|
189 |
+
msgid "August"
|
190 |
+
msgstr "8月"
|
191 |
+
|
192 |
+
#: includes/texts.php:10
|
193 |
+
msgid "September"
|
194 |
+
msgstr "9月"
|
195 |
+
|
196 |
+
#: includes/texts.php:11
|
197 |
+
msgid "October"
|
198 |
+
msgstr "10月"
|
199 |
+
|
200 |
+
#: includes/texts.php:12
|
201 |
+
msgid "November"
|
202 |
+
msgstr "11月"
|
203 |
+
|
204 |
+
#: includes/texts.php:13
|
205 |
+
msgid "December"
|
206 |
+
msgstr "12月"
|
207 |
+
|
208 |
+
#: includes/texts.php:15
|
209 |
+
msgid "Sunday"
|
210 |
+
msgstr "日曜日"
|
211 |
+
|
212 |
+
#: includes/texts.php:16
|
213 |
+
msgid "Monday"
|
214 |
+
msgstr "月曜日"
|
215 |
+
|
216 |
+
#: includes/texts.php:17
|
217 |
+
msgid "Tuesday"
|
218 |
+
msgstr "火曜日"
|
219 |
+
|
220 |
+
#: includes/texts.php:18
|
221 |
+
msgid "Wednesday"
|
222 |
+
msgstr "水曜日"
|
223 |
+
|
224 |
+
#: includes/texts.php:19
|
225 |
+
msgid "Thursday"
|
226 |
+
msgstr "木曜日"
|
227 |
+
|
228 |
+
#: includes/texts.php:20
|
229 |
+
msgid "Friday"
|
230 |
+
msgstr "金曜日"
|
231 |
+
|
232 |
+
#: includes/texts.php:21
|
233 |
+
msgid "Saturday"
|
234 |
+
msgstr "土曜日"
|
235 |
+
|
236 |
+
#: includes/texts.php:25
|
237 |
+
msgid "Sun"
|
238 |
+
msgstr "日"
|
239 |
+
|
240 |
+
#: includes/texts.php:26
|
241 |
+
msgid "Mon"
|
242 |
+
msgstr "月"
|
243 |
+
|
244 |
+
#: includes/texts.php:27
|
245 |
+
msgid "Tue"
|
246 |
+
msgstr "火"
|
247 |
+
|
248 |
+
#: includes/texts.php:28
|
249 |
+
msgid "Wed"
|
250 |
+
msgstr "水"
|
251 |
+
|
252 |
+
#: includes/texts.php:29
|
253 |
+
msgid "Thu"
|
254 |
+
msgstr "木"
|
255 |
+
|
256 |
+
#: includes/texts.php:30
|
257 |
+
msgid "Fri"
|
258 |
+
msgstr "金"
|
259 |
+
|
260 |
+
#: includes/texts.php:31
|
261 |
+
msgid "Sat"
|
262 |
+
msgstr "土"
|
263 |
+
|
264 |
+
#: includes/texts.php:34
|
265 |
+
msgid "Su"
|
266 |
+
msgstr "日"
|
267 |
+
|
268 |
+
#: includes/texts.php:35
|
269 |
+
msgid "Mo"
|
270 |
+
msgstr "月"
|
271 |
+
|
272 |
+
#: includes/texts.php:36
|
273 |
+
msgid "Tu"
|
274 |
+
msgstr "火"
|
275 |
+
|
276 |
+
#: includes/texts.php:37
|
277 |
+
msgid "We"
|
278 |
+
msgstr "水"
|
279 |
+
|
280 |
+
#: includes/texts.php:38
|
281 |
+
msgid "Th"
|
282 |
+
msgstr "木"
|
283 |
+
|
284 |
+
#: includes/texts.php:39
|
285 |
+
msgid "Fr"
|
286 |
+
msgstr "金"
|
287 |
+
|
288 |
+
#: includes/texts.php:40
|
289 |
+
msgid "Sa"
|
290 |
+
msgstr "土"
|
291 |
+
|
292 |
+
#: includes/texts.php:44
|
293 |
+
msgid "Show Filters"
|
294 |
+
msgstr "フィルタを表示"
|
295 |
+
|
296 |
+
#: includes/texts.php:45
|
297 |
+
msgid "Collapse Filters"
|
298 |
+
msgstr "折りたたみフィルター"
|
299 |
+
|
300 |
+
#: includes/texts.php:46
|
301 |
+
msgid "Reset Filters"
|
302 |
+
msgstr "リセットフィルタ"
|
303 |
+
|
304 |
+
#: includes/texts.php:48
|
305 |
+
msgid "Days"
|
306 |
+
msgstr "日"
|
307 |
+
|
308 |
+
#: includes/texts.php:49
|
309 |
+
msgid "Categories"
|
310 |
+
msgstr "カテゴリー"
|
311 |
+
|
312 |
+
#: includes/texts.php:50
|
313 |
+
msgid "Venues"
|
314 |
+
msgstr "会場"
|
315 |
+
|
316 |
+
#: includes/texts.php:57
|
317 |
+
msgid "The event has just started"
|
318 |
+
msgstr "イベントは始まったばかり"
|
319 |
+
|
320 |
+
#: includes/texts.php:72
|
321 |
+
msgid "Sundays"
|
322 |
+
msgstr "日曜日"
|
323 |
+
|
324 |
+
#: includes/texts.php:73
|
325 |
+
msgid "Mondays"
|
326 |
+
msgstr "月曜日"
|
327 |
+
|
328 |
+
#: includes/texts.php:74
|
329 |
+
msgid "Tuesdays"
|
330 |
+
msgstr "火曜日"
|
331 |
+
|
332 |
+
#: includes/texts.php:75
|
333 |
+
msgid "Wednesdays"
|
334 |
+
msgstr "水曜日"
|
335 |
+
|
336 |
+
#: includes/texts.php:76
|
337 |
+
msgid "Thursdays"
|
338 |
+
msgstr "木曜日"
|
339 |
+
|
340 |
+
#: includes/texts.php:77
|
341 |
+
msgid "Fridays"
|
342 |
+
msgstr "金曜日"
|
343 |
+
|
344 |
+
#: includes/texts.php:78
|
345 |
+
msgid "Saturdays"
|
346 |
+
msgstr "土曜日"
|
347 |
+
|
348 |
+
#: views/ecwd-event-content.php:67 views/ecwd-event-content.php:153
|
349 |
+
#: views/single-event.php:142 views/single-event.php:242
|
350 |
+
msgid "Date"
|
351 |
+
msgstr "期日"
|
352 |
+
|
353 |
+
#: views/ecwd-event-content.php:91 views/single-event.php:170
|
354 |
+
msgid "Url"
|
355 |
+
msgstr "Url"
|
356 |
+
|
357 |
+
#: views/ecwd-event-content.php:97 views/single-event.php:177
|
358 |
+
msgid "Organizers"
|
359 |
+
msgstr "オーガナイザー"
|
360 |
+
|
361 |
+
#: views/ecwd-organizer-content.php:109
|
362 |
+
msgid "upcoming events"
|
363 |
+
msgstr "今後のイベント"
|
364 |
+
|
365 |
+
#: views/ecwd-venue-content.php:141
|
366 |
+
msgid "events"
|
367 |
+
msgstr "イベント"
|
368 |
+
|
369 |
+
#: views/single-event.php:190
|
370 |
+
msgid "Venue"
|
371 |
+
msgstr "開催地"
|
372 |
+
|
373 |
+
#: views/single-event.php:200
|
374 |
+
msgid "Location"
|
375 |
+
msgstr "場所"
|
376 |
+
|
377 |
+
#: views/single-event.php:449
|
378 |
+
msgid "Related events"
|
379 |
+
msgstr "関連イベント"
|
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.3
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -130,6 +130,12 @@ After downloading the ZIP file of the Event Calendar WD plugin,
|
|
130 |
|
131 |
== Changelog ==
|
132 |
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
= 1.0.19 =
|
134 |
Minor bug fixed
|
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.3
|
7 |
+
Stable tag: 1.0.20
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
130 |
|
131 |
== Changelog ==
|
132 |
|
133 |
+
= 1.0.20 =
|
134 |
+
Fixed: Show event url issue
|
135 |
+
Added: "noindex, nofollow" to calendar links
|
136 |
+
Added: Open pop in new tab option
|
137 |
+
Added: Japanese support
|
138 |
+
|
139 |
= 1.0.19 =
|
140 |
Minor bug fixed
|
141 |
|
views/single-event.php
CHANGED
@@ -38,7 +38,9 @@ $ecwd_event = $post;
|
|
38 |
$ecwd_event_metas = get_post_meta($ecwd_event->ID, '', true);
|
39 |
$ecwd_event_date_from = $ecwd_event_metas[ECWD_PLUGIN_PREFIX . '_event_date_from'][0];
|
40 |
$ecwd_event_date_to = $ecwd_event_metas[ECWD_PLUGIN_PREFIX . '_event_date_to'][0];
|
41 |
-
$ecwd_event_metas[ECWD_PLUGIN_PREFIX . '_event_url']
|
|
|
|
|
42 |
if (!isset($ecwd_event_metas[ECWD_PLUGIN_PREFIX . '_event_location'])) {
|
43 |
$ecwd_event_metas[ECWD_PLUGIN_PREFIX . '_event_location'] = array(0 => '');
|
44 |
}
|
@@ -461,7 +463,7 @@ get_header();
|
|
461 |
}
|
462 |
|
463 |
$d = new ECWD_Display(0, '', '', $today);
|
464 |
-
$events = $d->get_event_days($events);
|
465 |
?>
|
466 |
|
467 |
<?php
|
38 |
$ecwd_event_metas = get_post_meta($ecwd_event->ID, '', true);
|
39 |
$ecwd_event_date_from = $ecwd_event_metas[ECWD_PLUGIN_PREFIX . '_event_date_from'][0];
|
40 |
$ecwd_event_date_to = $ecwd_event_metas[ECWD_PLUGIN_PREFIX . '_event_date_to'][0];
|
41 |
+
if ( ! isset( $ecwd_event_metas[ ECWD_PLUGIN_PREFIX . '_event_url' ] ) ) {
|
42 |
+
$ecwd_event_metas[ ECWD_PLUGIN_PREFIX . '_event_url' ] = array( 0 => '' );
|
43 |
+
}
|
44 |
if (!isset($ecwd_event_metas[ECWD_PLUGIN_PREFIX . '_event_location'])) {
|
45 |
$ecwd_event_metas[ECWD_PLUGIN_PREFIX . '_event_location'] = array(0 => '');
|
46 |
}
|
463 |
}
|
464 |
|
465 |
$d = new ECWD_Display(0, '', '', $today);
|
466 |
+
$events = $d->get_event_days($events, 0);
|
467 |
?>
|
468 |
|
469 |
<?php
|