| 1 |
4
|
ryan
|
<?php
|
| 2 |
865
|
doc
|
/**
|
| 3 |
|
|
* $Id$
|
| 4 |
|
|
* Website Baker template: round
|
| 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 |
|
|
<?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 |
4
|
ryan
|
</head>
|
| 55 |
865
|
doc
|
|
| 56 |
4
|
ryan
|
<body>
|
| 57 |
|
|
|
| 58 |
|
|
<table cellpadding="0" cellspacing="0" border="0" align="center" class="main" width="750">
|
| 59 |
|
|
<tr>
|
| 60 |
|
|
<td colspan="2" class="header" height="80">
|
| 61 |
865
|
doc
|
<a href="<?php echo WB_URL; ?>">
|
| 62 |
|
|
<img src="<?php echo TEMPLATE_DIR; ?>/images/banner.jpg" border="0" width="750" height="80" alt="<?php
|
| 63 |
|
|
page_title('', '[WEBSITE_TITLE]'); ?>" />
|
| 64 |
|
|
</a>
|
| 65 |
4
|
ryan
|
</td>
|
| 66 |
|
|
</tr>
|
| 67 |
|
|
<tr>
|
| 68 |
|
|
<?php
|
| 69 |
865
|
doc
|
// navigation menu
|
| 70 |
4
|
ryan
|
if(SHOW_MENU) {
|
| 71 |
|
|
?>
|
| 72 |
865
|
doc
|
<td style="padding: 10px; background-color: #FFF;" valign="top">
|
| 73 |
4
|
ryan
|
<table cellpadding="0" cellspacing="0" border="0" width="150" align="center" class="menu">
|
| 74 |
|
|
<tr>
|
| 75 |
|
|
<td class="border">
|
| 76 |
865
|
doc
|
<img src="<?php echo TEMPLATE_DIR; ?>/images/menu_top.gif" border="0" alt="" />
|
| 77 |
4
|
ryan
|
</td>
|
| 78 |
|
|
</tr>
|
| 79 |
|
|
<tr>
|
| 80 |
|
|
<td width="170">
|
| 81 |
691
|
doc
|
<?php show_menu(); ?>
|
| 82 |
4
|
ryan
|
</td>
|
| 83 |
|
|
</tr>
|
| 84 |
|
|
<tr>
|
| 85 |
|
|
<td class="border">
|
| 86 |
865
|
doc
|
<img src="<?php echo TEMPLATE_DIR; ?>/images/menu_bottom.gif" border="0" alt="" />
|
| 87 |
4
|
ryan
|
</td>
|
| 88 |
|
|
</tr>
|
| 89 |
|
|
</table>
|
| 90 |
|
|
|
| 91 |
865
|
doc
|
|
| 92 |
|
|
<!-- frontend search -->
|
| 93 |
|
|
<?php if (SHOW_SEARCH) { ?>
|
| 94 |
|
|
<form name="search" action="<?php echo WB_URL; ?>/search/index.php" method="get">
|
| 95 |
|
|
<input type="hidden" name="referrer" value="<?php
|
| 96 |
|
|
echo defined('REFERRER_ID') ? REFERRER_ID : PAGE_ID; ?>" />
|
| 97 |
4
|
ryan
|
<table cellpadding="0" cellspacing="0" border="0" width="150" align="center" style="margin-top: 10px;">
|
| 98 |
|
|
<tr>
|
| 99 |
|
|
<td class="border">
|
| 100 |
865
|
doc
|
<img src="<?php echo TEMPLATE_DIR; ?>/images/menu_top.gif" border="0" alt="" />
|
| 101 |
4
|
ryan
|
</td>
|
| 102 |
|
|
</tr>
|
| 103 |
|
|
<tr>
|
| 104 |
|
|
<td class="login">
|
| 105 |
|
|
<input type="text" name="string" />
|
| 106 |
|
|
</td>
|
| 107 |
|
|
</tr>
|
| 108 |
|
|
<tr>
|
| 109 |
|
|
<td class="login">
|
| 110 |
440
|
Ruebenwurz
|
<input type="submit" name="submit" value="<?php echo $TEXT['SEARCH']; ?>" />
|
| 111 |
4
|
ryan
|
</td>
|
| 112 |
|
|
</tr>
|
| 113 |
|
|
<tr>
|
| 114 |
|
|
<td class="border">
|
| 115 |
865
|
doc
|
<img src="<?php echo TEMPLATE_DIR; ?>/images/menu_bottom.gif" border="0" alt="" />
|
| 116 |
4
|
ryan
|
</td>
|
| 117 |
|
|
</tr>
|
| 118 |
|
|
</table>
|
| 119 |
|
|
</form>
|
| 120 |
|
|
<?php } ?>
|
| 121 |
|
|
|
| 122 |
|
|
<?php
|
| 123 |
241
|
stefan
|
if(FRONTEND_LOGIN AND !$wb->is_authenticated()) {
|
| 124 |
4
|
ryan
|
?>
|
| 125 |
|
|
<form name="login" action="<?php echo LOGIN_URL; ?>" method="post">
|
| 126 |
|
|
|
| 127 |
|
|
<table cellpadding="0" cellspacing="0" border="0" width="150" align="center" style="margin-top: 10px;">
|
| 128 |
|
|
<tr>
|
| 129 |
|
|
<td class="border">
|
| 130 |
865
|
doc
|
<img src="<?php echo TEMPLATE_DIR; ?>/images/menu_top.gif" border="0" alt="" />
|
| 131 |
4
|
ryan
|
</td>
|
| 132 |
|
|
</tr>
|
| 133 |
|
|
<tr>
|
| 134 |
|
|
<td class="login" style="text-transform: uppercase;">
|
| 135 |
|
|
<b><?php echo $TEXT['LOGIN']; ?></b>
|
| 136 |
|
|
</td>
|
| 137 |
|
|
</tr>
|
| 138 |
|
|
<tr>
|
| 139 |
|
|
<td class="login" style="text-align: left;">
|
| 140 |
|
|
<?php echo $TEXT['USERNAME']; ?>:
|
| 141 |
|
|
</td>
|
| 142 |
|
|
</tr>
|
| 143 |
|
|
<tr>
|
| 144 |
|
|
<td class="login">
|
| 145 |
|
|
<input type="text" name="username" />
|
| 146 |
|
|
</td>
|
| 147 |
|
|
</tr>
|
| 148 |
|
|
<tr>
|
| 149 |
|
|
<td class="login" style="text-align: left;">
|
| 150 |
|
|
<?php echo $TEXT['PASSWORD']; ?>:
|
| 151 |
|
|
</td>
|
| 152 |
|
|
</tr>
|
| 153 |
|
|
<tr>
|
| 154 |
|
|
<td class="login">
|
| 155 |
|
|
<input type="password" name="password" />
|
| 156 |
|
|
</td>
|
| 157 |
|
|
</tr>
|
| 158 |
|
|
<tr>
|
| 159 |
|
|
<td class="login">
|
| 160 |
865
|
doc
|
<input type="submit" name="submit" value="<?php
|
| 161 |
|
|
echo $TEXT['LOGIN']; ?>" style="margin-top: 3px; text-transform: uppercase;" />
|
| 162 |
4
|
ryan
|
</td>
|
| 163 |
|
|
</tr>
|
| 164 |
|
|
<tr>
|
| 165 |
|
|
<td class="login">
|
| 166 |
|
|
<a href="<?php echo FORGOT_URL; ?>"><?php echo $TEXT['FORGOT_DETAILS']; ?></a>
|
| 167 |
865
|
doc
|
<?php if (is_numeric(FRONTEND_SIGNUP)) { ?>
|
| 168 |
4
|
ryan
|
<a href="<?php echo SIGNUP_URL; ?>"><?php echo $TEXT['SIGNUP']; ?></a>
|
| 169 |
|
|
<?php } ?>
|
| 170 |
|
|
</td>
|
| 171 |
|
|
</tr>
|
| 172 |
|
|
<tr>
|
| 173 |
|
|
<td class="border">
|
| 174 |
865
|
doc
|
<img src="<?php echo TEMPLATE_DIR; ?>/images/menu_bottom.gif" border="0" alt="" />
|
| 175 |
4
|
ryan
|
</td>
|
| 176 |
|
|
</tr>
|
| 177 |
|
|
</table>
|
| 178 |
|
|
|
| 179 |
|
|
</form>
|
| 180 |
|
|
<?php
|
| 181 |
865
|
doc
|
} elseif (FRONTEND_LOGIN AND $wb->is_authenticated()) {
|
| 182 |
4
|
ryan
|
?>
|
| 183 |
|
|
<form name="logout" action="<?php echo LOGOUT_URL; ?>" method="post">
|
| 184 |
|
|
|
| 185 |
|
|
<table cellpadding="0" cellspacing="0" border="0" width="150" align="center" style="margin-top: 10px;">
|
| 186 |
|
|
<tr>
|
| 187 |
|
|
<td class="border">
|
| 188 |
865
|
doc
|
<img src="<?php echo TEMPLATE_DIR; ?>/images/menu_top.gif" border="0" alt="" />
|
| 189 |
4
|
ryan
|
</td>
|
| 190 |
|
|
</tr>
|
| 191 |
|
|
<tr>
|
| 192 |
|
|
<td class="login" style="text-transform: uppercase;">
|
| 193 |
|
|
<b><?php echo $TEXT['LOGGED_IN']; ?></b>
|
| 194 |
|
|
</td>
|
| 195 |
|
|
</tr>
|
| 196 |
|
|
<tr>
|
| 197 |
|
|
<td class="login" style="padding-top: 15px; padding-bottom: 15px;">
|
| 198 |
241
|
stefan
|
<?php echo $TEXT['WELCOME_BACK']; ?>, <?php echo $wb->get_display_name(); ?>
|
| 199 |
4
|
ryan
|
</td>
|
| 200 |
|
|
</tr>
|
| 201 |
|
|
<tr>
|
| 202 |
|
|
<td class="login">
|
| 203 |
865
|
doc
|
<input type="submit" name="submit" value="<?php
|
| 204 |
|
|
echo $MENU['LOGOUT']; ?>" style="margin-top: 3px; text-transform: uppercase;" />
|
| 205 |
4
|
ryan
|
</td>
|
| 206 |
|
|
</tr>
|
| 207 |
|
|
<tr>
|
| 208 |
|
|
<td class="login">
|
| 209 |
|
|
<a href="<?php echo PREFERENCES_URL; ?>"><?php echo $MENU['PREFERENCES']; ?></a>
|
| 210 |
|
|
</td>
|
| 211 |
|
|
</tr>
|
| 212 |
|
|
<tr>
|
| 213 |
|
|
<td class="border">
|
| 214 |
865
|
doc
|
<img src="<?php echo TEMPLATE_DIR; ?>/images/menu_bottom.gif" border="0" alt="" />
|
| 215 |
4
|
ryan
|
</td>
|
| 216 |
|
|
</tr>
|
| 217 |
|
|
</table>
|
| 218 |
|
|
|
| 219 |
|
|
</form>
|
| 220 |
|
|
<?php
|
| 221 |
|
|
}
|
| 222 |
|
|
?>
|
| 223 |
|
|
</td>
|
| 224 |
|
|
<?php } ?>
|
| 225 |
|
|
<td class="content" width="600" rowspan="2">
|
| 226 |
|
|
<?php page_content(); ?>
|
| 227 |
|
|
</td>
|
| 228 |
|
|
</tr>
|
| 229 |
|
|
<tr>
|
| 230 |
|
|
<td height="20" width="155" valign="bottom" class="powered_by">
|
| 231 |
|
|
<a href="http://www.websitebaker.org/" target="_blank">
|
| 232 |
865
|
doc
|
<img src="<?php echo TEMPLATE_DIR; ?>/images/powered.jpg" border="0" alt="Powered By Website Baker" />
|
| 233 |
4
|
ryan
|
</a>
|
| 234 |
|
|
</td>
|
| 235 |
|
|
</tr>
|
| 236 |
|
|
<tr>
|
| 237 |
|
|
<td colspan="2" class="border">
|
| 238 |
865
|
doc
|
<img src="<?php echo TEMPLATE_DIR; ?>/images/footer.png" border="0" alt="" />
|
| 239 |
4
|
ryan
|
</td>
|
| 240 |
|
|
</tr>
|
| 241 |
|
|
<tr>
|
| 242 |
|
|
<td colspan="2" class="footer">
|
| 243 |
|
|
<?php page_footer(); ?>
|
| 244 |
|
|
</td>
|
| 245 |
|
|
</tr>
|
| 246 |
|
|
</table>
|
| 247 |
|
|
|
| 248 |
|
|
</body>
|
| 249 |
|
|
</html>
|