File Editor
Directories:
.. (Back)
Blocks
Compatibility
REST
Template
Files:
Assets.php
Attendee_Registration.php
Configuration.php
Meta.php
Provider.php
Template.php
Warnings.php
Create New File
Create
Edit File: Assets.php
<?php /** * Events Gutenberg Assets * * @since 4.9 */ class Tribe__Tickets__Editor__Assets { /** * Registers and Enqueues the assets * * @since 4.9 */ public function register() { $plugin = Tribe__Tickets__Main::instance(); tribe_asset( $plugin, 'tribe-tickets-gutenberg-vendor', 'app/vendor.js', /** * @todo revise this dependencies */ [ 'react', 'react-dom', 'thickbox', 'wp-components', 'wp-blocks', 'wp-i18n', 'wp-element', 'wp-editor', ], 'enqueue_block_editor_assets', [ 'in_footer' => false, 'localize' => [], 'conditionals' => tribe_callback( 'tickets.editor', 'current_post_supports_tickets' ), 'priority' => 200, ] ); tribe_asset( $plugin, 'tribe-tickets-gutenberg-main', 'app/main.js', /** * @todo revise this dependencies */ [], 'enqueue_block_editor_assets', [ 'in_footer' => false, 'localize' => [], 'conditionals' => tribe_callback( 'tickets.editor', 'current_post_supports_tickets' ), 'priority' => 201, ] ); tribe_asset( $plugin, 'tribe-tickets-gutenberg-main-styles', 'app/main.css', [], 'enqueue_block_editor_assets', [ 'in_footer' => false, 'localize' => [], 'conditionals' => tribe_callback( 'tickets.editor', 'current_post_supports_tickets' ), 'priority' => 15, ] ); tribe_asset( $plugin, 'tec-tickets-blocks-category-icon-styles', 'tickets-admin-blocks.css', [], 'enqueue_block_editor_assets', [ 'in_footer' => false, 'localize' => [], 'conditionals' => tribe_callback( 'tickets.editor', 'current_post_supports_tickets' ), 'priority' => 16, ] ); } }
Save Changes
Rename File
Rename