objectx.org template

  1. <?php
  2.  
  3. //var_dump(menu_tree_all_data('secondary-links'));
  4.  
  5. /*
  6. if($array)
  7. {
  8.     foreach ($array as $key => $link)
  9.       echo sprintf('<a class="related-link" href="/%s">%s</a>', $link['href'], $link['title']);
  10. }
  11. */
  12. //exit;
  13.  
  14. function _menu_get_active_trail() {
  15.   static $trail;
  16.  
  17.   if (!isset($trail)) {
  18.     $trail = array();
  19.  
  20.     $mid = menu_set_active_item( $_SERVER['REQUEST_URI'] );
  21.     var_dump($mid, $_SERVER['REQUEST_URI'] );
  22.  
  23.     // Follow the parents up the chain to get the trail.
  24.     while ($mid && ($item = menu_get_item($mid))) {
  25.       array_unshift($trail, $mid);
  26.       $mid = $item['pid'];
  27.     }
  28.   }
  29.  
  30.   return $trail;
  31. }
  32.  
  33. //var_dump( menu_get_active_breadcrumb(), get_vars() );
  34. //exit;
  35.  
  36. ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  37. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  38. <head>
  39.   <title><?php echo $head_title; ?></title>
  40.   <meta name="Language" content="en" />
  41.  
  42.   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  43.   <meta http-equiv="Content-Language" content="en" />
  44.   <?php print $head; ?>
  45.   <?php print $styles; ?>
  46.   <?php print $scripts; ?>
  47.   <script type="text/javascript"><?php /* Needed to avoid Flash of Unstyle Content in IE */ ?> </script>
  48.  
  49.   <script type="text/javascript">
  50.       /* Prevent another site from "framing" this web page */
  51.       if (top != self) {
  52.           top.location.href = location.href;
  53.       }
  54.   </script>
  55. </head>
  56.  
  57. <body>
  58.  
  59. <!-- For non-visual or non-stylesheet-capable user agents -->
  60. <div id="mainlink"><a href="#main">Skip to main content.</a></div>
  61.  
  62. <!-- ======== Header ======== -->
  63. <div id="header">
  64.   <div class="left">
  65.     <a href="http://www.zap.org.au/documents/styles/sinorcaish/">
  66.        <img src="/themes/sinorcaish/sinorcaish.png" alt="Browse the official Sinorcaish home page" width="325" height="60" />
  67.     </a>
  68.   </div>
  69.  
  70.   <div class="right">
  71.     <span class="hidden">Useful links:</span>
  72.     <a href="/contact">Contact Us</a> |
  73.     <a href="/feedback">Feedback</a> |
  74.     <a href="/about">About Us</a>
  75.  
  76.     <div>
  77.       <form action="index.html" method="get">
  78.         <script type="text/javascript">
  79.             var EmptySearchFieldDone = 0;
  80.             function EmptySearchField(elem) {
  81.                 if (EmptySearchFieldDone == 0) {
  82.                     elem.value = "";
  83.                     EmptySearchFieldDone = 1;
  84.                 }
  85.                 return true;
  86.             }
  87.         </script>
  88.         <div>
  89.           <input type="text" name="q" value="Search" onfocus="EmptySearchField(this);" size="15" maxlength="250" />
  90.           <input type="image" name="submit" src="/themes/sinorcaish/search.png" alt="Search" />
  91.         </div>
  92.       </form>
  93.  
  94.   </div>
  95.  
  96.   <div class="subheader">
  97.     <p>
  98.       <span class="hidden">Navigation:</span>
  99.       <?php
  100.       /*
  101.       <a href="index.html">Home</a> |
  102.       <a href="index.html">Products</a> |
  103.       <a href="index.html">Services</a> |
  104.       <a href="index.html">Support</a> |
  105.       <a href="index.html">About</a> |
  106.       <a class="highlight" href="index.html">Other</a>
  107.       */
  108.  
  109.       // global $navigation_links;
  110.       echo get_navigation_links();
  111.       ?>
  112.     </p>
  113.   </div>
  114. </div>
  115.  
  116.  
  117. <!-- ======== Left Sidebar ======== -->
  118.  
  119. <div id="sidebar">
  120.   <div>
  121.     <p class="title"><a href="index.html">Other</a></p>
  122.     <ul>
  123.       <li class="highlight"><a href="index.html">Overview</a>
  124.       <span class="hidden">(this page)</span></li>
  125.       <li><a href="template.html">Template</a></li>
  126.       <li><a href="sample.html">Sample Page</a></li>
  127.       <li><a href="logo.html">Logo Images</a></li>
  128.     </ul>
  129.   </div>
  130.  
  131.   <div>
  132.     <p class="title">W3C Validation</p>
  133.     <p>
  134.     <a href="http://validator.w3.org/check?uri=referer">
  135.     <img src="/themes/sinorcaish/valid-xhtml10.png"
  136.          alt="Validate against the XHTML 1.0 Strict standard" width="88" height="31" /></a>
  137.     <br />
  138.     <a href="http://jigsaw.w3.org/css-validator/check/referer">
  139.       <img src="/themes/sinorcaish/valid-css.png"
  140.            alt="Validate against the CSS 2.1 standard" width="88" height="31" />
  141.     </a>
  142.     <br />
  143.     <a href="http://www.w3.org/WAI/WCAG1AA-Conformance">
  144.       <img src="/themes/sinorcaish/wcag1AA.png"
  145.            alt="Conforms with Level Double-A of the Web Content Accessibility Guidelines 1.0" width="88" height="32" />
  146.      </a>
  147.     </p>
  148.   </div>
  149. </div>
  150.  
  151.  
  152. <!-- ======== Main Content ======== -->
  153. <div id="main">
  154. <div id="navhead">
  155.   <hr />
  156.   <span class="hidden">Path to this page:</span>
  157.   <?php /*echo $breadcrumb;*/ ?>
  158. </div>
  159. <div class="tabs"><?php print $tabs ?></div>
  160. <?php if ($show_messages) { print $messages; } ?>
  161. <?php echo $content; ?>
  162. <br id="endmain" />
  163. </div>
  164.  
  165. <!-- ======== Footer ======== -->
  166. <div id="footer">
  167.   <hr />
  168.   Copyright &copy; 2004&ndash;07, John Zaitseff.  All rights reserved.
  169.   <span class="notprinted">
  170.     <a href="index.html">Terms of Use</a>.
  171.     <a href="index.html">Privacy Policy</a>.
  172.   </span>
  173.   <br />
  174.  
  175.   This web site is maintained by
  176.   <a href="mailto:J.Zaitseff@zap.org.au">John Zaitseff</a>.
  177.   Last modified: 22nd March, 2007.
  178. </div>
  179. </body>
  180. </html>