| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 <?php 2 // $Id: page.tpl.php,v 1.14.2.10 2009/11/05 14:26:26 johnalbin Exp $ 3 4 /** 5 * @file page.tpl.php 6 * 7 * Theme implementation to display a single Drupal page. 8 * 9 * Available variables: 10 * 11 * General utility variables: 12 * - $base_path: The base URL path of the Drupal installation. At the very 13 * least, this will always default to /. 14 * - $css: An array of CSS files for the current page. 15 * - $directory: The directory the theme is located in, e.g. themes/garland or 16 * themes/garland/minelli. 17 * - $is_front: TRUE if the current page is the front page. Used to toggle the mission statement. 18 * - $logged_in: TRUE if the user is registered and signed in. 19 * - $is_admin: TRUE if the user has permission to access administration pages. 20 * 21 * Page metadata: 22 * - $language: (object) The language the site is being displayed in. 23 * $language->language contains its textual representation. 24 * $language->dir contains the language direction. It will either be 'ltr' or 'rtl'. 25 * - $head_title: A modified version of the page title, for use in the TITLE tag. 26 * - $head: Markup for the HEAD section (including meta tags, keyword tags, and 27 * so on). 28 * - $styles: Style tags necessary to import all CSS files for the page. 29 * - $scripts: Script tags necessary to load the JavaScript files and settings 30 * for the page. 31 * - $body_classes: A set of CSS classes for the BODY tag. This contains flags 32 * indicating the current layout (multiple columns, single column), the current 33 * path, whether the user is logged in, and so on. 34 * - $body_classes_array: An array of the body classes. This is easier to 35 * manipulate then the string in $body_classes. 36 * - $node: Full node object. Contains data that may not be safe. This is only 37 * available if the current page is on the node's primary url. 38 * 39 * Site identity: 40 * - $front_page: The URL of the front page. Use this instead of $base_path, 41 * when linking to the front page. This includes the language domain or prefix. 42 * - $logo: The path to the logo image, as defined in theme configuration. 43 * - $site_name: The name of the site, empty when display has been disabled 44 * in theme settings. 45 * - $site_slogan: The slogan of the site, empty when display has been disabled 46 * in theme settings. 47 * - $mission: The text of the site mission, empty when display has been disabled 48 * in theme settings. 49 * 50 * Navigation: 51 * - $search_box: HTML to display the search box, empty if search has been disabled. 52 * - $primary_links (array): An array containing primary navigation links for the 53 * site, if they have been configured. 54 * - $secondary_links (array): An array containing secondary navigation links for 55 * the site, if they have been configured. 56 * 57 * Page content (in order of occurrance in the default page.tpl.php): 58 * - $left: The HTML for the left sidebar. 59 * 60 * - $breadcrumb: The breadcrumb trail for the current page. 61 * - $title: The page title, for use in the actual HTML content. 62 * - $help: Dynamic help text, mostly for admin pages. 63 * - $messages: HTML for status and error messages. Should be displayed prominently. 64 * - $tabs: Tabs linking to any sub-pages beneath the current page (e.g., the view 65 * and edit tabs when displaying a node). 66 * 67 * - $content: The main content of the current Drupal page. 68 * 69 * - $right: The HTML for the right sidebar. 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 content. 77 * 78 * @see template_preprocess() 79 * @see template_preprocess_page() 80 */ 81 ?> 82 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 83 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language; ?>" lang="<?php print $language->language; ?>" dir="<?php print $language->dir; ?>"> 84 85 <head> 86 <title><?php print $head_title; ?></title> 87 <?php print $head; ?> 88 <?php print $styles; ?> 89 <?php print $scripts; ?> 90 </head> 91 <body class="<?php print $body_classes; ?>"> 92 93 <div id="page"><div id="page-inner"> 94 <a href="/node/9" title="Enlarge Image"><img id="head-image" src="/images/YI-banner2.jpg" width=960 height=175 /></a> 95 <a name="navigation-top" id="navigation-top"></a> 96 <?php if ($primary_links || $secondary_links || $navbar): ?> 97 <div id="skip-to-nav"><a href="#navigation"><?php print t('Skip to Navigation'); ?></a></div> 98 <?php endif; ?> 99 100 <div id="header"><div id="header-inner" class="clear-block"> 101 102 <?php if ($logo || $site_name || $site_slogan): ?> 103 <div id="logo-title"> 104 105 <?php if ($logo): ?> 106 <div id="logo"><a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home"><img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" id="logo-image" /></a></div> 107 <?php endif; ?> 108 109 <?php if ($site_name): ?> 110 <?php if ($title): ?> 111 <div id="site-name"><strong> 112 <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home"> 113 <?php print $site_name; ?> 114 </a> 115 </strong></div> 116 <?php else: ?> 117 <h1 id="site-name"> 118 <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home"> 119 <?php print $site_name; ?> 120 </a> 121 </h1> 122 <?php endif; ?> 123 <?php endif; ?> 124 125 <?php if ($site_slogan): ?> 126 <div id="site-slogan"><?php print $site_slogan; ?></div> 127 <?php endif; ?> 128 129 </div> <!-- /#logo-title --> 130 <?php endif; ?> 131 132 <?php if ($header): ?> 133 <div id="header-blocks" class="region region-header"> 134 <?php print $header; ?> 135 </div> <!-- /#header-blocks --> 136 <?php endif; ?> 137 138 </div></div> <!-- /#header-inner, /#header --> 139 140 <div id="main"><div id="main-inner" class="clear-block<?php if ($search_box || $primary_links || $secondary_links || $navbar) { print ' with-navbar'; } ?>"> 141 142 <div id="content"><div id="content-inner"> 143 144 <?php if ($mission): ?> 145 <div id="mission"><?php print $mission; ?></div> 146 <?php endif; ?> 147 148 <?php if ($content_top): ?> 149 <div id="content-top" class="region region-content_top"> 150 <?php print $content_top; ?> 151 </div> <!-- /#content-top --> 152 <?php endif; ?> 153 154 <?php if ($breadcrumb || $title || $tabs || $help || $messages): ?> 155 <div id="content-header"> 156 <?php print $breadcrumb; ?> 157 <?php if ($title): ?> 158 <h3 class="title"><?php print $title; ?></h3> 159 <?php endif; ?> 160 <?php print $messages; ?> 161 <?php if ($tabs): ?> 162 <div class="tabs"><?php print $tabs; ?></div> 163 <?php endif; ?> 164 <?php print $help; ?> 165 </div> <!-- /#content-header --> 166 <?php endif; ?> 167 168 <div id="content-area"> 169 <?php print $content; ?> 170 </div> 171 172 173 <?php if ($content_bottom): ?> 174 <div id="content-bottom" class="region region-content_bottom"> 175 <?php print $content_bottom; ?> 176 </div> <!-- /#content-bottom --> 177 <?php endif; ?> 178 179 </div></div> <!-- /#content-inner, /#content --> 180 181 <?php if ($search_box || $primary_links || $secondary_links || $navbar): ?> 182 <div id="navbar"><div id="navbar-inner" class="clear-block region region-navbar"> 183 184 <a name="navigation" id="navigation"></a> 185 186 <?php if ($search_box): ?> 187 <!-- <div id="search-box test" > --> 188 <?php endif; ?> 189 190 <?php if ($primary_links): ?> 191 <div id="primary" class="clear-block"> 192 <?php print theme('links', $primary_links); ?> 193 <?php if ($feed_icons): ?><?php print $feed_icons; ?><?php endif; ?> 194 </div> <!-- /#primary --> 195 <?php endif; ?> 196 197 <?php if ($secondary_links): ?> 198 <div id="secondary" class="clear-block"> 199 <?php print theme('links', $secondary_links); ?> 200 </div> <!-- /#secondary --> 201 <?php endif; ?> 202 </div></div> <!-- /#navbar-inner, /#navbar --> 203 <?php endif; ?> 204 205 <?php if ($left): ?> 206 <div id="sidebar-left"><div id="sidebar-left-inner" class="region region-left"> 207 <?php print $left; ?> 208 </div></div> <!-- /#sidebar-left-inner, /#sidebar-left --> 209 <?php endif; ?> 210 211 <?php if ($right): ?> 212 <div id="sidebar-right"><div id="sidebar-right-inner" class="region region-right"> 213 <?php print $right; ?> 214 </div></div> <!-- /#sidebar-right-inner, /#sidebar-right --> 215 <?php endif; ?> 216 217 </div></div> <!-- /#main-inner, /#main --> 218 219 <?php if ($footer || $footer_message): ?> 220 <div id="footer"><div id="footer-inner" class="region region-footer"> 221 222 <?php if ($footer_message): ?> 223 <div id="footer-message"><?php print $footer_message; ?></div> 224 <?php endif; ?> 225 226 <?php print $footer; ?> 227 228 </div></div> <!-- /#footer-inner, /#footer --> 229 <?php endif; ?> 230 231 </div></div> <!-- /#page-inner, /#page --> 232 233 <?php if ($closure_region): ?> 234 <div id="closure-blocks" class="region region-closure"><?php print $closure_region; ?></div> 235 <?php endif; ?> 236 237 <?php print $closure; ?> 238 239 </body> 240 </html>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |