1 |
<?php |
2 |
|
3 |
/** |
4 |
* This example illustrates the use of the |
5 |
* FooterNav widget. |
6 |
* |
7 |
* |
8 |
* $Id: widget5.php,v 1.3 2003/07/28 17:02:03 hemna Exp $ |
9 |
* |
10 |
* @author Walter A. Boring IV <waboring@buildabetterweb.com> |
11 |
* @package phpHtmlLib |
12 |
* @subpackage widget-examples |
13 |
* @version 2.0 |
14 |
* |
15 |
*/ |
16 |
|
17 |
/** |
18 |
* Include the phphtmllib libraries |
19 |
* |
20 |
*/ |
21 |
include_once("includes.inc"); |
22 |
|
23 |
|
24 |
//create the page object |
25 |
$page = new HTMLPageClass("phpHtmlLib Widgets - FooterNav Example", |
26 |
XHTML_TRANSITIONAL); |
27 |
|
28 |
//enable output debugging. |
29 |
if (isset($_GET['debug'])) { |
30 |
$page->set_text_debug( TRUE ); |
31 |
} |
32 |
|
33 |
//add the css |
34 |
$page->add_css_link( "/css/defaulttheme.php" ); |
35 |
|
36 |
//Build the Footer Widget object |
37 |
$footer = new FooterNav("PHPHtmlLib"); |
38 |
|
39 |
//Set the copyright flag, to automatically show |
40 |
//a copyright string under the links |
41 |
$footer->set_copyright_flag( TRUE ); |
42 |
|
43 |
//set the email address for the webmaster |
44 |
//this will automatically build a clickable |
45 |
//mailto link for that email address |
46 |
$footer->set_webmaster_email("waboring@buildabetterweb.com"); |
47 |
|
48 |
//now build a few links that the user can click on |
49 |
//for a common footer navigational object. |
50 |
$footer->add("/", "Home"); |
51 |
$footer->add("/downloads.php", "Downloads"); |
52 |
$footer->add($_SERVER["PHP_SELF"]."?debug=1", "Debug"); |
53 |
|
54 |
$page->add( $footer ); |
55 |
|
56 |
print $page->render(); |
57 |
?> |