overlay.tpl.php

Default theme implementation to display a page in the overlay.

Available variables:

  • $title: the (sanitized) title of the page.
  • $page: The rendered page content.
  • $tabs (array): Tabs linking to any sub-pages beneath the current page (e.g., the view and edit tabs when displaying a node).

Helper variables:

  • $classes_array: Array of html class attribute values. It is flattened into a string within the variable $classes.

See also

template_preprocess()

template_preprocess_overlay()

template_process()

File

drupal-7.x/modules/overlay/overlay.tpl.php
View source
  1. <?php
  2. /**
  3. * @file
  4. * Default theme implementation to display a page in the overlay.
  5. *
  6. * Available variables:
  7. * - $title: the (sanitized) title of the page.
  8. * - $page: The rendered page content.
  9. * - $tabs (array): Tabs linking to any sub-pages beneath the current page
  10. * (e.g., the view and edit tabs when displaying a node).
  11. *
  12. * Helper variables:
  13. * - $classes_array: Array of html class attribute values. It is flattened
  14. * into a string within the variable $classes.
  15. *
  16. * @see template_preprocess()
  17. * @see template_preprocess_overlay()
  18. * @see template_process()
  19. *
  20. * @ingroup themeable
  21. */
  22. ?>
  23. <?php print render($disable_overlay); ?>
  24. <div id="overlay" <?php print $attributes; ?>>
  25. <div id="overlay-titlebar" class="clearfix">
  26. <div id="overlay-title-wrapper" class="clearfix">
  27. <h1 id="overlay-title"<?php print $title_attributes; ?>><?php print $title; ?></h1>
  28. </div>
  29. <div id="overlay-close-wrapper">
  30. <a id="overlay-close" href="#" class="overlay-close"><span class="element-invisible"><?php print t('Close overlay'); ?></span></a>
  31. </div>
  32. <?php if ($tabs): ?><h2 class="element-invisible"><?php print t('Primary tabs'); ?></h2><ul id="overlay-tabs"><?php print render($tabs); ?></ul><?php endif; ?>
  33. </div>
  34. <div id="overlay-content"<?php print $content_attributes; ?>>
  35. <?php print $page; ?>
  36. </div>
  37. </div>

Related topics