class Lists extends AbstractBlock (View source)

The list block.

Properties

static private $tag The list type tag

Methods

static string
render(object $data, Automad $Automad)

Render a list block.

static string
classAttr(array $custom = array())

Return a class attribute for the wrapping block element.

static string
renderItems(array $items)

Render list items.

Details

static string render(object $data, Automad $Automad)

Render a list block.

Parameters

object $data
Automad $Automad

Return Value

string the rendered HTML

static protected string classAttr(array $custom = array())

Return a class attribute for the wrapping block element.

Parameters

array $custom

Return Value

string the attribute string

static private string renderItems(array $items)

Render list items.

Parameters

array $items

Return Value

string the rendered item