| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Summary view] [Print] [Text view]
1 <?php 2 // $Id: page.tpl.php,v 1.11.2.2 2010/08/06 11:13:42 goba Exp $ 3 4 /** 5 * @file 6 * Displays a single Drupal page. 7 * 8 * Available variables: 9 * 10 * General utility variables: 11 * - $base_path: The base URL path of the Drupal installation. At the very 12 * least, this will always default to /. 13 * - $css: An array of CSS files for the current page. 14 * - $directory: The directory the theme is located in, e.g. themes/garland or 15 * themes/garland/minelli. 16 * - $is_front: TRUE if the current page is the front page. 17 * - $logged_in: TRUE if the user is registered and signed in. 18 * - $is_admin: TRUE if the user has permission to access administration pages. 19 * 20 * Page metadata: 21 * - $language: (object) The language the site is being displayed in. 22 * $language->language contains its textual representation. 23 * $language->dir contains the language direction. It will either be 'ltr' or 24 * 'rtl'. 25 * - $head_title: A modified version of the page title, for use in the TITLE 26 * element. 27 * - $head: Markup for the HEAD element (including meta tags, keyword tags, and 28 * so on). 29 * - $styles: Style tags necessary to import all CSS files for the page. 30 * - $scripts: Script tags necessary to load the JavaScript files and settings 31 * for the page. 32 * - $body_classes: A set of CSS classes for the BODY tag. This contains flags 33 * indicating the current layout (multiple columns, single column), the 34 * current path, whether the user is logged in, and so on. 35 * 36 * Site identity: 37 * - $front_page: The URL of the front page. Use this instead of $base_path, 38 * when linking to the front page. This includes the language domain or 39 * prefix. 40 * - $logo: The path to the logo image, as defined in theme configuration. 41 * - $site_name: The name of the site, empty when display has been disabled in 42 * theme settings. 43 * - $site_slogan: The slogan of the site, empty when display has been disabled 44 * in theme settings. 45 * - $mission: The text of the site mission, empty when display has been 46 * disabled in theme settings. 47 * 48 * Navigation: 49 * - $search_box: HTML to display the search box, empty if search has been 50 * disabled. 51 * - $primary_links (array): An array containing primary navigation links for 52 * the site, if they have been configured. 53 * - $secondary_links (array): An array containing secondary navigation links 54 * for the site, if they have been configured. 55 * 56 * Page content (in order of occurrence in the default page.tpl.php): 57 * - $left: The HTML for the left sidebar. 58 * - $breadcrumb: The breadcrumb trail for the current page. 59 * - $title: The page title, for use in the actual HTML content. 60 * - $help: Dynamic help text, mostly for admin pages. 61 * - $messages: HTML for status and error messages. Should be displayed 62 * prominently. 63 * - $tabs: Tabs linking to any sub-pages beneath the current page (e.g., the 64 * view and edit tabs when displaying a node). 65 * - $content: The main content of the current Drupal page. 66 * - $right: The HTML for the right sidebar. 67 * - $node: The node object, if there is an automatically-loaded node associated 68 * with the page, and the node ID is the second argument in the page's path 69 * (e.g. node/12345 and node/12345/revisions, but not comment/reply/12345). 70 * 71 * Footer/closing data: 72 * - $feed_icons: A string of all feed icons for the current page. 73 * - $footer_message: The footer message as defined in the admin settings. 74 * - $footer : The footer region. 75 * - $closure: Final closing markup from any modules that have altered the page. 76 * This variable should always be output last, after all other dynamic 77 * content. 78 * 79 * @see template_preprocess() 80 * @see template_preprocess_page() 81 */ 82 ?> 83 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 84 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 85 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>"> 86 87 <head> 88 <?php print $head; ?> 89 <title><?php print $head_title; ?></title> 90 <?php print $styles; ?> 91 <?php print $scripts; ?> 92 <script type="text/javascript"><?php /* Needed to avoid Flash of Unstyled Content in IE */ ?> </script> 93 </head> 94 <body class="<?php print $body_classes; ?>"> 95 <div id="page"> 96 <div id="header"> 97 <div id="logo-title"> 98 99 <?php if (!empty($logo)): ?> 100 <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home" id="logo"> 101 <img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" /> 102 </a> 103 <?php endif; ?> 104 105 <div id="name-and-slogan"> 106 <?php if (!empty($site_name)): ?> 107 <h1 id="site-name"> 108 <a href="<?php print $front_page ?>" title="<?php print t('Home'); ?>" rel="home"><span><?php print $site_name; ?></span></a> 109 </h1> 110 <?php endif; ?> 111 112 <?php if (!empty($site_slogan)): ?> 113 <div id="site-slogan"><?php print $site_slogan; ?></div> 114 <?php endif; ?> 115 </div> <!-- /name-and-slogan --> 116 </div> <!-- /logo-title --> 117 118 <?php if (!empty($search_box)): ?> 119 <div id="search-box"><?php print $search_box; ?></div> 120 <?php endif; ?> 121 122 <?php if (!empty($header)): ?> 123 <div id="header-region"> 124 <?php print $header; ?> 125 </div> 126 <?php endif; ?> 127 128 </div> <!-- /header --> 129 130 <div id="container" class="clear-block"> 131 132 <div id="navigation" class="menu <?php if (!empty($primary_links)) { print "withprimary"; } if (!empty($secondary_links)) { print " withsecondary"; } ?> "> 133 <?php if (!empty($primary_links)): ?> 134 <div id="primary" class="clear-block"> 135 <?php print theme('links', $primary_links, array('class' => 'links primary-links')); ?> 136 </div> 137 <?php endif; ?> 138 139 <?php if (!empty($secondary_links)): ?> 140 <div id="secondary" class="clear-block"> 141 <?php print theme('links', $secondary_links, array('class' => 'links secondary-links')); ?> 142 </div> 143 <?php endif; ?> 144 </div> <!-- /navigation --> 145 146 <?php if (!empty($left)): ?> 147 <div id="sidebar-left" class="column sidebar"> 148 <?php print $left; ?> 149 </div> <!-- /sidebar-left --> 150 <?php endif; ?> 151 152 <div id="main" class="column"><div id="main-squeeze"> 153 <?php if (!empty($breadcrumb)): ?><div id="breadcrumb"><?php print $breadcrumb; ?></div><?php endif; ?> 154 <?php if (!empty($mission)): ?><div id="mission"><?php print $mission; ?></div><?php endif; ?> 155 156 <div id="content"> 157 <?php if (!empty($title)): ?><h1 class="title" id="page-title"><?php print $title; ?></h1><?php endif; ?> 158 <?php if (!empty($tabs)): ?><div class="tabs"><?php print $tabs; ?></div><?php endif; ?> 159 <?php if (!empty($messages)): print $messages; endif; ?> 160 <?php if (!empty($help)): print $help; endif; ?> 161 <div id="content-content" class="clear-block"> 162 <?php print $content; ?> 163 </div> <!-- /content-content --> 164 <?php print $feed_icons; ?> 165 </div> <!-- /content --> 166 167 </div></div> <!-- /main-squeeze /main --> 168 169 <?php if (!empty($right)): ?> 170 <div id="sidebar-right" class="column sidebar"> 171 <?php print $right; ?> 172 </div> <!-- /sidebar-right --> 173 <?php endif; ?> 174 175 </div> <!-- /container --> 176 177 <div id="footer-wrapper"> 178 <div id="footer"> 179 <?php print $footer_message; ?> 180 <?php if (!empty($footer)): print $footer; endif; ?> 181 </div> <!-- /footer --> 182 </div> <!-- /footer-wrapper --> 183 184 <?php print $closure; ?> 185 186 </div> <!-- /page --> 187 188 </body> 189 </html>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Mar 24 11:18:33 2011 | Cross-referenced by PHPXref 0.7 |