diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-06-08 05:16:29 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-06-08 05:16:29 +0000 |
commit | 8e8d8274d607307ac3d9bf9883f068a7b9d17542 (patch) | |
tree | a7ae953667a059309ccab66cebdf42629bdc3ea3 /modules/overlay/overlay.tpl.php | |
parent | b5e696702df6df3a0bd09f44758bd8c73004c657 (diff) | |
download | brdo-8e8d8274d607307ac3d9bf9883f068a7b9d17542.tar.gz brdo-8e8d8274d607307ac3d9bf9883f068a7b9d17542.tar.bz2 |
#668640 by casey, aspilicious, et al: Re-implement Overlay without jQuery UI Dialog; massive performance improvement, helps address several critical issues.
Diffstat (limited to 'modules/overlay/overlay.tpl.php')
-rw-r--r-- | modules/overlay/overlay.tpl.php | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/modules/overlay/overlay.tpl.php b/modules/overlay/overlay.tpl.php new file mode 100644 index 000000000..0c25b0eb8 --- /dev/null +++ b/modules/overlay/overlay.tpl.php @@ -0,0 +1,37 @@ +<?php +// $Id$ + +/** + * @file + * Default theme implementation to display a page in the overlay. + * + * Available variables: + * - $title: the (sanitized) title of the node. + * - $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 template_preprocess() + * @see template_preprocess_overlay() + * @see template_process() + */ +?> + +<div id="overlay" <?php print $attributes; ?>> + <div id="overlay-titlebar" class="clearfix"> + <div id="overlay-title-wrapper" class="clearfix"> + <h1 id="overlay-title"<?php print $title_attributes; ?>><?php print $title; ?></h1> + </div> + <div id="overlay-close-wrapper"> + <a id="overlay-close" href="#" class="overlay-close"><span><?php t('Close overlay'); ?></span></a> + </div> + <?php if ($tabs): ?><ul id="overlay-tabs"><?php print render($tabs); ?></ul><?php endif; ?> + </div> + <div id="overlay-content"<?php print $content_attributes; ?>> + <?php print $page; ?> + </div> +</div> |