[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/themes/myzen/ -> page-flowpage.tpl.php (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  <script type="text/javascript">
  91      // override Highslide settings here
  92      // instead of editing the highslide.js file
  93      hs.graphicsDir = '/sites/all/libraries/highslide/highslide/graphics/';
  94      hs.outlineType = '';
  95  //hs.wrapperClassName = 'dark';
  96  hs.align = 'center';
  97  hs.showCredits = 0;
  98  hs.dimmingOpacity = 0.75;
  99  hs.expandDuration = 500;
 100      hs.captionEval = 'Null';
 101  //hs.captionEval = 'this.a.title';
 102      hs.registerOverlay({
 103      html: '<div class="closebutton" onclick="return hs.close(this)" title="Close"></div>',
 104      position: 'top right',
 105      useOnHtml: true,
 106      fade: 2 // fading the semi-transparent overlay looks bad in IE
 107  });
 108  </script>
 109  </head>
 110  <body class="<?php print $body_classes; ?>">
 111  
 112    <div id="page"><div id="page-inner">
 113      <a href="/node/9" title="Enlarge Image"><img id="head-image" src="/images/YI-banner2.jpg" width=960 height=175 /></a>
 114      <a name="navigation-top" id="navigation-top"></a>
 115      <?php if ($primary_links || $secondary_links || $navbar): ?>
 116        <div id="skip-to-nav"><a href="#navigation"><?php print t('Skip to Navigation'); ?></a></div>
 117      <?php endif; ?>
 118  
 119      <div id="header"><div id="header-inner" class="clear-block">
 120  
 121        <?php if ($logo || $site_name || $site_slogan): ?>
 122          <div id="logo-title">
 123  
 124            <?php if ($logo): ?>
 125              <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>
 126            <?php endif; ?>
 127  
 128            <?php if ($site_name): ?>
 129              <?php if ($title): ?>
 130                <div id="site-name"><strong>
 131                  <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home">
 132                  <?php print $site_name; ?>
 133                  </a>
 134                </strong></div>
 135              <?php else: ?>
 136                <h1 id="site-name">
 137                  <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home">
 138                  <?php print $site_name; ?>
 139                  </a>
 140                </h1>
 141              <?php endif; ?>
 142            <?php endif; ?>
 143  
 144            <?php if ($site_slogan): ?>
 145              <div id="site-slogan"><?php print $site_slogan; ?></div>
 146            <?php endif; ?>
 147  
 148          </div> <!-- /#logo-title -->
 149        <?php endif; ?>
 150  
 151        <?php if ($header): ?>
 152          <div id="header-blocks" class="region region-header">
 153            <?php print $header; ?>
 154          </div> <!-- /#header-blocks -->
 155        <?php endif; ?>
 156  
 157      </div></div> <!-- /#header-inner, /#header -->
 158  
 159      <div id="main"><div id="main-inner" class="clear-block<?php if ($search_box || $primary_links || $secondary_links || $navbar) { print ' with-navbar'; } ?>">
 160  
 161        <div id="content"><div id="content-inner">
 162  
 163          <?php if ($mission): ?>
 164            <div id="mission"><?php print $mission; ?></div>
 165          <?php endif; ?>
 166  
 167          <?php if ($content_top): ?>
 168            <div id="content-top" class="region region-content_top">
 169              <?php print $content_top; ?>
 170            </div> <!-- /#content-top -->
 171          <?php endif; ?>
 172  
 173          <?php if ($breadcrumb || $title || $tabs || $help || $messages): ?>
 174            <div id="content-header">
 175              <?php print $breadcrumb; ?>
 176              <?php if ($title): ?>
 177                <h3 class="title"><?php print $title; ?></h3>
 178              <?php endif; ?>
 179              <?php print $messages; ?>
 180              <?php if ($tabs): ?>
 181                <div class="tabs"><?php print $tabs; ?></div>
 182              <?php endif; ?>
 183              <?php print $help; ?>
 184            </div> <!-- /#content-header -->
 185          <?php endif; ?>
 186  
 187          <div id="content-area">
 188            <?php print $content; ?>
 189          </div>
 190  
 191          <?php if ($feed_icons): ?>
 192            <div class="feed-icons"><?php print $feed_icons; ?></div>
 193          <?php endif; ?>
 194  
 195          <?php if ($content_bottom): ?>
 196            <div id="content-bottom" class="region region-content_bottom">
 197              <?php print $content_bottom; ?>
 198            </div> <!-- /#content-bottom -->
 199          <?php endif; ?>
 200  
 201        </div></div> <!-- /#content-inner, /#content -->
 202  
 203        <?php if ($search_box || $primary_links || $secondary_links || $navbar): ?>
 204          <div id="navbar"><div id="navbar-inner" class="clear-block region region-navbar">
 205  
 206            <a name="navigation" id="navigation"></a>
 207  
 208            <?php if ($search_box): ?>
 209             <!-- <div id="search-box test" >   -->
 210            <?php endif; ?>
 211  
 212            <?php if ($primary_links): ?>
 213              <div id="primary" class="clear-block">
 214                <?php print theme('links', $primary_links); ?>
 215              </div> <!-- /#primary -->
 216            <?php endif; ?>
 217  
 218            <?php if ($secondary_links): ?>
 219              <div id="secondary" class="clear-block">
 220                <?php print theme('links', $secondary_links); ?>
 221              </div> <!-- /#secondary -->
 222            <?php endif; ?>
 223  
 224            <?php
 225              //          print_r( $primary_links );
 226              //          print "<br>".$navbar;
 227            ?>
 228  
 229          </div></div> <!-- /#navbar-inner, /#navbar -->
 230        <?php endif; ?>
 231  
 232        <?php if ($left): ?>
 233          <div id="sidebar-left"><div id="sidebar-left-inner" class="region region-left">
 234            <?php print $left; ?>
 235          </div></div> <!-- /#sidebar-left-inner, /#sidebar-left -->
 236        <?php endif; ?>
 237  
 238        <?php if ($right): ?>
 239          <div id="sidebar-right"><div id="sidebar-right-inner" class="region region-right">
 240            <?php print $right; ?>
 241          </div></div> <!-- /#sidebar-right-inner, /#sidebar-right -->
 242        <?php endif; ?>
 243  
 244      </div></div> <!-- /#main-inner, /#main -->
 245  
 246      <?php if ($footer || $footer_message): ?>
 247        <div id="footer"><div id="footer-inner" class="region region-footer">
 248  
 249          <?php if ($footer_message): ?>
 250            <div id="footer-message"><?php print $footer_message; ?></div>
 251          <?php endif; ?>
 252  
 253          <?php print $footer; ?>
 254  
 255        </div></div> <!-- /#footer-inner, /#footer -->
 256      <?php endif; ?>
 257  
 258    </div></div> <!-- /#page-inner, /#page -->
 259  
 260    <?php if ($closure_region): ?>
 261      <div id="closure-blocks" class="region region-closure"><?php print $closure_region; ?></div>
 262    <?php endif; ?>
 263  
 264    <?php print $closure; ?>
 265  
 266  </body>
 267  </html>


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