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: Gutenberg.php
<?php class Tribe__Events__Gutenberg { /** * Extension hooks and initialization; exits if the extension is not authorized by Tribe Common to run. * * @since 4.6.13 */ public function hook() { // Bail if we already have the extension if ( $this->is_extension_active() ) { return; } // Bail if Gutenberg is not active if ( ! $this->is_gutenberg_active() || ! $this->is_blocks_editor_active() ) { return; } tribe_notice( 'gutenberg-extension', [ $this, 'notice' ], [ 'type' => 'warning', 'dismiss' => 1, 'wrap' => 'p', ] ); } /** * Checks if we have The Events Calendar Gutenberg Extension active * * @since 4.6.13 * * @return boolean */ public function is_extension_active() { return class_exists( 'Tribe__Gutenberg__Plugin' ); } /** * Checks if we have Gutenberg Project online, only useful while * its a external plugin * * @todo Revise when Gutenberg is merged into core * * @since 4.6.13 * * @return boolean */ public function is_gutenberg_active() { return function_exists( 'the_gutenberg_project' ); } /** * Checks if we have Editor Block active * * @since 4.6.13 * * @return boolean */ public function is_blocks_editor_active() { return function_exists( 'register_block_type' ) && function_exists( 'unregister_block_type' ); } /** * Checks if we should display Event Metabox fields * * Currently only used for fields that we want to hide because they * already have a block to replace. * * @since 4.6.25 * * @return boolean */ public function should_display() { // Hide when all of these three are active return ! ( $this->is_gutenberg_active() && $this->is_extension_active() && $this->is_blocks_editor_active() ); } /** * Checks if we are on the classic editor page * * @since 4.6.26 * * @return boolean */ public function is_classic_editor_page() { $on_classic_editor_page = tribe_get_request_var( 'classic-editor', false ); // Bail if in classic editor if ( '' === $on_classic_editor_page || $on_classic_editor_page ) { return true; } return false; } /** * HTML for the notice from Gutenberg Extension download * * @since 4.6.13 * * @return string */ public function notice() { if ( ! current_user_can( 'activate_plugins' ) ) { return false; } $url = 'http://evnt.is/19zc'; $link = sprintf( '<a href="%1$s" target="_blank">%2$s</a>', esc_url( $url ), esc_html__( 'Download our Events Gutenberg extension and start using the block editor on your events!', 'the-events-calendar' ) ); $text = __( 'Looks like you are using Gutenberg on this WordPress installation. %1$s', 'the-events-calendar' ); return sprintf( $text, $link ); } }
Save