class SelectTemplate (View source)

The template selection component.

Methods

static string
render(object $Automad, object $Themelist, string $name = '', string $selectedTheme = false, string $selectedTemplate = false)

Create a select box containing all installed themes/templates to be included in a HTML form.

Details

static string render(object $Automad, object $Themelist, string $name = '', string $selectedTheme = false, string $selectedTemplate = false)

Create a select box containing all installed themes/templates to be included in a HTML form.

Parameters

object $Automad
object $Themelist
string $name
string $selectedTheme
string $selectedTemplate

Return Value

string The HTML for the select box including a label and a wrapping div.