Re: How to correctly add scripts in your XOOPS theme
I fear this will lead to more problem in the long run.
I really do not understand this approach when this should have been handled by the template class? Really, xoTheme should check whether or not the file has been added before and take the required steps to prevent compatibility issue.
Instead we create another file and class to do this and thus instead of making the process simple we begin to complicate the issue further.
Doing this is simple: $xoTheme->addScript('somescript.js');
Or better still:
Again we complicate things when there is no need to.