om-maximenu-submenu-links.tpl.php in OM Maximenu 6
Same filename and directory in other branches
om_maximenu_submenu_links.tpl.php Default theme implementation of om maximenu links with submenu blocks
Available variables:
- $maximenu_name: Menu name given on configuration
- $om_link: rendered span or a tag with attributes
- $content: array, used for link classes and content
Helper variables:
- $zebra: Same output as $block_zebra but independent of any block region.
- $key: numeric link order id
- $id: automatic id given based on order of appearance.
- $is_front: Flags true when presented in the front page.
- $logged_in: Flags true when the current user is a logged-in member.
- $is_admin: Flags true when the current user is an administrator.
- $user: (object) user properties
- $count: link counter
- $total: number of links
- $permission: TRUE/FALSE
- $code: unique id given in the system
1 theme call to om-maximenu-submenu-links.tpl.php
- om-maximenu-submenu.tpl.php in tpl/
om-maximenu-submenu.tpl.php - om_maximenu_submenu.tpl.php Default theme implementation of om maximenu with submenu blocks
File
tpl/om-maximenu-submenu-links.tpl.phpView source
<?php
/**
* @file om_maximenu_submenu_links.tpl.php
* Default theme implementation of om maximenu links with submenu blocks
*
* Available variables:
* - $maximenu_name: Menu name given on configuration
* - $om_link: rendered span or a tag with attributes
* - $content: array, used for link classes and content
*
* Helper variables:
* - $zebra: Same output as $block_zebra but independent of any block region.
* - $key: numeric link order id
* - $id: automatic id given based on order of appearance.
* - $is_front: Flags true when presented in the front page.
* - $logged_in: Flags true when the current user is a logged-in member.
* - $is_admin: Flags true when the current user is an administrator.
* - $user: (object) user properties
* - $count: link counter
* - $total: number of links
* - $permission: TRUE/FALSE
* - $code: unique id given in the system
*
* @see template_preprocess_om_maximenu_submenu()
* @see template_preprocess_om_maximenu_submenu_links()
* @see template_preprocess_om_maximenu_submenu_content()
*
*/
?>
<?php
if (!empty($permission)) {
?>
<li id="om-leaf-<?php
print $code . '-' . $key;
?>" class="<?php
print om_maximenu_link_classes($content, $permission, $count, $total);
?>">
<?php
print $om_link;
?>
<?php
print theme('om_maximenu_submenu_content', $content['content'], $maximenu_name, $key, $skin);
?>
</li>
<?php
}
?>