Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question]: Why e_library from frontend theme is applied in admin area? #5265

Open
Jimmi08 opened this issue May 26, 2024 · 0 comments
Open
Labels
type: question An ask about behavior that is not found documented anywhere

Comments

@Jimmi08
Copy link
Contributor

Jimmi08 commented May 26, 2024

Question

For the frontend theme, I am excluding jQuery with e_library in the theme folder. I noticed that it influences admin theme too and jquery is not loaded then.

Expected Source

My working e_library in frontend theme: //after fix admin loading

class theme_library
{

	/**
	 * Provides information about external libraries.
	 */
	function config()
	{
		return array();
	}

	/**
	 * Alters library information before detection and caching takes place.
	 */
	function config_alter(&$libraries)
	{

		if (e_ADMIN_AREA)
		{
		}
		else
		{
			$libraries['cdn.jquery'] = array();
			$libraries['jquery'] = array();
			$libraries['cdn.jquery3'] = array();
			$libraries['jquery3'] = array();

		//	unset($libraries['cdn.jquery3']);
		//	unset($libraries['jquery3']);
		}

	}

}

Additional Context

This question is for core developers, otherwise, I would create a discussion topic. They dislike issues with non-related comments. Thanks for understanding.

@Jimmi08 Jimmi08 added the type: question An ask about behavior that is not found documented anywhere label May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question An ask about behavior that is not found documented anywhere
Projects
None yet
Development

No branches or pull requests

1 participant