golden hour
/var/www/html/wp-content/plugins/the-events-calendar/src/Tribe
⬆️ Go Up
Upload
File/Folder
Size
Actions
API.php
27.83 KB
Del
OK
Adjacent_Events.php
9.13 KB
Del
OK
Admin
-
Del
OK
Admin_List.php
14.59 KB
Del
OK
Aggregator
-
Del
OK
Aggregator.php
16.7 KB
Del
OK
Ajax
-
Del
OK
Amalgamator.php
8.86 KB
Del
OK
Assets.php
19.96 KB
Del
OK
Backcompat.php
2.79 KB
Del
OK
Bar.php
3.28 KB
Del
OK
Capabilities.php
5.56 KB
Del
OK
Collections
-
Del
OK
Constants.php
1.64 KB
Del
OK
Cost_Utils.php
4.81 KB
Del
OK
Customizer
-
Del
OK
Dates
-
Del
OK
Deactivation.php
1.31 KB
Del
OK
Default_Values.php
793 B
Del
OK
Editor
-
Del
OK
Editor.php
16.92 KB
Del
OK
Embedded_Maps.php
5.37 KB
Del
OK
Event_Cleaner.php
2.59 KB
Del
OK
Event_Cleaner_Scheduler.php
5.95 KB
Del
OK
Event_Tickets
-
Del
OK
Featured_Events
-
Del
OK
Featured_Events.php
1.75 KB
Del
OK
Front_Page_View.php
9.87 KB
Del
OK
Google
-
Del
OK
Gutenberg.php
2.71 KB
Del
OK
I18n.php
10.51 KB
Del
OK
Ignored_Events.php
31.25 KB
Del
OK
Importer
-
Del
OK
Integrations
-
Del
OK
JSON_LD
-
Del
OK
Linked_Posts
-
Del
OK
Linked_Posts.php
43.79 KB
Del
OK
List_Widget.php
7.64 KB
Del
OK
Main.php
195.46 KB
Del
OK
Meta
-
Del
OK
Models
-
Del
OK
Options_Exception.php
890 B
Del
OK
Organizer.php
22.22 KB
Del
OK
Plugin_Register.php
675 B
Del
OK
Post_Exception.php
859 B
Del
OK
Privacy.php
1.31 KB
Del
OK
Query.php
54.4 KB
Del
OK
REST
-
Del
OK
Recurring_Event_Cleanup.php
2.13 KB
Del
OK
Repositories
-
Del
OK
Revisions
-
Del
OK
Rewrite.php
30.31 KB
Del
OK
Service_Providers
-
Del
OK
Shortcode
-
Del
OK
Template
-
Del
OK
Template_Factory.php
17.79 KB
Del
OK
Templates.php
24.04 KB
Del
OK
Timezones.php
6.37 KB
Del
OK
Updater.php
8.13 KB
Del
OK
Utils
-
Del
OK
Validator
-
Del
OK
Venue.php
22.95 KB
Del
OK
Views
-
Del
OK
iCal.php
26.37 KB
Del
OK
Edit: Backcompat.php
<?php /** * Holds methods that are required to maintain backwards compatibility with minor versions */ class Tribe__Events__Backcompat { private static $instance = null; public static function init() { self::instance()->add_hooks(); } /** * Set up any needed hooks for methods in this class */ public function add_hooks() { add_filter( 'tribe_get_single_option', [ $this, 'filter_multiday_cutoff' ], 10, 3 ); add_filter( 'tribe_get_single_option', [ $this, 'filter_default_view' ], 10, 3 ); add_filter( 'tribe_get_single_option', [ $this, 'filter_enabled_views' ], 10, 3 ); add_action( 'parse_query', [ $this, 'change_qv_to_list' ], 45 ); } /** * We used to store midnight as 12:00. It should be 00:00. * * @param string $cutoff * @param string $default * @param string $option * * @return string */ public function filter_multiday_cutoff( $cutoff, $default, $option ) { if ( $option == 'multiDayCutoff' ) { $value = explode( ':', $cutoff ); if ( $value[0] == '12' ) { $value[0] = '00'; $cutoff = implode( ':', $value ); } } return $cutoff; } /** * Change 'upcoming' to 'list' in the default view option (upcoming was removed in 3.8) * * @param string $default_view * @param string $default * @param string $option * * @return string */ public function filter_default_view( $default_view, $default, $option ) { if ( $option == 'viewOption' ) { if ( $default_view == 'upcoming' ) { $default_view = 'list'; } } return $default_view; } /** * Change 'upcoming' to 'list' in the enabled views option (upcoming was removed in 3.8) * * @param string $enabled_views * @param string $default * @param string $option * * @return array */ public function filter_enabled_views( $enabled_views, $default, $option ) { if ( 'tribeEnableViews' === $option ) { if ( ! ( ! empty( $enabled_views ) && in_array( 'upcoming', $enabled_views ) ) ) { return $enabled_views; } $enabled_views[ array_search( 'upcoming', $enabled_views ) ] = 'list'; } return $enabled_views; } /** * Change legacy eventDisplay query var from past/upcoming to list (past & upcoming were removed in 3.8) * * @param $query */ public function change_qv_to_list( $query ) { if ( $query->get( 'eventDisplay' ) == 'upcoming' ) { _deprecated_argument( 'tribe_get_events', '3.8', "Setting eventDisplay to 'upcoming' is deprecated. Please use 'list' instead." ); $query->set( 'eventDisplay', 'list' ); } if ( $query->get( 'eventDisplay' ) == 'past' ) { $query->set( 'eventDisplay', 'list' ); $query->tribe_is_past = true; } } /** * @return self */ public static function instance() { if ( empty( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } } // Tribe__Events__Backcompat
Save