Difference between revisions of "Theme JavaScripts"
From unroole CMS wiki
m |
|||
Line 14: | Line 14: | ||
}} | }} | ||
− | Javascript files in themes function exactly the same way as [[Theme Stylesheets]]. The can be added in either the framework or "javascripts" folder and then referenced in the [[Theme Structure|properties.xml]] file. Loading of javascript files also works the same way allowing a theme designer to change the ordering of the javascript files as they appear on the page. In each theme package javascript files can be found under the "javasciripts" folder as well as the "frameworks" folder. See [[Theme | + | Javascript files in themes function exactly the same way as <noinclude>[[Theme Stylesheets]]</noinclude><includeonly>[[{{PAGENAME}}#Stylesheets|Theme Stylesheets]]</includeonly>. The can be added in either the framework or "javascripts" folder and then referenced in the <noinclude>[[Theme Structure|properties.xml]]</noinclude><includeonly>[[{{PAGENAME}}#Management|properties.xml]]</includeonly> file. Loading of javascript files also works the same way allowing a theme designer to change the ordering of the javascript files as they appear on the page. In each theme package javascript files can be found under the "javasciripts" folder as well as the "frameworks" folder. See <noinclude>[[Theme Stylesheets]]</noinclude><includeonly>[[{{PAGENAME}}#Stylesheets|Theme Stylesheets]]</includeonly> for more details. |
Most themes will contain at least one or two framework javascript files such as [http://jquery.com/ jquery] and then additional files to augment or change the way existing widget looks or act when the theme is used. | Most themes will contain at least one or two framework javascript files such as [http://jquery.com/ jquery] and then additional files to augment or change the way existing widget looks or act when the theme is used. |
Revision as of 09:46, 30 July 2012
For additional information, see Themes.
For instructions on how to include files, see Theme Structure.
Javascript files in themes function exactly the same way as Theme Stylesheets. The can be added in either the framework or "javascripts" folder and then referenced in the properties.xml file. Loading of javascript files also works the same way allowing a theme designer to change the ordering of the javascript files as they appear on the page. In each theme package javascript files can be found under the "javasciripts" folder as well as the "frameworks" folder. See Theme Stylesheets for more details.
Most themes will contain at least one or two framework javascript files such as jquery and then additional files to augment or change the way existing widget looks or act when the theme is used.