/
var
/
www
/
vhosts
/
ihelp.ro
/
ajutam.ro
/
wp-content
/
plugins
/
the-events-calendar
/
src
/
Tribe
/
/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/the-events-calendar/src/Tribe
mkdir
upload
Name
Size
Mode
Actions
Admin/
-
0755
rm
Aggregator/
-
0755
rm
Ajax/
-
0755
rm
Collections/
-
0755
rm
Customizer/
-
0755
rm
Dates/
-
0755
rm
Editor/
-
0755
rm
Event_Status/
-
0755
rm
Event_Tickets/
-
0755
rm
Featured_Events/
-
0755
rm
Google/
-
0755
rm
Importer/
-
0755
rm
Integrations/
-
0755
rm
JSON_LD/
-
0755
rm
Linked_Posts/
-
0755
rm
Meta/
-
0755
rm
Models/
-
0755
rm
Repositories/
-
0755
rm
REST/
-
0755
rm
Revisions/
-
0755
rm
Service_Providers/
-
0755
rm
Shortcode/
-
0755
rm
Template/
-
0755
rm
Utils/
-
0755
rm
Validator/
-
0755
rm
Views/
-
0755
rm
Adjacent_Events.php
9349
0644
edit
dl
rm
Admin_List.php
14941
0644
edit
dl
rm
Aggregator.php
17104
0644
edit
dl
rm
Amalgamator.php
9084
0644
edit
dl
rm
API.php
28503
0644
edit
dl
rm
Assets.php
20039
0644
edit
dl
rm
Backcompat.php
2856
0644
edit
dl
rm
Bar.php
3362
0644
edit
dl
rm
Capabilities.php
5690
0644
edit
dl
rm
Constants.php
1808
0644
edit
dl
rm
Cost_Utils.php
4924
0644
edit
dl
rm
Deactivation.php
1340
0644
edit
dl
rm
Default_Values.php
793
0644
edit
dl
rm
Editor.php
18815
0644
edit
dl
rm
Embedded_Maps.php
5495
0644
edit
dl
rm
Event_Cleaner.php
2653
0644
edit
dl
rm
Event_Cleaner_Scheduler.php
6094
0644
edit
dl
rm
Featured_Events.php
1797
0644
edit
dl
rm
Front_Page_View.php
10104
0644
edit
dl
rm
Gutenberg.php
3346
0644
edit
dl
rm
I18n.php
10753
0644
edit
dl
rm
iCal.php
27052
0644
edit
dl
rm
Ignored_Events.php
32233
0644
edit
dl
rm
Linked_Posts.php
44838
0644
edit
dl
rm
List_Widget.php
7823
0644
edit
dl
rm
Main.php
201687
0644
edit
dl
rm
Options_Exception.php
890
0644
edit
dl
rm
Organizer.php
23282
0644
edit
dl
rm
Plugin_Register.php
676
0644
edit
dl
rm
Post_Exception.php
859
0644
edit
dl
rm
Privacy.php
1341
0644
edit
dl
rm
Query.php
56057
0644
edit
dl
rm
Recurring_Event_Cleanup.php
2180
0644
edit
dl
rm
Rewrite.php
31038
0644
edit
dl
rm
Templates.php
24618
0644
edit
dl
rm
Template_Factory.php
18215
0644
edit
dl
rm
Timezones.php
6516
0644
edit
dl
rm
Updater.php
9696
0644
edit
dl
rm
Venue.php
24244
0644
edit
dl
rm
Edit:
/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/the-events-calendar/src/Tribe/Backcompat.php
(2856B)
<?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
cmd:
run