DirectTreeRenderer::setEntryTemplate()
Описание
The template should contain at least the {title} placeholder, can also contain {url} placeholder. Default templates are:
array( HTML_MENU_ENTRY_INACTIVE => '<a href="{url}">{title}</a>', HTML_MENU_ENTRY_ACTIVE => '<strong>{title}</strong>', HTML_MENU_ENTRY_ACTIVEPATH => '<a href="{url}"><em>{title}</em></a>' ); |
Параметр
- mixed $type
either type (one of HTML_MENU_ENTRY_* constants) or an array 'type' => 'template'
- string $template
template for this entry type if $type is not an array
Пред. | Начало | След. |
Class Summary HTML_Menu_DirectTreeRenderer | Уровень выше | DirectTreeRenderer::setItemTemplate() |