diff options
author | Starla Insigna <hatkirby@fourisland.com> | 2010-03-28 09:42:25 -0400 |
---|---|---|
committer | Starla Insigna <hatkirby@fourisland.com> | 2010-03-28 09:42:25 -0400 |
commit | ec5b2499fff7cd30e1c221dbd63b37ef507d41b8 (patch) | |
tree | 33155a39a545717958a45593c84cbbca4051bd4e /includes/layout.php | |
parent | 93d3209110d435d43cc9016aa6cf4acff6028011 (diff) | |
download | fourisland-ec5b2499fff7cd30e1c221dbd63b37ef507d41b8.tar.gz fourisland-ec5b2499fff7cd30e1c221dbd63b37ef507d41b8.tar.bz2 fourisland-ec5b2499fff7cd30e1c221dbd63b37ef507d41b8.zip |
Added April Fools Day joke
Diffstat (limited to 'includes/layout.php')
-rwxr-xr-x | includes/layout.php | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/includes/layout.php b/includes/layout.php index b11c56f..566ce50 100755 --- a/includes/layout.php +++ b/includes/layout.php | |||
@@ -47,7 +47,7 @@ if (isset($hatNav) && is_array($hatNav)) | |||
47 | 47 | ||
48 | foreach ($hatNav as $item) | 48 | foreach ($hatNav as $item) |
49 | { | 49 | { |
50 | $template->adds_block('HATNAV',array('TITLE' => $item['title'], 'URL' => $item['url'], 'ICON' => $item['icon'])); | 50 | $template->adds_block('HATNAV',array('TITLE' => doAprilFoolsDay($item['title']), 'URL' => $item['url'], 'ICON' => $item['icon'])); |
51 | } | 51 | } |
52 | } | 52 | } |
53 | 53 | ||
@@ -76,7 +76,7 @@ $i=0; | |||
76 | while ($getaffs3 = mysql_fetch_array($getaffs2)) | 76 | while ($getaffs3 = mysql_fetch_array($getaffs2)) |
77 | { | 77 | { |
78 | $template->adds_block('AFFILIATES', array( 'COLOR' => getTagColor($i++), | 78 | $template->adds_block('AFFILIATES', array( 'COLOR' => getTagColor($i++), |
79 | 'TITLE' => htmlentities($getaffs3['title']), | 79 | 'TITLE' => doAprilFoolsDay(htmlentities($getaffs3['title'])), |
80 | 'URL' => $getaffs3['url'])); | 80 | 'URL' => $getaffs3['url'])); |
81 | } | 81 | } |
82 | 82 | ||
@@ -86,7 +86,7 @@ $i=0; | |||
86 | while ($getwebps3 = mysql_fetch_array($getwebps2)) | 86 | while ($getwebps3 = mysql_fetch_array($getwebps2)) |
87 | { | 87 | { |
88 | $template->adds_block('WEBPROJS', array( 'COLOR' => getTagColor($i++), | 88 | $template->adds_block('WEBPROJS', array( 'COLOR' => getTagColor($i++), |
89 | 'TITLE' => htmlentities($getwebps3['title']), | 89 | 'TITLE' => doAprilFoolsDay(htmlentities($getwebps3['title'])), |
90 | 'URL' => $getwebps3['url'])); | 90 | 'URL' => $getwebps3['url'])); |
91 | } | 91 | } |
92 | 92 | ||
@@ -235,7 +235,7 @@ $i=0; | |||
235 | while ($getpopular3[$i] = mysql_fetch_array($getpopular2)) | 235 | while ($getpopular3[$i] = mysql_fetch_array($getpopular2)) |
236 | { | 236 | { |
237 | $template->adds_block('POPULAR', array( 'CODED' => $getpopular3[$i]['slug'], | 237 | $template->adds_block('POPULAR', array( 'CODED' => $getpopular3[$i]['slug'], |
238 | 'TITLE' => stripslashes(htmlentities($getpopular3[$i]['title'])))); | 238 | 'TITLE' => doAprilFoolsDay(stripslashes(htmlentities($getpopular3[$i]['title']))))); |
239 | $i++; | 239 | $i++; |
240 | } | 240 | } |
241 | 241 | ||
@@ -278,6 +278,17 @@ $template->add('ME', getRewriteURL()); | |||
278 | 278 | ||
279 | $template->add('CONTENT', $content); | 279 | $template->add('CONTENT', $content); |
280 | 280 | ||
281 | ob_start(); | ||
281 | $template->display(); | 282 | $template->display(); |
283 | $document = ob_get_contents(); | ||
284 | ob_end_clean(); | ||
285 | |||
286 | $document = doAprilFoolsDay($document); | ||
287 | $document = str_replace(doAprilFoolsDay($content), $content, $document); | ||
288 | $document = str_replace("id=\"threem\"", "id=\"fourm\"", $document); | ||
289 | $document = str_replace("id=\"threeipedia\"", "id=\"fouripedia\"", $document); | ||
290 | $document = str_replace('CLASS="threem none threem-none"', 'CLASS="fourm none fourm-none"', $document); | ||
291 | $document = str_replace("threeisland.com/", "fourisland.com/", $document); | ||
292 | echo($document); | ||
282 | 293 | ||
283 | ?> | 294 | ?> |