Project

General

Profile

« Previous | Next » 

Revision 86

Added by ryan about 19 years ago

Moved the All CSS template

View differences:

trunk/wb/templates/allcss/index.php
1
<?php
2

  
3
// $Id$
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
<div class="main">
40
	
41
	<div class="banner">
42
		<a href="<?php echo WB_URL; ?>/" target="_top"><?php echo WEBSITE_TITLE; ?></a>
43
		<font color="#D0D0D0">| <?php echo PAGE_TITLE; ?></font>
44
	</div>
45
	
46
	<div class="search_box">
47
		<?php if(SHOW_SEARCH) { ?>
48
		<form name="search" action="<?php echo WB_URL.'/search/index'.PAGE_EXTENSION; ?>" method="post">
49
		<input type="text" name="string" class="search_string" />
50
		<input type="submit" name="submit" value="Search" class="search_submit" />
51
		</form>
52
		<?php } ?>
53
	</div>
54
	
55
	<?php
56
	// Only show menu items if we are supposed to
57
	if(SHOW_MENU) {
58
	?>	
59
	<div class="menu">
60
		<?php page_menu(0, 1, '<li class="menu_main"[class]>[a][menu_title][/a]</li>', '<ul>', '</ul>', '', ' style="font-weight: bold;"'); ?>
61
		
62
		<?php
63
		if(FRONTEND_LOGIN == 'enabled' AND VISIBILITY != 'private' AND $admin->get_session('USER_ID') == '') {
64
		?>
65
		<form name="login" action="<?php echo LOGIN_URL; ?>" method="post" class="login_table">
66
			<h1><?php echo $TEXT['LOGIN']; ?></h1>
67
			<?php echo $TEXT['USERNAME']; ?>:
68
			<input type="text" name="username" style="text-transform: lowercase;" />
69
			<?php echo $TEXT['PASSWORD']; ?>:
70
			<input type="password" name="password" />
71
			<input type="submit" name="submit" value="<?php echo $TEXT['LOGIN']; ?>" style="margin-top: 3px; text-transform: uppercase;" />
72
			<a href="<?php echo FORGOT_URL; ?>"><?php echo $TEXT['FORGOT_DETAILS']; ?></a>
73
				<?php if(is_numeric(FRONTEND_SIGNUP)) { ?>
74
					<a href="<?php echo SIGNUP_URL; ?>"><?php echo $TEXT['SIGNUP']; ?></a>
75
				<?php } ?>
76
		</form>
77
		<?php
78
		} elseif(FRONTEND_LOGIN == 'enabled' AND is_numeric($admin->get_session('USER_ID'))) {
79
		?>
80
		<form name="logout" action="<?php echo LOGOUT_URL; ?>" method="post" class="login_table">
81
			<h1><?php echo $TEXT['LOGGED_IN']; ?></h1>
82
			<?php echo $TEXT['WELCOME_BACK']; ?>, <?php echo $admin->get_display_name(); ?>
83
			<br />
84
			<input type="submit" name="submit" value="<?php echo $MENU['LOGOUT']; ?>" />
85
			<br />
86
			<a href="<?php echo PREFERENCES_URL; ?>"><?php echo $MENU['PREFERENCES']; ?></a>
87
			<a href="<?php echo ADMIN_URL; ?>/index.php"><?php echo $TEXT['ADMINISTRATION']; ?></a>
88
		</form>
89
		<?php
90
		}
91
		?>
92
	</div>
93
	<?php } ?>
94
	
95
	<div class="content">
96
		<?php page_content(); ?>
97
	</div>
98
	
99
	<div class="footer">
100
		<?php page_footer(); ?>
101
	</div>
102
	
103
</div>
104

  
105
<div class="powered_by">
106
	Powered by <a href="http://www.websitebaker.org" target="_blank">Website Baker</a>
107
</div>
108

  
109
</body>
110
</html>
111 0

  
trunk/wb/templates/allcss/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: #660033;
12
	text-decoration: none;
