Is there a way to check if jQuery is loaded using PHP?
I have two different plugins in Joomla that load the jQuery JS, but when it is included more than once it does not work correctly.
To explain the process a bit more:
Joomla offers an ability to intercept the HTML source before it is rendered, essentially working on the source code itself.
This is using the function:
onPrepareContent(&$row, &$params, $limitstart)
$row is the HTML content of the page that can be parsed.
I was thinking that maybe a preg_match could work but don't have very much experience with it.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…