/
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/Bar.php
(3362B)
<?php /** * */ class Tribe__Events__Bar { // Each row should be an associative array with three fields: name, caption and html (html is the markup of the field) private $filters = []; // Each row should be an associative array with three fields: displaying, anchor and url. // Displaying is the value of Tribe__Events__Main->displaying private $views = []; /** * Hooking the required Filters and Actions for this Class * * @since 4.6.21 * * @return void */ public function hook() { add_filter( 'wp_enqueue_scripts', [ $this, 'load_script' ], 9 ); add_filter( 'body_class', [ $this, 'body_class' ] ); add_action( 'tribe_events_bar_before_template', [ $this, 'disabled_bar_before' ] ); add_action( 'tribe_events_bar_after_template', [ $this, 'disabled_bar_after' ] ); } /** * Decide if the TribeBar should be shown in a particular pageview. * * @filter tribe-events-bar-views to get all the registered views that the Bar will show * @filter tribe-events-bar-should-show to allow themers to always hide the bar if they want. * * To always hide the Bar, add this to your theme's functions.php: * add_filter( 'tribe-events-bar-should-show', '__return_false' ); * * @return bool * */ public function should_show() { if ( ! $wp_query = tribe_get_global_query_object() ) { return; } $disallowed_types = [ Tribe__Events__Organizer::POSTTYPE, Tribe__Events__Venue::POSTTYPE, ]; $in_disallowed_type = in_array( get_post_type(), $disallowed_types ); $is_tribe_view = ( ! empty( $wp_query->tribe_is_event_query ) && ! is_single() && ! $in_disallowed_type ); /** * Allows for forcefully overriding whether the Tribe Bar should be added to TEC-generated views. * * @param bool $is_tribe_view True if on a TEC-generated view, on which the bar should show by default. */ $should_show = (bool) apply_filters( 'tribe-events-bar-should-show', $is_tribe_view ); if ( ! $should_show ) { add_filter( 'tribe_get_template_part_path_modules/bar.php', '__return_false' ); } return $should_show; } /** * Adds a body class of tribe-bar-is-disabled when the Tribe Bar is disabled. * * @return array The new body class array */ public function body_class( $classes ) { if ( tribe_get_option( 'tribeDisableTribeBar', false ) == true ) { $classes[] = 'tribe-bar-is-disabled'; } return $classes; } /** * Returns the opening tag of the disabled bar wrapper * * @return string */ public function disabled_bar_before( $before ) { if ( tribe_get_option( 'tribeDisableTribeBar', false ) == true ) { $before = '<div class="tribe-bar-disabled">'; echo $before; } } /** * Returns the closing tag of the disabled bar wrapper * * @return array The new body class array */ public function disabled_bar_after( $after ) { if ( tribe_get_option( 'tribeDisableTribeBar', false ) == true ) { $after = '</div>'; echo $after; } } /** * Load the CSSs and JSs only if the Bar will be shown */ public function load_script() { if ( ! $this->should_show() ) { return false; } tribe_asset_enqueue( 'tribe-events-bar' ); do_action( 'tribe-events-bar-enqueue-scripts' ); } /** * @deprecated 4.6.21 * * @return Tribe__Events__Bar */ public static function instance() { return tribe( 'tec.bar' ); } }
Save
cmd:
run