summary refs log tree commit diff stats
path: root/includes/layout.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/layout.php')
-rwxr-xr-xincludes/layout.php19
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;
76while ($getaffs3 = mysql_fetch_array($getaffs2)) 76while ($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;
86while ($getwebps3 = mysql_fetch_array($getwebps2)) 86while ($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;
235while ($getpopular3[$i] = mysql_fetch_array($getpopular2)) 235while ($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
281ob_start();
281$template->display(); 282$template->display();
283$document = ob_get_contents();
284ob_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);
292echo($document);
282 293
283?> 294?>