1
|
<?php
|
2
|
/**
|
3
|
* $Id: index.php 1106 2009-08-06 16:07:39Z Ruebenwurzel $
|
4
|
* Website Baker template: simple
|
5
|
* This template is one of four basis templates distributed with Website Baker.
|
6
|
* Feel free to modify or build up on this template.
|
7
|
*
|
8
|
* This file contains the overall template markup and the Website Baker
|
9
|
* template functions to add the contents from the database.
|
10
|
*
|
11
|
* LICENSE: GNU General Public License
|
12
|
*
|
13
|
* @author Ryan Djurovich, C. Sommer
|
14
|
* @copyright GNU General Public License
|
15
|
* @license http://www.gnu.org/licenses/gpl.html
|
16
|
* @version 2.70
|
17
|
* @platform Website Baker 2.7
|
18
|
*
|
19
|
* Website Baker is free software; you can redistribute it and/or modify
|
20
|
* it under the terms of the GNU General Public License as published by
|
21
|
* the Free Software Foundation; either version 2 of the License, or
|
22
|
* (at your option) any later version.
|
23
|
*
|
24
|
* Website Baker is distributed in the hope that it will be useful,
|
25
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
26
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
27
|
* GNU General Public License for more details.
|
28
|
*/
|
29
|
|
30
|
// prevent this file from being accessed directly
|
31
|
if (!defined('WB_PATH')) die(header('Location: ../../index.php'));
|
32
|
|
33
|
// TEMPLATE CODE STARTS BELOW
|
34
|
?>
|
35
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
36
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
37
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
38
|
<head>
|
39
|
<meta http-equiv="Content-Type" content="text/html; charset=<?php
|
40
|
echo defined('DEFAULT_CHARSET') ? DEFAULT_CHARSET : 'utf-8'; ?>" />
|
41
|
<meta name="description" content="<?php page_description(); ?>" />
|
42
|
<meta name="keywords" content="<?php page_keywords(); ?>" />
|
43
|
<?php
|
44
|
// automatically include optional WB module files (frontend.css, frontend.js)
|
45
|
if (function_exists('register_frontend_modfiles')) {
|
46
|
register_frontend_modfiles('css');
|
47
|
register_frontend_modfiles('js');
|
48
|
} ?>
|
49
|
<link rel="stylesheet" type="text/css" href="<?php
|
50
|
echo TEMPLATE_DIR; ?>/template.css" media="screen,projection" />
|
51
|
<link rel="stylesheet" type="text/css" href="<?php
|
52
|
echo TEMPLATE_DIR; ?>/print.css" media="print" />
|
53
|
<title><?php page_title('', '[WEBSITE_TITLE]'); ?></title>
|
54
|
</head>
|
55
|
|
56
|
<body>
|
57
|
|
58
|
<table cellpadding="5" cellspacing="0" border="0" width="750" align="center">
|
59
|
<tr>
|
60
|
<td colspan="2" class="header">
|
61
|
<?php page_title('','[WEBSITE_TITLE]'); ?>
|
62
|
</td>
|
63
|
</tr>
|
64
|
<tr>
|
65
|
<td colspan="2" class="footer">
|
66
|
|
67
|
</td>
|
68
|
</tr>
|
69
|
<tr>
|
70
|
<td class="menu">
|
71
|
<?php
|
72
|
if (SHOW_MENU) {
|
73
|
// navigation menu
|
74
|
echo $TEXT['MENU'] . ':';
|
75
|
show_menu();
|
76
|
} ?>
|
77
|
|
78
|
<?php
|
79
|
if (SHOW_SEARCH) { /* Only show search box if search is enabled */ ?>
|
80
|
<br />
|
81
|
<?php echo $TEXT['SEARCH']; ?>: <br />
|
82
|
<form name="search" action="<?php echo WB_URL; ?>/search/index.php" method="get">
|
83
|
<input type="hidden" name="referrer" value="<?php
|
84
|
echo defined('REFERRER_ID') ? REFERRER_ID : PAGE_ID; ?>" />
|
85
|
<input type="text" name="string" style="width: 100%;" />
|
86
|
<input type="submit" name="submit" value="<?php echo $TEXT['SEARCH']; ?>" style="width: 100%;" />
|
87
|
</form>
|
88
|
<?php } ?>
|
89
|
|
90
|
<br />
|
91
|
<a href="http://www.websitebaker.org" target="_blank">Powered by <br /> Website Baker</a>
|
92
|
</td>
|
93
|
<td class="content">
|
94
|
<?php page_content(); ?>
|
95
|
</td>
|
96
|
</tr>
|
97
|
<tr>
|
98
|
<td colspan="2" class="footer">
|
99
|
<?php page_footer(); ?>
|
100
|
</td>
|
101
|
</tr>
|
102
|
</table>
|
103
|
<?php
|
104
|
// automatically include optional WB module file frontend_body.js)
|
105
|
if (function_exists('register_frontend_modfiles_body')) { register_frontend_modfiles_body(); }
|
106
|
?>
|
107
|
</body>
|
108
|
</html>
|