class Group (View source)

The form group component.

Methods

static string
render(object $Automad, array $keys, array $data = array(), string $addVariableIdPrefix = false, object $Theme = false)

Create form fields for page/shared variables.

Details

static string render(object $Automad, array $keys, array $data = array(), string $addVariableIdPrefix = false, object $Theme = false)

Create form fields for page/shared variables.

Passing a string for $addVariableIdPrefix will create the required markup for a modal dialog to add variables. Note used prefix must match the ID selectors defined in 'add_variable.js'.

Parameters

object $Automad
array $keys
array $data
string $addVariableIdPrefix (automatically prefixes all IDs for the HTML elements needed for the modal to add variables)
object $Theme

Return Value

string The HTML for the textarea