class Switcher (View source)

The switcher component.

Methods

static string
render(string $target, array $items = array(), array $dropdown = array(), boolean $private = false)

Create a sticky switcher menu with an optional dropdown menu.

Details

static string render(string $target, array $items = array(), array $dropdown = array(), boolean $private = false)

Create a sticky switcher menu with an optional dropdown menu.

Parameters

string $target
array $items Main menu items
array $dropdown Dropdown menu items
boolean $private

Return Value

string The rendered menu HTML