| 1 | 1643 | darkviper | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 | 
      
        | 2 | 4 | ryan | <?php
 | 
      
        | 3 | 865 | doc | /**
 | 
      
        | 4 |  |  |  * $Id$
 | 
      
        | 5 |  |  |  * Website Baker template: allcss
 | 
      
        | 6 |  |  |  * This template is one of four basis templates distributed with Website Baker.
 | 
      
        | 7 |  |  |  * Feel free to modify or build up on this template.
 | 
      
        | 8 |  |  |  *
 | 
      
        | 9 |  |  |  * This file contains the overall template markup and the Website Baker
 | 
      
        | 10 |  |  |  * template functions to add the contents from the database.
 | 
      
        | 11 |  |  |  *
 | 
      
        | 12 |  |  |  * LICENSE: GNU General Public License
 | 
      
        | 13 |  |  |  *
 | 
      
        | 14 |  |  |  * @author     Ryan Djurovich, C. Sommer
 | 
      
        | 15 |  |  |  * @copyright  GNU General Public License
 | 
      
        | 16 |  |  |  * @license    http://www.gnu.org/licenses/gpl.html
 | 
      
        | 17 |  |  |  * @version    2.70
 | 
      
        | 18 |  |  |  * @platform   Website Baker 2.7
 | 
      
        | 19 |  |  |  *
 | 
      
        | 20 |  |  |  * Website Baker is free software; you can redistribute it and/or modify
 | 
      
        | 21 |  |  |  * it under the terms of the GNU General Public License as published by
 | 
      
        | 22 |  |  |  * the Free Software Foundation; either version 2 of the License, or
 | 
      
        | 23 |  |  |  * (at your option) any later version.
 | 
      
        | 24 |  |  |  *
 | 
      
        | 25 |  |  |  * Website Baker is distributed in the hope that it will be useful,
 | 
      
        | 26 |  |  |  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
      
        | 27 |  |  |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
      
        | 28 |  |  |  * GNU General Public License for more details.
 | 
      
        | 29 | 4 | ryan | */
 | 
      
        | 30 |  |  | 
 | 
      
        | 31 | 865 | doc | // prevent this file from being accessed directly
 | 
      
        | 32 |  |  | if (!defined('WB_PATH')) die(header('Location: ../../index.php'));
 | 
      
        | 33 | 395 | Ruebenwurz | 
 | 
      
        | 34 | 865 | doc | // TEMPLATE CODE STARTS BELOW
 | 
      
        | 35 | 4 | ryan | ?>
 | 
      
        | 36 |  |  | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 | 
      
        | 37 |  |  | <head>
 | 
      
        | 38 | 865 | doc | 	<meta http-equiv="Content-Type" content="text/html; charset=<?php
 | 
      
        | 39 |  |  | 	echo defined('DEFAULT_CHARSET') ? DEFAULT_CHARSET : 'utf-8'; ?>" />
 | 
      
        | 40 |  |  | 	<meta name="description" content="<?php page_description(); ?>" />
 | 
      
        | 41 |  |  | 	<meta name="keywords" content="<?php page_keywords(); ?>" />
 | 
      
        | 42 | 1606 | Luisehahne | 	<link rel="stylesheet" type="text/css" href="<?php
 | 
      
        | 43 |  |  | 	echo TEMPLATE_DIR; ?>/template.css" media="screen,projection" />
 | 
      
        | 44 |  |  | 	<link rel="stylesheet" type="text/css" href="<?php
 | 
      
        | 45 |  |  | 	echo TEMPLATE_DIR; ?>/print.css" media="print" />
 | 
      
        | 46 |  |  | 	<title><?php page_title('', '[WEBSITE_TITLE]'); ?></title>
 | 
      
        | 47 | 1643 | darkviper | <?php
 | 
      
        | 48 | 865 | doc | 	// automatically include optional WB module files (frontend.css, frontend.js)
 | 
      
        | 49 | 1643 | darkviper | 	register_frontend_modfiles('css');
 | 
      
        | 50 | 1646 | Luisehahne | 	// register_frontend_modfiles('jquery');
 | 
      
        | 51 | 1643 | darkviper | 	register_frontend_modfiles('js');
 | 
      
        | 52 |  |  | ?>
 | 
      
        | 53 | 4 | ryan | </head>
 | 
      
        | 54 | 865 | doc | 
 | 
      
        | 55 | 4 | ryan | <body>
 | 
      
        | 56 |  |  | 
 | 
      
        | 57 |  |  | <div class="main">
 | 
      
        | 58 |  |  | 
 | 
      
        | 59 |  |  | 	<div class="banner">
 | 
      
        | 60 | 865 | doc | 		<a href="<?php echo WB_URL; ?>/" target="_top"><?php page_title('', '[WEBSITE_TITLE]'); ?></a>
 | 
      
        | 61 |  |  | 		<span>| <?php page_title('', '[PAGE_TITLE]'); ?></span>
 | 
      
        | 62 | 4 | ryan | 	</div>
 | 
      
        | 63 |  |  | 
 | 
      
        | 64 | 865 | doc | 	<!-- frontend search -->
 | 
      
        | 65 | 4 | ryan | 	<div class="search_box">
 | 
      
        | 66 | 865 | doc | 		<?php
 | 
      
        | 67 |  |  | 		// CODE FOR WEBSITE BAKER FRONTEND SEARCH
 | 
      
        | 68 |  |  | 		if (SHOW_SEARCH) { ?>
 | 
      
        | 69 |  |  | 			<form name="search" action="<?php echo WB_URL; ?>/search/index.php" method="get">
 | 
      
        | 70 |  |  | 				<input type="hidden" name="referrer" value="<?php
 | 
      
        | 71 |  |  | 				echo defined('REFERRER_ID') ? REFERRER_ID : PAGE_ID; ?>" />
 | 
      
        | 72 |  |  | 				<input type="text" name="string" class="search_string" />
 | 
      
        | 73 | 1646 | Luisehahne | 				<input type="submit" name="wb_search" id="wb_search" value="<?php
 | 
      
        | 74 | 865 | doc | 				echo $TEXT['SEARCH']; ?>" class="search_submit" />
 | 
      
        | 75 |  |  | 			</form><?php
 | 
      
        | 76 |  |  | 		} ?>
 | 
      
        | 77 | 4 | ryan | 	</div>
 | 
      
        | 78 | 865 | doc | 
 | 
      
        | 79 |  |  | 	<!-- main navigation menu -->
 | 
      
        | 80 | 4 | ryan | 	<div class="menu">
 | 
      
        | 81 | 1530 | Luisehahne | 		<?php
 | 
      
        | 82 | 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>');
 | 
      
        | 83 | 865 | doc | 		// CODE FOR WEBSITE BAKER FRONTEND LOGIN
 | 
      
        | 84 | 1528 | Luisehahne | 		if (FRONTEND_LOGIN == 'enabled' && VISIBILITY != 'private' && $wb->get_session('USER_ID') == '') {
 | 
      
        | 85 | 1599 | Luisehahne | 			$redirect_url = ((isset($_SESSION['HTTP_REFERER']) && $_SESSION['HTTP_REFERER'] != '') ? $_SESSION['HTTP_REFERER'] : WB_URL );
 | 
      
        | 86 |  |  | 			$redirect_url = (isset($thisApp->redirect_url) ? $thisApp->redirect_url : $redirect_url );
 | 
      
        | 87 | 1606 | Luisehahne | 		?>
 | 
      
        | 88 | 865 | doc | 			<!-- login form -->
 | 
      
        | 89 | 4 | ryan | 			<br />
 | 
      
        | 90 | 865 | doc | 			<form name="login" id="login" action="<?php echo LOGIN_URL; ?>" method="post">
 | 
      
        | 91 | 1606 | Luisehahne | 				<input type="hidden" name="redirect" value="<?php echo $redirect_url;?>" />
 | 
      
        | 92 | 865 | doc | 				<fieldset>
 | 
      
        | 93 |  |  | 					<legend><?php echo $TEXT['LOGIN']; ?></legend>
 | 
      
        | 94 |  |  | 					<label for="username" accesskey="1"><?php echo $TEXT['USERNAME']; ?>:</label>
 | 
      
        | 95 |  |  | 					<input type="text" name="username" id="username" style="text-transform: lowercase;" /><br />
 | 
      
        | 96 |  |  | 					<label for="password" accesskey="2"><?php echo $TEXT['PASSWORD']; ?>:</label>
 | 
      
        | 97 |  |  | 					<input type="password" name="password" id="password" /><br />
 | 
      
        | 98 |  |  | 					<input type="submit" name="wb_login" id="wb_login" value="<?php echo $MENU['LOGIN']; ?>"/><br />
 | 
      
        | 99 |  |  | 
 | 
      
        | 100 |  |  | 					<!-- forgotten details link -->
 | 
      
        | 101 |  |  | 					<a href="<?php echo FORGOT_URL; ?>"><?php echo $TEXT['FORGOT_DETAILS']; ?></a>
 | 
      
        | 102 |  |  | 
 | 
      
        | 103 |  |  | 					<!-- frontend signup -->
 | 
      
        | 104 |  |  | 					<?php
 | 
      
        | 105 |  |  | 					if (is_numeric(FRONTEND_SIGNUP)) { ?>
 | 
      
        | 106 |  |  | 						<a href="<?php echo SIGNUP_URL; ?>"><?php echo $TEXT['SIGNUP']; ?></a>
 | 
      
        | 107 |  |  | 					<?php } ?>
 | 
      
        | 108 |  |  | 				</fieldset>
 | 
      
        | 109 |  |  | 			</form>
 | 
      
        | 110 |  |  | 
 | 
      
        | 111 |  |  | 		<?php
 | 
      
        | 112 |  |  | 		} elseif (FRONTEND_LOGIN == 'enabled' && is_numeric($wb->get_session('USER_ID'))) { ?>
 | 
      
        | 113 |  |  | 			<!-- logout form -->
 | 
      
        | 114 | 4 | ryan | 			<br />
 | 
      
        | 115 | 865 | doc | 			<form name="logout" id="logout" action="<?php echo LOGOUT_URL; ?>" method="post">
 | 
      
        | 116 |  |  | 				<fieldset>
 | 
      
        | 117 |  |  | 					<legend><?php echo $TEXT['LOGGED_IN']; ?>:</legend>
 | 
      
        | 118 |  |  | 					<?php echo $TEXT['WELCOME_BACK']; ?>, <?php echo $wb->get_display_name(); ?>
 | 
      
        | 119 |  |  | 					<input type="submit" name="wb_logout" id="wb_logout" value="<?php echo $MENU['LOGOUT']; ?>" />
 | 
      
        | 120 |  |  | 					<!-- edit user preferences -->
 | 
      
        | 121 |  |  | 					<a href="<?php echo PREFERENCES_URL; ?>"><?php echo $MENU['PREFERENCES']; ?></a>
 | 
      
        | 122 |  |  | 				</fieldset>
 | 
      
        | 123 |  |  | 			</form>
 | 
      
        | 124 |  |  | 		<?php
 | 
      
        | 125 |  |  | 		} ?>
 | 
      
        | 126 | 4 | ryan | 	</div>
 | 
      
        | 127 |  |  | 
 | 
      
        | 128 |  |  | 	<div class="content">
 | 
      
        | 129 |  |  | 		<?php page_content(); ?>
 | 
      
        | 130 |  |  | 	</div>
 | 
      
        | 131 |  |  | 
 | 
      
        | 132 |  |  | 	<div class="footer">
 | 
      
        | 133 |  |  | 		<?php page_footer(); ?>
 | 
      
        | 134 |  |  | 	</div>
 | 
      
        | 135 |  |  | 
 | 
      
        | 136 |  |  | </div>
 | 
      
        | 137 |  |  | 
 | 
      
        | 138 |  |  | <div class="powered_by">
 | 
      
        | 139 |  |  | 	Powered by <a href="http://www.websitebaker.org" target="_blank">Website Baker</a>
 | 
      
        | 140 |  |  | </div>
 | 
      
        | 141 | 1106 | Ruebenwurz | <?php
 | 
      
        | 142 |  |  | // automatically include optional WB module file frontend_body.js)
 | 
      
        | 143 | 1646 | Luisehahne | // register_frontend_modfiles_body('jquery');
 | 
      
        | 144 |  |  | register_frontend_modfiles_body('js');
 | 
      
        | 145 | 1106 | Ruebenwurz | ?>
 | 
      
        | 146 | 4 | ryan | </body>
 | 
      
        | 147 |  |  | </html>
 |