13
}
14
a:hover {
15
	color: #993366;
16
	text-decoration: none;
17
}
18
hr {
19
	margin: 15px 0px 15px 0px;
20
	color: #660033;
21
	height: 1px;
22
	width: 100%;
23
}
24
h1 {
25
	font-size: 15px;
26
	color: #993366;
27
	margin: 5px 0px 5px 0px;
28
}
29
form {
30
	margin: 0;
31
}
32
.main {
33
	width: 100%;
34
	margin: 0;
35
	padding: 0;
36
}
37
.banner {
38
	font-size: 20px;
39
	font-weight: bold;
40
	color: #FFFFFF;
41
	padding-bottom: 20px;
42
	text-align: center;
43
}
44
.search_box {
45
	display: none;
46
}
47
.menu {
48
	display: none;
49
}
50
.menu ul, .menu li {
51
	display: none;
52
}
53
.login_table {
54
	display: none;
55
}
56
.content {
57
	margin: 0;
58
	text-align: justify;
59
}
60
.footer {
61
	clear: both;
62
	height: 20px;
63
	background: #FFFFFF;
64
	font-size: 10px;
65
	color: #666666;
66
	text-align: center;
67
	padding-top: 20px;
68
}
69
.powered_by {
70
	display: none;
71
}
72 0

  
trunk/wb/templates/allcss/info.php
1
<?php
2

  
3
// $Id: info.php,v 1.3 2005/04/08 09:58:31 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 = 'allcss';
27
$template_name = 'All CSS';
28
$template_version = '2.5';
29
$template_designed_for = '2.x';
30
$template_author = 'Ryan Djurovich';
31
$template_description = 'This template is designed with one goal in mind: to completely control lay-out with css. In case you were wondering, that is where the name came from.';
32

  
33
?>
34 0

  
trunk/wb/templates/allcss/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: #F0F0F0;
8
	background-image: url(background.jpg);
9
	margin: 0;
10
}
11
a:link, a:visited, a:active {
12
	color: #660033;
13
	text-decoration: none;
14
}
15
a:hover {
16
	color: #993366;
17
	text-decoration: none;
18
}
19
hr {
20
	margin: 5px 0px 5px 0px;
21
	color: #660033;
22
	border: 0;
23
	border-top: 1px solid #660033;
24
	height: 1px;
25
	width: 580px;
26
}
27
h1 {
28
	font-size: 16px;
29
	color: #993366;
30
	text-align: left;
31
	margin: 8px 2px 8px 2px;
32
}
33
form {
34
	margin: 0;
35
}
36
.main {
37
	width: 750px;
38
	margin: auto;
39
	padding: 0;
40
	background-color: #FFFFFF;
41
}
42
.banner, .search_box {
43
	height: 80px;
44
	background-image: url(header.jpg);
45
	background-repeat: repeat-x;
46
	font-size: 20px;
47
	font-weight: bold;
48
	color: #FFFFFF;
49
	text-align: center;
50
	padding-top: 20px;
51
}
52
.banner {
53
	width: 530px;
54
	padding-left: 20px;
55
	float: left;
56
	text-align: left;
57
}
58
.search_box {
59
	float: right;
60
	clear: right;
61
	width: 200px;
62
}
63
.search_string {
64
	width: 100px;
65
	height: 16px;
66
	font-size: 10px;
67
	vertical-align: middle;
68
}
69
.search_submit {
70
	width: 50px;
71
	height: 22px;
72
	font-size: 10px;
73
	vertical-align: middle;
74
}
75
.banner a {
76
	color: #FFFFFF;
77
}
78
.menu {
79
	float: left;
80
	width: 140px;
81
	margin: 10px;
82
	margin-top: 3px;
83
}
84
.menu ul, .menu li {
85
	margin: 0;
86
	padding: 0;
87
	list-style: none;
88
	margin-bottom: 5px;
89
}
90
.menu ul ul {
91
	padding-left: 8px;
92
}
93
.menu a:link, .menu a:visited, .menu a:active, .menu a:hover {
94
	display: block;
95
	padding: 2px;
96
}
97
.menu_main a:link, .menu_main a:visited, .menu_main a:active {
98
	border-bottom: 1px dashed #999999;
99
}
100
.menu_main a:hover {
101
	border-bottom: 1px dashed #333333;
102
}
103
.login_table {
104
	border: 1px solid #D0D0D0;
105
	margin-top: 20px;
106
	margin-bottom: 5px;
107
	text-align: center;
108
	padding-bottom: 3px;
109
}
110
.login_table h1 {
111
	color: #660033;
112
	font-size: 12px;
113
	text-transform: uppercase;
114
	font-weight: bold;
115
	text-align: center;
116
	margin: 5px 0px 5px 0px;
117
}
118
.login_table input {
119
	text-transform: uppercase;
120
	font-size: 10px;
121
	margin: 5px 0px 1px 0px;
122
	width: 100px;
123
}
124
.content {
125
	margin-left: 150px;
126
	padding: 4px 10px 14px 10px;
127
	text-align: justify;
128
	clear: right;
129
}
130
.footer {
131
	background-color: #FFFFFF;
132
	clear: both;
133
	height: 20px;
134
	background-image: url(footer.jpg);
135
	background-repeat: repeat-x;
136
	font-size: 10px;
137
	color: #666666;
138
	text-align: center;
139
	line-height: 18px;
140
}
141
.powered_by {
142
	text-align: center;
143
	font-size: 10px;
144
	padding-top: 2px;
145
}
146 0

  
addons/templates/allcss/index.php
1
<?php
2

  
3
// $Id$
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
<div class="main">
40
	
