DrupalBin
Submit Code
About
Recent Posts
css path
55 min 14 sec
ago
Fix for Code
4 hours 54 min
ago
Fix for Code
5 hours 46 sec
ago
Fix for Code
5 hours 8 min
ago
more
Tags
CCK
drupal
fapi
jquery
menu
module
Panels
php
simpletest
test
theme
views
more tags
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Create new account
Request new password
Log in using OpenID
Cancel OpenID login
Home
Fix for objectx.org template
View
Download
Fix
This fix will not be saved to the database until you submit.
Summary:
Tags:
Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Source code:
*
<?php //var_dump(menu_tree_all_data('secondary-links')); /* if($array) { foreach ($array as $key => $link) echo sprintf('<a class="related-link" href="/%s">%s</a>', $link['href'], $link['title']); } */ //exit; function _menu_get_active_trail() { static $trail; if (!isset($trail)) { $trail = array(); $mid = menu_set_active_item( $_SERVER['REQUEST_URI'] ); var_dump($mid, $_SERVER['REQUEST_URI'] ); // Follow the parents up the chain to get the trail. while ($mid && ($item = menu_get_item($mid))) { array_unshift($trail, $mid); $mid = $item['pid']; } } return $trail; } //var_dump( menu_get_active_breadcrumb(), get_vars() ); //exit; ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title><?php echo $head_title; ?></title> <meta name="Language" content="en" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Language" content="en" /> <?php print $head; ?> <?php print $styles; ?> <?php print $scripts; ?> <script type="text/javascript"><?php /* Needed to avoid Flash of Unstyle Content in IE */ ?> </script> <script type="text/javascript"> /* Prevent another site from "framing" this web page */ if (top != self) { top.location.href = location.href; } </script> </head> <body> <!-- For non-visual or non-stylesheet-capable user agents --> <div id="mainlink"><a href="#main">Skip to main content.</a></div> <!-- ======== Header ======== --> <div id="header"> <div class="left"> <a href="http://www.zap.org.au/documents/styles/sinorcaish/"> <img src="/themes/sinorcaish/sinorcaish.png" alt="Browse the official Sinorcaish home page" width="325" height="60" /> </a> </div> <div class="right"> <span class="hidden">Useful links:</span> <a href="/contact">Contact Us</a> | <a href="/feedback">Feedback</a> | <a href="/about">About Us</a> <div> <form action="index.html" method="get"> <script type="text/javascript"> var EmptySearchFieldDone = 0; function EmptySearchField(elem) { if (EmptySearchFieldDone == 0) { elem.value = ""; EmptySearchFieldDone = 1; } return true; } </script> <div> <input type="text" name="q" value="Search" onfocus="EmptySearchField(this);" size="15" maxlength="250" /> <input type="image" name="submit" src="/themes/sinorcaish/search.png" alt="Search" /> </div> </form> </div> <div class="subheader"> <p> <span class="hidden">Navigation:</span> <?php /* <a href="index.html">Home</a> | <a href="index.html">Products</a> | <a href="index.html">Services</a> | <a href="index.html">Support</a> | <a href="index.html">About</a> | <a class="highlight" href="index.html">Other</a> */ // global $navigation_links; echo get_navigation_links(); ?> </p> </div> </div> <!-- ======== Left Sidebar ======== --> <div id="sidebar"> <div> <p class="title"><a href="index.html">Other</a></p> <ul> <li class="highlight"><a href="index.html">Overview</a> <span class="hidden">(this page)</span></li> <li><a href="template.html">Template</a></li> <li><a href="sample.html">Sample Page</a></li> <li><a href="logo.html">Logo Images</a></li> </ul> </div> <div> <p class="title">W3C Validation</p> <p> <a href="http://validator.w3.org/check?uri=referer"> <img src="/themes/sinorcaish/valid-xhtml10.png" alt="Validate against the XHTML 1.0 Strict standard" width="88" height="31" /></a> <br /> <a href="http://jigsaw.w3.org/css-validator/check/referer"> <img src="/themes/sinorcaish/valid-css.png" alt="Validate against the CSS 2.1 standard" width="88" height="31" /> </a> <br /> <a href="http://www.w3.org/WAI/WCAG1AA-Conformance"> <img src="/themes/sinorcaish/wcag1AA.png" alt="Conforms with Level Double-A of the Web Content Accessibility Guidelines 1.0" width="88" height="32" /> </a> </p> </div> </div> <!-- ======== Main Content ======== --> <div id="main"> <div id="navhead"> <hr /> <span class="hidden">Path to this page:</span> <?php /*echo $breadcrumb;*/ ?> </div> <div class="tabs"><?php print $tabs ?></div> <?php if ($show_messages) { print $messages; } ?> <?php echo $content; ?> <br id="endmain" /> </div> <!-- ======== Footer ======== --> <div id="footer"> <hr /> Copyright © 2004–07, John Zaitseff. All rights reserved. <span class="notprinted"> <a href="index.html">Terms of Use</a>. <a href="index.html">Privacy Policy</a>. </span> <br /> This web site is maintained by <a href="mailto:J.Zaitseff@zap.org.au">John Zaitseff</a>. Last modified: 22nd March, 2007. </div> </body> </html>
Syntax highlighting mode:
ActionScript
ColdFusion
Diff
Drupal
Drupal 5
Drupal 6
HTML
Javascript
MySQL
PHP
Python
robots.txt
SQL
Text
Select the syntax highlighting mode to use.