diff options
author | Starla Insigna <hatkirby@fourisland.com> | 2009-08-09 09:14:58 -0400 |
---|---|---|
committer | Starla Insigna <hatkirby@fourisland.com> | 2009-08-09 09:14:58 -0400 |
commit | 893957c41481a0cd5eb624096337762ffa54ff28 (patch) | |
tree | 09d2487f8add5a6281e3482a471abf21faa4f819 /includes/header.php | |
parent | d27a3784c81f0c582e43655509e806978b7e65e4 (diff) | |
download | fourisland-893957c41481a0cd5eb624096337762ffa54ff28.tar.gz fourisland-893957c41481a0cd5eb624096337762ffa54ff28.tar.bz2 fourisland-893957c41481a0cd5eb624096337762ffa54ff28.zip |
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 <!DOCTYPE> 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');
Diffstat (limited to 'includes/header.php')
-rwxr-xr-x | includes/header.php | 47 |
1 files changed, 25 insertions, 22 deletions
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'); | |||
24 | 24 | ||
25 | $headerTemp = new FITemplate('header'); | 25 | $headerTemp = new FITemplate('header'); |
26 | 26 | ||
27 | if (!isset($_GET['emulateTime'])) | ||
28 | { | ||
29 | if ((date('G') >= 20) || (date('G') <= 6)) | ||
30 | { | ||
31 | $bodyID = 'night'; | ||
32 | } else { | ||
33 | $bodyID = 'day'; | ||
34 | } | ||
35 | } else { | ||
36 | $bodyID = $_GET['emulateTime']; | ||
37 | } | ||
38 | |||
39 | $headerTemp->add('BODYID',$bodyID); | ||
40 | $headerTemp->add('CATEGORY',(isset($pageCategory)) ? $pageCategory : 'none'); | 27 | $headerTemp->add('CATEGORY',(isset($pageCategory)) ? $pageCategory : 'none'); |
41 | $headerTemp->add('AID',(isset($pageAID)) ? $pageAID : 'none'); | 28 | $headerTemp->add('AID',(isset($pageAID)) ? $pageAID : 'none'); |
42 | $headerTemp->add('BODYTAGS',(isset($bodyTags)) ? $bodyTags : ''); | ||
43 | $headerTemp->add('HEADTAGS',isset($headtags) ? $headtags : ''); | ||
44 | $headerTemp->add('EXTRATITLE',isset($title) ? ($title . ' - ') : ''); | 29 | $headerTemp->add('EXTRATITLE',isset($title) ? ($title . ' - ') : ''); |
45 | $headerTemp->add('PAGEID',(isset($pageID)) ? $pageID : 'none'); | 30 | $headerTemp->add(strtoupper($pageCategory) . 'ACTIVE', ' class="active"'); |
46 | $headerTemp->add(strtoupper($pageCategory) . 'ACTIVE', ' CLASS="active"'); | ||
47 | |||
48 | if (isset($_POST['message'])) | ||
49 | { | ||
50 | $headerTemp->adds_block('MESSAGE',array('MSG' => $_POST['message'])); | ||
51 | } | ||
52 | 31 | ||
53 | if (($pageCategory != 'fourm') && ($pageCategory != 'wiki')) | 32 | if (($pageCategory != 'fourm') && ($pageCategory != 'wiki')) |
54 | { | 33 | { |
@@ -63,6 +42,30 @@ if (($pageCategory != 'fourm') && ($pageCategory != 'wiki')) | |||
63 | } | 42 | } |
64 | } | 43 | } |
65 | 44 | ||
45 | if (isset($hatNav) && is_array($hatNav)) | ||
46 | { | ||
47 | $headerTemp->adds_block('CREATE_HATNAV', array('exi'=>1)); | ||
48 | |||
49 | foreach ($hatNav as $item) | ||
50 | { | ||
51 | $headerTemp->adds_block('HATNAV',array('TITLE' => $item['title'], 'URL' => $item['url'], 'ICON' => $item['icon'])); | ||
52 | } | ||
53 | } | ||
54 | |||
55 | $headerTemp->add('POTW', getPollOfTheWeek()); | ||
56 | |||
57 | $gethits = "SELECT * FROM config WHERE name = \"hits\""; | ||
58 | $gethits2 = mysql_query($gethits); | ||
59 | $gethits3 = mysql_fetch_array($gethits2); | ||
60 | $headerTemp->add('HITS', $gethits3['value']); | ||
61 | |||
62 | $gethits = "SELECT * FROM config WHERE name = \"todayHits\""; | ||
63 | $gethits2 = mysql_query($gethits); | ||
64 | $gethits3 = mysql_fetch_array($gethits2); | ||
65 | $headerTemp->add('TODAY', $gethits3['value']); | ||
66 | |||
67 | $headerTemp->add('DATEFINDER', sd_dateFinder()); | ||
68 | |||
66 | $headerTemp->display(); | 69 | $headerTemp->display(); |
67 | 70 | ||
68 | ?> | 71 | ?> |