From 893957c41481a0cd5eb624096337762ffa54ff28 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sun, 9 Aug 2009 09:14:58 -0400 Subject: Created layout 7 The following changes were also made in this revision: * All HTML was changed to XHTML and a !DOCTYPE was included to reflect this * Rewrote quotes tracking system to be much less complicated and actually working * Changed quotes rendering to look more like Chirpy than Rash * Fixed comment textarea bug * Rewrote a ton of CSS so it's not as bloated * Added a JavaScript confirmation when deleting a comment * AJAXified voting on the POTW * AJAXified voting and flagging quotes * AJAXified commenting * AJAXified voting on posts * Added DateFinder back after it was accidentally deleted in Layout 4.5 The following database changes must be performed as soon as possible: * Fix title of NO post (the < is missing the semicolon) * Restore post Frasty Tha Snaman from a backup * Reset "flag" field of all rows in "rash_quotes" to 0 * Remove the "vote" and "flag" columns of "rash_tracking" * Rename the "quote_id" column of "rash_tracking" to "vote" The following external code changes must also be performed as soon as possible: * Add the following line to the end of the // Four Island block in The Fourm's functions.php: require('/svr/www/hatkirby/fourisland/main/includes/specialdates.php'); --- includes/header.php | 47 +++++++++++++++++++++++++---------------------- 1 file changed, 25 insertions(+), 22 deletions(-) (limited to 'includes/header.php') diff --git a/includes/header.php b/includes/header.php index 427ad93..5a6b8e2 100755 --- a/includes/header.php +++ b/includes/header.php @@ -24,31 +24,10 @@ require('headerproc.php'); $headerTemp = new FITemplate('header'); -if (!isset($_GET['emulateTime'])) -{ - if ((date('G') >= 20) || (date('G') <= 6)) - { - $bodyID = 'night'; - } else { - $bodyID = 'day'; - } -} else { - $bodyID = $_GET['emulateTime']; -} - -$headerTemp->add('BODYID',$bodyID); $headerTemp->add('CATEGORY',(isset($pageCategory)) ? $pageCategory : 'none'); $headerTemp->add('AID',(isset($pageAID)) ? $pageAID : 'none'); -$headerTemp->add('BODYTAGS',(isset($bodyTags)) ? $bodyTags : ''); -$headerTemp->add('HEADTAGS',isset($headtags) ? $headtags : ''); $headerTemp->add('EXTRATITLE',isset($title) ? ($title . ' - ') : ''); -$headerTemp->add('PAGEID',(isset($pageID)) ? $pageID : 'none'); -$headerTemp->add(strtoupper($pageCategory) . 'ACTIVE', ' CLASS="active"'); - -if (isset($_POST['message'])) -{ - $headerTemp->adds_block('MESSAGE',array('MSG' => $_POST['message'])); -} +$headerTemp->add(strtoupper($pageCategory) . 'ACTIVE', ' class="active"'); if (($pageCategory != 'fourm') && ($pageCategory != 'wiki')) { @@ -63,6 +42,30 @@ if (($pageCategory != 'fourm') && ($pageCategory != 'wiki')) } } +if (isset($hatNav) && is_array($hatNav)) +{ + $headerTemp->adds_block('CREATE_HATNAV', array('exi'=>1)); + + foreach ($hatNav as $item) + { + $headerTemp->adds_block('HATNAV',array('TITLE' => $item['title'], 'URL' => $item['url'], 'ICON' => $item['icon'])); + } +} + +$headerTemp->add('POTW', getPollOfTheWeek()); + +$gethits = "SELECT * FROM config WHERE name = \"hits\""; +$gethits2 = mysql_query($gethits); +$gethits3 = mysql_fetch_array($gethits2); +$headerTemp->add('HITS', $gethits3['value']); + +$gethits = "SELECT * FROM config WHERE name = \"todayHits\""; +$gethits2 = mysql_query($gethits); +$gethits3 = mysql_fetch_array($gethits2); +$headerTemp->add('TODAY', $gethits3['value']); + +$headerTemp->add('DATEFINDER', sd_dateFinder()); + $headerTemp->display(); ?> -- cgit 1.4.1