Skip to content

Instantly share code, notes, and snippets.

@borndangerous
Created May 11, 2010 09:06
Show Gist options
  • Save borndangerous/397093 to your computer and use it in GitHub Desktop.
Save borndangerous/397093 to your computer and use it in GitHub Desktop.
<!-- BEGIN HEADER -->
<div id="header-wrap">
<div id="header" class="container_16 clearfix">
<div class="logo">
<h1><a href="/secure" title="M6 Method" id="logo">M6 Method</a></h1>
</div> <!-- close #logo -->
<div id="siteSearchForm">
<form action="" id="siteSearch" method="get">
<input type="text" id="searchImput" value="Search"/>
<input type="submit" id="searchSubmit" value="" onfocus="this.blur();"/>
</form>
</div> <!-- end #siteSearch -->
<div id="topnav" class="jqueryslidemenu">
<ul>
<li><a class="currentHome" href="/secure">Hub</a></li>
<li><a class="navEffect" href="/secure/Overview">Overview</a></li>
<li><a class="navEffect" href="/secure/Modules">Modules</a>
<ul>
<li class="m0"><a href="/secure/Modules">All Modules</a></li>
<li class="m1"><a href="/secure/Niche_Identification">Niche Identification</a></li>
<li class="m2"><a href="/secure/Offer_Construction">Offer Construction</a></li>
<li class="m3"><a href="/secure/Demand_Simulation">Demand Simulation</a></li>
<li class="m4"><a href="/secure/Product_Creation">Product Creation</a></li>
<li class="m5"><a href="/secure/Systematic_Distribution">Systematic Distribution</a></li>
<li class="m6"><a href="/secure/Process_Automation">Process Automation</a></li>
</ul>
</li>
<li><a class="navEffect" href="/secure/Discussion">Discussion</a></li>
<li><a class="navEffect" href="/secure/Blog">Blog</a></li>
<li><a class="navEffect" href="/secure/Resources">Resources</a></li>
<!-- WIKI RELATED MENU ITEMS -->
<li><a class="navEffect" href="#">Wiki</a>
<ul>
<li><a href="/secure/Sandbox">Sandbox</a></li>
<li><a href="#">Page</a>
<ul>
<?php foreach($this->data['content_actions'] as $key => $tab) {
echo '
<li id="' . Sanitizer::escapeId( "ca-$key" ) . '"';
if( $tab['class'] ) {
echo ' class="'.htmlspecialchars($tab['class']).'"';
}
echo'><a href="'.htmlspecialchars($tab['href']).'"';
# We don't want to give the watch tab an accesskey if the
# page is being edited, because that conflicts with the
# accesskey on the watch checkbox. We also don't want to
# give the edit tab an accesskey, because that's fairly su-
# perfluous and conflicts with an accesskey (Ctrl-E) often
# used for editing in Safari.
if( in_array( $action, array( 'edit', 'submit' ) )
&& in_array( $key, array( 'edit', 'watch', 'unwatch' ))) {
echo $skin->tooltip( "ca-$key" );
} else {
echo $skin->tooltipAndAccesskey( "ca-$key" );
}
echo '>'.htmlspecialchars($tab['text']).'</a></li>';
} ?>
</ul>
</li>
<?php if (!$this->data['personal_urls']['login']) { ?>
<li><a href="#">Personal</a>
<ul>
<?php foreach($this->data['personal_urls'] as $key => $item) { ?>
<li id="<?php echo Sanitizer::escapeId( "pt-$key" ) ?>"<?php
if ($item['active']) { ?> class="active"<?php } ?>><a href="<?php
echo htmlspecialchars($item['href']) ?>"<?php echo $skin->tooltipAndAccesskey('pt-'.$key) ?><?php
if(!empty($item['class'])) { ?> class="<?php
echo htmlspecialchars($item['class']) ?>"<?php } ?>><?php
echo htmlspecialchars($item['text']) ?></a></li>
<?php } ?>
</ul>
</li>
<? } ?>
<li><a href="#">Toolbox</a>
<ul>
<?php
if($this->data['notspecialpage']) { ?>
<li id="t-whatlinkshere"><a href="<?php
echo htmlspecialchars($this->data['nav_urls']['whatlinkshere']['href'])
?>"<?php echo $this->skin->tooltipAndAccesskey('t-whatlinkshere') ?>><?php $this->msg('whatlinkshere') ?></a></li>
<?php
if( $this->data['nav_urls']['recentchangeslinked'] ) { ?>
<li id="t-recentchangeslinked"><a href="<?php
echo htmlspecialchars($this->data['nav_urls']['recentchangeslinked']['href'])
?>"<?php echo $this->skin->tooltipAndAccesskey('t-recentchangeslinked') ?>><?php $this->msg('recentchangeslinked') ?></a></li>
<?php }
}
if(isset($this->data['nav_urls']['trackbacklink'])) { ?>
<li id="t-trackbacklink"><a href="<?php
echo htmlspecialchars($this->data['nav_urls']['trackbacklink']['href'])
?>"<?php echo $this->skin->tooltipAndAccesskey('t-trackbacklink') ?>><?php $this->msg('trackbacklink') ?></a></li>
<?php }
if($this->data['feeds']) { ?>
<li id="feedlinks"><?php foreach($this->data['feeds'] as $key => $feed) {
?><span id="<?php echo Sanitizer::escapeId( "feed-$key" ) ?>"><a href="<?php
echo htmlspecialchars($feed['href']) ?>"<?php echo $this->skin->tooltipAndAccesskey('feed-'.$key) ?>><?php echo htmlspecialchars($feed['text'])?></a>&nbsp;</span>
<?php } ?></li><?php
}
foreach( array('contributions', 'log', 'blockip', 'emailuser', 'upload', 'specialpages') as $special ) {
if($this->data['nav_urls'][$special]) {
?><li id="t-<?php echo $special ?>"><a href="<?php echo htmlspecialchars($this->data['nav_urls'][$special]['href'])
?>"<?php echo $this->skin->tooltipAndAccesskey('t-'.$special) ?>><?php $this->msg($special) ?></a></li>
<?php }
}
if(!empty($this->data['nav_urls']['print']['href'])) { ?>
<li id="t-print"><a href="<?php echo htmlspecialchars($this->data['nav_urls']['print']['href'])
?>"<?php echo $this->skin->tooltipAndAccesskey('t-print') ?>><?php $this->msg('printableversion') ?></a></li><?php
}
if(!empty($this->data['nav_urls']['permalink']['href'])) { ?>
<li id="t-permalink"><a href="<?php echo htmlspecialchars($this->data['nav_urls']['permalink']['href'])
?>"<?php echo $this->skin->tooltipAndAccesskey('t-permalink') ?>><?php $this->msg('permalink') ?></a></li><?php
} elseif ($this->data['nav_urls']['permalink']['href'] === '') { ?>
<li id="t-ispermalink"<?php echo $this->skin->tooltip('t-ispermalink') ?>><?php $this->msg('permalink') ?></li><?php
}
wfRunHooks( 'MonoBookTemplateToolboxEnd', array( &$this ) );
wfRunHooks( 'SkinTemplateToolboxEnd', array( &$this ) );
?>
</ul>
</li>
</ul>
</li>
<!-- END WIKI ITEMS-->
</ul>
<br style="clear:left" />
</div> <!-- close #topnav -->
</div> <!-- end #header -->
</div> <!-- end #header-wrap -->
<!-- END HEADER -->
<!-- BEGIN PAGE CONTENT -->
<div id="contentTop"></div>
<div id="content-wrap">
<div id="content" class="container_16 clearfix">
<?php if($this->data['sitenotice']) { ?><div id="siteNotice"><?php $this->html('sitenotice') ?></div><?php } ?>
<?php if($this->data['undelete']) { ?><div id="contentSub2"><?php $this->html('undelete') ?></div><?php } ?>
<?php if($this->data['newtalk'] ) { ?><div class="usermessage"><?php $this->html('newtalk') ?></div><?php } ?>
<?php $this->html('bodytext') ?>
<?php if($this->data['dataAfterContent']) { $this->html ('dataAfterContent'); } ?>
</div><!-- end #content -->
</div><!-- end #content-wrap -->
<!-- END PAGE CONTENT -->
<!-- BEGIN FOOTER -->
<div id="footer-wrap">
<div id="footer" class="container_16 clearfix">
</div> <!-- end #footer -->
</div> <!-- end #footer-wrap -->
<!-- END FOOTER -->
<!-- BEGIN BOTTOM -->
<div id="bottom-wrap">
<div id="bottom" class="container_16 clearfix">
<p>© 2010 Copyright M6 Method. All Rights Reserved. Valid <a href="#">(x)HTML</a> and <a href="#">CSS</a></p>
<ul>
<li><a href="#">Log In</a></li>
<li><a href="#">Register</a></li>
<li><a href="#">Privacy Policy</a></li>
<li><a href="#">Terms and Conditions</a></li>
<li class="top"><p>Back to <a href="#">Top</a></p></li>
</ul>
</div> <!-- end #bottom -->
</div> <!-- end #bottom-wrap -->
<!-- END BOTTOM -->
<!-- BEGIN JAVASCRIPT FUNCTION FOR "CLICK" -->
<script type='text/javascript'>
$("#searchImput").focus(function() {
if( this.value == this.defaultValue ) {
this.value = "";
}
}).blur(function() {
if( !this.value.length ) {
this.value = this.defaultValue;
}
});
</script>
<!-- END JAVASCRIPT FUNCTION FOR "CLICK" -->
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment