LLMS_Admin_Assets::admin_styles()

Enqueue stylesheets


Return Return

(void)


Top ↑

Source Source

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

	 */
	public function admin_styles() {

		wp_enqueue_style( 'llms-admin-styles', LLMS_PLUGIN_URL . 'assets/css/admin' . LLMS_ASSETS_SUFFIX . '.css', array(), LLMS_ASSETS_VERSION );
		wp_style_add_data( 'llms-admin-styles', 'rtl', 'replace' );
		wp_style_add_data( 'llms-admin-styles', 'suffix', LLMS_ASSETS_SUFFIX );

		if ( ! $this->is_llms_page() ) {
			return;
		}

		llms()->assets->enqueue_style( 'llms-select2-styles' );

		$screen = get_current_screen();

		if ( 'lifterlms_page_llms-add-ons' === $screen->id || 'lifterlms_page_llms-dashboard' === $screen->id ) {
			llms()->assets->enqueue_style( 'llms-admin-add-ons' );
		}



Top ↑

Changelog Changelog

Changelog
Version Description
5.5.0 Use LLMS_Assets for the enqueue of llms-addons.
5.0.0 Use LLMS_Assets for registration/enqueue of styles.
3.35.0 Explicitly set asset versions.
3.29.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.