41
	<div class="banner">
42
		<a href="<?php echo WB_URL; ?>/" target="_top"><?php echo WEBSITE_TITLE; ?></a>
43
		<font color="#D0D0D0">| <?php echo PAGE_TITLE; ?></font>
44
	</div>
45
	
46
	<div class="search_box">
47
		<?php if(SHOW_SEARCH) { ?>
48
		<form name="search" action="<?php echo WB_URL.'/search/index'.PAGE_EXTENSION; ?>" method="post">
49
		<input type="text" name="string" class="search_string" />
50
		<input type="submit" name="submit" value="Search" class="search_submit" />
51
		</form>
52
		<?php } ?>
53
	</div>
54
	
55
	<?php
56
	// Only show menu items if we are supposed to
57
	if(SHOW_MENU) {
58
	?>	
59
	<div class="menu">
60
		<?php page_menu(0, 1, '<li class="menu_main"[class]>[a][menu_title][/a]</li>', '<ul>', '</ul>', '', ' style="font-weight: bold;"'); ?>
61
		
62
		<?php
63
		if(FRONTEND_LOGIN == 'enabled' AND VISIBILITY != 'private' AND $admin->get_session('USER_ID') == '') {
64
		?>
65
		<form name="login" action="<?php echo LOGIN_URL; ?>" method="post" class="login_table">
66
			<h1><?php echo $TEXT['LOGIN']; ?></h1>
67
			<?php echo $TEXT['USERNAME']; ?>:
68
			<input type="text" name="username" style="text-transform: lowercase;" />
69
			<?php echo $TEXT['PASSWORD']; ?>:
70
			<input type="password" name="password" />
71
			<input type="submit" name="submit" value="<?php echo $TEXT['LOGIN']; ?>" style="margin-top: 3px; text-transform: uppercase;" />
72
			<a href="<?php echo FORGOT_URL; ?>"><?php echo $TEXT['FORGOT_DETAILS']; ?></a>
73
				<?php if(is_numeric(FRONTEND_SIGNUP)) { ?>
74
					<a href="<?php echo SIGNUP_URL; ?>"><?php echo $TEXT['SIGNUP']; ?></a>
75
				<?php } ?>
76
		</form>
77
		<?php
78
		} elseif(FRONTEND_LOGIN == 'enabled' AND is_numeric($admin->get_session('USER_ID'))) {
79
		?>
80
		<form name="logout" action="<?php echo LOGOUT_URL; ?>" method="post" class="login_table">
81
			<h1><?php echo $TEXT['LOGGED_IN']; ?></h1>
82
			<?php echo $TEXT['WELCOME_BACK']; ?>, <?php echo $admin->get_display_name(); ?>
83
			<br />
84
			<input type="submit" name="submit" value="<?php echo $MENU['LOGOUT']; ?>" />
85
			<br />
86
			<a href="<?php echo PREFERENCES_URL; ?>"><?php echo $MENU['PREFERENCES']; ?></a>
87
			<a href="<?php echo ADMIN_URL; ?>/index.php"><?php echo $TEXT['ADMINISTRATION']; ?></a>
88
		</form>
89
		<?php
90
		}
91
		?>
92
	</div>
93
	<?php } ?>
94
	
95
	<div class="content">
96
		<?php page_content(); ?>
97
	</div>
98
	
99
	<div class="footer">
100
		<?php page_footer(); ?>
101
	</div>
102
	
103
</div>
104

  
105
<div class="powered_by">
106
	Powered by <a href="http://www.websitebaker.org" target="_blank">Website Baker</a>
107
</div>
108

  
109
</body>
110
</html>
0 111

  
addons/templates/allcss/info.php
1
<?php
2

  
3
// $Id: info.php,v 1.3 2005/04/08 09:58:31 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 = 'allcss';
27
$template_name = 'All CSS';
28
$template_version = '2.5';
29
$template_designed_for = '2.x';
30
$template_author = 'Ryan Djurovich';
31
$template_description = 'This template is designed with one goal in mind: to completely control lay-out with css. In case you were wondering, that is where the name came from.';
32

  
33
?>
0 34

  
addons/templates/allcss/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: #660033;
12
	text-decoration: none;
