diff options
Diffstat (limited to 'themes/gttheme')
52 files changed, 588 insertions, 0 deletions
diff --git a/themes/gttheme/footer.php b/themes/gttheme/footer.php new file mode 100644 index 0000000..72ddb3a --- /dev/null +++ b/themes/gttheme/footer.php @@ -0,0 +1,64 @@ +<?php +/** + * Bayonet Content Management System + * Copyright (C) 2008 Joseph Hunkeler + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +$phpversion = preg_replace('/[a-z-]/', '', phpversion()); +$mtime = explode(' ', microtime()); +$totaltime = $mtime[0] + $mtime[1] - $starttime; +$debug_output = sprintf("Page generated in %.3f seconds | Memory: real(%.3fmb) peak(%.3fmb) | PHP: %s<br/>Connections: %d | Queries: %d | Fetches: %d | Frees: %d<br/>\n", + $totaltime, ((float)memory_get_usage()/1024/1024), ((float)memory_get_peak_usage()/1024/1024), $phpversion, $db_connections, $db_queries, $db_fetches, $db_frees); +?> + +<div class="footer"> + + <br /> + <span class="footer-text"> + All logos and trademarks on this site are property of their respective owner. The comments are property of their posters, all the rest © 2001-<?php echo date('Y'); ?> 3rd Infantry Division.</span> + + <br /><br /> + + <a href="admin/">Administrative Control Panel</a><br /> +<?php echo $config['product']['name'] . ' ' . $config['product']['version'] . ' ' . $config['product']['release'] ?><br /> +<?php echo stripslashes($config['product']['copyright']); ?><br /> +<?php if($config['debug']['enabled']) echo $debug_output ?><br /> + +<a href="http://www.dreamhost.com/r.cgi?145892" target="_blank"><img src="http://www.dreamhost.com/images/rewards/80x15-e.png" /></a><br /><br /> + +</div> + +<?php + if($config['debug']['enabled']){ + logQueueFlush(); + } +?> + +<script type="text/javascript"> +var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); +document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); +</script> +<script type="text/javascript"> +try{ +var pageTracker = _gat._getTracker("UA-3253447-1"); +pageTracker._trackPageview(); +} catch(err) {} +</script> + +</body> +</html> +<?php ob_flush();?> + diff --git a/themes/gttheme/header.php b/themes/gttheme/header.php new file mode 100644 index 0000000..76dc2f9 --- /dev/null +++ b/themes/gttheme/header.php @@ -0,0 +1,40 @@ +<?php +/** + * Bayonet Content Management System + * Copyright (C) 2008 Joseph Hunkeler + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +global $config; +ob_start(); +$starttime = explode(' ', microtime()); +$starttime = $starttime[1] + $starttime[0]; +?> + +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US" dir="ltr"> + +<head> +<title>3rd Infantry Division - 8 years strong - ArmaII Unit</title> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> +<?php if(isset($config['site']['favicon'])): ?> +<!--<link rel="shortcut icon" href="<?php echo $config['site']['favicon']; ?>" type="image/x-icon" />--> +<link rel="shortcut icon" href="<?php echo $config['site']['favicon']; ?>" type="image/png" /> +<?php endif; ?> +<link rel="stylesheet" type="text/css" href="<?php echo self::$primary_css; ?>" media="screen"/> +</head> + +<body>
\ No newline at end of file diff --git a/themes/gttheme/images/Medal.png b/themes/gttheme/images/Medal.png Binary files differnew file mode 100644 index 0000000..1d9974b --- /dev/null +++ b/themes/gttheme/images/Medal.png diff --git a/themes/gttheme/images/add.gif b/themes/gttheme/images/add.gif Binary files differnew file mode 100644 index 0000000..836dbf2 --- /dev/null +++ b/themes/gttheme/images/add.gif diff --git a/themes/gttheme/images/addnewarticle.png b/themes/gttheme/images/addnewarticle.png Binary files differnew file mode 100644 index 0000000..0e29960 --- /dev/null +++ b/themes/gttheme/images/addnewarticle.png diff --git a/themes/gttheme/images/addnewpage.png b/themes/gttheme/images/addnewpage.png Binary files differnew file mode 100644 index 0000000..c60c68c --- /dev/null +++ b/themes/gttheme/images/addnewpage.png diff --git a/themes/gttheme/images/annoucement.png b/themes/gttheme/images/annoucement.png Binary files differnew file mode 100644 index 0000000..c70591d --- /dev/null +++ b/themes/gttheme/images/annoucement.png diff --git a/themes/gttheme/images/announcement.png b/themes/gttheme/images/announcement.png Binary files differnew file mode 100644 index 0000000..c70591d --- /dev/null +++ b/themes/gttheme/images/announcement.png diff --git a/themes/gttheme/images/arrowleft.png b/themes/gttheme/images/arrowleft.png Binary files differnew file mode 100644 index 0000000..502ae41 --- /dev/null +++ b/themes/gttheme/images/arrowleft.png diff --git a/themes/gttheme/images/arrowright.png b/themes/gttheme/images/arrowright.png Binary files differnew file mode 100644 index 0000000..ddd163b --- /dev/null +++ b/themes/gttheme/images/arrowright.png diff --git a/themes/gttheme/images/background.jpg b/themes/gttheme/images/background.jpg Binary files differnew file mode 100644 index 0000000..e96f267 --- /dev/null +++ b/themes/gttheme/images/background.jpg diff --git a/themes/gttheme/images/banner.jpg b/themes/gttheme/images/banner.jpg Binary files differnew file mode 100644 index 0000000..854561b --- /dev/null +++ b/themes/gttheme/images/banner.jpg diff --git a/themes/gttheme/images/bayonetLogo.png b/themes/gttheme/images/bayonetLogo.png Binary files differnew file mode 100644 index 0000000..4183a88 --- /dev/null +++ b/themes/gttheme/images/bayonetLogo.png diff --git a/themes/gttheme/images/blockbackground.jpg b/themes/gttheme/images/blockbackground.jpg Binary files differnew file mode 100644 index 0000000..ea6c7d3 --- /dev/null +++ b/themes/gttheme/images/blockbackground.jpg diff --git a/themes/gttheme/images/calendar.png b/themes/gttheme/images/calendar.png Binary files differnew file mode 100644 index 0000000..86b9861 --- /dev/null +++ b/themes/gttheme/images/calendar.png diff --git a/themes/gttheme/images/delete.gif b/themes/gttheme/images/delete.gif Binary files differnew file mode 100644 index 0000000..4e2a37f --- /dev/null +++ b/themes/gttheme/images/delete.gif diff --git a/themes/gttheme/images/editfiles.png b/themes/gttheme/images/editfiles.png Binary files differnew file mode 100644 index 0000000..500e206 --- /dev/null +++ b/themes/gttheme/images/editfiles.png diff --git a/themes/gttheme/images/editpage.png b/themes/gttheme/images/editpage.png Binary files differnew file mode 100644 index 0000000..ab3fd58 --- /dev/null +++ b/themes/gttheme/images/editpage.png diff --git a/themes/gttheme/images/error.gif b/themes/gttheme/images/error.gif Binary files differnew file mode 100644 index 0000000..cb1fcbe --- /dev/null +++ b/themes/gttheme/images/error.gif diff --git a/themes/gttheme/images/error.png b/themes/gttheme/images/error.png Binary files differnew file mode 100644 index 0000000..5bc1824 --- /dev/null +++ b/themes/gttheme/images/error.png diff --git a/themes/gttheme/images/file_doc.png b/themes/gttheme/images/file_doc.png Binary files differnew file mode 100644 index 0000000..b1da1ef --- /dev/null +++ b/themes/gttheme/images/file_doc.png diff --git a/themes/gttheme/images/file_pdf.png b/themes/gttheme/images/file_pdf.png Binary files differnew file mode 100644 index 0000000..500e206 --- /dev/null +++ b/themes/gttheme/images/file_pdf.png diff --git a/themes/gttheme/images/file_rtf.png b/themes/gttheme/images/file_rtf.png Binary files differnew file mode 100644 index 0000000..39304c1 --- /dev/null +++ b/themes/gttheme/images/file_rtf.png diff --git a/themes/gttheme/images/file_word.png b/themes/gttheme/images/file_word.png Binary files differnew file mode 100644 index 0000000..3011f00 --- /dev/null +++ b/themes/gttheme/images/file_word.png diff --git a/themes/gttheme/images/headingbg.jpg b/themes/gttheme/images/headingbg.jpg Binary files differnew file mode 100644 index 0000000..3597c21 --- /dev/null +++ b/themes/gttheme/images/headingbg.jpg diff --git a/themes/gttheme/images/hgrad.png b/themes/gttheme/images/hgrad.png Binary files differnew file mode 100644 index 0000000..86daf8b --- /dev/null +++ b/themes/gttheme/images/hgrad.png diff --git a/themes/gttheme/images/larrow.png b/themes/gttheme/images/larrow.png Binary files differnew file mode 100644 index 0000000..554b6e9 --- /dev/null +++ b/themes/gttheme/images/larrow.png diff --git a/themes/gttheme/images/leftshadow.png b/themes/gttheme/images/leftshadow.png Binary files differnew file mode 100644 index 0000000..1f32159 --- /dev/null +++ b/themes/gttheme/images/leftshadow.png diff --git a/themes/gttheme/images/logo.jpg b/themes/gttheme/images/logo.jpg Binary files differnew file mode 100644 index 0000000..8b59067 --- /dev/null +++ b/themes/gttheme/images/logo.jpg diff --git a/themes/gttheme/images/lvgrad.png b/themes/gttheme/images/lvgrad.png Binary files differnew file mode 100644 index 0000000..487d7e3 --- /dev/null +++ b/themes/gttheme/images/lvgrad.png diff --git a/themes/gttheme/images/navbackground.jpg b/themes/gttheme/images/navbackground.jpg Binary files differnew file mode 100644 index 0000000..93ffece --- /dev/null +++ b/themes/gttheme/images/navbackground.jpg diff --git a/themes/gttheme/images/navbg.jpg b/themes/gttheme/images/navbg.jpg Binary files differnew file mode 100644 index 0000000..9bd90ce --- /dev/null +++ b/themes/gttheme/images/navbg.jpg diff --git a/themes/gttheme/images/navbg.png b/themes/gttheme/images/navbg.png Binary files differnew file mode 100644 index 0000000..00a8f88 --- /dev/null +++ b/themes/gttheme/images/navbg.png diff --git a/themes/gttheme/images/navigation.png b/themes/gttheme/images/navigation.png Binary files differnew file mode 100644 index 0000000..739c95f --- /dev/null +++ b/themes/gttheme/images/navigation.png diff --git a/themes/gttheme/images/navspacer.png b/themes/gttheme/images/navspacer.png Binary files differnew file mode 100644 index 0000000..cdc8cb4 --- /dev/null +++ b/themes/gttheme/images/navspacer.png diff --git a/themes/gttheme/images/news_header.png b/themes/gttheme/images/news_header.png Binary files differnew file mode 100644 index 0000000..00861bf --- /dev/null +++ b/themes/gttheme/images/news_header.png diff --git a/themes/gttheme/images/nvgrad.png b/themes/gttheme/images/nvgrad.png Binary files differnew file mode 100644 index 0000000..5e4c05c --- /dev/null +++ b/themes/gttheme/images/nvgrad.png diff --git a/themes/gttheme/images/photogallery.png b/themes/gttheme/images/photogallery.png Binary files differnew file mode 100644 index 0000000..a161a55 --- /dev/null +++ b/themes/gttheme/images/photogallery.png diff --git a/themes/gttheme/images/photoleft.png b/themes/gttheme/images/photoleft.png Binary files differnew file mode 100644 index 0000000..f4eb3af --- /dev/null +++ b/themes/gttheme/images/photoleft.png diff --git a/themes/gttheme/images/photoright.png b/themes/gttheme/images/photoright.png Binary files differnew file mode 100644 index 0000000..16a251b --- /dev/null +++ b/themes/gttheme/images/photoright.png diff --git a/themes/gttheme/images/rarrow.png b/themes/gttheme/images/rarrow.png Binary files differnew file mode 100644 index 0000000..9a272d9 --- /dev/null +++ b/themes/gttheme/images/rarrow.png diff --git a/themes/gttheme/images/rightshadow.png b/themes/gttheme/images/rightshadow.png Binary files differnew file mode 100644 index 0000000..bc970f0 --- /dev/null +++ b/themes/gttheme/images/rightshadow.png diff --git a/themes/gttheme/images/sandbackground.jpg b/themes/gttheme/images/sandbackground.jpg Binary files differnew file mode 100644 index 0000000..2a2d800 --- /dev/null +++ b/themes/gttheme/images/sandbackground.jpg diff --git a/themes/gttheme/images/spacer.png b/themes/gttheme/images/spacer.png Binary files differnew file mode 100644 index 0000000..f187f4a --- /dev/null +++ b/themes/gttheme/images/spacer.png diff --git a/themes/gttheme/images/vgrad.png b/themes/gttheme/images/vgrad.png Binary files differnew file mode 100644 index 0000000..e7a96e8 --- /dev/null +++ b/themes/gttheme/images/vgrad.png diff --git a/themes/gttheme/images/view.gif b/themes/gttheme/images/view.gif Binary files differnew file mode 100644 index 0000000..52cbddb --- /dev/null +++ b/themes/gttheme/images/view.gif diff --git a/themes/gttheme/include/functions.php b/themes/gttheme/include/functions.php new file mode 100644 index 0000000..4a401fd --- /dev/null +++ b/themes/gttheme/include/functions.php @@ -0,0 +1,40 @@ +<?php + + /* EVERY THEME SHOULD HAVE THIS FILE WITH THE FUNCTIONS OPENCONTENT() & CLOSECONTENT() */ + + /** + * OpenContent() + * Opens a Bayonet site content block. + * @return + */ + function OpenContent() + { + echo "<div class=\"contentBorder1\">"; + echo "<div class=\"contentBorder2\">"; + } + + /** + * CloseContent() + * Closes a Bayonet site content block. + * @return + */ + function CloseContent() + { + echo "</div>"; + echo "</div>"; + } + + function OpenBlock($title = 'New Block') + { + OpenContent(); + echo "<div class=\"contentHeading\">{$title}</div>"; + echo "<div class=\"content\">"; + } + + function CloseBlock() + { + echo "</div>"; + CloseContent(); + } + +?>
\ No newline at end of file diff --git a/themes/gttheme/include/primary.css b/themes/gttheme/include/primary.css new file mode 100644 index 0000000..025b0fc --- /dev/null +++ b/themes/gttheme/include/primary.css @@ -0,0 +1,286 @@ + /********************************* + ** Layout Styles ** + *********************************/ + div.container { + width: 990px; + position: relative; + /* width: 1000px; */ + color: #000000; + margin: auto auto; + text-align: left; /* IE 5 fix */ + } + div.banner { + /* width: 990px; */ + text-align:center; + /* margin: auto auto; */ + } + img.head_medal { + position: absolute; + left: 26px; + top: -42px; + } + div.nav { + /*width: 990px; */ + height: 24px; + background: #284c75; + background-image:url('../images/navbg.jpg'); + color: #000000; + text-align:center; + /* margin: auto auto; */ + font-size:14px; + line-height: 24px; + border: 3px solid black; + border-top: 1px solid black; + } + table.main { + /*background-image:url('../images/sandbackground.jpg'); */ + padding: 0px; + color:#ffffff; + width:990px; + /*width: 1134px; */ + /* width: 1234px; */ + margin: auto auto; + /* background-color:#a3a2a0; */ + } + + table.main td { + /* color:white; */ + } + td.midcol { + width: 644px; + background-color:transparent; + vertical-align:top; + } + td.rightcol { + vertical-align:top; + } + td.leftcol { + width: 275px; + vertical-align:top; + } + div.footer { + text-align:center; + font-family:verdana; + font-size:10pt; + color:#5e5e5e; + background-color:#333333; + border-top: 1px solid #5e5e5e; + } + + /********************************* + ** Content Styles ** + *********************************/ + div.contentBorder1 { + background-color:white; + border: 1px solid #000; /*#3666ba;*/ + } + div.contentBorder2 { + background-color:white; + border:1px solid #000; /* 333 */ + } + div.contentHeading { + background-image:url(../images/headingbg.jpg); + background-repeat:repeat-x; + background-color:#112f50; + border: 0px solid black; + border-bottom: 2px solid black; + height:25px; + line-height: 25px; + padding-left:10px; + padding-right:10px; + color:white; + } + div.content { + padding:10px; + color:#333333; + /*background-color:#383838; + color:white; */ + background-color:#f1f1f1; + } + div.content img { + padding:10px; + } + div.contentFooter { + border-top:1px solid #333333; + background-color:#a4a4a4; + color:white; + padding-left:5px; + padding-right:5px; + } + span.footer-text { + font-size: 10px; + } + + .clear { + clear: both; + } + + /********************************* + ** Nav Links Styles ** + *********************************/ + table.navLinks a, table.navLinks a:visited, table.navLinks a:active { + background-color:transparent; + color:white; + font-family:verdana; + font-size:11px; + font-weight:bold; + text-decoration:none; + } + + table.navLinks a:hover, table.navLinks a:visited:hover { + background-color:transparent; + color:#d2d2d2; + font-size:11px; + font-weight:bold; + text-decoration:none; + } + + table.navLinks { + height:25px; + } + + table.navLinks td { + border-right: 1px solid #213f61; + vertical-align:middle; + } + + /********************************* + ** Misc. Styles ** + *********************************/ + + h1, h2, h3, h4, h5, h6 { + font-family: Helvetica, Arial, sans-serif; + font-weight: normal; + } + table, tr, td { + padding:0px; + border:0px; + margin:0px + } + body, td, div { + font-size:10pt; + /* color:black; */ + font-family:verdana; + font-weight:normal; + } + a, a:visited, a:active { + background-color:transparent; + color:#3666ba; + font-family:verdana; + font-size:12px; + text-decoration:none; + } + + a:hover, a:visited:hover { + background-color:transparent; + color:#3666ba; + font-family:verdana; + font-size:12px; + text-decoration:underline; + } + a.rudi_roster, a.rudi_roster:visited, a.rudi_roster:active, a.rudi_roster:hover { + color:#2b5bae; + } + body { + background-color:#091a34; + background-image: url('../images/Background.jpg'); + background-position: top center; + background-attachment: fixed; + margin:0; + margin-top: 15px; + padding:0; + text-align:left; + } + a img { + border:0px; + } + form { + margin:0; + } + tr.rownorm{ + background-color:white; + + } + tr.rowhigh{ + background-color:#e0e0e0; + } + /* photo gallery styles */ + .photoleft{ + background-image:url("../images/photoleft.png"); + background-repeat:repeat-y; + text-align:center; + width:49px; + } + .photoright{ + background-image:url("../images/photoright.png"); + background-repeat:repeat-y; + text-align:center; + width:49px; + } + /* end photo gallery styles */ + + /* stuff we might need in order to add drop shadows */ + + div.topbar { + height:25px; + text-align:center; + background-color:black; + font-family:verdana; + font-size:10pt; + color:#797e4f; + } + div.botbar { + height:50px; + padding:5px; + text-align:center; + background-color:black; + font-family:verdana; + font-size:10pt; + } + /* may need these two when we add the background images back */ + .leftbar { + /* background-image:url("../images/leftshadow.png"); */ + background-repeat: + repeat-y; + width:50px; + } + .rightbar { + /* background-image:url("../images/rightshadow.png"); */ + background-repeat: + repeat-y; + width:15px; + } + + .fl-left{ + float:left; + } + + .fl-right{ + float:right; + } + + .clear { + clear:both; + } + + .inline { + display: inline; + } + + .left{ + text-align:left; + } + .right{ + text-align:right; + } + .center{ + text-align:center; + } + .title{ + font-size:14px; + font-weight:bold; + font-family:arial; + } + +@import "style_bbcode.css" + diff --git a/themes/gttheme/include/style_bbcode.css b/themes/gttheme/include/style_bbcode.css new file mode 100644 index 0000000..05333f9 --- /dev/null +++ b/themes/gttheme/include/style_bbcode.css @@ -0,0 +1,71 @@ +.bold { + font-weight: bold; +} + +.italics { + font-style: italic; +} + +.underline { + text-decoration: underline; +} + +.strikethrough { + text-decoration: line-through; +} + +.overline { + text-decoration: overline; +} + +.quotecodeheader { + font-family: Verdana, arial, helvetica, sans-serif; + font-size: 12px; + font-weight: bold; +} + +.codebody { + background-color: #FFFFFF; + font-family: Courier new, courier, mono; + font-size: 12px; + color: #006600; + border: 1px solid #BFBFBF; +} + +.quotebody { + background-color: #FFFFFF; + font-family: Courier new, courier, mono; + font-size: 12px; + color: #660002; + border: 1px solid #BFBFBF; +} + +.listbullet { + list-style-type: disc; + list-style-position: inside; +} + +.listdecimal { + list-style-type: decimal; + list-style-position: inside; +} + +.listlowerroman { + list-style-type: lower-roman; + list-style-position: inside; +} + +.listupperroman { + list-style-type: upper-roman; + list-style-position: inside; +} + +.listloweralpha { + list-style-type: lower-alpha; + list-style-position: inside; +} + +.listupperalpha { + list-style-type: upper-alpha; + list-style-position: inside; +} diff --git a/themes/gttheme/include/theme.ini b/themes/gttheme/include/theme.ini new file mode 100644 index 0000000..223cd14 --- /dev/null +++ b/themes/gttheme/include/theme.ini @@ -0,0 +1,2 @@ +[author]
+name = "Joseph Hunkeler"
\ No newline at end of file diff --git a/themes/gttheme/index.php b/themes/gttheme/index.php new file mode 100644 index 0000000..b5ac212 --- /dev/null +++ b/themes/gttheme/index.php @@ -0,0 +1,61 @@ +<?php +/** + * Bayonet Conent Management System + * Copyright (C) Joseph Hunkeler & Evan O'Connell + * + * Purpose of this software is to allow users to manage their website + * with ease and without needing to have any coding knowledge in order + * to maintain it. Visit [link] for any updates or feedback. + */ + +/* Begin try/catch block */ +try { + +/* Setup error handing callbacks */ +ob_start("fatal_error_handler"); +set_error_handler("handle_error"); + +require_once self::$root_path . '/include/functions.php'; + +include self::$header; +//session_start(); +?> + +<div class="container"> + +<!-- banner --> + <div class="banner"><img src="<?php echo self::$image_path . '/Medal.png'; ?>" class="head_medal" /><a href="index.php"><img src="<?php echo self::$image_path . '/banner.jpg'; ?>" alt="3rd Infantry Division - ArmAII Unit" /></a></div> +<!-- navigation --> + <div class="nav"><?php require_once self::$root_path . '/navigation.php'; ?></div> + +<!-- content --> +<table border="0" cellspacing="15px" cellpadding="0" class="main" width="100%"> + <tr> + <td class="midcol"> + <?php require_once 'modules.php'; ?> + </td> + + <!-- block area RIGHT --> + <?php if(!defined('BLOCK_RIGHT_DISABLE')): ?> + <td class="rightcol"> + <?php GetBlocks(BLOCK_RIGHT); ?> + </td> + <?php endif; ?> + + </tr> +</table> + +</div> +<?php include self::$footer; ?> +<?php +/* Flushing is needed by the error handler */ +ob_end_flush(); + +} //try ^^ +catch(Exception $e) +{ + ReportError( + "<style>td.short{width:100%;}</style><table style=\"width:0;\"><tr><th>Code</th>" . "<td class=\"short\">" . $e->getCode() . "</td>" . "</tr><tr><th>In File</th>" . "<td class=\"short\">" . $e->getFile() . "</td>" . "</tr></table>" . $e->getLine() . " - " . $e->getMessage() . "<br/>" + ); +} +?> diff --git a/themes/gttheme/navigation.php b/themes/gttheme/navigation.php new file mode 100644 index 0000000..5765712 --- /dev/null +++ b/themes/gttheme/navigation.php @@ -0,0 +1,24 @@ +<?php +/** + * Bayonet Conent Management System + * Copyright (C) Joseph Hunkeler & Evan O'Connell + * + * Purpose of this software is to allow users to manage their website + * with ease and without needing to have any coding knowledge in order + * to maintain it. Visit www.eodesign.com/cms for any updates or feedback. + */ + ?> +<table border="0" cellspacing="0" class="navLinks"> + <tr> + <td> <a href="index.php">HOME</a> </td> +<?php + + $result = $db->Query("SELECT * FROM `bayonet_navigation` ORDER BY `weight`"); + $nav = $db->Fetch($result); + + foreach ($nav as $link) { + echo '<td> <a href="' . str_replace('&', '&', $link['link']) . '">' . strtoupper($link['title']) . '</a> </td>'; + } + ?> + </tr> +</table> |