[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/themes/garland/ -> page.tpl.php (source)

   1  <?php
   2  ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   3    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
   4  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>">
   5    <head>
   6      <?php print $head ?>
   7      <title><?php print $head_title ?></title>
   8      <?php print $styles ?>
   9      <?php print $scripts ?>
  10      <!--[if lt IE 7]>
  11        <?php print phptemplate_get_ie_styles(); ?>
  12      <![endif]-->
  13    </head>
  14    <body<?php print phptemplate_body_class($left, $right); ?>>
  15  
  16  <!-- Layout -->
  17    <div id="header-region" class="clear-block"><?php print $header; ?></div>
  18  
  19      <div id="wrapper">
  20      <div id="container" class="clear-block">
  21  
  22        <div id="header">
  23          <div id="logo-floater">
  24          <?php
  25            // Prepare header
  26            $site_fields = array();
  27            if ($site_name) {
  28              $site_fields[] = check_plain($site_name);
  29            }
  30            if ($site_slogan) {
  31              $site_fields[] = check_plain($site_slogan);
  32            }
  33            $site_title = implode(' ', $site_fields);
  34            if ($site_fields) {
  35              $site_fields[0] = '<span>'. $site_fields[0] .'</span>';
  36            }
  37            $site_html = implode(' ', $site_fields);
  38  
  39            if ($logo || $site_title) {
  40              print '<h1><a href="'. check_url($front_page) .'" title="'. $site_title .'">';
  41              if ($logo) {
  42                print '<img src="'. check_url($logo) .'" alt="'. $site_title .'" id="logo" />';
  43              }
  44              print $site_html .'</a></h1>';
  45            }
  46          ?>
  47          </div>
  48  
  49          <?php if (isset($primary_links)) : ?>
  50            <?php print theme('links', $primary_links, array('class' => 'links primary-links')) ?>
  51          <?php endif; ?>
  52          <?php if (isset($secondary_links)) : ?>
  53            <?php print theme('links', $secondary_links, array('class' => 'links secondary-links')) ?>
  54          <?php endif; ?>
  55  
  56        </div> <!-- /header -->
  57  
  58        <?php if ($left): ?>
  59          <div id="sidebar-left" class="sidebar">
  60            <?php if ($search_box): ?><div class="block block-theme"><?php print $search_box ?></div><?php endif; ?>
  61            <?php print $left ?>
  62          </div>
  63        <?php endif; ?>
  64  
  65        <div id="center"><div id="squeeze"><div class="right-corner"><div class="left-corner">
  66            <?php print $breadcrumb; ?>
  67            <?php if ($mission): print '<div id="mission">'. $mission .'</div>'; endif; ?>
  68            <?php if ($tabs): print '<div id="tabs-wrapper" class="clear-block">'; endif; ?>
  69            <?php if ($title): print '<h2'. ($tabs ? ' class="with-tabs"' : '') .'>'. $title .'</h2>'; endif; ?>
  70            <?php if ($tabs): print '<ul class="tabs primary">'. $tabs .'</ul></div>'; endif; ?>
  71            <?php if ($tabs2): print '<ul class="tabs secondary">'. $tabs2 .'</ul>'; endif; ?>
  72            <?php if ($show_messages && $messages): print $messages; endif; ?>
  73            <?php print $help; ?>
  74            <div class="clear-block">
  75              <?php print $content ?>
  76            </div>
  77            <?php print $feed_icons ?>
  78            <div id="footer"><?php print $footer_message . $footer ?></div>
  79        </div></div></div></div> <!-- /.left-corner, /.right-corner, /#squeeze, /#center -->
  80  
  81        <?php if ($right): ?>
  82          <div id="sidebar-right" class="sidebar">
  83            <?php if (!$left && $search_box): ?><div class="block block-theme"><?php print $search_box ?></div><?php endif; ?>
  84            <?php print $right ?>
  85          </div>
  86        <?php endif; ?>
  87  
  88      </div> <!-- /container -->
  89    </div>
  90  <!-- /layout -->
  91  
  92    <?php print $closure ?>
  93    </body>
  94  </html>


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