SproutCMS

This is the code documentation for the SproutCMS project

Page options:

Inherited members

class Html

Helper functions for outputting HTML elements.

Variables

NameVisibilityDescription
$windowed_urls (static) 

Functions

NameVisibilityDescription
anchorpublic (static)Create HTML link anchors.
attributespublic (static)Compiles an array of HTML attributes into an attribute string.
emailpublic (static)Generates an obfuscated version of an email address.
imagepublic (static)Creates a image link.
linkpublic (static)Creates a link tag.
mailtopublic (static)Creates an email anchor.
scriptpublic (static)Creates a script link.

public anchor

string Html::anchor ( string $uri [, string $title [, array $attributes [, string $protocol [, boolean $escape_title ]]]] );

Create HTML link anchors.

public attributes

string Html::attributes ( string|array $attrs );

Compiles an array of HTML attributes into an attribute string.

public email

string Html::email ( string $email );

Generates an obfuscated version of an email address.

public image

string Html::image ( [ string $src [, string|array $alt [, boolean $index ]]] );

Creates a image link.

public link

string Html::link ( string|array $href , string|array $rel , string|array $type [, string $suffix [, string|array $media [, boolean $index ]]] );

Creates a link tag.

public mailto

string Html::mailto ( string $email [, string $title [, array $attributes ]] );

Creates an email anchor.

public script

string Html::script ( string|array $script [, boolean $index ] );

Creates a script link.