-
Notifications
You must be signed in to change notification settings - Fork 0
/
main_index.php
69 lines (42 loc) · 1.29 KB
/
main_index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
/*
@ OSKARR (beta)
@
@ main_index
@
@ After the producer(s) have generated the result, they are sent
@ in an array to a template (e.g.: main_index about_index).
@ Naming convention: PAGENAME_PAGEGROUP
@ Using the data from the input (array), the parsed page is sent.
*/
function build_page($pageData){
echo "<link href=\"" . dirname($_SERVER['SCRIPT_NAME']) . "/engine/page/{$pageData['pageAddress']}/product/{$pageData['styles']}\" rel=\"stylesheet\" type=\"text/css\" />
<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\"> <!-- Post Table -->
<tr>
<td style=\"text-align: center; vertical-align: top; width: 600px;\"> <!-- Title -->
<div id=\"channel_title\">
<span>Channels</span>
</div>
</td>
</tr>
<tr>
<td>
<div id=\"channel_stats\">
<span>{$pageData['statistics']['channels']} Channels</span>
</div>
</td>
</tr>
<tr>
<td style=\"text-align: center; vertical-align: top; width: 600px;\">
<div id=\"channel_list\">
<p>";
foreach($pageData['channels'] as $channel){
echo "<a href=\"?channel={$channel['address']}\">/{$channel['name']}/</a>";
}
echo"</p>
</div>
</td>
</tr>
</table>";
}
?>