Tribe__Tickets__Assets::should_enqueue_common_full()

Check if we should load the common full style assets.

When TEC is not in place, or vies V2 are not enabled, so we have the common styles we need for our tickets blocks, AR, etc. If V2 are active, we respect the style option.


Return

(bool)


Top ↑

Source

File: src/Tribe/Assets.php

	public function should_enqueue_common_full() {
		// If TEC isn't there, we need to load common full styles.
		if ( ! class_exists( 'Tribe__Events__Main' ) ) {
			return true;
		}

		// If TEC isn't active or they have a previous version.
		if ( ! function_exists( 'tribe_events_views_v2_is_enabled' ) ) {
			return true;
		}

		// If the views V2 are not enabled, we need to load common full styles.
		if ( ! tribe_events_views_v2_is_enabled() ) {
			return true;
		}

		// If views V2 are in place, we respect the skeleton setting.
		return ! tribe( Tribe\Events\Views\V2\Assets::class )->is_skeleton_style();
	}

Top ↑

Changelog

Changelog
Version Description
4.11.4 Introduced.