1
|
<?php
|
2
|
|
3
|
// $Id: index.php 519 2007-12-23 14:37:02Z Ruebenwurzel $
|
4
|
|
5
|
/*
|
6
|
|
7
|
Website Baker Project <http://www.websitebaker.org/>
|
8
|
Copyright (C) 2004-2008, Ryan Djurovich
|
9
|
|
10
|
Website Baker is free software; you can redistribute it and/or modify
|
11
|
it under the terms of the GNU General Public License as published by
|
12
|
the Free Software Foundation; either version 2 of the License, or
|
13
|
(at your option) any later version.
|
14
|
|
15
|
Website Baker is distributed in the hope that it will be useful,
|
16
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
17
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
18
|
GNU General Public License for more details.
|
19
|
|
20
|
You should have received a copy of the GNU General Public License
|
21
|
along with Website Baker; if not, write to the Free Software
|
22
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
23
|
|
24
|
*/
|
25
|
|
26
|
if(!defined('WB_URL')) {
|
27
|
header('Location: ../index.php');
|
28
|
exit(0);
|
29
|
}
|
30
|
|
31
|
?>
|
32
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
33
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
34
|
<head>
|
35
|
<title><?php page_title(); ?></title>
|
36
|
<meta http-equiv="Content-Type" content="text/html; charset=<?php if(defined('DEFAULT_CHARSET')) { echo DEFAULT_CHARSET; } else { echo 'utf-8'; }?>" />
|
37
|
<meta name="description" content="<?php page_description(); ?>" />
|
38
|
<meta name="keywords" content="<?php page_keywords(); ?>" />
|
39
|
<link href="<?php echo TEMPLATE_DIR; ?>/screen.css" rel="stylesheet" type="text/css" media="screen" />
|
40
|
<link href="<?php echo TEMPLATE_DIR; ?>/print.css" rel="stylesheet" type="text/css" media="print" />
|
41
|
<?php
|
42
|
if(function_exists('register_frontend_modfiles')) {
|
43
|
register_frontend_modfiles('css');
|
44
|
register_frontend_modfiles('js');
|
45
|
} ?>
|
46
|
</head>
|
47
|
<body>
|
48
|
|
49
|
<table cellpadding="5" cellspacing="0" border="0" width="750" align="center">
|
50
|
<tr>
|
51
|
<td colspan="2" class="header">
|
52
|
<?php page_title('','[WEBSITE_TITLE]'); ?>
|
53
|
</td>
|
54
|
</tr>
|
55
|
<tr>
|
56
|
<td colspan="2" class="footer">
|
57
|
|
58
|
</td>
|
59
|
</tr>
|
60
|
<tr>
|
61
|
<td class="menu">
|
62
|
<?php if(SHOW_MENU) { /* Only shown menu if we need to */ ?>
|
63
|
Menu: <br />
|
64
|
<?php page_menu(); ?>
|
65
|
<?php } ?>
|
66
|
|
67
|
<?php if(SHOW_SEARCH) { /* Only show search box if search is enabled */ ?>
|
68
|
<br />
|
69
|
Search: <br />
|
70
|
<form name="search" action="<?php echo WB_URL; ?>/search/index<?php echo PAGE_EXTENSION; ?>" method="get">
|
71
|
<input type="text" name="string" style="width: 100%;" />
|
72
|
<input type="submit" name="submit" value="<?php echo $TEXT['SEARCH']; ?>" style="width: 100%;" />
|
73
|
</form>
|
74
|
<?php } ?>
|
75
|
|
76
|
<br />
|
77
|
<a href="http://www.websitebaker.org" target="_blank">Powered by <br /> Website Baker</a>
|
78
|
</td>
|
79
|
<td class="content">
|
80
|
<?php page_content(); ?>
|
81
|
</td>
|
82
|
</tr>
|
83
|
<tr>
|
84
|
<td colspan="2" class="footer">
|
85
|
<?php page_footer(); ?>
|
86
|
</td>
|
87
|
</tr>
|
88
|
</table>
|
89
|
|
90
|
</body>
|
91
|
</html>
|