WillyP's WikkaStyle : ExtendedFooter

HomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register

Revision [96]

The oldest known version of this page was edited on 2008-05-08 19:34:50 by WillyPs [more later...]
Tested with: WikkaWiki version 1.1.6.4
Demo: DescentiaPedia

Extended Footer


An extended footer can contain general site info, stats, links, etc. Generally this technique looks best with smaller print and less contrast than the content area of the page. Often darker and/or muted colors are used. If smaller text is used, more than one column should be used, and the info grouped appropriately. The default Wikka footer is a little sparse on the divs, as it should be, it's much easier to add what you need than to wade through lines of code you don't need.

Here's how I added a two column extended footer to DescentiaPedia:

First, find (in footer.php):
<?php
echo $this->FormClose();
?>

and, after, add:
?>
		<div class="extended_footer">
			<div class="smallfloatl">
<?php
		
		include_once('actions/changesclip.php');
?>		
				<br /><br />
<?php
		include_once('actions/stats.php');
?>
			</div> 
	
			<div class="smallfloatr">
<?php
		include_once('actions/commentsclip.php');
?>		
				<br /><br />

This adds the div classes "extended_footer", "smallfloatl" and "smallfloatr" to the footer. And three actions, "changesclip", "stats" and "commentsclip".
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.1046 seconds