Tribe__Events__Community__Tickets__Main::register_resources()

Registers scripts and styles.

Includes filters for version numbers


Return #

(void)


Top ↑

Source #

File: src/Tribe/Main.php

	public function register_resources() {
		tribe_asset_enqueue_group( 'event-tickets-admin' );
		tribe_asset_enqueue_group( 'event-tickets-plus-admin' );

		wp_register_script(
			'events-community-tickets-admin',
			Tribe__Template_Factory::getMinFile( $this->plugin_url . 'src/resources/js/events-community-tickets-admin.js', true ),
			array( 'jquery' ),
			apply_filters( 'tribe_events_js_version', self::VERSION )
		);

		wp_register_script(
			'events-community-tickets',
			Tribe__Template_Factory::getMinFile( $this->plugin_url . 'src/resources/js/events-community-tickets.js', true ),
			array( 'jquery' , 'tribe-bumpdown', 'event-tickets-plus-meta-report-js', 'event-tickets-plus-attendees-list-js', 'event-tickets-plus-meta-admin-js' ),
			apply_filters( 'tribe_events_js_version', self::VERSION )
		);

		wp_register_style(
			'events-community-tickets-admin',
			Tribe__Template_Factory::getMinFile( $this->plugin_url . 'src/resources/css/events-community-tickets-admin.css', true ),
			array(),
			apply_filters( 'tribe_events_css_version', self::VERSION )
		);

		wp_register_style(
			'events-community-tickets',
			Tribe__Template_Factory::getMinFile( $this->plugin_url . 'src/resources/css/events-community-tickets.css', true ),
			array( 'tribe-bumpdown-css', 'event-tickets-plus-admin-css', 'event-tickets-plus-meta-admin-css' ),
			apply_filters( 'tribe_events_css_version', self::VERSION )
		);

		wp_register_style(
			'events-community-tickets-shortcodes',
			Tribe__Template_Factory::getMinFile( $this->plugin_url . 'src/resources/css/events-community-tickets-shortcodes.css', true ),
			array(),
			apply_filters( 'tribe_events_css_version', self::VERSION )
		);
	}

Top ↑

Changelog #

Changelog
Version Description
4.7.4 Change to use tribe_asset().
1.0 Introduced.