Revision 865
Added by doc almost 17 years ago
| index.php | ||
|---|---|---|
| 1 | 1 |
<?php |
| 2 |
|
|
| 3 |
// $Id$ |
|
| 4 |
|
|
| 5 |
/* |
|
| 6 |
|
|
| 7 |
Website Baker Project <http://www.websitebaker.org/> |
|
| 8 |
Copyright (C) 2004-2008, 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 |
|
|
| 2 |
/** |
|
| 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. |
|
| 24 | 28 |
*/ |
| 25 | 29 |
|
| 26 |
if(!defined('WB_URL')) {
|
|
| 27 |
header('Location: ../index.php');
|
|
| 28 |
exit(0); |
|
| 29 |
} |
|
| 30 |
// prevent this file from being accessed directly |
|
| 31 |
if (!defined('WB_PATH')) die(header('Location: ../../../index.php'));
|
|
| 30 | 32 |
|
| 33 |
// TEMPLATE CODE STARTS BELOW |
|
| 31 | 34 |
?> |
| 32 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
| 35 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
|
| 36 |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
| 33 | 37 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
| 34 | 38 |
<head> |
| 35 |
<title><?php page_title(); ?></title> |
|
| 36 |
<meta http-equiv="Content-Type" content="text/html; charset=<?php if(defined('DEFAULT_CHARSET')) { echo DEFAULT_CHARSET; } else { echo 'utf-8'; }?>" />
|
|
| 37 |
<meta name="description" content="<?php page_description(); ?>" /> |
|
| 38 |
<meta name="keywords" content="<?php page_keywords(); ?>" /> |
|
| 39 |
<link href="<?php echo TEMPLATE_DIR; ?>/screen.css" rel="stylesheet" type="text/css" media="screen" /> |
|
| 40 |
<link href="<?php echo TEMPLATE_DIR; ?>/print.css" rel="stylesheet" type="text/css" media="print" /> |
|
| 41 |
<?php |
|
| 42 |
// this allows to include the optional module files (frontend.css, frontend.js) into the head section |
|
| 43 |
if(function_exists('register_frontend_modfiles')) {
|
|
| 44 |
register_frontend_modfiles('css');
|
|
| 45 |
register_frontend_modfiles('js');
|
|
| 46 |
} ?> |
|
| 47 |
<?php |
|
| 48 |
// this allows to add custom information to the head section of your template (WB-->Settings-->Website Header) |
|
| 49 |
echo WEBSITE_HEADER; |
|
| 50 |
?> |
|
| 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>
|
|
| 51 | 54 |
</head> |
| 55 |
|
|
| 52 | 56 |
<body> |
| 53 | 57 |
|
| 54 | 58 |
<table cellpadding="0" cellspacing="0" border="0" align="center" class="main" width="750"> |
| 55 | 59 |
<tr> |
| 56 | 60 |
<td colspan="2" class="header" height="80"> |
| 57 |
<a href="<?php echo WB_URL; ?>"><img src="<?php echo TEMPLATE_DIR; ?>/banner.jpg" border="0" width="750" height="80" alt="<?php page_title('', '[WEBSITE_TITLE]'); ?>" /></a>
|
|
| 61 |
<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> |
|
| 58 | 65 |
</td> |
| 59 | 66 |
</tr> |
| 60 | 67 |
<tr> |
| 61 | 68 |
<?php |
| 62 |
// Only show menu items if we are supposed to
|
|
| 69 |
// navigation menu
|
|
| 63 | 70 |
if(SHOW_MENU) {
|
| 64 | 71 |
?> |
| 65 |
<td style="padding: 10px; background-color: #FFFFFF;" valign="top">
|
|
| 72 |
<td style="padding: 10px; background-color: #FFF;" valign="top"> |
|
| 66 | 73 |
<table cellpadding="0" cellspacing="0" border="0" width="150" align="center" class="menu"> |
| 67 | 74 |
<tr> |
| 68 | 75 |
<td class="border"> |
| 69 |
<img src="<?php echo TEMPLATE_DIR; ?>/menu_top.gif" border="0" alt="" /> |
|
| 76 |
<img src="<?php echo TEMPLATE_DIR; ?>/images/menu_top.gif" border="0" alt="" />
|
|
| 70 | 77 |
</td> |
| 71 | 78 |
</tr> |
| 72 | 79 |
<tr> |
| ... | ... | |
| 76 | 83 |
</tr> |
| 77 | 84 |
<tr> |
| 78 | 85 |
<td class="border"> |
| 79 |
<img src="<?php echo TEMPLATE_DIR; ?>/menu_bottom.gif" border="0" alt="" /> |
|
| 86 |
<img src="<?php echo TEMPLATE_DIR; ?>/images/menu_bottom.gif" border="0" alt="" />
|
|
| 80 | 87 |
</td> |
| 81 | 88 |
</tr> |
| 82 | 89 |
</table> |
| 83 | 90 |
|
| 84 |
<?php if(SHOW_SEARCH) { ?>
|
|
| 85 |
<form name="search" action="<?php echo WB_URL.'/search/index.php'; ?>" method="get"> |
|
| 91 |
|
|
| 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; ?>" />
|
|
| 86 | 97 |
<table cellpadding="0" cellspacing="0" border="0" width="150" align="center" style="margin-top: 10px;"> |
| 87 | 98 |
<tr> |
| 88 | 99 |
<td class="border"> |
| 89 |
<img src="<?php echo TEMPLATE_DIR; ?>/menu_top.gif" border="0" alt="" /> |
|
| 100 |
<img src="<?php echo TEMPLATE_DIR; ?>/images/menu_top.gif" border="0" alt="" />
|
|
| 90 | 101 |
</td> |
| 91 | 102 |
</tr> |
| 92 | 103 |
<tr> |
| ... | ... | |
| 101 | 112 |
</tr> |
| 102 | 113 |
<tr> |
| 103 | 114 |
<td class="border"> |
| 104 |
<img src="<?php echo TEMPLATE_DIR; ?>/menu_bottom.gif" border="0" alt="" /> |
|
| 115 |
<img src="<?php echo TEMPLATE_DIR; ?>/images/menu_bottom.gif" border="0" alt="" />
|
|
| 105 | 116 |
</td> |
| 106 | 117 |
</tr> |
| 107 | 118 |
</table> |
| ... | ... | |
| 116 | 127 |
<table cellpadding="0" cellspacing="0" border="0" width="150" align="center" style="margin-top: 10px;"> |
| 117 | 128 |
<tr> |
| 118 | 129 |
<td class="border"> |
| 119 |
<img src="<?php echo TEMPLATE_DIR; ?>/menu_top.gif" border="0" alt="" /> |
|
| 130 |
<img src="<?php echo TEMPLATE_DIR; ?>/images/menu_top.gif" border="0" alt="" />
|
|
| 120 | 131 |
</td> |
| 121 | 132 |
</tr> |
| 122 | 133 |
<tr> |
| ... | ... | |
| 146 | 157 |
</tr> |
| 147 | 158 |
<tr> |
| 148 | 159 |
<td class="login"> |
| 149 |
<input type="submit" name="submit" value="<?php echo $TEXT['LOGIN']; ?>" style="margin-top: 3px; text-transform: uppercase;" /> |
|
| 160 |
<input type="submit" name="submit" value="<?php |
|
| 161 |
echo $TEXT['LOGIN']; ?>" style="margin-top: 3px; text-transform: uppercase;" /> |
|
| 150 | 162 |
</td> |
| 151 | 163 |
</tr> |
| 152 | 164 |
<tr> |
| 153 | 165 |
<td class="login"> |
| 154 | 166 |
<a href="<?php echo FORGOT_URL; ?>"><?php echo $TEXT['FORGOT_DETAILS']; ?></a> |
| 155 |
<?php if(is_numeric(FRONTEND_SIGNUP)) { ?>
|
|
| 167 |
<?php if (is_numeric(FRONTEND_SIGNUP)) { ?>
|
|
| 156 | 168 |
<a href="<?php echo SIGNUP_URL; ?>"><?php echo $TEXT['SIGNUP']; ?></a> |
| 157 | 169 |
<?php } ?> |
| 158 | 170 |
</td> |
| 159 | 171 |
</tr> |
| 160 | 172 |
<tr> |
| 161 | 173 |
<td class="border"> |
| 162 |
<img src="<?php echo TEMPLATE_DIR; ?>/menu_bottom.gif" border="0" alt="" /> |
|
| 174 |
<img src="<?php echo TEMPLATE_DIR; ?>/images/menu_bottom.gif" border="0" alt="" />
|
|
| 163 | 175 |
</td> |
| 164 | 176 |
</tr> |
| 165 | 177 |
</table> |
| 166 | 178 |
|
| 167 | 179 |
</form> |
| 168 | 180 |
<?php |
| 169 |
} elseif(FRONTEND_LOGIN AND $wb->is_authenticated()) {
|
|
| 181 |
} elseif (FRONTEND_LOGIN AND $wb->is_authenticated()) {
|
|
| 170 | 182 |
?> |
| 171 | 183 |
<form name="logout" action="<?php echo LOGOUT_URL; ?>" method="post"> |
| 172 | 184 |
|
| 173 | 185 |
<table cellpadding="0" cellspacing="0" border="0" width="150" align="center" style="margin-top: 10px;"> |
| 174 | 186 |
<tr> |
| 175 | 187 |
<td class="border"> |
| 176 |
<img src="<?php echo TEMPLATE_DIR; ?>/menu_top.gif" border="0" alt="" /> |
|
| 188 |
<img src="<?php echo TEMPLATE_DIR; ?>/images/menu_top.gif" border="0" alt="" />
|
|
| 177 | 189 |
</td> |
| 178 | 190 |
</tr> |
| 179 | 191 |
<tr> |
| ... | ... | |
| 188 | 200 |
</tr> |
| 189 | 201 |
<tr> |
| 190 | 202 |
<td class="login"> |
| 191 |
<input type="submit" name="submit" value="<?php echo $MENU['LOGOUT']; ?>" style="margin-top: 3px; text-transform: uppercase;" /> |
|
| 203 |
<input type="submit" name="submit" value="<?php |
|
| 204 |
echo $MENU['LOGOUT']; ?>" style="margin-top: 3px; text-transform: uppercase;" /> |
|
| 192 | 205 |
</td> |
| 193 | 206 |
</tr> |
| 194 | 207 |
<tr> |
| ... | ... | |
| 198 | 211 |
</tr> |
| 199 | 212 |
<tr> |
| 200 | 213 |
<td class="border"> |
| 201 |
<img src="<?php echo TEMPLATE_DIR; ?>/menu_bottom.gif" border="0" alt="" /> |
|
| 214 |
<img src="<?php echo TEMPLATE_DIR; ?>/images/menu_bottom.gif" border="0" alt="" />
|
|
| 202 | 215 |
</td> |
| 203 | 216 |
</tr> |
| 204 | 217 |
</table> |
| ... | ... | |
| 214 | 227 |
</td> |
| 215 | 228 |
</tr> |
| 216 | 229 |
<tr> |
| 217 |
<?php |
|
| 218 |
// Only show menu items if we are supposed to |
|
| 219 |
if(defined('SHOW_MENU') AND SHOW_MENU == true) {
|
|
| 220 |
?> |
|
| 221 | 230 |
<td height="20" width="155" valign="bottom" class="powered_by"> |
| 222 | 231 |
<a href="http://www.websitebaker.org/" target="_blank"> |
| 223 |
<img src="<?php echo TEMPLATE_DIR; ?>/powered.jpg" border="0" alt="Powered By Website Baker" /> |
|
| 232 |
<img src="<?php echo TEMPLATE_DIR; ?>/images/powered.jpg" border="0" alt="Powered By Website Baker" />
|
|
| 224 | 233 |
</a> |
| 225 | 234 |
</td> |
| 226 |
<?php } ?> |
|
| 227 | 235 |
</tr> |
| 228 | 236 |
<tr> |
| 229 | 237 |
<td colspan="2" class="border"> |
| 230 |
<img src="<?php echo TEMPLATE_DIR; ?>/footer.png" border="0" alt="" /> |
|
| 238 |
<img src="<?php echo TEMPLATE_DIR; ?>/images/footer.png" border="0" alt="" />
|
|
| 231 | 239 |
</td> |
| 232 | 240 |
</tr> |
| 233 | 241 |
<tr> |
Also available in: Unified diff
updated basic templates according the template guidelines