Project

General

Profile

1 4 ryan
<?php
2 865 doc
/**
3
 * $Id$
4
 * Website Baker template: allcss
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 4 ryan
*/
29
30 865 doc
// prevent this file from being accessed directly
31
if (!defined('WB_PATH')) die(header('Location: ../../index.php'));
32 395 Ruebenwurz
33 865 doc
// TEMPLATE CODE STARTS BELOW
34 4 ryan
?>
35 865 doc
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
36
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
37 4 ryan
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
38
<head>
39 865 doc
	<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 1606 Luisehahne
	<link rel="stylesheet" type="text/css" href="<?php
44
	echo TEMPLATE_DIR; ?>/template.css" media="screen,projection" />
45
	<link rel="stylesheet" type="text/css" href="<?php
46
	echo TEMPLATE_DIR; ?>/print.css" media="print" />
47
	<title><?php page_title('', '[WEBSITE_TITLE]'); ?></title>
48
	<?php
49 865 doc
	// automatically include optional WB module files (frontend.css, frontend.js)
50
	if (function_exists('register_frontend_modfiles')) {
51
		register_frontend_modfiles('css');
52 1606 Luisehahne
		// register_frontend_modfiles('jquery');
53 865 doc
		register_frontend_modfiles('js');
54
	} ?>
55 4 ryan
</head>
56 865 doc
57 4 ryan
<body>
58
59
<div class="main">
60
61
	<div class="banner">
62 865 doc
		<a href="<?php echo WB_URL; ?>/" target="_top"><?php page_title('', '[WEBSITE_TITLE]'); ?></a>
63
		<span>| <?php page_title('', '[PAGE_TITLE]'); ?></span>
64 4 ryan
	</div>
65
66 865 doc
	<!-- frontend search -->
67 4 ryan
	<div class="search_box">
68 865 doc
		<?php
69
		// CODE FOR WEBSITE BAKER FRONTEND SEARCH
70
		if (SHOW_SEARCH) { ?>
71
			<form name="search" action="<?php echo WB_URL; ?>/search/index.php" method="get">
72
				<input type="hidden" name="referrer" value="<?php
73
				echo defined('REFERRER_ID') ? REFERRER_ID : PAGE_ID; ?>" />
74
				<input type="text" name="string" class="search_string" />
75
				<input type="submit" name="wb_search" id="wb_search" value="<?php
76
				echo $TEXT['SEARCH']; ?>" class="search_submit" />
77
			</form><?php
78
		} ?>
79 4 ryan
	</div>
80 865 doc
81
	<!-- main navigation menu -->
82 4 ryan
	<div class="menu">
83 1530 Luisehahne
		<?php
84 1568 Luisehahne
		show_menu2(0,SM2_ROOT,SM2_CURR+1,SM2_TRIM,'<li><span class="menu-default">[ac][menu_title]</a></span>','</li>','<ul>','</ul>');
85 865 doc
		// CODE FOR WEBSITE BAKER FRONTEND LOGIN
86 1528 Luisehahne
		if (FRONTEND_LOGIN == 'enabled' && VISIBILITY != 'private' && $wb->get_session('USER_ID') == '') {
87 1599 Luisehahne
			$redirect_url = ((isset($_SESSION['HTTP_REFERER']) && $_SESSION['HTTP_REFERER'] != '') ? $_SESSION['HTTP_REFERER'] : WB_URL );
88
			$redirect_url = (isset($thisApp->redirect_url) ? $thisApp->redirect_url : $redirect_url );
89 1606 Luisehahne
		?>
90 865 doc
			<!-- login form -->
91 4 ryan
			<br />
92 865 doc
			<form name="login" id="login" action="<?php echo LOGIN_URL; ?>" method="post">
93 1606 Luisehahne
				<input type="hidden" name="redirect" value="<?php echo $redirect_url;?>" />
94 865 doc
				<fieldset>
95
					<legend><?php echo $TEXT['LOGIN']; ?></legend>
96
					<label for="username" accesskey="1"><?php echo $TEXT['USERNAME']; ?>:</label>
97
					<input type="text" name="username" id="username" style="text-transform: lowercase;" /><br />
98
					<label for="password" accesskey="2"><?php echo $TEXT['PASSWORD']; ?>:</label>
99
					<input type="password" name="password" id="password" /><br />
100
					<input type="submit" name="wb_login" id="wb_login" value="<?php echo $MENU['LOGIN']; ?>"/><br />
101
102
					<!-- forgotten details link -->
103
					<a href="<?php echo FORGOT_URL; ?>"><?php echo $TEXT['FORGOT_DETAILS']; ?></a>
104
105
					<!-- frontend signup -->
106
					<?php
107
					if (is_numeric(FRONTEND_SIGNUP)) { ?>
108
						<a href="<?php echo SIGNUP_URL; ?>"><?php echo $TEXT['SIGNUP']; ?></a>
109
					<?php } ?>
110
				</fieldset>
111
			</form>
112
113
		<?php
114
		} elseif (FRONTEND_LOGIN == 'enabled' && is_numeric($wb->get_session('USER_ID'))) { ?>
115
			<!-- logout form -->
116 4 ryan
			<br />
117 865 doc
			<form name="logout" id="logout" action="<?php echo LOGOUT_URL; ?>" method="post">
118
				<fieldset>
119
					<legend><?php echo $TEXT['LOGGED_IN']; ?>:</legend>
120
					<?php echo $TEXT['WELCOME_BACK']; ?>, <?php echo $wb->get_display_name(); ?>
121
					<input type="submit" name="wb_logout" id="wb_logout" value="<?php echo $MENU['LOGOUT']; ?>" />
122
					<!-- edit user preferences -->
123
					<a href="<?php echo PREFERENCES_URL; ?>"><?php echo $MENU['PREFERENCES']; ?></a>
124
				</fieldset>
125
			</form>
126
		<?php
127
		} ?>
128 4 ryan
	</div>
129
130
	<div class="content">
131
		<?php page_content(); ?>
132
	</div>
133
134
	<div class="footer">
135
		<?php page_footer(); ?>
136
	</div>
137
138
</div>
139
140
<div class="powered_by">
141
	Powered by <a href="http://www.websitebaker.org" target="_blank">Website Baker</a>
142
</div>
143 1106 Ruebenwurz
<?php
144
// automatically include optional WB module file frontend_body.js)
145
if (function_exists('register_frontend_modfiles_body')) { register_frontend_modfiles_body(); }
146
?>
147 4 ryan
</body>
148
</html>