[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/themes/myzen/ -> page.tpl.php.bak (source)

   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=174 /></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          <?php if ($feed_icons): ?>
 173            <div class="feed-icons"><?php print $feed_icons; ?></div>
 174          <?php endif; ?>
 175  
 176          <?php if ($content_bottom): ?>
 177            <div id="content-bottom" class="region region-content_bottom">
 178              <?php print $content_bottom; ?>
 179            </div> <!-- /#content-bottom -->
 180          <?php endif; ?>
 181  
 182        </div></div> <!-- /#content-inner, /#content -->
 183  
 184        <?php if ($search_box || $primary_links || $secondary_links || $navbar): ?>
 185          <div id="navbar"><div id="navbar-inner" class="clear-block region region-navbar">
 186  
 187            <a name="navigation" id="navigation"></a>
 188  
 189            <?php if ($search_box): ?>
 190             <!-- <div id="search-box test" >   -->
 191            <?php endif; ?>
 192  
 193            <?php if ($primary_links): ?>
 194              <div id="primary" class="clear-block">
 195                <?php print theme('links', $primary_links); ?>
 196              </div> <!-- /#primary -->
 197            <?php endif; ?>
 198  
 199            <?php if ($secondary_links): ?>
 200              <div id="secondary" class="clear-block">
 201                <?php print theme('links', $secondary_links); ?>
 202              </div> <!-- /#secondary -->
 203            <?php endif; ?>
 204  
 205            <?php
 206              //          print_r( $primary_links );
 207              //          print "<br>".$navbar;
 208            ?>
 209  
 210          </div></div> <!-- /#navbar-inner, /#navbar -->
 211        <?php endif; ?>
 212  
 213        <?php if ($left): ?>
 214          <div id="sidebar-left"><div id="sidebar-left-inner" class="region region-left">
 215            <?php print $left; ?>
 216          </div></div> <!-- /#sidebar-left-inner, /#sidebar-left -->
 217        <?php endif; ?>
 218  
 219        <?php if ($right): ?>
 220          <div id="sidebar-right"><div id="sidebar-right-inner" class="region region-right">
 221            <?php print $right; ?>
 222          </div></div> <!-- /#sidebar-right-inner, /#sidebar-right -->
 223        <?php endif; ?>
 224  
 225      </div></div> <!-- /#main-inner, /#main -->
 226  
 227      <?php if ($footer || $footer_message): ?>
 228        <div id="footer"><div id="footer-inner" class="region region-footer">
 229  
 230          <?php if ($footer_message): ?>
 231            <div id="footer-message"><?php print $footer_message; ?></div>
 232          <?php endif; ?>
 233  
 234          <?php print $footer; ?>
 235  
 236        </div></div> <!-- /#footer-inner, /#footer -->
 237      <?php endif; ?>
 238  
 239    </div></div> <!-- /#page-inner, /#page -->
 240  
 241    <?php if ($closure_region): ?>
 242      <div id="closure-blocks" class="region region-closure"><?php print $closure_region; ?></div>
 243    <?php endif; ?>
 244  
 245    <?php print $closure; ?>
 246  
 247  </body>
 248  </html>


Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7