drupal/core/modules/toolbar/toolbar.tpl.php

32 lines
1.1 KiB
PHP
Raw Normal View History

<?php
/**
* @file
* Default template for admin toolbar.
*
* Available variables:
* - $attributes: An instance of Attributes class that can be manipulated as an
* array and printed as a string.
* It includes the 'class' information, which includes:
* - toolbar: The current template type, i.e., "theming hook".
* - $toolbar['toolbar_user']: User account / logout links.
* - $toolbar['toolbar_menu']: Top level management menu links.
* - $toolbar['toolbar_drawer']: A place for extended toolbar content.
*
* @see template_preprocess()
* @see template_preprocess_toolbar()
*/
?>
<nav id="toolbar" role="navigation" class="<?php print $attributes['class']; ?> clearfix" <?php print $attributes; ?>>
<div class="toolbar-menu clearfix">
<?php print render($toolbar['toolbar_home']); ?>
<?php print render($toolbar['toolbar_user']); ?>
<?php print render($toolbar['toolbar_menu']); ?>
<?php if ($toolbar['toolbar_drawer']):?>
<?php print render($toolbar['toolbar_toggle']); ?>
<?php endif; ?>
</div>
<?php print render($toolbar['toolbar_drawer']); ?>
</nav>