Revision 88
Added by ryan about 19 years ago
trunk/wb/templates/simple/index.php | ||
---|---|---|
1 |
<?php |
|
2 |
|
|
3 |
// $Id: index.php,v 1.4 2005/04/15 06:38:13 rdjurovich Exp $ |
|
4 |
|
|
5 |
/* |
|
6 |
|
|
7 |
Website Baker Project <http://www.websitebaker.org/> |
|
8 |
Copyright (C) 2004-2005, 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 |
?> |
|
27 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
28 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
|
29 |
<head> |
|
30 |
<title><?php page_title(); ?></title> |
|
31 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
|
32 |
<meta name="description" content="<?php page_description(); ?>" /> |
|
33 |
<meta name="keywords" content="<?php page_keywords(); ?>" /> |
|
34 |
<link href="<?php echo TEMPLATE_DIR; ?>/screen.css" rel="stylesheet" type="text/css" media="screen" /> |
|
35 |
<link href="<?php echo TEMPLATE_DIR; ?>/print.css" rel="stylesheet" type="text/css" media="print" /> |
|
36 |
</head> |
|
37 |
<body> |
|
38 |
|
|
39 |
<table cellpadding="5" cellspacing="0" border="0" width="750" align="center"> |
|
40 |
<tr> |
|
41 |
<td colspan="2" class="header"> |
|
42 |
<?php page_title('','[WEBSITE_TITLE]'); ?> |
|
43 |
</td> |
|
44 |
</tr> |
|
45 |
<tr> |
|
46 |
<td colspan="2" class="footer"> |
|
47 |
|
|
48 |
</td> |
|
49 |
</tr> |
|
50 |
<tr> |
|
51 |
<td class="menu"> |
|
52 |
<?php if(SHOW_MENU) { /* Only shown menu if we need to */ ?> |
|
53 |
Menu: <br /> |
|
54 |
<?php page_menu(); ?> |
|
55 |
<?php } ?> |
|
56 |
|
|
57 |
<?php if(SHOW_SEARCH) { /* Only show search box if search is enabled */ ?> |
|
58 |
<br /> |
|
59 |
Search: <br /> |
|
60 |
<form name="search" action="<?php echo WB_URL; ?>/search/index<?php echo PAGE_EXTENSION; ?>" method="post"> |
|
61 |
<input type="text" name="string" style="width: 100%;" /> |
|
62 |
<input type="submit" name="submit" value="Search" style="width: 100%;" /> |
|
63 |
</form> |
|
64 |
<?php } ?> |
|
65 |
|
|
66 |
<br /> |
|
67 |
<a href="http://www.websitebaker.org" target="_blank">Powered by <br /> Website Baker</a> |
|
68 |
</td> |
|
69 |
<td class="content"> |
|
70 |
<?php page_content(); ?> |
|
71 |
</td> |
|
72 |
</tr> |
|
73 |
<tr> |
|
74 |
<td colspan="2" class="footer"> |
|
75 |
<?php page_footer(); ?> |
|
76 |
</td> |
|
77 |
</tr> |
|
78 |
</table> |
|
79 |
|
|
80 |
</body> |
|
81 |
</html> |
|
82 | 0 |
trunk/wb/templates/simple/print.css | ||
---|---|---|
1 |
body,td,th { |
|
2 |
font-family: Verdana, Arial, Helvetica, sans-serif; |
|
3 |
font-size: 12px; |
|
4 |
color: #000000; |
|
5 |
} |
|
6 |
body { |
|
7 |
background-color: #FFFFFF; |
|
8 |
margin: 0px; |
|
9 |
} |
|
10 |
a:link, a:visited, a:active { |
|
11 |
color: #003366; |
|
12 |
text-decoration: none; |
|
13 |
} |
|
14 |
a:hover { |
|
15 |
color: #336699; |
|
16 |
text-decoration: none; |
|
17 |
} |
|
18 |
.header { |
|
19 |
display: none; |
|
20 |
} |
|
21 |
.menu { |
|
22 |
display: none; |
|
23 |
} |
|
24 |
.content { |
|
25 |
vertical-align: top; |
|
26 |
} |
|
27 |
.footer { |
|
28 |
display: none; |
|
29 |
} |
|
30 | 0 |
trunk/wb/templates/simple/info.php | ||
---|---|---|
1 |
<?php |
|
2 |
|
|
3 |
// $Id: info.php,v 1.3 2005/04/08 09:58:32 rdjurovich Exp $ |
|
4 |
|
|
5 |
/* |
|
6 |
|
|
7 |
Website Baker Project <http://www.websitebaker.org/> |
|
8 |
Copyright (C) 2004-2005, 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 |
$template_directory = 'simple'; |
|
27 |
$template_name = 'Simple'; |
|
28 |
$template_version = '2.5'; |
|
29 |
$template_designed_for = '2.x'; |
|
30 |
$template_author = 'Ryan Djurovich'; |
|
31 |
$template_description = 'This template is designed for developers to learn how to make templates easily. Please note this template only supports 2 page levels.'; |
|
32 |
|
|
33 |
?> |
|
34 | 0 |
trunk/wb/templates/simple/screen.css | ||
---|---|---|
1 |
body,td,th { |
|
2 |
font-family: Verdana, Arial, Helvetica, sans-serif; |
|
3 |
font-size: 12px; |
|
4 |
color: #000000; |
|
5 |
} |
|
6 |
body { |
|
7 |
background-color: #333333; |
|
8 |
margin: 10px; |
|
9 |
} |
|
10 |
a:link, a:visited, a:active { |
|
11 |
color: #003366; |
|
12 |
text-decoration: none; |
|
13 |
} |
|
14 |
a:hover { |
|
15 |
color: #336699; |
|
16 |
text-decoration: none; |
|
17 |
} |
|
18 |
form { |
|
19 |
margin: 0; |
|
20 |
} |
|
21 |
h1, h2, h3, h4, h5 { |
|
22 |
margin: 5px 0px 5px 0px; |
|
23 |
} |
|
24 |
.header { |
|
25 |
background-color: #336699; |
|
26 |
vertical-align: middle; |
|
27 |
text-align: center; |
|
28 |
color: #FFFFFF; |
|
29 |
height: 50px; |
|
30 |
font-size: 20px; |
|
31 |
font-weight: bold; |
|
32 |
} |
|
33 |
.menu { |
|
34 |
background-color: #EEEEEE; |
|
35 |
padding: 10px; |
|
36 |
width: 150px; |
|
37 |
vertical-align: top; |
|
38 |
} |
|
39 |
.menu ul, .menu li { |
|
40 |
list-style-type: none; |
|
41 |
display: block; |
|
42 |
margin: 0; |
|
43 |
padding: 0; |
|
44 |
padding-left: 5px; |
|
45 |
} |
|
46 |
.current { |
|
47 |
font-weight: bold; |
|
48 |
} |
|
49 |
.content { |
|
50 |
background-color: #FFFFFF; |
|
51 |
padding: 20px; |
|
52 |
height: 400px; |
|
53 |
vertical-align: top; |
|
54 |
} |
|
55 |
.footer { |
|
56 |
background-color: #DDDDDD; |
|
57 |
text-align: center; |
|
58 |
font-size: 10px; |
|
59 |
height: 10px; |
|
60 |
} |
|
61 | 0 |
addons/templates/simple/index.php | ||
---|---|---|
1 |
<?php |
|
2 |
|
|
3 |
// $Id: index.php,v 1.4 2005/04/15 06:38:13 rdjurovich Exp $ |
|
4 |
|
|
5 |
/* |
|
6 |
|
|
7 |
Website Baker Project <http://www.websitebaker.org/> |
|
8 |
Copyright (C) 2004-2005, 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 |
?> |
|
27 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
28 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
|
29 |
<head> |
|
30 |
<title><?php page_title(); ?></title> |
|
31 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
|
32 |
<meta name="description" content="<?php page_description(); ?>" /> |
|
33 |
<meta name="keywords" content="<?php page_keywords(); ?>" /> |
|
34 |
<link href="<?php echo TEMPLATE_DIR; ?>/screen.css" rel="stylesheet" type="text/css" media="screen" /> |
|
35 |
<link href="<?php echo TEMPLATE_DIR; ?>/print.css" rel="stylesheet" type="text/css" media="print" /> |
|
36 |
</head> |
|
37 |
<body> |
|
38 |
|
|
39 |
<table cellpadding="5" cellspacing="0" border="0" width="750" align="center"> |
|
40 |
<tr> |
|
41 |
<td colspan="2" class="header"> |
|
42 |
<?php page_title('','[WEBSITE_TITLE]'); ?> |
|
43 |
</td> |
|
44 |
</tr> |
|
45 |
<tr> |
|
46 |
<td colspan="2" class="footer"> |
|
47 |
|
|
48 |
</td> |
|
49 |
</tr> |
|
50 |
<tr> |
|
51 |
<td class="menu"> |
|
52 |
<?php if(SHOW_MENU) { /* Only shown menu if we need to */ ?> |
|
53 |
Menu: <br /> |
|
54 |
<?php page_menu(); ?> |
|
55 |
<?php } ?> |
|
56 |
|
|
57 |
<?php if(SHOW_SEARCH) { /* Only show search box if search is enabled */ ?> |
|
58 |
<br /> |
|
59 |
Search: <br /> |
|
60 |
<form name="search" action="<?php echo WB_URL; ?>/search/index<?php echo PAGE_EXTENSION; ?>" method="post"> |
|
61 |
<input type="text" name="string" style="width: 100%;" /> |
|
62 |
<input type="submit" name="submit" value="Search" style="width: 100%;" /> |
|
63 |
</form> |
|
64 |
<?php } ?> |
|
65 |
|
|
66 |
<br /> |
|
67 |
<a href="http://www.websitebaker.org" target="_blank">Powered by <br /> Website Baker</a> |
|
68 |
</td> |
|
69 |
<td class="content"> |
|
70 |
<?php page_content(); ?> |
|
71 |
</td> |
|
72 |
</tr> |
|
73 |
<tr> |
|
74 |
<td colspan="2" class="footer"> |
|
75 |
<?php page_footer(); ?> |
|
76 |
</td> |
|
77 |
</tr> |
|
78 |
</table> |
|
79 |
|
|
80 |
</body> |
|
81 |
</html> |
|
0 | 82 |
addons/templates/simple/info.php | ||
---|---|---|
1 |
<?php |
|
2 |
|
|
3 |
// $Id: info.php,v 1.3 2005/04/08 09:58:32 rdjurovich Exp $ |
|
4 |
|
|
5 |
/* |
|
6 |
|
|
7 |
Website Baker Project <http://www.websitebaker.org/> |
|
8 |
Copyright (C) 2004-2005, 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 |
$template_directory = 'simple'; |
|
27 |
$template_name = 'Simple'; |
|
28 |
$template_version = '2.5'; |
|
29 |
$template_designed_for = '2.x'; |
|
30 |
$template_author = 'Ryan Djurovich'; |
|
31 |
$template_description = 'This template is designed for developers to learn how to make templates easily. Please note this template only supports 2 page levels.'; |
|
32 |
|
|
33 |
?> |
|
0 | 34 |
addons/templates/simple/print.css | ||
---|---|---|
1 |
body,td,th { |
|
2 |
font-family: Verdana, Arial, Helvetica, sans-serif; |
|
3 |
font-size: 12px; |
|
4 |
color: #000000; |
|
5 |
} |
|
6 |
body { |
|
7 |
background-color: #FFFFFF; |
|
8 |
margin: 0px; |
|
9 |
} |
|
10 |
a:link, a:visited, a:active { |
|
11 |
color: #003366; |
|
12 |
text-decoration: none; |
|
13 |
} |
|
14 |
a:hover { |
|
15 |
color: #336699; |
|
16 |
text-decoration: none; |
|
17 |
} |
|
18 |
.header { |
|
19 |
display: none; |
|
20 |
} |
|
21 |
.menu { |
|
22 |
display: none; |
|
23 |
} |
|
24 |
.content { |
|
25 |
vertical-align: top; |
|
26 |
} |
|
27 |
.footer { |
|
28 |
display: none; |
|
29 |
} |
|
0 | 30 |
addons/templates/simple/screen.css | ||
---|---|---|
1 |
body,td,th { |
|
2 |
font-family: Verdana, Arial, Helvetica, sans-serif; |
|
3 |
font-size: 12px; |
|
4 |
color: #000000; |
|
5 |
} |
|
6 |
body { |
|
7 |
background-color: #333333; |
|
8 |
margin: 10px; |
|
9 |
} |
|
10 |
a:link, a:visited, a:active { |
|
11 |
color: #003366; |
|
12 |
text-decoration: none; |
|
13 |
} |
|
14 |
a:hover { |
|
15 |
color: #336699; |
|
16 |
text-decoration: none; |
|
17 |
} |
|
18 |
form { |
|
19 |
margin: 0; |
|
20 |
} |
|
21 |
h1, h2, h3, h4, h5 { |
|
22 |
margin: 5px 0px 5px 0px; |
|
23 |
} |
|
24 |
.header { |
|
25 |
background-color: #336699; |
|
26 |
vertical-align: middle; |
|
27 |
text-align: center; |
|
28 |
color: #FFFFFF; |
|
29 |
height: 50px; |
|
30 |
font-size: 20px; |
|
31 |
font-weight: bold; |
|
32 |
} |
|
33 |
.menu { |
|
34 |
background-color: #EEEEEE; |
|
35 |
padding: 10px; |
|
36 |
width: 150px; |
|
37 |
vertical-align: top; |
|
38 |
} |
|
39 |
.menu ul, .menu li { |
|
40 |
list-style-type: none; |
|
41 |
display: block; |
|
42 |
margin: 0; |
|
43 |
padding: 0; |
|
44 |
padding-left: 5px; |
|
45 |
} |
|
46 |
.current { |
|
47 |
font-weight: bold; |
|
48 |
} |
|
49 |
.content { |
|
50 |
background-color: #FFFFFF; |
|
51 |
padding: 20px; |
|
52 |
height: 400px; |
|
53 |
vertical-align: top; |
|
54 |
} |
|
55 |
.footer { |
|
56 |
background-color: #DDDDDD; |
|
57 |
text-align: center; |
|
58 |
font-size: 10px; |
|
59 |
height: 10px; |
|
60 |
} |
|
0 | 61 |
Also available in: Unified diff
Moved Simple template