Version Description
= [5.0] =
Please see the changelog for the complete list of changes in this release. Previous versions of The Events Calendar are not cross-compatible with 5.X add-ons. Remember to always make a backup of your database and files before updating!
Download this release
Release Info
Developer | bordoni |
Plugin | The Events Calendar |
Version | 5.13.0 |
Comparing to | |
See all releases |
Code changes from version 5.12.4 to 5.13.0
- common/src/resources/images/mascot.png +0 -0
- 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-cs_CZ.mo +0 -0
- lang/the-events-calendar-de_DE.mo +0 -0
- lang/the-events-calendar-fr_FR.mo +0 -0
- lang/the-events-calendar-pl_PL.mo +0 -0
- lang/the-events-calendar-ro_RO.mo +0 -0
- lang/the-events-calendar.pot +2 -2
- readme.txt +7 -2
- src/Events/Legacy/Views/V1/Provider.php +129 -0
- src/Tribe/Admin/Notice/Legacy_Views_Deprecation.php +9 -18
- src/Tribe/Main.php +4 -1
- src/functions/template-tags/general.php +6 -1
- src/functions/template-tags/month.php +3 -0
- src/functions/views/provider.php +20 -0
- src/views/day.php +4 -0
- src/views/day/content.php +4 -0
- src/views/day/loop.php +4 -0
- src/views/day/nav.php +4 -0
- src/views/day/single-event.php +4 -0
- src/views/day/single-featured.php +4 -0
- src/views/day/title-bar.php +5 -0
- src/views/default-template.php +5 -0
- src/views/list.php +4 -0
- src/views/list/content.php +4 -0
- src/views/list/loop.php +5 -0
- src/views/list/nav.php +5 -0
- src/views/list/single-event.php +4 -0
- src/views/list/single-featured.php +4 -0
- src/views/list/title-bar.php +5 -0
- src/views/month.php +4 -0
- src/views/month/content.php +6 -1
- src/views/month/loop-grid.php +6 -1
- src/views/month/mobile.php +5 -0
- src/views/month/nav.php +6 -1
- src/views/month/single-day.php +5 -0
- src/views/month/single-event.php +5 -0
- src/views/month/title-bar.php +5 -0
- src/views/month/tooltip.php +5 -0
- src/views/widgets/list-widget.php +4 -0
- the-events-calendar.php +1 -1
- vendor/autoload.php +1 -1
- vendor/composer/autoload_classmap.php +1 -0
- vendor/composer/autoload_psr4.php +1 -0
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +10 -4
common/src/resources/images/mascot.png
CHANGED
Binary file
|
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 ComposerAutoloaderInit756cf485cb99e7c6091f486485ae6802::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 ComposerAutoloaderInit88b177e29239ac9be415b901e278987b::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 ComposerAutoloaderInit4402a1d8ab7b3cfb25c70afd6f7e70b1
|
|
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 ComposerAutoloaderInit756cf485cb99e7c6091f486485ae6802
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInit756cf485cb99e7c6091f486485ae6802', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit756cf485cb99e7c6091f486485ae6802', '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\ComposerStaticInit756cf485cb99e7c6091f486485ae6802::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 ComposerAutoloaderInit0b7cda09e2550505ff4b3bf5122773f8 {
|
|
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 ComposerAutoloaderInit88b177e29239ac9be415b901e278987b {
|
6 |
private static $loader;
|
7 |
|
8 |
public static function loadClassLoader($class) {
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInit88b177e29239ac9be415b901e278987b', 'loadClassLoader'), true /*, true */);
|
23 |
self::$loader = $loader = new xrstf_Composer52_ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit88b177e29239ac9be415b901e278987b', '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' =>
|
@@ -258,10 +258,10 @@ class ComposerStaticInit4402a1d8ab7b3cfb25c70afd6f7e70b1
|
|
258 |
public static function getInitializer(ClassLoader $loader)
|
259 |
{
|
260 |
return \Closure::bind(function () use ($loader) {
|
261 |
-
$loader->prefixLengthsPsr4 =
|
262 |
-
$loader->prefixDirsPsr4 =
|
263 |
-
$loader->prefixesPsr0 =
|
264 |
-
$loader->classMap =
|
265 |
|
266 |
}, null, ClassLoader::class);
|
267 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit756cf485cb99e7c6091f486485ae6802
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'T' =>
|
258 |
public static function getInitializer(ClassLoader $loader)
|
259 |
{
|
260 |
return \Closure::bind(function () use ($loader) {
|
261 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit756cf485cb99e7c6091f486485ae6802::$prefixLengthsPsr4;
|
262 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit756cf485cb99e7c6091f486485ae6802::$prefixDirsPsr4;
|
263 |
+
$loader->prefixesPsr0 = ComposerStaticInit756cf485cb99e7c6091f486485ae6802::$prefixesPsr0;
|
264 |
+
$loader->classMap = ComposerStaticInit756cf485cb99e7c6091f486485ae6802::$classMap;
|
265 |
|
266 |
}, null, ClassLoader::class);
|
267 |
}
|
lang/the-events-calendar-cs_CZ.mo
CHANGED
Binary file
|
lang/the-events-calendar-de_DE.mo
CHANGED
Binary file
|
lang/the-events-calendar-fr_FR.mo
CHANGED
Binary file
|
lang/the-events-calendar-pl_PL.mo
CHANGED
Binary file
|
lang/the-events-calendar-ro_RO.mo
CHANGED
Binary file
|
lang/the-events-calendar.pot
CHANGED
@@ -5,11 +5,11 @@ msgstr ""
|
|
5 |
"Project-Id-Version: The Events Calendar 5.12.3\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/the-events-"
|
7 |
"calendar\n"
|
8 |
-
"POT-Creation-Date: 2022-01-
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"PO-Revision-Date: 2022-01-
|
13 |
"Last-Translator: \n"
|
14 |
"Language-Team: \n"
|
15 |
|
5 |
"Project-Id-Version: The Events Calendar 5.12.3\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/the-events-"
|
7 |
"calendar\n"
|
8 |
+
"POT-Creation-Date: 2022-01-07 06:37:40+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"PO-Revision-Date: 2022-01-07 06:37\n"
|
13 |
"Last-Translator: \n"
|
14 |
"Language-Team: \n"
|
15 |
|
readme.txt
CHANGED
@@ -4,8 +4,8 @@ Contributors: theeventscalendar, borkweb, bordoni, brianjessee, aguseo, camwynsp
|
|
4 |
Tags: events, calendar, event, schedule, organizer
|
5 |
Donate link: https://evnt.is/29
|
6 |
Requires at least: 5.6
|
7 |
-
Stable tag: 5.
|
8 |
-
Tested up to: 5.
|
9 |
Requires PHP: 7.1
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -221,6 +221,11 @@ Remember to always make a backup of your database and files before updating!
|
|
221 |
|
222 |
== Changelog ==
|
223 |
|
|
|
|
|
|
|
|
|
|
|
224 |
= [5.12.4] 2022-01-19 =
|
225 |
|
226 |
* Tweak - Minor CSS tweaks to align with the new shortcode based blocks in ECP. [ECP-1016]
|
4 |
Tags: events, calendar, event, schedule, organizer
|
5 |
Donate link: https://evnt.is/29
|
6 |
Requires at least: 5.6
|
7 |
+
Stable tag: 5.13.0
|
8 |
+
Tested up to: 5.9.0
|
9 |
Requires PHP: 7.1
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
221 |
|
222 |
== Changelog ==
|
223 |
|
224 |
+
= [5.13.0] 2022-01-31 =
|
225 |
+
|
226 |
+
* Deprecation - All files from Legacy Views will throw deprecated notices, refer to `https://evnt.is/v1-removal` for extra information.
|
227 |
+
* Deprecation - Template functions `tribe_initialize_view`, `tribe_get_view` and `tribe_show_month` were deprecated, refer to `https://evnt.is/v1-removal` for extra information.
|
228 |
+
|
229 |
= [5.12.4] 2022-01-19 =
|
230 |
|
231 |
* Tweak - Minor CSS tweaks to align with the new shortcode based blocks in ECP. [ECP-1016]
|
src/Events/Legacy/Views/V1/Provider.php
ADDED
@@ -0,0 +1,129 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Manages the legacy view removal and messaging.
|
4 |
+
*
|
5 |
+
* @since 5.13.0
|
6 |
+
*
|
7 |
+
* @package TEC\Events\Legacy\Views\V1
|
8 |
+
*/
|
9 |
+
|
10 |
+
namespace TEC\Events\Legacy\Views\V1;
|
11 |
+
|
12 |
+
use tad_DI52_ServiceProvider as Service_Provider;
|
13 |
+
use Tribe__Utils__Array as Arr;
|
14 |
+
|
15 |
+
/**
|
16 |
+
* Class Provider
|
17 |
+
*
|
18 |
+
* @since 5.13.0
|
19 |
+
|
20 |
+
* @package TEC\Events\Legacy\Views\V1
|
21 |
+
*/
|
22 |
+
class Provider extends Service_Provider {
|
23 |
+
/**
|
24 |
+
* Registers the handlers and modifiers for notifying the site
|
25 |
+
* that Legacy views are removed.
|
26 |
+
*
|
27 |
+
* @since 5.13.0
|
28 |
+
*/
|
29 |
+
public function register() {
|
30 |
+
add_action( 'init', [ $this, 'check_theme_for_removed_paths' ] );
|
31 |
+
}
|
32 |
+
|
33 |
+
/**
|
34 |
+
* Gets the files and paths that have been removed from the plugin.
|
35 |
+
*
|
36 |
+
* @since 5.13.0
|
37 |
+
*
|
38 |
+
* @return array<string>
|
39 |
+
*/
|
40 |
+
public function get_removed_paths() {
|
41 |
+
$paths = [
|
42 |
+
'tribe-events/day/',
|
43 |
+
'tribe-events/day.php',
|
44 |
+
'tribe-events/list/',
|
45 |
+
'tribe-events/list.php',
|
46 |
+
'tribe-events/month/',
|
47 |
+
'tribe-events/month.php',
|
48 |
+
'tribe-events/pro/map/',
|
49 |
+
'tribe-events/pro/map.php',
|
50 |
+
'tribe-events/pro/map-basic.php',
|
51 |
+
'tribe-events/pro/photo/',
|
52 |
+
'tribe-events/pro/photo.php',
|
53 |
+
'tribe-events/pro/week/',
|
54 |
+
'tribe-events/pro/week.php',
|
55 |
+
'tribe-events/widgets/',
|
56 |
+
];
|
57 |
+
|
58 |
+
/**
|
59 |
+
* Filters the paths that have been removed from the plugin.
|
60 |
+
*
|
61 |
+
* @since 5.13.0
|
62 |
+
*
|
63 |
+
* @param array<string> $paths The paths that have been removed from the plugin.
|
64 |
+
*/
|
65 |
+
$paths = apply_filters( 'tec_events_legacy_views_v1_removed_paths', $paths );
|
66 |
+
|
67 |
+
return $paths;
|
68 |
+
}
|
69 |
+
|
70 |
+
/**
|
71 |
+
* Gets the files and paths that have been removed from the plugin.
|
72 |
+
*
|
73 |
+
* @since 5.13.0
|
74 |
+
*/
|
75 |
+
public function check_theme_for_removed_paths() {
|
76 |
+
if ( ! tec_events_views_v1_should_display_deprecated_notice() ) {
|
77 |
+
return;
|
78 |
+
}
|
79 |
+
|
80 |
+
$transient_key = 'tec_events_legacy_views_v1_removed_paths_checked';
|
81 |
+
$cached_data = (array) get_transient( $transient_key );
|
82 |
+
|
83 |
+
$identical_abspath = ABSPATH === Arr::get( $cached_data, 'ABSPATH', null );
|
84 |
+
$identical_stylesheetpath = STYLESHEETPATH === Arr::get( $cached_data, 'STYLESHEETPATH', null );
|
85 |
+
$identical_templatepath = TEMPLATEPATH === Arr::get( $cached_data, 'TEMPLATEPATH', null );
|
86 |
+
|
87 |
+
// We don't need to check again if the transient exists and key paths are identical.
|
88 |
+
if (
|
89 |
+
$identical_abspath
|
90 |
+
&& $identical_stylesheetpath
|
91 |
+
&& $identical_templatepath
|
92 |
+
) {
|
93 |
+
return;
|
94 |
+
}
|
95 |
+
|
96 |
+
$data = [
|
97 |
+
'ABSPATH' => ABSPATH,
|
98 |
+
'STYLESHEETPATH' => STYLESHEETPATH,
|
99 |
+
'TEMPLATEPATH' => TEMPLATEPATH,
|
100 |
+
'paths' => [],
|
101 |
+
];
|
102 |
+
|
103 |
+
$paths = $this->get_removed_paths();
|
104 |
+
|
105 |
+
foreach ( $paths as $path ) {
|
106 |
+
if ( $template_path = $this->check_theme_for_removed_path( $path ) ) {
|
107 |
+
$data['paths'][ $path ] = $template_path;
|
108 |
+
}
|
109 |
+
}
|
110 |
+
|
111 |
+
foreach ( $data['paths'] as $path => $template_path ) {
|
112 |
+
_deprecated_file( $path, '5.13.0', null, 'On version 6.0.0 this file will be removed. Please refer to <a href="https://evnt.is/v1-removal">https://evnt.is/v1-removal</a> for template customization assistance.' );
|
113 |
+
}
|
114 |
+
|
115 |
+
set_transient( 'tec_events_legacy_views_v1_removed_paths_checked', $data, DAY_IN_SECONDS );
|
116 |
+
}
|
117 |
+
|
118 |
+
/**
|
119 |
+
* Locate the template path for a given path.
|
120 |
+
*
|
121 |
+
* @since 5.13.0
|
122 |
+
*
|
123 |
+
* @param $string $path
|
124 |
+
* @return string|null
|
125 |
+
*/
|
126 |
+
public function check_theme_for_removed_path( $path ) {
|
127 |
+
return locate_template( $path );
|
128 |
+
}
|
129 |
+
}
|
src/Tribe/Admin/Notice/Legacy_Views_Deprecation.php
CHANGED
@@ -86,30 +86,21 @@ class Legacy_Views_Deprecation {
|
|
86 |
* @return string
|
87 |
*/
|
88 |
public function notice() {
|
89 |
-
if ( $this->is_debug() ) {
|
90 |
-
$link = sprintf(
|
91 |
-
'<a href="%1$s" target="_blank" rel="noopener noreferrer">%2$s</a>',
|
92 |
-
esc_url( 'https://evnt.is/legacy-blog' ),
|
93 |
-
esc_html_x( 'Learn more', 'Read more about deprecation of legacy views.', 'the-events-calendar' )
|
94 |
-
);
|
95 |
-
|
96 |
-
return sprintf(
|
97 |
-
_x( '<b>Your calendar is changing</b><br> The Events Calendar\'s legacy views will no longer be supported as of %2$s, %1$s.', 'deprecation of legacy views', 'the-events-calendar' ),
|
98 |
-
$link,
|
99 |
-
esc_html( $this->get_deprecation_date()->format_i18n( 'F d, Y' ) )
|
100 |
-
);
|
101 |
-
}
|
102 |
-
|
103 |
$link = sprintf(
|
104 |
'<a href="%1$s" target="_blank" rel="noopener noreferrer">%2$s</a>',
|
105 |
-
esc_url( 'https://evnt.is/
|
106 |
-
esc_html_x( '
|
|
|
|
|
|
|
|
|
|
|
107 |
);
|
108 |
|
109 |
return sprintf(
|
110 |
-
_x( '
|
111 |
$link,
|
112 |
-
|
113 |
);
|
114 |
}
|
115 |
}
|
86 |
* @return string
|
87 |
*/
|
88 |
public function notice() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
$link = sprintf(
|
90 |
'<a href="%1$s" target="_blank" rel="noopener noreferrer">%2$s</a>',
|
91 |
+
esc_url( 'https://evnt.is/1b3c' ),
|
92 |
+
esc_html_x( 'test and prepare your site', 'Prepare deprecation of legacy views.', 'the-events-calendar' )
|
93 |
+
);
|
94 |
+
$link_two = sprintf(
|
95 |
+
'<a href="%1$s" target="_blank" rel="noopener noreferrer">%2$s</a>',
|
96 |
+
esc_url( 'https://evnt.is/v1-removal' ),
|
97 |
+
esc_html_x( 'Read more', 'Read more about deprecation of legacy views.', 'the-events-calendar' )
|
98 |
);
|
99 |
|
100 |
return sprintf(
|
101 |
+
_x( 'The legacy calendar views are deprecated and will be fully removed in an upcoming release. You should %1$s now to prevent issues when The Events Calendar 6.0 is released. %2$s.', 'deprecation of legacy views', 'the-events-calendar' ),
|
102 |
$link,
|
103 |
+
$link_two
|
104 |
);
|
105 |
}
|
106 |
}
|
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.
|
36 |
|
37 |
/**
|
38 |
* Min Pro Addon
|
@@ -555,6 +555,9 @@ if ( ! class_exists( 'Tribe__Events__Main' ) ) {
|
|
555 |
tribe_register_provider( 'Tribe__Events__Aggregator__Processes__Service_Provider' );
|
556 |
tribe_register_provider( 'Tribe__Events__Editor__Provider' );
|
557 |
|
|
|
|
|
|
|
558 |
// Shortcodes
|
559 |
tribe_singleton( 'tec.shortcodes.event-details', 'Tribe__Events__Shortcode__Event_Details', [ 'hook' ] );
|
560 |
|
32 |
const VENUE_POST_TYPE = 'tribe_venue';
|
33 |
const ORGANIZER_POST_TYPE = 'tribe_organizer';
|
34 |
|
35 |
+
const VERSION = '5.13.0';
|
36 |
|
37 |
/**
|
38 |
* Min Pro Addon
|
555 |
tribe_register_provider( 'Tribe__Events__Aggregator__Processes__Service_Provider' );
|
556 |
tribe_register_provider( 'Tribe__Events__Editor__Provider' );
|
557 |
|
558 |
+
// @todo After version 6.0.0 this needs to move to the Events folder provider.
|
559 |
+
tribe_register_provider( TEC\Events\Legacy\Views\V1\Provider::class );
|
560 |
+
|
561 |
// Shortcodes
|
562 |
tribe_singleton( 'tec.shortcodes.event-details', 'Tribe__Events__Shortcode__Event_Details', [ 'hook' ] );
|
563 |
|
src/functions/template-tags/general.php
CHANGED
@@ -22,6 +22,9 @@ if ( class_exists( 'Tribe__Events__Main' ) ) {
|
|
22 |
* @uses Tribe__Events__Templates::instantiate_template_class()
|
23 |
**/
|
24 |
function tribe_initialize_view( $class = false ) {
|
|
|
|
|
|
|
25 |
do_action( 'tribe_pre_initialize_view' );
|
26 |
Tribe__Events__Templates::instantiate_template_class( $class );
|
27 |
}
|
@@ -33,7 +36,9 @@ if ( class_exists( 'Tribe__Events__Main' ) ) {
|
|
33 |
*
|
34 |
**/
|
35 |
function tribe_get_view( $view = false ) {
|
36 |
-
|
|
|
|
|
37 |
do_action( 'tribe_pre_get_view' );
|
38 |
|
39 |
if ( ! $view ) {
|
22 |
* @uses Tribe__Events__Templates::instantiate_template_class()
|
23 |
**/
|
24 |
function tribe_initialize_view( $class = false ) {
|
25 |
+
if ( tec_events_views_v1_should_display_deprecated_notice() ) {
|
26 |
+
_deprecated_function( __FUNCTION__, '5.13.0', 'On version 6.0.0 this function will be removed. Please refer to <a href="https://evnt.is/v1-removal">https://evnt.is/v1-removal</a> for template customization assistance.' );
|
27 |
+
}
|
28 |
do_action( 'tribe_pre_initialize_view' );
|
29 |
Tribe__Events__Templates::instantiate_template_class( $class );
|
30 |
}
|
36 |
*
|
37 |
**/
|
38 |
function tribe_get_view( $view = false ) {
|
39 |
+
if ( tec_events_views_v1_should_display_deprecated_notice() ) {
|
40 |
+
_deprecated_function( __FUNCTION__, '5.13.0', 'On version 6.0.0 this function will be removed. Please refer to <a href="https://evnt.is/v1-removal">https://evnt.is/v1-removal</a> for template customization assistance.' );
|
41 |
+
}
|
42 |
do_action( 'tribe_pre_get_view' );
|
43 |
|
44 |
if ( ! $view ) {
|
src/functions/template-tags/month.php
CHANGED
@@ -28,6 +28,9 @@ if ( class_exists( 'Tribe__Events__Main' ) ) {
|
|
28 |
*
|
29 |
**/
|
30 |
function tribe_show_month( $args = [], $template_path = 'month/content' ) {
|
|
|
|
|
|
|
31 |
|
32 |
// temporarily unset the tribe bar params so they don't apply
|
33 |
$hold_tribe_bar_args = [];
|
28 |
*
|
29 |
**/
|
30 |
function tribe_show_month( $args = [], $template_path = 'month/content' ) {
|
31 |
+
if ( tec_events_views_v1_should_display_deprecated_notice() ) {
|
32 |
+
_deprecated_function( __FUNCTION__, '5.13.0', 'On version 6.0.0 this function will be removed. Please refer to <a href="https://evnt.is/v1-removal">https://evnt.is/v1-removal</a> for template customization assistance.' );
|
33 |
+
}
|
34 |
|
35 |
// temporarily unset the tribe bar params so they don't apply
|
36 |
$hold_tribe_bar_args = [];
|
src/functions/views/provider.php
CHANGED
@@ -207,3 +207,23 @@ function tribe_events_single_view_v2_is_enabled() {
|
|
207 |
*/
|
208 |
return apply_filters( 'tribe_events_single_view_v2_is_enabled', true );
|
209 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
207 |
*/
|
208 |
return apply_filters( 'tribe_events_single_view_v2_is_enabled', true );
|
209 |
}
|
210 |
+
|
211 |
+
/**
|
212 |
+
* For legacy usage of the Views V1 we allow removing all notices related to V1 before of Version 6.0.0.
|
213 |
+
*
|
214 |
+
* @since 5.13.0
|
215 |
+
*
|
216 |
+
* @todo Once version 6.0.0 is launched this method will be deprecated since all v1 code will be REMOVED.
|
217 |
+
*
|
218 |
+
* @return bool
|
219 |
+
*/
|
220 |
+
function tec_events_views_v1_should_display_deprecated_notice() {
|
221 |
+
/**
|
222 |
+
* Allows toggling notices for V1 deprecation via a filter. Defaults to true.
|
223 |
+
*
|
224 |
+
* @since 5.13.0
|
225 |
+
*
|
226 |
+
* @return boolean Disable showing the
|
227 |
+
*/
|
228 |
+
return (bool) apply_filters( 'tec_events_views_v1_should_display_deprecated_notice', true );
|
229 |
+
}
|
src/views/day.php
CHANGED
@@ -14,6 +14,10 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
14 |
die( '-1' );
|
15 |
}
|
16 |
|
|
|
|
|
|
|
|
|
17 |
do_action( 'tribe_events_before_template' );
|
18 |
?>
|
19 |
|
14 |
die( '-1' );
|
15 |
}
|
16 |
|
17 |
+
if ( tec_events_views_v1_should_display_deprecated_notice() ) {
|
18 |
+
_deprecated_file( __FILE__, '5.13.0', null, 'On version 6.0.0 this file will be removed. Please refer to <a href="https://evnt.is/v1-removal">https://evnt.is/v1-removal</a> for template customization assistance.' );
|
19 |
+
}
|
20 |
+
|
21 |
do_action( 'tribe_events_before_template' );
|
22 |
?>
|
23 |
|
src/views/day/content.php
CHANGED
@@ -11,6 +11,10 @@
|
|
11 |
*
|
12 |
*/
|
13 |
|
|
|
|
|
|
|
|
|
14 |
if ( ! defined( 'ABSPATH' ) ) {
|
15 |
die( '-1' );
|
16 |
} ?>
|
11 |
*
|
12 |
*/
|
13 |
|
14 |
+
if ( tec_events_views_v1_should_display_deprecated_notice() ) {
|
15 |
+
_deprecated_file( __FILE__, '5.13.0', null, 'On version 6.0.0 this file will be removed. Please refer to <a href="https://evnt.is/v1-removal">https://evnt.is/v1-removal</a> for template customization assistance.' );
|
16 |
+
}
|
17 |
+
|
18 |
if ( ! defined( 'ABSPATH' ) ) {
|
19 |
die( '-1' );
|
20 |
} ?>
|
src/views/day/loop.php
CHANGED
@@ -10,6 +10,10 @@
|
|
10 |
*
|
11 |
*/
|
12 |
|
|
|
|
|
|
|
|
|
13 |
if ( ! defined( 'ABSPATH' ) ) {
|
14 |
die( '-1' );
|
15 |
} ?>
|
10 |
*
|
11 |
*/
|
12 |
|
13 |
+
if ( tec_events_views_v1_should_display_deprecated_notice() ) {
|
14 |
+
_deprecated_file( __FILE__, '5.13.0', null, 'On version 6.0.0 this file will be removed. Please refer to <a href="https://evnt.is/v1-removal">https://evnt.is/v1-removal</a> for template customization assistance.' );
|
15 |
+
}
|
16 |
+
|
17 |
if ( ! defined( 'ABSPATH' ) ) {
|
18 |
die( '-1' );
|
19 |
} ?>
|
src/views/day/nav.php
CHANGED
@@ -10,6 +10,10 @@
|
|
10 |
*
|
11 |
*/
|
12 |
|
|
|
|
|
|
|
|
|
13 |
if ( ! defined( 'ABSPATH' ) ) {
|
14 |
die( '-1' );
|
15 |
} ?>
|
10 |
*
|
11 |
*/
|
12 |
|
13 |
+
if ( tec_events_views_v1_should_display_deprecated_notice() ) {
|
14 |
+
_deprecated_file( __FILE__, '5.13.0', null, 'On version 6.0.0 this file will be removed. Please refer to <a href="https://evnt.is/v1-removal">https://evnt.is/v1-removal</a> for template customization assistance.' );
|
15 |
+
}
|
16 |
+
|
17 |
if ( ! defined( 'ABSPATH' ) ) {
|
18 |
die( '-1' );
|
19 |
} ?>
|
src/views/day/single-event.php
CHANGED
@@ -9,6 +9,10 @@
|
|
9 |
*
|
10 |
*/
|
11 |
|
|
|
|
|
|
|
|
|
12 |
if ( ! defined( 'ABSPATH' ) ) {
|
13 |
die( '-1' );
|
14 |
}
|
9 |
*
|
10 |
*/
|
11 |
|
12 |
+
if ( tec_events_views_v1_should_display_deprecated_notice() ) {
|
13 |
+
_deprecated_file( __FILE__, '5.13.0', null, 'On version 6.0.0 this file will be removed. Please refer to <a href="https://evnt.is/v1-removal">https://evnt.is/v1-removal</a> for template customization assistance.' );
|
14 |
+
}
|
15 |
+
|
16 |
if ( ! defined( 'ABSPATH' ) ) {
|
17 |
die( '-1' );
|
18 |
}
|
src/views/day/single-featured.php
CHANGED
@@ -10,6 +10,10 @@
|
|
10 |
*
|
11 |
*/
|
12 |
|
|
|
|
|
|
|
|
|
13 |
if ( ! defined( 'ABSPATH' ) ) {
|
14 |
die( '-1' );
|
15 |
}
|
10 |
*
|
11 |
*/
|
12 |
|
13 |
+
if ( tec_events_views_v1_should_display_deprecated_notice() ) {
|
14 |
+
_deprecated_file( __FILE__, '5.13.0', null, 'On version 6.0.0 this file will be removed. Please refer to <a href="https://evnt.is/v1-removal">https://evnt.is/v1-removal</a> for template customization assistance.' );
|
15 |
+
}
|
16 |
+
|
17 |
if ( ! defined( 'ABSPATH' ) ) {
|
18 |
die( '-1' );
|
19 |
}
|
src/views/day/title-bar.php
CHANGED
@@ -10,6 +10,11 @@
|
|
10 |
* @since 4.6.19
|
11 |
*
|
12 |
*/
|
|
|
|
|
|
|
|
|
|
|
13 |
?>
|
14 |
|
15 |
<div class="tribe-events-title-bar">
|
10 |
* @since 4.6.19
|
11 |
*
|
12 |
*/
|
13 |
+
|
14 |
+
if ( tec_events_views_v1_should_display_deprecated_notice() ) {
|
15 |
+
_deprecated_file( __FILE__, '5.13.0', null, 'On version 6.0.0 this file will be removed. Please refer to <a href="https://evnt.is/v1-removal">https://evnt.is/v1-removal</a> for template customization assistance.' );
|
16 |
+
}
|
17 |
+
|
18 |
?>
|
19 |
|
20 |
<div class="tribe-events-title-bar">
|
src/views/default-template.php
CHANGED
@@ -14,6 +14,11 @@
|
|
14 |
if ( ! defined( 'ABSPATH' ) ) {
|
15 |
die( '-1' );
|
16 |
}
|
|
|
|
|
|
|
|
|
|
|
17 |
/**
|
18 |
* Allows filtering the classes for the main element.
|
19 |
*
|
14 |
if ( ! defined( 'ABSPATH' ) ) {
|
15 |
die( '-1' );
|
16 |
}
|
17 |
+
|
18 |
+
if ( tec_events_views_v1_should_display_deprecated_notice() ) {
|
19 |
+
_deprecated_file( __FILE__, '5.13.0', null, 'On version 6.0.0 this file will be removed. Please refer to <a href="https://evnt.is/v1-removal">https://evnt.is/v1-removal</a> for template customization assistance.' );
|
20 |
+
}
|
21 |
+
|
22 |
/**
|
23 |
* Allows filtering the classes for the main element.
|
24 |
*
|
src/views/list.php
CHANGED
@@ -15,6 +15,10 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
15 |
die( '-1' );
|
16 |
}
|
17 |
|
|
|
|
|
|
|
|
|
18 |
do_action( 'tribe_events_before_template' );
|
19 |
?>
|
20 |
|
15 |
die( '-1' );
|
16 |
}
|
17 |
|
18 |
+
if ( tec_events_views_v1_should_display_deprecated_notice() ) {
|
19 |
+
_deprecated_file( __FILE__, '5.13.0', null, 'On version 6.0.0 this file will be removed. Please refer to <a href="https://evnt.is/v1-removal">https://evnt.is/v1-removal</a> for template customization assistance.' );
|
20 |
+
}
|
21 |
+
|
22 |
do_action( 'tribe_events_before_template' );
|
23 |
?>
|
24 |
|
src/views/list/content.php
CHANGED
@@ -11,6 +11,10 @@
|
|
11 |
*
|
12 |
*/
|
13 |
|
|
|
|
|
|
|
|
|
14 |
if ( ! defined( 'ABSPATH' ) ) {
|
15 |
die( '-1' );
|
16 |
} ?>
|
11 |
*
|
12 |
*/
|
13 |
|
14 |
+
if ( tec_events_views_v1_should_display_deprecated_notice() ) {
|
15 |
+
_deprecated_file( __FILE__, '5.13.0', null, 'On version 6.0.0 this file will be removed. Please refer to <a href="https://evnt.is/v1-removal">https://evnt.is/v1-removal</a> for template customization assistance.' );
|
16 |
+
}
|
17 |
+
|
18 |
if ( ! defined( 'ABSPATH' ) ) {
|
19 |
die( '-1' );
|
20 |
} ?>
|
src/views/list/loop.php
CHANGED
@@ -10,6 +10,11 @@
|
|
10 |
*
|
11 |
*/
|
12 |
|
|
|
|
|
|
|
|
|
|
|
13 |
if ( ! defined( 'ABSPATH' ) ) {
|
14 |
die( '-1' );
|
15 |
} ?>
|
10 |
*
|
11 |
*/
|
12 |
|
13 |
+
if ( tec_events_views_v1_should_display_deprecated_notice() ) {
|
14 |
+
_deprecated_file( __FILE__, '5.13.0', null, 'On version 6.0.0 this file will be removed. Please refer to <a href="https://evnt.is/v1-removal">https://evnt.is/v1-removal</a> for template customization assistance.' );
|
15 |
+
}
|
16 |
+
|
17 |
+
|
18 |
if ( ! defined( 'ABSPATH' ) ) {
|
19 |
die( '-1' );
|
20 |
} ?>
|
src/views/list/nav.php
CHANGED
@@ -9,6 +9,11 @@
|
|
9 |
* @version 4.6.19
|
10 |
*
|
11 |
*/
|
|
|
|
|
|
|
|
|
|
|
12 |
if ( ! $wp_query = tribe_get_global_query_object() ) {
|
13 |
return;
|
14 |
}
|
9 |
* @version 4.6.19
|
10 |
*
|
11 |
*/
|
12 |
+
|
13 |
+
if ( tec_events_views_v1_should_display_deprecated_notice() ) {
|
14 |
+
_deprecated_file( __FILE__, '5.13.0', null, 'On version 6.0.0 this file will be removed. Please refer to <a href="https://evnt.is/v1-removal">https://evnt.is/v1-removal</a> for template customization assistance.' );
|
15 |
+
}
|
16 |
+
|
17 |
if ( ! $wp_query = tribe_get_global_query_object() ) {
|
18 |
return;
|
19 |
}
|
src/views/list/single-event.php
CHANGED
@@ -12,6 +12,10 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
12 |
die( '-1' );
|
13 |
}
|
14 |
|
|
|
|
|
|
|
|
|
15 |
// Setup an array of venue details for use later in the template
|
16 |
$venue_details = tribe_get_venue_details();
|
17 |
|
12 |
die( '-1' );
|
13 |
}
|
14 |
|
15 |
+
if ( tec_events_views_v1_should_display_deprecated_notice() ) {
|
16 |
+
_deprecated_file( __FILE__, '5.13.0', null, 'On version 6.0.0 this file will be removed. Please refer to <a href="https://evnt.is/v1-removal">https://evnt.is/v1-removal</a> for template customization assistance.' );
|
17 |
+
}
|
18 |
+
|
19 |
// Setup an array of venue details for use later in the template
|
20 |
$venue_details = tribe_get_venue_details();
|
21 |
|
src/views/list/single-featured.php
CHANGED
@@ -13,6 +13,10 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
13 |
die( '-1' );
|
14 |
}
|
15 |
|
|
|
|
|
|
|
|
|
16 |
// Setup an array of venue details for use later in the template
|
17 |
$venue_details = tribe_get_venue_details();
|
18 |
|
13 |
die( '-1' );
|
14 |
}
|
15 |
|
16 |
+
if ( tec_events_views_v1_should_display_deprecated_notice() ) {
|
17 |
+
_deprecated_file( __FILE__, '5.13.0', null, 'On version 6.0.0 this file will be removed. Please refer to <a href="https://evnt.is/v1-removal">https://evnt.is/v1-removal</a> for template customization assistance.' );
|
18 |
+
}
|
19 |
+
|
20 |
// Setup an array of venue details for use later in the template
|
21 |
$venue_details = tribe_get_venue_details();
|
22 |
|
src/views/list/title-bar.php
CHANGED
@@ -10,6 +10,11 @@
|
|
10 |
* @since 4.6.19
|
11 |
*
|
12 |
*/
|
|
|
|
|
|
|
|
|
|
|
13 |
?>
|
14 |
|
15 |
<div class="tribe-events-title-bar">
|
10 |
* @since 4.6.19
|
11 |
*
|
12 |
*/
|
13 |
+
|
14 |
+
if ( tec_events_views_v1_should_display_deprecated_notice() ) {
|
15 |
+
_deprecated_file( __FILE__, '5.13.0', null, 'On version 6.0.0 this file will be removed. Please refer to <a href="https://evnt.is/v1-removal">https://evnt.is/v1-removal</a> for template customization assistance.' );
|
16 |
+
}
|
17 |
+
|
18 |
?>
|
19 |
|
20 |
<div class="tribe-events-title-bar">
|
src/views/month.php
CHANGED
@@ -14,6 +14,10 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
14 |
die( '-1' );
|
15 |
}
|
16 |
|
|
|
|
|
|
|
|
|
17 |
do_action( 'tribe_events_before_template' );
|
18 |
|
19 |
// Title Bar
|
14 |
die( '-1' );
|
15 |
}
|
16 |
|
17 |
+
if ( tec_events_views_v1_should_display_deprecated_notice() ) {
|
18 |
+
_deprecated_file( __FILE__, '5.13.0', null, 'On version 6.0.0 this file will be removed. Please refer to <a href="https://evnt.is/v1-removal">https://evnt.is/v1-removal</a> for template customization assistance.' );
|
19 |
+
}
|
20 |
+
|
21 |
do_action( 'tribe_events_before_template' );
|
22 |
|
23 |
// Title Bar
|
src/views/month/content.php
CHANGED
@@ -13,7 +13,12 @@
|
|
13 |
|
14 |
if ( ! defined( 'ABSPATH' ) ) {
|
15 |
die( '-1' );
|
16 |
-
}
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
<div id="tribe-events-content" class="tribe-events-month">
|
19 |
|
13 |
|
14 |
if ( ! defined( 'ABSPATH' ) ) {
|
15 |
die( '-1' );
|
16 |
+
}
|
17 |
+
if ( tec_events_views_v1_should_display_deprecated_notice() ) {
|
18 |
+
_deprecated_file( __FILE__, '5.13.0', null, 'On version 6.0.0 this file will be removed. Please refer to <a href="https://evnt.is/v1-removal">https://evnt.is/v1-removal</a> for template customization assistance.' );
|
19 |
+
}
|
20 |
+
|
21 |
+
?>
|
22 |
|
23 |
<div id="tribe-events-content" class="tribe-events-month">
|
24 |
|
src/views/month/loop-grid.php
CHANGED
@@ -14,7 +14,12 @@
|
|
14 |
|
15 |
if ( ! defined( 'ABSPATH' ) ) {
|
16 |
die( '-1' );
|
17 |
-
}
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
<?php
|
20 |
$days_of_week = tribe_events_get_days_of_week();
|
14 |
|
15 |
if ( ! defined( 'ABSPATH' ) ) {
|
16 |
die( '-1' );
|
17 |
+
}
|
18 |
+
if ( tec_events_views_v1_should_display_deprecated_notice() ) {
|
19 |
+
_deprecated_file( __FILE__, '5.13.0', null, 'On version 6.0.0 this file will be removed. Please refer to <a href="https://evnt.is/v1-removal">https://evnt.is/v1-removal</a> for template customization assistance.' );
|
20 |
+
}
|
21 |
+
|
22 |
+
?>
|
23 |
|
24 |
<?php
|
25 |
$days_of_week = tribe_events_get_days_of_week();
|
src/views/month/mobile.php
CHANGED
@@ -8,6 +8,11 @@
|
|
8 |
*
|
9 |
* @version 4.7.1
|
10 |
*/
|
|
|
|
|
|
|
|
|
|
|
11 |
?>
|
12 |
|
13 |
<script type="text/html" id="tribe_tmpl_month_mobile_day_header">
|
8 |
*
|
9 |
* @version 4.7.1
|
10 |
*/
|
11 |
+
|
12 |
+
if ( tec_events_views_v1_should_display_deprecated_notice() ) {
|
13 |
+
_deprecated_file( __FILE__, '5.13.0', null, 'On version 6.0.0 this file will be removed. Please refer to <a href="https://evnt.is/v1-removal">https://evnt.is/v1-removal</a> for template customization assistance.' );
|
14 |
+
}
|
15 |
+
|
16 |
?>
|
17 |
|
18 |
<script type="text/html" id="tribe_tmpl_month_mobile_day_header">
|
src/views/month/nav.php
CHANGED
@@ -12,7 +12,12 @@
|
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) ) {
|
14 |
die( '-1' );
|
15 |
-
}
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
<?php do_action( 'tribe_events_before_nav' ) ?>
|
18 |
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) ) {
|
14 |
die( '-1' );
|
15 |
+
}
|
16 |
+
if ( tec_events_views_v1_should_display_deprecated_notice() ) {
|
17 |
+
_deprecated_file( __FILE__, '5.13.0', null, 'On version 6.0.0 this file will be removed. Please refer to <a href="https://evnt.is/v1-removal">https://evnt.is/v1-removal</a> for template customization assistance.' );
|
18 |
+
}
|
19 |
+
|
20 |
+
?>
|
21 |
|
22 |
<?php do_action( 'tribe_events_before_nav' ) ?>
|
23 |
|
src/views/month/single-day.php
CHANGED
@@ -14,6 +14,11 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
14 |
die( '-1' );
|
15 |
}
|
16 |
|
|
|
|
|
|
|
|
|
|
|
17 |
$day = tribe_events_get_current_month_day();
|
18 |
$events_label = ( 1 === $day['total_events'] ) ? tribe_get_event_label_singular() : tribe_get_event_label_plural();
|
19 |
$date_label = date_i18n( tribe_get_date_option( 'dateWithoutYearFormat', 'F j' ), strtotime( $day['date'] ) )
|
14 |
die( '-1' );
|
15 |
}
|
16 |
|
17 |
+
if ( tec_events_views_v1_should_display_deprecated_notice() ) {
|
18 |
+
_deprecated_file( __FILE__, '5.13.0', null, 'On version 6.0.0 this file will be removed. Please refer to <a href="https://evnt.is/v1-removal">https://evnt.is/v1-removal</a> for template customization assistance.' );
|
19 |
+
}
|
20 |
+
|
21 |
+
|
22 |
$day = tribe_events_get_current_month_day();
|
23 |
$events_label = ( 1 === $day['total_events'] ) ? tribe_get_event_label_singular() : tribe_get_event_label_plural();
|
24 |
$date_label = date_i18n( tribe_get_date_option( 'dateWithoutYearFormat', 'F j' ), strtotime( $day['date'] ) )
|
src/views/month/single-event.php
CHANGED
@@ -14,6 +14,11 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
14 |
die( '-1' );
|
15 |
}
|
16 |
|
|
|
|
|
|
|
|
|
|
|
17 |
global $post;
|
18 |
|
19 |
/**
|
14 |
die( '-1' );
|
15 |
}
|
16 |
|
17 |
+
if ( tec_events_views_v1_should_display_deprecated_notice() ) {
|
18 |
+
_deprecated_file( __FILE__, '5.13.0', null, 'On version 6.0.0 this file will be removed. Please refer to <a href="https://evnt.is/v1-removal">https://evnt.is/v1-removal</a> for template customization assistance.' );
|
19 |
+
}
|
20 |
+
|
21 |
+
|
22 |
global $post;
|
23 |
|
24 |
/**
|
src/views/month/title-bar.php
CHANGED
@@ -10,6 +10,11 @@
|
|
10 |
* @since 4.6.19
|
11 |
*
|
12 |
*/
|
|
|
|
|
|
|
|
|
|
|
13 |
?>
|
14 |
|
15 |
<div class="tribe-events-title-bar">
|
10 |
* @since 4.6.19
|
11 |
*
|
12 |
*/
|
13 |
+
|
14 |
+
if ( tec_events_views_v1_should_display_deprecated_notice() ) {
|
15 |
+
_deprecated_file( __FILE__, '5.13.0', null, 'On version 6.0.0 this file will be removed. Please refer to <a href="https://evnt.is/v1-removal">https://evnt.is/v1-removal</a> for template customization assistance.' );
|
16 |
+
}
|
17 |
+
|
18 |
?>
|
19 |
|
20 |
<div class="tribe-events-title-bar">
|
src/views/month/tooltip.php
CHANGED
@@ -7,6 +7,11 @@
|
|
7 |
* [your-theme]/tribe-events/month/tooltip.php
|
8 |
* @version 4.6.21
|
9 |
*/
|
|
|
|
|
|
|
|
|
|
|
10 |
?>
|
11 |
|
12 |
<script type="text/html" id="tribe_tmpl_tooltip">
|
7 |
* [your-theme]/tribe-events/month/tooltip.php
|
8 |
* @version 4.6.21
|
9 |
*/
|
10 |
+
|
11 |
+
if ( tec_events_views_v1_should_display_deprecated_notice() ) {
|
12 |
+
_deprecated_file( __FILE__, '5.13.0', null, 'On version 6.0.0 this file will be removed. Please refer to <a href="https://evnt.is/v1-removal">https://evnt.is/v1-removal</a> for template customization assistance.' );
|
13 |
+
}
|
14 |
+
|
15 |
?>
|
16 |
|
17 |
<script type="text/html" id="tribe_tmpl_tooltip">
|
src/views/widgets/list-widget.php
CHANGED
@@ -25,6 +25,10 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
25 |
die( '-1' );
|
26 |
}
|
27 |
|
|
|
|
|
|
|
|
|
28 |
$events_label_plural = tribe_get_event_label_plural();
|
29 |
$events_label_plural_lowercase = tribe_get_event_label_plural_lowercase();
|
30 |
|
25 |
die( '-1' );
|
26 |
}
|
27 |
|
28 |
+
if ( tec_events_views_v1_should_display_deprecated_notice() ) {
|
29 |
+
_deprecated_file( __FILE__, '5.13.0', null, 'On version 6.0.0 this file will be removed. Please refer to <a href="https://evnt.is/v1-removal">https://evnt.is/v1-removal</a> for template customization assistance.' );
|
30 |
+
}
|
31 |
+
|
32 |
$events_label_plural = tribe_get_event_label_plural();
|
33 |
$events_label_plural_lowercase = tribe_get_event_label_plural_lowercase();
|
34 |
|
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.
|
6 |
* Author: The Events Calendar
|
7 |
* Author URI: https://evnt.is/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.13.0
|
6 |
* Author: The Events Calendar
|
7 |
* Author URI: https://evnt.is/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 ComposerAutoloaderInit7fde6e9c464551b3171b20ad32e13903::getLoader();
|
vendor/composer/autoload_classmap.php
CHANGED
@@ -6,6 +6,7 @@ $vendorDir = dirname(dirname(__FILE__));
|
|
6 |
$baseDir = dirname($vendorDir);
|
7 |
|
8 |
return array(
|
|
|
9 |
'Tribe\\Events\\Admin\\Notice\\Full_Site_Editor' => $baseDir . '/src/Tribe/Admin/Notice/Full_Site_Editor.php',
|
10 |
'Tribe\\Events\\Admin\\Notice\\Legacy_Views_Deprecation' => $baseDir . '/src/Tribe/Admin/Notice/Legacy_Views_Deprecation.php',
|
11 |
'Tribe\\Events\\Aggregator\\Processes\\Batch_Imports' => $baseDir . '/src/Tribe/Aggregator/Processes/Batch_Imports.php',
|
6 |
$baseDir = dirname($vendorDir);
|
7 |
|
8 |
return array(
|
9 |
+
'TEC\\Events\\Legacy\\Views\\V1\\Provider' => $baseDir . '/src/Events/Legacy/Views/V1/Provider.php',
|
10 |
'Tribe\\Events\\Admin\\Notice\\Full_Site_Editor' => $baseDir . '/src/Tribe/Admin/Notice/Full_Site_Editor.php',
|
11 |
'Tribe\\Events\\Admin\\Notice\\Legacy_Views_Deprecation' => $baseDir . '/src/Tribe/Admin/Notice/Legacy_Views_Deprecation.php',
|
12 |
'Tribe\\Events\\Aggregator\\Processes\\Batch_Imports' => $baseDir . '/src/Tribe/Aggregator/Processes/Batch_Imports.php',
|
vendor/composer/autoload_psr4.php
CHANGED
@@ -7,4 +7,5 @@ $baseDir = dirname($vendorDir);
|
|
7 |
|
8 |
return array(
|
9 |
'Tribe\\Events\\' => array($baseDir . '/src/Tribe'),
|
|
|
10 |
);
|
7 |
|
8 |
return array(
|
9 |
'Tribe\\Events\\' => array($baseDir . '/src/Tribe'),
|
10 |
+
'TEC\\Events\\' => array($baseDir . '/src/Events'),
|
11 |
);
|
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 ComposerAutoloaderInit078a5e75eef60922f137f44f3ba2f444
|
|
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 ComposerAutoloaderInit7fde6e9c464551b3171b20ad32e13903
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInit7fde6e9c464551b3171b20ad32e13903', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit7fde6e9c464551b3171b20ad32e13903', '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\ComposerStaticInit7fde6e9c464551b3171b20ad32e13903::getInitializer($loader));
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,12 +4,13 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'T' =>
|
11 |
array (
|
12 |
'Tribe\\Events\\' => 13,
|
|
|
13 |
),
|
14 |
);
|
15 |
|
@@ -18,9 +19,14 @@ class ComposerStaticInit078a5e75eef60922f137f44f3ba2f444
|
|
18 |
array (
|
19 |
0 => __DIR__ . '/../..' . '/src/Tribe',
|
20 |
),
|
|
|
|
|
|
|
|
|
21 |
);
|
22 |
|
23 |
public static $classMap = array (
|
|
|
24 |
'Tribe\\Events\\Admin\\Notice\\Full_Site_Editor' => __DIR__ . '/../..' . '/src/Tribe/Admin/Notice/Full_Site_Editor.php',
|
25 |
'Tribe\\Events\\Admin\\Notice\\Legacy_Views_Deprecation' => __DIR__ . '/../..' . '/src/Tribe/Admin/Notice/Legacy_Views_Deprecation.php',
|
26 |
'Tribe\\Events\\Aggregator\\Processes\\Batch_Imports' => __DIR__ . '/../..' . '/src/Tribe/Aggregator/Processes/Batch_Imports.php',
|
@@ -134,9 +140,9 @@ class ComposerStaticInit078a5e75eef60922f137f44f3ba2f444
|
|
134 |
public static function getInitializer(ClassLoader $loader)
|
135 |
{
|
136 |
return \Closure::bind(function () use ($loader) {
|
137 |
-
$loader->prefixLengthsPsr4 =
|
138 |
-
$loader->prefixDirsPsr4 =
|
139 |
-
$loader->classMap =
|
140 |
|
141 |
}, null, ClassLoader::class);
|
142 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit7fde6e9c464551b3171b20ad32e13903
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'T' =>
|
11 |
array (
|
12 |
'Tribe\\Events\\' => 13,
|
13 |
+
'TEC\\Events\\' => 11,
|
14 |
),
|
15 |
);
|
16 |
|
19 |
array (
|
20 |
0 => __DIR__ . '/../..' . '/src/Tribe',
|
21 |
),
|
22 |
+
'TEC\\Events\\' =>
|
23 |
+
array (
|
24 |
+
0 => __DIR__ . '/../..' . '/src/Events',
|
25 |
+
),
|
26 |
);
|
27 |
|
28 |
public static $classMap = array (
|
29 |
+
'TEC\\Events\\Legacy\\Views\\V1\\Provider' => __DIR__ . '/../..' . '/src/Events/Legacy/Views/V1/Provider.php',
|
30 |
'Tribe\\Events\\Admin\\Notice\\Full_Site_Editor' => __DIR__ . '/../..' . '/src/Tribe/Admin/Notice/Full_Site_Editor.php',
|
31 |
'Tribe\\Events\\Admin\\Notice\\Legacy_Views_Deprecation' => __DIR__ . '/../..' . '/src/Tribe/Admin/Notice/Legacy_Views_Deprecation.php',
|
32 |
'Tribe\\Events\\Aggregator\\Processes\\Batch_Imports' => __DIR__ . '/../..' . '/src/Tribe/Aggregator/Processes/Batch_Imports.php',
|
140 |
public static function getInitializer(ClassLoader $loader)
|
141 |
{
|
142 |
return \Closure::bind(function () use ($loader) {
|
143 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit7fde6e9c464551b3171b20ad32e13903::$prefixLengthsPsr4;
|
144 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit7fde6e9c464551b3171b20ad32e13903::$prefixDirsPsr4;
|
145 |
+
$loader->classMap = ComposerStaticInit7fde6e9c464551b3171b20ad32e13903::$classMap;
|
146 |
|
147 |
}, null, ClassLoader::class);
|
148 |
}
|