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