glFusion Wiki

Site Tools


glfusion:development:api:output_class:addlinkstyle

outputHandler::addLinkStyle

(glFusion SVN)

addLinkStyle – Add a stylesheet to a page

Description

void addLinkStyle($href, $priority, $mime, $attrs)

This adds a stylesheet to a page - The URL should not have the <link> attribute.

Parameters

href

  The URL to the stylesheet

priority

The load priority of the CSS data.  Options are:

  * HEADER_PRIO_VERYHIGH
  * HEADER_PRIO_HIGH
  * HEADER_PRIO_NORMAL
  * HEADER_PRIO_LOW
  * HEADER_PRIO_VERYLOW

Items with HEADER_PRIO_VERYHIGH are sent to the browser 
before those with HEADER_PRIO_HIGH…

The default value is HEADER_PRIO_NORMAL.

mime

The mime type of the stylesheet, 'text/css' used if no 
other type passed.

attrs

Attributes array.

Return Value

No value is returned.

Example

Notes

See Also

glfusion/development/api/output_class/addlinkstyle.txt · Last modified: 2017/04/12 21:15 (external edit)

Page Tools