home | career | drupal | java | mac | mysql | perl | php | scala | uml | unix

Drupal example source code file (overlay.tpl.php)

This example Drupal source code file (overlay.tpl.php) is included in the DevDaily.com "Drupal Source Code Warehouse" project. The intent of this project is to help you "Learn Drupal by Example".

PHP - Drupal tags/keywords

class, clearfix, div, id, overlay-close-wrapper, overlay-title-wrapper, overlay-titlebar, php

The overlay.tpl.php Drupal example source code

// $Id: overlay.tpl.php,v 1.5 2010/11/06 00:18:24 dries Exp $

 * @file
 * 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 template_preprocess()
 * @see template_preprocess_overlay()
 * @see template_process()

<?php print render($disable_overlay); ?>
<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 id="overlay-close-wrapper">
      <a id="overlay-close" href="#" class="overlay-close"><span class="element-invisible"><?php print t('Close overlay'); ?></span></a>
    <?php if ($tabs): ?><h2 class="element-invisible"><?php print t('Primary tabs'); ?></h2><ul id="overlay-tabs"><?php print render($tabs); ?></ul><?php endif; ?>
  <div id="overlay-content"<?php print $content_attributes; ?>>
    <?php print $page; ?>

Other Drupal examples (source code examples)

Here is a short list of links related to this Drupal overlay.tpl.php source code file:

new blog posts

"Drupal" is a registered trademark of Dries Buytaert.

my drupal tutorials and examples  

Copyright 1998-2016 Alvin Alexander, alvinalexander.com
All Rights Reserved.

Beginning in 2016, a portion of the proceeds from pages under the '/drupal-code-examples/' URI will be donated to charity.