-
Notifications
You must be signed in to change notification settings - Fork 3
/
tag.php
48 lines (32 loc) · 1.01 KB
/
tag.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
<?php
define('TAB_ID', 5);
define('PAGE_ID', 20);
require_once "global.php";
$tpl->Init();
$tpl->AddGeneric('head-init');
$tpl->AddIncludeSet('generic');
$tpl->WriteIncludeFiles();
$tpl->AddGeneric('head-overrides-generic');
$tpl->AddGeneric('head-bottom');
$tpl->AddGeneric('generic-top');
$tpl->Write('<div id="column1" class="column">');
$newslist = new Template('comp-sidefr');
if (isset($_GET['archiveMode'])) {
$newslist->SetParam('mode', 'archive');
} else if (isset($_GET['category']) && is_numeric($_GET['category'])) {
$newslist->SetParam('mode', 'category');
$newslist->SetParam('category_id', filter($_GET['category']));
} else {
$newslist->SetParam('mode', 'recent');
}
$tpl->AddTemplate($newslist);
$tpl->Write('</div>');
$tpl->Write('<div id="column2" class="column">');
$article = new Template('comp-tagsearch');
$tpl->AddTemplate($article);
$tpl->Write('</div>');
$tpl->AddGeneric('generic-column3');
$tpl->AddGeneric('footer');
$tpl->SetParam('body_id', 'news');
$tpl->Output();
?>