LLMS_Frontend_Assets::enqueue_styles()

Enqueue Styles


Description Description


Source Source

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

	public static function enqueue_styles() {

		global $post_type;

		wp_register_style( 'llms-iziModal', LLMS_PLUGIN_URL . 'assets/vendor/izimodal/iziModal' . LLMS_ASSETS_SUFFIX . '.css' );

		wp_enqueue_style( 'webui-popover', LLMS_PLUGIN_URL . 'assets/vendor/webui-popover/jquery.webui-popover' . LLMS_ASSETS_SUFFIX . '.css' );

		wp_enqueue_style( 'lifterlms-styles', LLMS_PLUGIN_URL . 'assets/css/lifterlms' . LLMS_ASSETS_SUFFIX . '.css' );
		wp_style_add_data( 'lifterlms-styles', 'rtl', 'replace' );
		wp_style_add_data( 'lifterlms-styles', 'suffix', LLMS_ASSETS_SUFFIX );

		if ( 'llms_my_certificate' == $post_type || 'llms_certificate' == $post_type ) {
			wp_enqueue_style( 'certificates', LLMS_PLUGIN_URL . 'assets/css/certificates' . LLMS_ASSETS_SUFFIX . '.css' );
			wp_style_add_data( 'certificates', 'rtl', 'replace' );
			wp_style_add_data( 'certificates', 'suffix', LLMS_ASSETS_SUFFIX );
		}

		if ( is_llms_account_page() ) {
			wp_enqueue_style( 'llms-iziModal' );
		}

	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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





Permalink: