The siteaccess_menu template operator
Registered in kernel/common/eztemplateautoload.php by the class ezpSiteAccessMenuOperator (kernel/common/ezpsiteaccessmenuoperator.php).
The same class also registers: siteaccess_menu_key.
Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
user | object | no | null |
The operator takes no input: it is called on its own, not after |.
Example
Built from the parameter list above; the values are placeholders (the operator's template hints decide whether it takes an input).
siteaccess_menu( $user )In a shipped template
The first use in the templates of this installation, design/admin4/templates/parts/a4_header_site.tpl line 19:
if $current_user.is_logged_inset $a4_site_menu = siteaccess_menu( $current_user )/ifRelated
Generated by ./console exp:help:examples from kernel/common/eztemplateautoload.php, kernel/common/ezpsiteaccessmenuoperator.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.