om-maximenu-modal-content.tpl.php in OM Maximenu 8
Same filename and directory in other branches
om_maximenu_modal_content.tpl.php Default theme implementation of om maximenu contents with modal blocks
Available variables:
- $links: link array
Helper variables:
- $zebra: Same output as $block_zebra but independent of any block region.
- $id: Same output as $block_id but independent of any block region.
- $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
1 theme call to om-maximenu-modal-content.tpl.php
- om_maximenu_load in inc/
om_maximenu.render.inc - Load all OM Maximenu blocks
File
tpl/om-maximenu-modal-content.tpl.phpView source
<?php
/**
* @file om_maximenu_modal_content.tpl.php
* Default theme implementation of om maximenu contents with modal blocks
*
* Available variables:
* - $links: link array
*
* Helper variables:
* - $zebra: Same output as $block_zebra but independent of any block region.
* - $id: Same output as $block_id but independent of any block region.
* - $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
*
* @see template_preprocess_om_maximenu_modal()
* @see template_preprocess_om_maximenu_modal_links()
* @see template_preprocess_om_maximenu_modal_content()
*
*/
?>
<?php
foreach ($links['links'] as $key => $content) {
?>
<?php
$permission = om_maximenu_link_visible($content['roles']);
?>
<?php
if (!empty($permission) && !empty($content['content'])) {
?>
<div id="om-modal-content-<?php
print $links['code'] . '-' . $key;
?>" class="om-maximenu-content om-maximenu-modal-content<?php
print om_maximenu_classes($links);
?>"<?php
print om_maximenu_inline_style($links);
?>>
<div class="om-maximenu-close">Close</div>
<div class="om-maximenu-top">
<div class="om-maximenu-top-left"></div>
<div class="om-maximenu-top-right"></div>
</div><!-- /.om-maximenu-top -->
<div class="om-maximenu-middle">
<div class="om-maximenu-middle-left">
<div class="om-maximenu-middle-right">
<?php
print om_maximenu_content_render($content['content']);
?>
<div class="om-clearfix"></div>
</div><!-- /.om-maximenu-middle-right -->
</div><!-- /.om-maximenu-middle-left -->
</div><!-- /.om-maximenu-middle -->
<div class="om-maximenu-bottom">
<div class="om-maximenu-bottom-left"></div>
<div class="om-maximenu-bottom-right"></div>
</div><!-- /.om-maximenu-bottom -->
</div><!-- /.om-modal-content -->
<?php
}
?>
<?php
}
?>