Differences

This shows you the differences between the selected revision and the current version of the page.

punbb13:extension_development:forum_loader 2011/12/24 15:02 punbb13:extension_development:forum_loader 2020/02/06 11:04 current
Line 1: Line 1:
====== forum_loader ====== ====== forum_loader ======
-Introduced in PunBB 1.4.0, the forum_loader class is the preferred method for including custom javascript and CSS with your extensions. Extension developers no longer need to manually construct and insert ''<link>'' and ''<script>'' tags, please use forum_loader instead.+Introduced in PunBB 1.4.0, the ''forum_loader'' class is the preferred method for including custom javascript and CSS with your extensions. Extension developers no longer need to manually construct and insert ''<link>'' and ''<script>'' tags, please use ''forum_loader'' instead.
Line 39: Line 39:
      * ''"url"'': Specifies that the value in ''$data'' is the URL of a CSS file. This is the default value.       * ''"url"'': Specifies that the value in ''$data'' is the URL of a CSS file. This is the default value.
      * ''"inline"'': Specifies that the value in ''$data'' is raw inline CSS.       * ''"inline"'': Specifies that the value in ''$data'' is raw inline CSS.
-  * ''**"group"**'': An integer value specifying the group that the entry belongs to. Entries are rendered in an order of their group, then their weight from lowest to highest. Default value is 0.+  * ''**"group"**'': A named constant specifying which group this entry belongs to
 +    * Possible Values: 
 +      * ''**FORUM_CSS_GROUP_DEFAULT**'': The default group. This is the default option. 
 +      * ''**FORUM_CSS_GROUP_SYSTEM**'': For system styles. Entries in this group are always loaded first, even before theme-specific CSS.
  * ''**"weight"**'': An integer value denoting the order that the entry should render //within it's group//. Lower values render first. The default value is 100.   * ''**"weight"**'': An integer value denoting the order that the entry should render //within it's group//. Lower values render first. The default value is 100.
  * ''**"async"**'':   * ''**"async"**'':

Personal Tools