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