SproutCMS

This is the code documentation for the SproutCMS project

function addAttr()

Adds an HTML attribute to the list of attributes.
If the attribute has already been set, it will be left alone.
N.B. the 'class' attribute is always appended

Usage

void Fb::addAttr ( array &$attrs , string $name , string $value );

Arguments

  1. array $attrs (by reference)
    The list of attributes to modify
  2. string $name
    The name of the attribute, e.g. 'style'
  3. string $value
    The value of the attribute, e.g. 'display: none;'

Return value

  • void