Version Description
Download this release
Release Info
| Developer | bordoni |
| Plugin | |
| Version | 5.0.0.2 |
| Comparing to | |
| See all releases | |
Code changes from version 5.0.0.1 to 5.0.0.2
- common/src/Tribe/Context.php +5 -0
- common/src/Tribe/Date_Utils.php +28 -1
- common/src/Tribe/Main.php +1 -1
- common/vendor/autoload.php +1 -1
- common/vendor/autoload_52.php +1 -1
- common/vendor/composer/autoload_real.php +4 -4
- common/vendor/composer/autoload_real_52.php +3 -3
- common/vendor/composer/autoload_static.php +5 -5
- lang/the-events-calendar-de_DE.mo +0 -0
- lang/the-events-calendar-it_IT.mo +0 -0
- readme.txt +17 -9
- src/Tribe/Assets.php +1 -1
- src/Tribe/Integrations/Manager.php +17 -1
- src/Tribe/Integrations/WP_Rocket.php +43 -0
- src/Tribe/Main.php +12 -4
- src/Tribe/Plugin_Register.php +1 -1
- src/Tribe/Views/V2/View.php +1 -0
- src/Tribe/Views/V2/Views/Traits/Breakpoint_Behavior.php +36 -3
- src/admin-views/aggregator/page.php +1 -1
- src/admin-views/events-meta-box.php +1 -1
- src/deprecated/Tribe__Events__Asset__Dynamic.php +1 -1
- src/resources/js/views/breakpoints.js +6 -2
- src/views/v2/components/breakpoints.php +31 -6
- src/views/v2/day.php +5 -1
- src/views/v2/list.php +5 -1
- src/views/v2/month.php +5 -1
- the-events-calendar.php +1 -1
- vendor/autoload.php +1 -1
- vendor/composer/autoload_classmap.php +1 -0
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +5 -4
common/src/Tribe/Context.php
CHANGED
|
@@ -514,6 +514,11 @@ class Tribe__Context {
|
|
| 514 |
$value = $default;
|
| 515 |
|
| 516 |
global $wp_query;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 517 |
foreach ( $query_vars as $query_var ) {
|
| 518 |
$the_value = $wp_query->get( $query_var, self::NOT_FOUND );
|
| 519 |
if ( $the_value !== self::NOT_FOUND ) {
|
| 514 |
$value = $default;
|
| 515 |
|
| 516 |
global $wp_query;
|
| 517 |
+
|
| 518 |
+
if ( ! $wp_query instanceof \WP_Query ) {
|
| 519 |
+
return $value;
|
| 520 |
+
}
|
| 521 |
+
|
| 522 |
foreach ( $query_vars as $query_var ) {
|
| 523 |
$the_value = $wp_query->get( $query_var, self::NOT_FOUND );
|
| 524 |
if ( $the_value !== self::NOT_FOUND ) {
|
common/src/Tribe/Date_Utils.php
CHANGED
|
@@ -26,11 +26,38 @@ if ( ! class_exists( 'Tribe__Date_Utils' ) ) {
|
|
| 26 |
const DBTIMEFORMAT = 'H:i:s';
|
| 27 |
const DBYEARMONTHTIMEFORMAT = 'Y-m';
|
| 28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
private static $localized_months_full = array();
|
| 30 |
private static $localized_months_short = array();
|
| 31 |
private static $localized_weekdays = array();
|
| 32 |
private static $localized_months = array();
|
| 33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
/**
|
| 35 |
* Try to format a Date to the Default Datepicker format
|
| 36 |
*
|
|
@@ -99,7 +126,7 @@ if ( ! class_exists( 'Tribe__Date_Utils' ) ) {
|
|
| 99 |
return $formats;
|
| 100 |
}
|
| 101 |
|
| 102 |
-
return isset( $formats[ $translate ] ) ? $formats[ $translate ] : $formats[
|
| 103 |
}
|
| 104 |
|
| 105 |
/**
|
| 26 |
const DBTIMEFORMAT = 'H:i:s';
|
| 27 |
const DBYEARMONTHTIMEFORMAT = 'Y-m';
|
| 28 |
|
| 29 |
+
/**
|
| 30 |
+
* Default datepicker format index.
|
| 31 |
+
*
|
| 32 |
+
* @since 4.11.0.1
|
| 33 |
+
*
|
| 34 |
+
* @var int
|
| 35 |
+
*/
|
| 36 |
+
private static $default_datepicker_format_index = 1;
|
| 37 |
+
|
| 38 |
private static $localized_months_full = array();
|
| 39 |
private static $localized_months_short = array();
|
| 40 |
private static $localized_weekdays = array();
|
| 41 |
private static $localized_months = array();
|
| 42 |
|
| 43 |
+
/**
|
| 44 |
+
* Get the datepickerFormat index.
|
| 45 |
+
*
|
| 46 |
+
* @since 4.11.0.1
|
| 47 |
+
*
|
| 48 |
+
* @return int
|
| 49 |
+
*/
|
| 50 |
+
public static function get_datepicker_format_index() {
|
| 51 |
+
/**
|
| 52 |
+
* Filter the datepickerFormat index.
|
| 53 |
+
*
|
| 54 |
+
* @since 4.11.0.1
|
| 55 |
+
*
|
| 56 |
+
* @param int $format_index Index of datepickerFormat.
|
| 57 |
+
*/
|
| 58 |
+
return apply_filters( 'tribe_datepicker_format_index', tribe_get_option( 'datepickerFormat', static::$default_datepicker_format_index ) );
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
/**
|
| 62 |
* Try to format a Date to the Default Datepicker format
|
| 63 |
*
|
| 126 |
return $formats;
|
| 127 |
}
|
| 128 |
|
| 129 |
+
return isset( $formats[ $translate ] ) ? $formats[ $translate ] : $formats[ static::get_datepicker_format_index() ];
|
| 130 |
}
|
| 131 |
|
| 132 |
/**
|
common/src/Tribe/Main.php
CHANGED
|
@@ -17,7 +17,7 @@ class Tribe__Main {
|
|
| 17 |
const OPTIONNAME = 'tribe_events_calendar_options';
|
| 18 |
const OPTIONNAMENETWORK = 'tribe_events_calendar_network_options';
|
| 19 |
|
| 20 |
-
const VERSION = '4.11.0';
|
| 21 |
|
| 22 |
const FEED_URL = 'https://theeventscalendar.com/feed/';
|
| 23 |
|
| 17 |
const OPTIONNAME = 'tribe_events_calendar_options';
|
| 18 |
const OPTIONNAMENETWORK = 'tribe_events_calendar_network_options';
|
| 19 |
|
| 20 |
+
const VERSION = '4.11.0.1';
|
| 21 |
|
| 22 |
const FEED_URL = 'https://theeventscalendar.com/feed/';
|
| 23 |
|
common/vendor/autoload.php
CHANGED
|
@@ -4,4 +4,4 @@
|
|
| 4 |
|
| 5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
| 6 |
|
| 7 |
-
return
|
| 4 |
|
| 5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
| 6 |
|
| 7 |
+
return ComposerAutoloaderInit17c55e552e353fda787993f04d6c5568::getLoader();
|
common/vendor/autoload_52.php
CHANGED
|
@@ -4,4 +4,4 @@
|
|
| 4 |
|
| 5 |
require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
|
| 6 |
|
| 7 |
-
return
|
| 4 |
|
| 5 |
require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
|
| 6 |
|
| 7 |
+
return ComposerAutoloaderInit8881633f5e3cf236b6db019e147807d6::getLoader();
|
common/vendor/composer/autoload_real.php
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
// autoload_real.php @generated by Composer
|
| 4 |
|
| 5 |
-
class
|
| 6 |
{
|
| 7 |
private static $loader;
|
| 8 |
|
|
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit993d85bcee34a653f05decc81218cfcf
|
|
| 19 |
return self::$loader;
|
| 20 |
}
|
| 21 |
|
| 22 |
-
spl_autoload_register(array('
|
| 23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
| 24 |
-
spl_autoload_unregister(array('
|
| 25 |
|
| 26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
| 27 |
if ($useStaticLoader) {
|
| 28 |
require_once __DIR__ . '/autoload_static.php';
|
| 29 |
|
| 30 |
-
call_user_func(\Composer\Autoload\
|
| 31 |
} else {
|
| 32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
| 33 |
foreach ($map as $namespace => $path) {
|
| 2 |
|
| 3 |
// autoload_real.php @generated by Composer
|
| 4 |
|
| 5 |
+
class ComposerAutoloaderInit17c55e552e353fda787993f04d6c5568
|
| 6 |
{
|
| 7 |
private static $loader;
|
| 8 |
|
| 19 |
return self::$loader;
|
| 20 |
}
|
| 21 |
|
| 22 |
+
spl_autoload_register(array('ComposerAutoloaderInit17c55e552e353fda787993f04d6c5568', 'loadClassLoader'), true, true);
|
| 23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
| 24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit17c55e552e353fda787993f04d6c5568', 'loadClassLoader'));
|
| 25 |
|
| 26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
| 27 |
if ($useStaticLoader) {
|
| 28 |
require_once __DIR__ . '/autoload_static.php';
|
| 29 |
|
| 30 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit17c55e552e353fda787993f04d6c5568::getInitializer($loader));
|
| 31 |
} else {
|
| 32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
| 33 |
foreach ($map as $namespace => $path) {
|
common/vendor/composer/autoload_real_52.php
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
// autoload_real_52.php generated by xrstf/composer-php52
|
| 4 |
|
| 5 |
-
class
|
| 6 |
private static $loader;
|
| 7 |
|
| 8 |
public static function loadClassLoader($class) {
|
|
@@ -19,9 +19,9 @@ class ComposerAutoloaderInit763e330b838e1069bb2cef504cb65875 {
|
|
| 19 |
return self::$loader;
|
| 20 |
}
|
| 21 |
|
| 22 |
-
spl_autoload_register(array('
|
| 23 |
self::$loader = $loader = new xrstf_Composer52_ClassLoader();
|
| 24 |
-
spl_autoload_unregister(array('
|
| 25 |
|
| 26 |
$vendorDir = dirname(dirname(__FILE__));
|
| 27 |
$baseDir = dirname($vendorDir);
|
| 2 |
|
| 3 |
// autoload_real_52.php generated by xrstf/composer-php52
|
| 4 |
|
| 5 |
+
class ComposerAutoloaderInit8881633f5e3cf236b6db019e147807d6 {
|
| 6 |
private static $loader;
|
| 7 |
|
| 8 |
public static function loadClassLoader($class) {
|
| 19 |
return self::$loader;
|
| 20 |
}
|
| 21 |
|
| 22 |
+
spl_autoload_register(array('ComposerAutoloaderInit8881633f5e3cf236b6db019e147807d6', 'loadClassLoader'), true /*, true */);
|
| 23 |
self::$loader = $loader = new xrstf_Composer52_ClassLoader();
|
| 24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit8881633f5e3cf236b6db019e147807d6', 'loadClassLoader'));
|
| 25 |
|
| 26 |
$vendorDir = dirname(dirname(__FILE__));
|
| 27 |
$baseDir = dirname($vendorDir);
|
common/vendor/composer/autoload_static.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
|
| 5 |
namespace Composer\Autoload;
|
| 6 |
|
| 7 |
-
class
|
| 8 |
{
|
| 9 |
public static $prefixLengthsPsr4 = array (
|
| 10 |
'T' =>
|
|
@@ -207,10 +207,10 @@ class ComposerStaticInit993d85bcee34a653f05decc81218cfcf
|
|
| 207 |
public static function getInitializer(ClassLoader $loader)
|
| 208 |
{
|
| 209 |
return \Closure::bind(function () use ($loader) {
|
| 210 |
-
$loader->prefixLengthsPsr4 =
|
| 211 |
-
$loader->prefixDirsPsr4 =
|
| 212 |
-
$loader->prefixesPsr0 =
|
| 213 |
-
$loader->classMap =
|
| 214 |
|
| 215 |
}, null, ClassLoader::class);
|
| 216 |
}
|
| 4 |
|
| 5 |
namespace Composer\Autoload;
|
| 6 |
|
| 7 |
+
class ComposerStaticInit17c55e552e353fda787993f04d6c5568
|
| 8 |
{
|
| 9 |
public static $prefixLengthsPsr4 = array (
|
| 10 |
'T' =>
|
| 207 |
public static function getInitializer(ClassLoader $loader)
|
| 208 |
{
|
| 209 |
return \Closure::bind(function () use ($loader) {
|
| 210 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit17c55e552e353fda787993f04d6c5568::$prefixLengthsPsr4;
|
| 211 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit17c55e552e353fda787993f04d6c5568::$prefixDirsPsr4;
|
| 212 |
+
$loader->prefixesPsr0 = ComposerStaticInit17c55e552e353fda787993f04d6c5568::$prefixesPsr0;
|
| 213 |
+
$loader->classMap = ComposerStaticInit17c55e552e353fda787993f04d6c5568::$classMap;
|
| 214 |
|
| 215 |
}, null, ClassLoader::class);
|
| 216 |
}
|
lang/the-events-calendar-de_DE.mo
CHANGED
|
Binary file
|
lang/the-events-calendar-it_IT.mo
CHANGED
|
Binary file
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Contributors: ModernTribe, borkweb, barry.hughes, bordoni, brianjessee, aguseo,
|
|
| 4 |
Tags: events, calendar, event, venue, organizer, dates, date, google maps, conference, workshop, concert, meeting, seminar, summit, class, modern tribe, tribe, widget
|
| 5 |
Donate link: http://m.tri.be/29
|
| 6 |
Requires at least: 4.9
|
| 7 |
-
Stable tag: 5.0.0.
|
| 8 |
Tested up to: 5.3.2
|
| 9 |
Requires PHP: 5.6
|
| 10 |
License: GPLv2 or later
|
|
@@ -94,14 +94,17 @@ That's it! Just configure your settings as you see fit, and you're on your way t
|
|
| 94 |
== Screenshots ==
|
| 95 |
|
| 96 |
1. Month View with hover
|
| 97 |
-
2.
|
| 98 |
-
3.
|
| 99 |
-
4.
|
| 100 |
-
5.
|
| 101 |
-
6.
|
| 102 |
-
7.
|
| 103 |
-
8.
|
| 104 |
-
9.
|
|
|
|
|
|
|
|
|
|
| 105 |
|
| 106 |
== Frequently Asked Questions ==
|
| 107 |
|
|
@@ -212,6 +215,11 @@ Still not happy? Shoot us an email to support@theeventscalendar.com or tweet to
|
|
| 212 |
|
| 213 |
== Changelog ==
|
| 214 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 215 |
= [5.0.0.1] 2020-01-31 =
|
| 216 |
|
| 217 |
* Fix - Events with timezones that differ from the site timezone now display on the correct date. [TEC-3208]
|
| 4 |
Tags: events, calendar, event, venue, organizer, dates, date, google maps, conference, workshop, concert, meeting, seminar, summit, class, modern tribe, tribe, widget
|
| 5 |
Donate link: http://m.tri.be/29
|
| 6 |
Requires at least: 4.9
|
| 7 |
+
Stable tag: 5.0.0.2
|
| 8 |
Tested up to: 5.3.2
|
| 9 |
Requires PHP: 5.6
|
| 10 |
License: GPLv2 or later
|
| 94 |
== Screenshots ==
|
| 95 |
|
| 96 |
1. Month View with hover
|
| 97 |
+
2. Month View
|
| 98 |
+
3. List View
|
| 99 |
+
4. Day View
|
| 100 |
+
5. Single event
|
| 101 |
+
6. Event Editor
|
| 102 |
+
7. Events admin listing
|
| 103 |
+
8. General Settings
|
| 104 |
+
9. Display Settings
|
| 105 |
+
10. Events List Widget
|
| 106 |
+
11. Mobile Month View
|
| 107 |
+
12. CSV Importer
|
| 108 |
|
| 109 |
== Frequently Asked Questions ==
|
| 110 |
|
| 215 |
|
| 216 |
== Changelog ==
|
| 217 |
|
| 218 |
+
= [5.0.0.2] 2020-02-05 =
|
| 219 |
+
|
| 220 |
+
* Fix - Datepicker format now properly defaults to the correct value when Display Settings have not been saved. [TEC-3229]
|
| 221 |
+
* Fix - New views mobile breakpoints interactions with Caching plugins resolved. [TEC-3221]
|
| 222 |
+
|
| 223 |
= [5.0.0.1] 2020-01-31 =
|
| 224 |
|
| 225 |
* Fix - Events with timezones that differ from the site timezone now display on the correct date. [TEC-3208]
|
src/Tribe/Assets.php
CHANGED
|
@@ -714,7 +714,7 @@ class Tribe__Events__Assets {
|
|
| 714 |
'date_with_year' => tribe_get_date_option( 'dateWithYearFormat', Tribe__Date_Utils::DBDATEFORMAT ),
|
| 715 |
'date_no_year' => tribe_get_date_option( 'dateWithoutYearFormat', Tribe__Date_Utils::DBDATEFORMAT ),
|
| 716 |
'datepicker_format' => Tribe__Date_Utils::datepicker_formats( tribe_get_option( 'datepickerFormat' ) ),
|
| 717 |
-
'datepicker_format_index' =>
|
| 718 |
'days' => array(
|
| 719 |
__( 'Sunday' ),
|
| 720 |
__( 'Monday' ),
|
| 714 |
'date_with_year' => tribe_get_date_option( 'dateWithYearFormat', Tribe__Date_Utils::DBDATEFORMAT ),
|
| 715 |
'date_no_year' => tribe_get_date_option( 'dateWithoutYearFormat', Tribe__Date_Utils::DBDATEFORMAT ),
|
| 716 |
'datepicker_format' => Tribe__Date_Utils::datepicker_formats( tribe_get_option( 'datepickerFormat' ) ),
|
| 717 |
+
'datepicker_format_index' => Tribe__Date_Utils::get_datepicker_format_index(),
|
| 718 |
'days' => array(
|
| 719 |
__( 'Sunday' ),
|
| 720 |
__( 'Monday' ),
|
src/Tribe/Integrations/Manager.php
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
<?php
|
| 2 |
-
|
| 3 |
|
| 4 |
/**
|
| 5 |
* Class Tribe__Events__Integrations__Manager
|
|
@@ -38,6 +38,7 @@ class Tribe__Events__Integrations__Manager {
|
|
| 38 |
$this->load_twenty_seventeen_integration();
|
| 39 |
$this->load_wpml_integration();
|
| 40 |
$this->load_X_theme_integration();
|
|
|
|
| 41 |
}
|
| 42 |
|
| 43 |
/**
|
|
@@ -131,4 +132,19 @@ class Tribe__Events__Integrations__Manager {
|
|
| 131 |
|
| 132 |
return true;
|
| 133 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 134 |
}
|
| 1 |
<?php
|
| 2 |
+
use \Tribe\Events\Integrations\WP_Rocket;
|
| 3 |
|
| 4 |
/**
|
| 5 |
* Class Tribe__Events__Integrations__Manager
|
| 38 |
$this->load_twenty_seventeen_integration();
|
| 39 |
$this->load_wpml_integration();
|
| 40 |
$this->load_X_theme_integration();
|
| 41 |
+
$this->load_wp_rocket_integration();
|
| 42 |
}
|
| 43 |
|
| 44 |
/**
|
| 132 |
|
| 133 |
return true;
|
| 134 |
}
|
| 135 |
+
|
| 136 |
+
/**
|
| 137 |
+
* Loads our WP Rocket plugin integration.
|
| 138 |
+
*
|
| 139 |
+
* @return bool
|
| 140 |
+
*/
|
| 141 |
+
private function load_wp_rocket_integration() {
|
| 142 |
+
if ( ! defined( 'WP_ROCKET_VERSION' ) ) {
|
| 143 |
+
return false;
|
| 144 |
+
}
|
| 145 |
+
|
| 146 |
+
tribe( WP_Rocket::class )->hook();
|
| 147 |
+
|
| 148 |
+
return true;
|
| 149 |
+
}
|
| 150 |
}
|
src/Tribe/Integrations/WP_Rocket.php
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Handles compatibility with WP Rocket plugin.
|
| 4 |
+
*
|
| 5 |
+
* @package Tribe\Events\Integrations
|
| 6 |
+
* @since 5.0.0.2
|
| 7 |
+
*/
|
| 8 |
+
namespace Tribe\Events\Integrations;
|
| 9 |
+
|
| 10 |
+
/**
|
| 11 |
+
* Integrations with WP Rocket plugin.
|
| 12 |
+
*
|
| 13 |
+
* @package Tribe\Events\Integrations
|
| 14 |
+
* @since 5.0.0.2
|
| 15 |
+
*/
|
| 16 |
+
class WP_Rocket {
|
| 17 |
+
|
| 18 |
+
/**
|
| 19 |
+
* Hooks all the required methods for WP_Rocket usage on our code.
|
| 20 |
+
*
|
| 21 |
+
* @since 5.0.0.2
|
| 22 |
+
*/
|
| 23 |
+
public function hook() {
|
| 24 |
+
if ( ! tribe_events_views_v2_is_enabled() ) {
|
| 25 |
+
return;
|
| 26 |
+
}
|
| 27 |
+
add_filter( 'rocket_excluded_inline_js_content', [ $this, 'filter_excluded_inline_js_concat' ] );
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
/**
|
| 31 |
+
* Filters the content of the WP Rocket excluded inline JS concat.
|
| 32 |
+
*
|
| 33 |
+
* @since 5.0.0.2
|
| 34 |
+
*
|
| 35 |
+
* @param array $excluded_inline Items to be excluded by WP Rocket.
|
| 36 |
+
*
|
| 37 |
+
* @return array Excluded inline scripts after adding the breakpoint code.
|
| 38 |
+
*/
|
| 39 |
+
public function filter_excluded_inline_js_concat( array $excluded_inline ) {
|
| 40 |
+
$excluded_inline[] = 'data-view-breakpoint-pointer';
|
| 41 |
+
return $excluded_inline;
|
| 42 |
+
}
|
| 43 |
+
}
|
src/Tribe/Main.php
CHANGED
|
@@ -32,7 +32,7 @@ if ( ! class_exists( 'Tribe__Events__Main' ) ) {
|
|
| 32 |
const VENUE_POST_TYPE = 'tribe_venue';
|
| 33 |
const ORGANIZER_POST_TYPE = 'tribe_organizer';
|
| 34 |
|
| 35 |
-
const VERSION = '5.0.0.
|
| 36 |
|
| 37 |
/**
|
| 38 |
* Min Pro Addon
|
|
@@ -565,6 +565,7 @@ if ( ! class_exists( 'Tribe__Events__Main' ) ) {
|
|
| 565 |
|
| 566 |
// Integrations
|
| 567 |
tribe_singleton( 'tec.integrations.twenty-seventeen', 'Tribe__Events__Integrations__Twenty_Seventeen', array( 'hook' ) );
|
|
|
|
| 568 |
|
| 569 |
// Linked Posts
|
| 570 |
tribe_singleton( 'tec.linked-posts', 'Tribe__Events__Linked_Posts' );
|
|
@@ -1055,7 +1056,7 @@ if ( ! class_exists( 'Tribe__Events__Main' ) ) {
|
|
| 1055 |
|
| 1056 |
$data_attributes = array(
|
| 1057 |
'live_ajax' => tribe_get_option( 'liveFiltersUpdate', true ) ? 1 : 0,
|
| 1058 |
-
'datepicker_format' =>
|
| 1059 |
'category' => $category,
|
| 1060 |
'featured' => tribe( 'tec.featured_events' )->is_featured_query(),
|
| 1061 |
);
|
|
@@ -3031,7 +3032,14 @@ if ( ! class_exists( 'Tribe__Events__Main' ) ) {
|
|
| 3031 |
require_once dirname( dirname( __FILE__ ) ) . '/common/src/Tribe/Cache.php';
|
| 3032 |
}
|
| 3033 |
|
| 3034 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3035 |
|
| 3036 |
$deactivation = new Tribe__Events__Deactivation( $network_deactivating );
|
| 3037 |
add_action( 'shutdown', array( $deactivation, 'deactivate' ) );
|
|
@@ -4391,7 +4399,7 @@ if ( ! class_exists( 'Tribe__Events__Main' ) ) {
|
|
| 4391 |
$value = $_REQUEST['tribe-bar-date'];
|
| 4392 |
}
|
| 4393 |
|
| 4394 |
-
$datepicker_format =
|
| 4395 |
|
| 4396 |
$caption = esc_html__( 'Date', 'the-events-calendar' );
|
| 4397 |
$format = Tribe__Utils__Array::get( $formats_full, $datepicker_format, $formats_full[0] );
|
| 32 |
const VENUE_POST_TYPE = 'tribe_venue';
|
| 33 |
const ORGANIZER_POST_TYPE = 'tribe_organizer';
|
| 34 |
|
| 35 |
+
const VERSION = '5.0.0.2';
|
| 36 |
|
| 37 |
/**
|
| 38 |
* Min Pro Addon
|
| 565 |
|
| 566 |
// Integrations
|
| 567 |
tribe_singleton( 'tec.integrations.twenty-seventeen', 'Tribe__Events__Integrations__Twenty_Seventeen', array( 'hook' ) );
|
| 568 |
+
tribe_singleton( \Tribe\Events\Integrations\WP_Rocket::class, \Tribe\Events\Integrations\WP_Rocket::class );
|
| 569 |
|
| 570 |
// Linked Posts
|
| 571 |
tribe_singleton( 'tec.linked-posts', 'Tribe__Events__Linked_Posts' );
|
| 1056 |
|
| 1057 |
$data_attributes = array(
|
| 1058 |
'live_ajax' => tribe_get_option( 'liveFiltersUpdate', true ) ? 1 : 0,
|
| 1059 |
+
'datepicker_format' => \Tribe__Date_Utils::get_datepicker_format_index(),
|
| 1060 |
'category' => $category,
|
| 1061 |
'featured' => tribe( 'tec.featured_events' )->is_featured_query(),
|
| 1062 |
);
|
| 3032 |
require_once dirname( dirname( __FILE__ ) ) . '/common/src/Tribe/Cache.php';
|
| 3033 |
}
|
| 3034 |
|
| 3035 |
+
$hook_name = 'tribe_schedule_transient_purge';
|
| 3036 |
+
|
| 3037 |
+
// Make sure we look for the constant if possible.
|
| 3038 |
+
if ( defined( '\Tribe__Cache::SCHEDULED_EVENT_DELETE_TRANSIENT' ) ) {
|
| 3039 |
+
$hook_name = \Tribe__Cache::SCHEDULED_EVENT_DELETE_TRANSIENT;
|
| 3040 |
+
}
|
| 3041 |
+
|
| 3042 |
+
wp_clear_scheduled_hook( $hook_name );
|
| 3043 |
|
| 3044 |
$deactivation = new Tribe__Events__Deactivation( $network_deactivating );
|
| 3045 |
add_action( 'shutdown', array( $deactivation, 'deactivate' ) );
|
| 4399 |
$value = $_REQUEST['tribe-bar-date'];
|
| 4400 |
}
|
| 4401 |
|
| 4402 |
+
$datepicker_format = \Tribe__Date_Utils::get_datepicker_format_index();
|
| 4403 |
|
| 4404 |
$caption = esc_html__( 'Date', 'the-events-calendar' );
|
| 4405 |
$format = Tribe__Utils__Array::get( $formats_full, $datepicker_format, $formats_full[0] );
|
src/Tribe/Plugin_Register.php
CHANGED
|
@@ -6,7 +6,7 @@ class Tribe__Events__Plugin_Register extends Tribe__Abstract_Plugin_Register {
|
|
| 6 |
protected $main_class = 'Tribe__Events__Main';
|
| 7 |
protected $dependencies = array(
|
| 8 |
'addon-dependencies' => array(
|
| 9 |
-
'Tribe__Events__Pro__Main' => '5.0.0.
|
| 10 |
'Tribe__Events__Filterbar__View' => '4.9.0-dev',
|
| 11 |
'Tribe__Events__Tickets__Eventbrite__Main' => '4.6-dev',
|
| 12 |
'Tribe__Events__Community__Main' => '4.6-dev',
|
| 6 |
protected $main_class = 'Tribe__Events__Main';
|
| 7 |
protected $dependencies = array(
|
| 8 |
'addon-dependencies' => array(
|
| 9 |
+
'Tribe__Events__Pro__Main' => '5.0.0.2-dev',
|
| 10 |
'Tribe__Events__Filterbar__View' => '4.9.0-dev',
|
| 11 |
'Tribe__Events__Tickets__Eventbrite__Main' => '4.6-dev',
|
| 12 |
'Tribe__Events__Community__Main' => '4.6-dev',
|
src/Tribe/Views/V2/View.php
CHANGED
|
@@ -1386,6 +1386,7 @@ class View implements View_Interface {
|
|
| 1386 |
'is_past' => 'past' === $this->context->get( 'event_display_mode', false ),
|
| 1387 |
'show_datepicker_submit' => $this->get_show_datepicker_submit(),
|
| 1388 |
'breakpoints' => $this->get_breakpoints(),
|
|
|
|
| 1389 |
'is_initial_load' => $this->context->doing_php_initial_state(),
|
| 1390 |
'public_views' => $this->get_public_views( $url_event_date ),
|
| 1391 |
];
|
| 1386 |
'is_past' => 'past' === $this->context->get( 'event_display_mode', false ),
|
| 1387 |
'show_datepicker_submit' => $this->get_show_datepicker_submit(),
|
| 1388 |
'breakpoints' => $this->get_breakpoints(),
|
| 1389 |
+
'breakpoint_pointer' => $this->get_breakpoint_pointer(),
|
| 1390 |
'is_initial_load' => $this->context->doing_php_initial_state(),
|
| 1391 |
'public_views' => $this->get_public_views( $url_event_date ),
|
| 1392 |
];
|
src/Tribe/Views/V2/Views/Traits/Breakpoint_Behavior.php
CHANGED
|
@@ -54,6 +54,39 @@ trait Breakpoint_Behavior {
|
|
| 54 |
return absint( $breakpoint );
|
| 55 |
}
|
| 56 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
/**
|
| 58 |
* Returns all of the available breakpoints.
|
| 59 |
*
|
|
@@ -69,17 +102,17 @@ trait Breakpoint_Behavior {
|
|
| 69 |
*
|
| 70 |
* @since 5.0.0
|
| 71 |
*
|
| 72 |
-
* @param array $breakpoints All
|
| 73 |
* @param View $this The current View instance being rendered.
|
| 74 |
*/
|
| 75 |
$breakpoints = apply_filters( "tribe_events_views_v2_view_breakpoints", $breakpoints, $this );
|
| 76 |
|
| 77 |
/**
|
| 78 |
-
* Filters the
|
| 79 |
*
|
| 80 |
* @since 5.0.0
|
| 81 |
*
|
| 82 |
-
* @param array $breakpoints All
|
| 83 |
* @param View $this The current View instance being rendered.
|
| 84 |
*/
|
| 85 |
$breakpoints = apply_filters( "tribe_events_views_v2_view_{$this->slug}_breakpoints", $breakpoints, $this );
|
| 54 |
return absint( $breakpoint );
|
| 55 |
}
|
| 56 |
|
| 57 |
+
/**
|
| 58 |
+
* Returns a given breakpoint pointer to a safer inline JS execution.
|
| 59 |
+
*
|
| 60 |
+
* @since 5.0.0.2
|
| 61 |
+
*
|
| 62 |
+
* @return int Returns the breakpoint with that given name or 0 when not available.
|
| 63 |
+
*/
|
| 64 |
+
public function get_breakpoint_pointer() {
|
| 65 |
+
$pointer = wp_generate_uuid4();
|
| 66 |
+
|
| 67 |
+
/**
|
| 68 |
+
* Filters the pointer ID for all views.
|
| 69 |
+
*
|
| 70 |
+
* @since 5.0.0.2
|
| 71 |
+
*
|
| 72 |
+
* @param string $breakpoints Current pointer value.
|
| 73 |
+
* @param View $this The current View instance being rendered.
|
| 74 |
+
*/
|
| 75 |
+
$pointer = apply_filters( "tribe_events_views_v2_view_breakpoint_pointer", $pointer, $this );
|
| 76 |
+
|
| 77 |
+
/**
|
| 78 |
+
* Filters the pointer ID for a specific view.
|
| 79 |
+
*
|
| 80 |
+
* @since 5.0.0.2
|
| 81 |
+
*
|
| 82 |
+
* @param string $pointer Current pointer value.
|
| 83 |
+
* @param View $this The current View instance being rendered.
|
| 84 |
+
*/
|
| 85 |
+
$pointer = apply_filters( "tribe_events_views_v2_view_{$this->slug}_breakpoint_pointer", $pointer, $this );
|
| 86 |
+
|
| 87 |
+
return $pointer;
|
| 88 |
+
}
|
| 89 |
+
|
| 90 |
/**
|
| 91 |
* Returns all of the available breakpoints.
|
| 92 |
*
|
| 102 |
*
|
| 103 |
* @since 5.0.0
|
| 104 |
*
|
| 105 |
+
* @param array $breakpoints All breakpoints available.
|
| 106 |
* @param View $this The current View instance being rendered.
|
| 107 |
*/
|
| 108 |
$breakpoints = apply_filters( "tribe_events_views_v2_view_breakpoints", $breakpoints, $this );
|
| 109 |
|
| 110 |
/**
|
| 111 |
+
* Filters the breakpoints value for a specific view.
|
| 112 |
*
|
| 113 |
* @since 5.0.0
|
| 114 |
*
|
| 115 |
+
* @param array $breakpoints All breakpoints available.
|
| 116 |
* @param View $this The current View instance being rendered.
|
| 117 |
*/
|
| 118 |
$breakpoints = apply_filters( "tribe_events_views_v2_view_{$this->slug}_breakpoints", $breakpoints, $this );
|
src/admin-views/aggregator/page.php
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
<?php
|
| 2 |
-
$datepicker_format =
|
| 3 |
|
| 4 |
$state_class = 'tribe-aggregator-inactive';
|
| 5 |
if ( tribe( 'events-aggregator.main' )->is_service_active() ) {
|
| 1 |
<?php
|
| 2 |
+
$datepicker_format = \Tribe__Date_Utils::get_datepicker_format_index();
|
| 3 |
|
| 4 |
$state_class = 'tribe-aggregator-inactive';
|
| 5 |
if ( tribe( 'events-aggregator.main' )->is_service_active() ) {
|
src/admin-views/events-meta-box.php
CHANGED
|
@@ -25,7 +25,7 @@ $events_label_plural_lowercase = tribe_get_event_label_plural_lowercase();
|
|
| 25 |
do_action( 'tribe_events_post_errors', $event->ID, true );
|
| 26 |
?>
|
| 27 |
</div>
|
| 28 |
-
<div id='eventDetails' class="inside eventForm" data-datepicker_format="<?php echo esc_attr(
|
| 29 |
<?php
|
| 30 |
/**
|
| 31 |
* Fires inside the opening #eventDetails div of The Events Calendar meta box
|
| 25 |
do_action( 'tribe_events_post_errors', $event->ID, true );
|
| 26 |
?>
|
| 27 |
</div>
|
| 28 |
+
<div id='eventDetails' class="inside eventForm" data-datepicker_format="<?php echo esc_attr( \Tribe__Date_Utils::get_datepicker_format_index() ); ?>">
|
| 29 |
<?php
|
| 30 |
/**
|
| 31 |
* Fires inside the opening #eventDetails div of The Events Calendar meta box
|
src/deprecated/Tribe__Events__Asset__Dynamic.php
CHANGED
|
@@ -21,7 +21,7 @@ class Tribe__Events__Asset__Dynamic extends Tribe__Events__Asset__Abstract_Asset
|
|
| 21 |
'date_with_year' => tribe_get_date_option( 'dateWithYearFormat', Tribe__Date_Utils::DBDATEFORMAT ),
|
| 22 |
'date_no_year' => tribe_get_date_option( 'dateWithoutYearFormat', Tribe__Date_Utils::DBDATEFORMAT ),
|
| 23 |
'datepicker_format' => Tribe__Date_Utils::datepicker_formats( tribe_get_option( 'datepickerFormat' ) ),
|
| 24 |
-
'datepicker_format_index' =>
|
| 25 |
'days' => array(
|
| 26 |
__( 'Sunday' ),
|
| 27 |
__( 'Monday' ),
|
| 21 |
'date_with_year' => tribe_get_date_option( 'dateWithYearFormat', Tribe__Date_Utils::DBDATEFORMAT ),
|
| 22 |
'date_no_year' => tribe_get_date_option( 'dateWithoutYearFormat', Tribe__Date_Utils::DBDATEFORMAT ),
|
| 23 |
'datepicker_format' => Tribe__Date_Utils::datepicker_formats( tribe_get_option( 'datepickerFormat' ) ),
|
| 24 |
+
'datepicker_format_index' => Tribe__Date_Utils::get_datepicker_format_index(),
|
| 25 |
'days' => array(
|
| 26 |
__( 'Sunday' ),
|
| 27 |
__( 'Monday' ),
|
src/resources/js/views/breakpoints.js
CHANGED
|
@@ -185,8 +185,12 @@ tribe.events.views.breakpoints = {};
|
|
| 185 |
*
|
| 186 |
* @return {void}
|
| 187 |
*/
|
| 188 |
-
obj.setup = function(
|
| 189 |
-
var $container = $(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 190 |
var $data = $container.find( obj.selectors.dataScript );
|
| 191 |
var data = {};
|
| 192 |
|
| 185 |
*
|
| 186 |
* @return {void}
|
| 187 |
*/
|
| 188 |
+
obj.setup = function( container ) {
|
| 189 |
+
var $container = $( container );
|
| 190 |
+
|
| 191 |
+
if ( ! $container.is( obj.selectors.container ) ) {
|
| 192 |
+
return;
|
| 193 |
+
}
|
| 194 |
var $data = $container.find( obj.selectors.dataScript );
|
| 195 |
var data = {};
|
| 196 |
|
src/views/v2/components/breakpoints.php
CHANGED
|
@@ -9,9 +9,10 @@
|
|
| 9 |
*
|
| 10 |
* @link {INSERT_ARTCILE_LINK_HERE}
|
| 11 |
*
|
| 12 |
-
* @version 5.0.0
|
| 13 |
*
|
| 14 |
-
* @var bool
|
|
|
|
| 15 |
*/
|
| 16 |
|
| 17 |
if ( ! $is_initial_load ) {
|
|
@@ -19,8 +20,32 @@ if ( ! $is_initial_load ) {
|
|
| 19 |
}
|
| 20 |
?>
|
| 21 |
<script class="tribe-events-breakpoints">
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
</script>
|
| 9 |
*
|
| 10 |
* @link {INSERT_ARTCILE_LINK_HERE}
|
| 11 |
*
|
| 12 |
+
* @version 5.0.0.2
|
| 13 |
*
|
| 14 |
+
* @var bool $is_initial_load Boolean on whether view is being loaded for the first time.
|
| 15 |
+
* @var string $breakpoint_pointer String we use as pointer to the current view we are setting up with breakpoints.
|
| 16 |
*/
|
| 17 |
|
| 18 |
if ( ! $is_initial_load ) {
|
| 20 |
}
|
| 21 |
?>
|
| 22 |
<script class="tribe-events-breakpoints">
|
| 23 |
+
(function(){
|
| 24 |
+
if ( 'undefined' === typeof window.tribe ) {
|
| 25 |
+
return;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
if ( 'undefined' === typeof window.tribe.events ) {
|
| 29 |
+
return;
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
if ( 'undefined' === typeof window.tribe.events.views ) {
|
| 33 |
+
return;
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
if ( 'undefined' === typeof window.tribe.events.views.breakpoints ) {
|
| 37 |
+
return;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
if ( 'function' !== typeof( window.tribe.events.views.breakpoints.setup ) ) {
|
| 41 |
+
return;
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
var container = document.querySelectorAll( '[data-view-breakpoint-pointer="<?php echo esc_js( $breakpoint_pointer ); ?>"]' );
|
| 45 |
+
if ( ! container ) {
|
| 46 |
+
return;
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
window.tribe.events.views.breakpoints.setup( container );
|
| 50 |
+
})();
|
| 51 |
</script>
|
src/views/v2/day.php
CHANGED
|
@@ -9,7 +9,7 @@
|
|
| 9 |
*
|
| 10 |
* @link {INSERT_ARTCILE_LINK_HERE}
|
| 11 |
*
|
| 12 |
-
* @version 5.0.0
|
| 13 |
*
|
| 14 |
* @var array $events The array containing the events.
|
| 15 |
* @var string $rest_url The REST URL.
|
|
@@ -18,6 +18,7 @@
|
|
| 18 |
* @var string[] $container_classes Classes used for the container of the view.
|
| 19 |
* @var bool $should_manage_url Whether the view should manage the URL or not.
|
| 20 |
* @var array $container_data An additional set of container `data` attributes.
|
|
|
|
| 21 |
*/
|
| 22 |
|
| 23 |
$header_classes = [ 'tribe-events-header' ];
|
|
@@ -35,6 +36,9 @@ if ( empty( $disable_event_search ) ) {
|
|
| 35 |
<?php foreach ( $container_data as $key => $value ) : ?>
|
| 36 |
data-view-<?php echo esc_attr( $key ) ?>="<?php echo esc_attr( $value ) ?>"
|
| 37 |
<?php endforeach; ?>
|
|
|
|
|
|
|
|
|
|
| 38 |
>
|
| 39 |
<div class="tribe-common-l-container tribe-events-l-container">
|
| 40 |
<?php $this->template( 'components/loader', [ 'text' => __( 'Loading...', 'the-events-calendar' ) ] ); ?>
|
| 9 |
*
|
| 10 |
* @link {INSERT_ARTCILE_LINK_HERE}
|
| 11 |
*
|
| 12 |
+
* @version 5.0.0.2
|
| 13 |
*
|
| 14 |
* @var array $events The array containing the events.
|
| 15 |
* @var string $rest_url The REST URL.
|
| 18 |
* @var string[] $container_classes Classes used for the container of the view.
|
| 19 |
* @var bool $should_manage_url Whether the view should manage the URL or not.
|
| 20 |
* @var array $container_data An additional set of container `data` attributes.
|
| 21 |
+
* @var string $breakpoint_pointer String we use as pointer to the current view we are setting up with breakpoints.
|
| 22 |
*/
|
| 23 |
|
| 24 |
$header_classes = [ 'tribe-events-header' ];
|
| 36 |
<?php foreach ( $container_data as $key => $value ) : ?>
|
| 37 |
data-view-<?php echo esc_attr( $key ) ?>="<?php echo esc_attr( $value ) ?>"
|
| 38 |
<?php endforeach; ?>
|
| 39 |
+
<?php if ( ! empty( $breakpoint_pointer ) ) : ?>
|
| 40 |
+
data-view-breakpoint-pointer="<?php echo esc_attr( $breakpoint_pointer ); ?>"
|
| 41 |
+
<?php endif; ?>
|
| 42 |
>
|
| 43 |
<div class="tribe-common-l-container tribe-events-l-container">
|
| 44 |
<?php $this->template( 'components/loader', [ 'text' => __( 'Loading...', 'the-events-calendar' ) ] ); ?>
|
src/views/v2/list.php
CHANGED
|
@@ -9,7 +9,7 @@
|
|
| 9 |
*
|
| 10 |
* @link {INSERT_ARTCILE_LINK_HERE}
|
| 11 |
*
|
| 12 |
-
* @version 5.0.0
|
| 13 |
*
|
| 14 |
* @var array $events The array containing the events.
|
| 15 |
* @var string $rest_url The REST URL.
|
|
@@ -18,6 +18,7 @@
|
|
| 18 |
* @var bool $disable_event_search Boolean on whether to disable the event search.
|
| 19 |
* @var string[] $container_classes Classes used for the container of the view.
|
| 20 |
* @var array $container_data An additional set of container `data` attributes.
|
|
|
|
| 21 |
*/
|
| 22 |
|
| 23 |
$header_classes = [ 'tribe-events-header' ];
|
|
@@ -34,6 +35,9 @@ if ( empty( $disable_event_search ) ) {
|
|
| 34 |
<?php foreach ( $container_data as $key => $value ) : ?>
|
| 35 |
data-view-<?php echo esc_attr( $key ) ?>="<?php echo esc_attr( $value ) ?>"
|
| 36 |
<?php endforeach; ?>
|
|
|
|
|
|
|
|
|
|
| 37 |
>
|
| 38 |
<div class="tribe-common-l-container tribe-events-l-container">
|
| 39 |
<?php $this->template( 'components/loader', [ 'text' => __( 'Loading...', 'the-events-calendar' ) ] ); ?>
|
| 9 |
*
|
| 10 |
* @link {INSERT_ARTCILE_LINK_HERE}
|
| 11 |
*
|
| 12 |
+
* @version 5.0.0.2
|
| 13 |
*
|
| 14 |
* @var array $events The array containing the events.
|
| 15 |
* @var string $rest_url The REST URL.
|
| 18 |
* @var bool $disable_event_search Boolean on whether to disable the event search.
|
| 19 |
* @var string[] $container_classes Classes used for the container of the view.
|
| 20 |
* @var array $container_data An additional set of container `data` attributes.
|
| 21 |
+
* @var string $breakpoint_pointer String we use as pointer to the current view we are setting up with breakpoints.
|
| 22 |
*/
|
| 23 |
|
| 24 |
$header_classes = [ 'tribe-events-header' ];
|
| 35 |
<?php foreach ( $container_data as $key => $value ) : ?>
|
| 36 |
data-view-<?php echo esc_attr( $key ) ?>="<?php echo esc_attr( $value ) ?>"
|
| 37 |
<?php endforeach; ?>
|
| 38 |
+
<?php if ( ! empty( $breakpoint_pointer ) ) : ?>
|
| 39 |
+
data-view-breakpoint-pointer="<?php echo esc_attr( $breakpoint_pointer ); ?>"
|
| 40 |
+
<?php endif; ?>
|
| 41 |
>
|
| 42 |
<div class="tribe-common-l-container tribe-events-l-container">
|
| 43 |
<?php $this->template( 'components/loader', [ 'text' => __( 'Loading...', 'the-events-calendar' ) ] ); ?>
|
src/views/v2/month.php
CHANGED
|
@@ -9,7 +9,7 @@
|
|
| 9 |
*
|
| 10 |
* @link {INSERT_ARTCILE_LINK_HERE}
|
| 11 |
*
|
| 12 |
-
* @version 5.0.0
|
| 13 |
*
|
| 14 |
* @var string $rest_url The REST URL.
|
| 15 |
* @var string $rest_nonce The REST nonce.
|
|
@@ -17,6 +17,7 @@
|
|
| 17 |
* @var bool $disable_event_search Boolean on whether to disable the event search.
|
| 18 |
* @var string[] $container_classes Classes used for the container of the view.
|
| 19 |
* @var array $container_data An additional set of container `data` attributes.
|
|
|
|
| 20 |
*/
|
| 21 |
|
| 22 |
$header_classes = [ 'tribe-events-header' ];
|
|
@@ -33,6 +34,9 @@ if ( empty( $disable_event_search ) ) {
|
|
| 33 |
<?php foreach ( $container_data as $key => $value ) : ?>
|
| 34 |
data-view-<?php echo esc_attr( $key ) ?>="<?php echo esc_attr( $value ) ?>"
|
| 35 |
<?php endforeach; ?>
|
|
|
|
|
|
|
|
|
|
| 36 |
>
|
| 37 |
<div class="tribe-common-l-container tribe-events-l-container">
|
| 38 |
<?php $this->template( 'components/loader', [ 'text' => __( 'Loading...', 'the-events-calendar' ) ] ); ?>
|
| 9 |
*
|
| 10 |
* @link {INSERT_ARTCILE_LINK_HERE}
|
| 11 |
*
|
| 12 |
+
* @version 5.0.0.2
|
| 13 |
*
|
| 14 |
* @var string $rest_url The REST URL.
|
| 15 |
* @var string $rest_nonce The REST nonce.
|
| 17 |
* @var bool $disable_event_search Boolean on whether to disable the event search.
|
| 18 |
* @var string[] $container_classes Classes used for the container of the view.
|
| 19 |
* @var array $container_data An additional set of container `data` attributes.
|
| 20 |
+
* @var string $breakpoint_pointer String we use as pointer to the current view we are setting up with breakpoints.
|
| 21 |
*/
|
| 22 |
|
| 23 |
$header_classes = [ 'tribe-events-header' ];
|
| 34 |
<?php foreach ( $container_data as $key => $value ) : ?>
|
| 35 |
data-view-<?php echo esc_attr( $key ) ?>="<?php echo esc_attr( $value ) ?>"
|
| 36 |
<?php endforeach; ?>
|
| 37 |
+
<?php if ( ! empty( $breakpoint_pointer ) ) : ?>
|
| 38 |
+
data-view-breakpoint-pointer="<?php echo esc_attr( $breakpoint_pointer ); ?>"
|
| 39 |
+
<?php endif; ?>
|
| 40 |
>
|
| 41 |
<div class="tribe-common-l-container tribe-events-l-container">
|
| 42 |
<?php $this->template( 'components/loader', [ 'text' => __( 'Loading...', 'the-events-calendar' ) ] ); ?>
|
the-events-calendar.php
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
/**
|
| 3 |
* Plugin Name: The Events Calendar
|
| 4 |
* Description: The Events Calendar is a carefully crafted, extensible plugin that lets you easily share your events. Beautiful. Solid. Awesome.
|
| 5 |
-
* Version: 5.0.0.
|
| 6 |
* Author: Modern Tribe, Inc.
|
| 7 |
* Author URI: http://m.tri.be/1x
|
| 8 |
* Text Domain: the-events-calendar
|
| 2 |
/**
|
| 3 |
* Plugin Name: The Events Calendar
|
| 4 |
* Description: The Events Calendar is a carefully crafted, extensible plugin that lets you easily share your events. Beautiful. Solid. Awesome.
|
| 5 |
+
* Version: 5.0.0.2
|
| 6 |
* Author: Modern Tribe, Inc.
|
| 7 |
* Author URI: http://m.tri.be/1x
|
| 8 |
* Text Domain: the-events-calendar
|
vendor/autoload.php
CHANGED
|
@@ -4,4 +4,4 @@
|
|
| 4 |
|
| 5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
| 6 |
|
| 7 |
-
return
|
| 4 |
|
| 5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
| 6 |
|
| 7 |
+
return ComposerAutoloaderInit0a2b0448d84aaf99507ce9af7067d4e3::getLoader();
|
vendor/composer/autoload_classmap.php
CHANGED
|
@@ -7,6 +7,7 @@ $baseDir = dirname($vendorDir);
|
|
| 7 |
|
| 8 |
return array(
|
| 9 |
'Tribe\\Events\\Collections\\Lazy_Post_Collection' => $baseDir . '/src/Tribe/Collections/Lazy_Post_Collection.php',
|
|
|
|
| 10 |
'Tribe\\Events\\Models\\Post_Types\\Event' => $baseDir . '/src/Tribe/Models/Post_Types/Event.php',
|
| 11 |
'Tribe\\Events\\Models\\Post_Types\\Venue' => $baseDir . '/src/Tribe/Models/Post_Types/Venue.php',
|
| 12 |
'Tribe\\Events\\Service_Providers\\Context' => $baseDir . '/src/Tribe/Service_Providers/Context.php',
|
| 7 |
|
| 8 |
return array(
|
| 9 |
'Tribe\\Events\\Collections\\Lazy_Post_Collection' => $baseDir . '/src/Tribe/Collections/Lazy_Post_Collection.php',
|
| 10 |
+
'Tribe\\Events\\Integrations\\WP_Rocket' => $baseDir . '/src/Tribe/Integrations/WP_Rocket.php',
|
| 11 |
'Tribe\\Events\\Models\\Post_Types\\Event' => $baseDir . '/src/Tribe/Models/Post_Types/Event.php',
|
| 12 |
'Tribe\\Events\\Models\\Post_Types\\Venue' => $baseDir . '/src/Tribe/Models/Post_Types/Venue.php',
|
| 13 |
'Tribe\\Events\\Service_Providers\\Context' => $baseDir . '/src/Tribe/Service_Providers/Context.php',
|
vendor/composer/autoload_real.php
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
// autoload_real.php @generated by Composer
|
| 4 |
|
| 5 |
-
class
|
| 6 |
{
|
| 7 |
private static $loader;
|
| 8 |
|
|
@@ -19,15 +19,15 @@ class ComposerAutoloaderInita57cb013ec2f14e35f261d9d09be8c30
|
|
| 19 |
return self::$loader;
|
| 20 |
}
|
| 21 |
|
| 22 |
-
spl_autoload_register(array('
|
| 23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
| 24 |
-
spl_autoload_unregister(array('
|
| 25 |
|
| 26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
| 27 |
if ($useStaticLoader) {
|
| 28 |
require_once __DIR__ . '/autoload_static.php';
|
| 29 |
|
| 30 |
-
call_user_func(\Composer\Autoload\
|
| 31 |
} else {
|
| 32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
| 33 |
foreach ($map as $namespace => $path) {
|
| 2 |
|
| 3 |
// autoload_real.php @generated by Composer
|
| 4 |
|
| 5 |
+
class ComposerAutoloaderInit0a2b0448d84aaf99507ce9af7067d4e3
|
| 6 |
{
|
| 7 |
private static $loader;
|
| 8 |
|
| 19 |
return self::$loader;
|
| 20 |
}
|
| 21 |
|
| 22 |
+
spl_autoload_register(array('ComposerAutoloaderInit0a2b0448d84aaf99507ce9af7067d4e3', 'loadClassLoader'), true, true);
|
| 23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
| 24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit0a2b0448d84aaf99507ce9af7067d4e3', 'loadClassLoader'));
|
| 25 |
|
| 26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
| 27 |
if ($useStaticLoader) {
|
| 28 |
require_once __DIR__ . '/autoload_static.php';
|
| 29 |
|
| 30 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit0a2b0448d84aaf99507ce9af7067d4e3::getInitializer($loader));
|
| 31 |
} else {
|
| 32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
| 33 |
foreach ($map as $namespace => $path) {
|
vendor/composer/autoload_static.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
|
| 5 |
namespace Composer\Autoload;
|
| 6 |
|
| 7 |
-
class
|
| 8 |
{
|
| 9 |
public static $prefixLengthsPsr4 = array (
|
| 10 |
'T' =>
|
|
@@ -32,6 +32,7 @@ class ComposerStaticInita57cb013ec2f14e35f261d9d09be8c30
|
|
| 32 |
|
| 33 |
public static $classMap = array (
|
| 34 |
'Tribe\\Events\\Collections\\Lazy_Post_Collection' => __DIR__ . '/../..' . '/src/Tribe/Collections/Lazy_Post_Collection.php',
|
|
|
|
| 35 |
'Tribe\\Events\\Models\\Post_Types\\Event' => __DIR__ . '/../..' . '/src/Tribe/Models/Post_Types/Event.php',
|
| 36 |
'Tribe\\Events\\Models\\Post_Types\\Venue' => __DIR__ . '/../..' . '/src/Tribe/Models/Post_Types/Venue.php',
|
| 37 |
'Tribe\\Events\\Service_Providers\\Context' => __DIR__ . '/../..' . '/src/Tribe/Service_Providers/Context.php',
|
|
@@ -231,9 +232,9 @@ class ComposerStaticInita57cb013ec2f14e35f261d9d09be8c30
|
|
| 231 |
public static function getInitializer(ClassLoader $loader)
|
| 232 |
{
|
| 233 |
return \Closure::bind(function () use ($loader) {
|
| 234 |
-
$loader->prefixLengthsPsr4 =
|
| 235 |
-
$loader->prefixDirsPsr4 =
|
| 236 |
-
$loader->classMap =
|
| 237 |
|
| 238 |
}, null, ClassLoader::class);
|
| 239 |
}
|
| 4 |
|
| 5 |
namespace Composer\Autoload;
|
| 6 |
|
| 7 |
+
class ComposerStaticInit0a2b0448d84aaf99507ce9af7067d4e3
|
| 8 |
{
|
| 9 |
public static $prefixLengthsPsr4 = array (
|
| 10 |
'T' =>
|
| 32 |
|
| 33 |
public static $classMap = array (
|
| 34 |
'Tribe\\Events\\Collections\\Lazy_Post_Collection' => __DIR__ . '/../..' . '/src/Tribe/Collections/Lazy_Post_Collection.php',
|
| 35 |
+
'Tribe\\Events\\Integrations\\WP_Rocket' => __DIR__ . '/../..' . '/src/Tribe/Integrations/WP_Rocket.php',
|
| 36 |
'Tribe\\Events\\Models\\Post_Types\\Event' => __DIR__ . '/../..' . '/src/Tribe/Models/Post_Types/Event.php',
|
| 37 |
'Tribe\\Events\\Models\\Post_Types\\Venue' => __DIR__ . '/../..' . '/src/Tribe/Models/Post_Types/Venue.php',
|
| 38 |
'Tribe\\Events\\Service_Providers\\Context' => __DIR__ . '/../..' . '/src/Tribe/Service_Providers/Context.php',
|
| 232 |
public static function getInitializer(ClassLoader $loader)
|
| 233 |
{
|
| 234 |
return \Closure::bind(function () use ($loader) {
|
| 235 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit0a2b0448d84aaf99507ce9af7067d4e3::$prefixLengthsPsr4;
|
| 236 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit0a2b0448d84aaf99507ce9af7067d4e3::$prefixDirsPsr4;
|
| 237 |
+
$loader->classMap = ComposerStaticInit0a2b0448d84aaf99507ce9af7067d4e3::$classMap;
|
| 238 |
|
| 239 |
}, null, ClassLoader::class);
|
| 240 |
}
|
