phpbb-extensions/boardannouncements — pull request #35 by VSEphpbb (2014-08-15 06:29:53+00:00)
Title: Javascript protections

Putting back javascript type = text and CDATA tags, even though they are not required, since the core uses them, we probably should too.

Also added something discussed in Copenhagen: to prevent the same libraries from being included more than once, we came up with this concept (to be published on the website with the new Extension guidelines):
```

```
The idea is that any extensions that would use the colpick.js should include it in this manner, to prevent multiple inclusions. There is no standardization of this as of yet, considering all the potential thousands of libraries out there, but we will build a list of these as time goes on, on the website. The basic idea would be to use the name of the JS file for the template variable definition, so in this case, `colpick.js` is defined as `$INCLUDEDED_COLPICKJS`.

The theory would apply to other libraries as well, ie: `$INCLUDEDED_HIGHSLIDEJS, $INCLUDEDED_MOTOOLSJS`

This extension gives us a good opportunity to show this method in action.