LLMS_Frontend_Assets::enqueue_styles()

Enqueue Styles


Return Return

(void)


Top ↑

Source Source

File: includes/class.llms.frontend.assets.php

	public static function enqueue_styles() {

		global $post_type;

		llms()->assets->register_style( 'llms-iziModal' );

		llms()->assets->enqueue_style( 'webui-popover' );
		llms()->assets->enqueue_style( 'lifterlms-styles' );

		if ( in_array( $post_type, array( 'llms_my_certificate', 'llms_certificate' ), true ) ) {
			llms()->assets->enqueue_style( 'certificates' );
		} elseif ( is_llms_account_page() ) {
			llms()->assets->enqueue_style( 'llms-iziModal' );
		} elseif ( is_singular( 'llms_quiz' ) ) {
			wp_enqueue_style( 'wp-mediaelement' );
		}

		if ( is_llms_account_page() || is_llms_checkout() ) {
			llms()->assets->enqueue_style( 'llms-select2-styles' );
		}

	}


Top ↑

Changelog Changelog

Changelog
Version Description
5.0.0 Enqueue select2 on account and checkout pages for searchable dropdowns for country & state.
4.4.0 Enqueue & register scripts using LLMS_Assets methods.
3.35.0 Explicitly define asset versions.
3.18.0 Unknown.
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.