13
}
14
a:hover {
15
	color: #993366;
16
	text-decoration: none;
17
}
18
hr {
19
	margin: 15px 0px 15px 0px;
20
	color: #660033;
21
	height: 1px;
22
	width: 100%;
23
}
24
h1 {
25
	font-size: 15px;
26
	color: #993366;
27
	margin: 5px 0px 5px 0px;
28
}
29
form {
30
	margin: 0;
31
}
32
.main {
33
	width: 100%;
34
	margin: 0;
35
	padding: 0;
36
}
37
.banner {
38
	font-size: 20px;
39
	font-weight: bold;
40
	color: #FFFFFF;
41
	padding-bottom: 20px;
42
	text-align: center;
43
}
44
.search_box {
45
	display: none;
46
}
47
.menu {
48
	display: none;
49
}
50
.menu ul, .menu li {
51
	display: none;
52
}
53
.login_table {
54
	display: none;
55
}
56
.content {
57
	margin: 0;
58
	text-align: justify;
59
}
60
.footer {
61
	clear: both;
62
	height: 20px;
63
	background: #FFFFFF;
64
	font-size: 10px;
65
	color: #666666;
66
	text-align: center;
67
	padding-top: 20px;
68
}
69
.powered_by {
70
	display: none;
71
}
0 72

  
addons/templates/allcss/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: #F0F0F0;
8
	background-image: url(background.jpg);
9
	margin: 0;
10
}
11
a:link, a:visited, a:active {
12
	color: #660033;
13
	text-decoration: none;
14
}
15
a:hover {
16
	color: #993366;
17
	text-decoration: none;
18
}
19
hr {
20
	margin: 5px 0px 5px 0px;
21
	color: #660033;
22
	border: 0;
23
	border-top: 1px solid #660033;
24
	height: 1px;
25
	width: 580px;
26
}
27
h1 {
28
	font-size: 16px;
29
	color: #993366;
30
	text-align: left;
31
	margin: 8px 2px 8px 2px;
32
}
33
form {
34
	margin: 0;
35
}
36
.main {
37
	width: 750px;
38
	margin: auto;
39
	padding: 0;
40
	background-color: #FFFFFF;
41
}
42
.banner, .search_box {
43
	height: 80px;
44
	background-image: url(header.jpg);
45
	background-repeat: repeat-x;
46
	font-size: 20px;
47
	font-weight: bold;
48
	color: #FFFFFF;
49
	text-align: center;
50
	padding-top: 20px;
51
}
52
.banner {
53
	width: 530px;
54
	padding-left: 20px;
55
	float: left;
56
	text-align: left;
57
}
58
.search_box {
59
	float: right;
60
	clear: right;
61
	width: 200px;
62
}
63
.search_string {
64
	width: 100px;
65
	height: 16px;
66
	font-size: 10px;
67
	vertical-align: middle;
68
}
69
.search_submit {
70
	width: 50px;
71
	height: 22px;
72
	font-size: 10px;
73
	vertical-align: middle;
74
}
75
.banner a {
76
	color: #FFFFFF;
77
}
78
.menu {
79
	float: left;
80
	width: 140px;
81
	margin: 10px;
82
	margin-top: 3px;
83
}
84
.menu ul, .menu li {
85
	margin: 0;
86
	padding: 0;
87
	list-style: none;
88
	margin-bottom: 5px;
89
}
90
.menu ul ul {
91
	padding-left: 8px;
92
}
93
.menu a:link, .menu a:visited, .menu a:active, .menu a:hover {
94
	display: block;
95
	padding: 2px;
96
}
97
.menu_main a:link, .menu_main a:visited, .menu_main a:active {
98
	border-bottom: 1px dashed #999999;
99
}
100
.menu_main a:hover {
101
	border-bottom: 1px dashed #333333;
102
}
103
.login_table {
104
	border: 1px solid #D0D0D0;
105
	margin-top: 20px;
106
	margin-bottom: 5px;
107
	text-align: center;
108
	padding-bottom: 3px;
109
}
110
.login_table h1 {
111
	color: #660033;
112
	font-size: 12px;
113
	text-transform: uppercase;
114
	font-weight: bold;
115
	text-align: center;
116
	margin: 5px 0px 5px 0px;
117
}
118
.login_table input {
119
	text-transform: uppercase;
120
	font-size: 10px;
121
	margin: 5px 0px 1px 0px;
122
	width: 100px;
123
}
124
.content {
125
	margin-left: 150px;
126
	padding: 4px 10px 14px 10px;
127
	text-align: justify;
128
	clear: right;
129
}
130
.footer {
131
	background-color: #FFFFFF;
132
	clear: both;
133
	height: 20px;
134
	background-image: url(footer.jpg);
135
	background-repeat: repeat-x;
136
	font-size: 10px;
137
	color: #666666;
138
	text-align: center;
139
	line-height: 18px;
140
}
141
.powered_by {
142
	text-align: center;
143
	font-size: 10px;
144
	padding-top: 2px;
145
}
0 146

  

Also available in: Unified diff