The Big Idea
Widgie's give you the ability to manipulate your sidebar to suit your needs.
You simply create a php file. Name it whatever you call your widgie. If a
widgie exists with that name find a new one.
The php file should contain one main function to be named your widgie name.
This is how we get your widgie to display in your sidebar.
Notice the names of each of these widgies are links, sitelinks and so on.
The files are named links.php, sitelinks.php and in the database we will
have a field that holds the values links, sitelinks and so on. You can change
the order in which widgies are be displayed by a ord field in the database.
A sample widgie file
These widgies you are experiencing can be the most basic or as in depth as you wish.
<?php
function links() {
$ret = "<ul>".PHP_EOL;
$ret .= "<li><a href="#">Link 1</a></li>".PHP_EOL;
$ret .= "<li><a href="#">Link 2</a></li>".PHP_EOL;
$ret .= "<li><a href="#">Link 3</a></li>".PHP_EOL;
$ret .= "<li><a href="#">Link 4</a></li>".PHP_EOL;
$ret .= "</ul>";
return $ret;
}
?>
( FIRST PREV ( Page 1 of 1 ) NEXT LAST )