-
-
Notifications
You must be signed in to change notification settings - Fork 368
/
forum-template.dd
80 lines (71 loc) · 1.98 KB
/
forum-template.dd
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
70
71
72
73
74
75
76
77
78
79
80
Ddoc
$(CONTENT)
Macros:
STATIC = <?static:/dlang.org/$1?>
ROOT=https://dlang.org
ROOT_DIR=https://dlang.org/
BODYCLASS = forum <?bodyclass?>
SEARCHDEFAULT_FORUM = selected
LAYOUT_SUFFIX=
<script type="text/javascript" src="<?static:/js/dfeed.js?>"></script>
_=
TITLE=
FULL_TITLE=<?title?> - D Programming Language Discussion Forum
PAGE_TOOLS=$(DIVCID smallprint, tools,<?tools?>)
EXTRA_HEADERS=
<?extraheaders?>
<link rel="stylesheet" href="<?static:/css/dfeed.css?>">
_=
EXTRA_JS=<?extrajs?>
HYPHENATE=
COMMON_SCRIPTS_DLANG=
COMMON_HEADERS_DLANG=
FAVICON = <?static:/favicon.ico?>
_=
FOOTER=
$(DIVID footernav,
<a href="#top" title="Jump to the top of the page">Top</a> |
$(A /, Forum index) |
$(A /help#about, About this forum)
)
$(DIVCID smallprint, copyright, $(COPYRIGHT_FOUNDATION))
_=
SUBNAV=
$(SUBNAV_TEMPLATE
$(DIVC head,
$(H2 Forums)
$(P $(LINK2 /, Forum Index))
)
$(UL
$(LI <?category1?> $(UL
$(LI $(LINK2 <?url1?>, <?title1?>))
$(LI $(LINK2 <?url2?>, <?title2?>))
))
$(LI <?category2?> $(UL
$(LI $(LINK2 <?url1?>, <?title1?>))
$(LI $(LINK2 <?url2?>, <?title2?>))
))
)
)
_=
LAYOUT=$3
_=
MIDRULE=
_=
SEARCH_BOX=
$(DIVID search-box,
<form method="get" action="/search">
$(SPANID search-query, <input id="q" name="q" placeholder="Search">)$(SPANID search-dropdown, $(SPANC helper,
<select id="search-scope" name="scope" size="1">
<option value="dlang.org">Entire Site</option>
<option $(SEARCHDEFAULT_SPEC) value="dlang.org/spec">Language</option>
<option $(SEARCHDEFAULT_PHOBOS) value="dlang.org/phobos">Library</option>
<?search-options?>
</select>
))$(SPANID search-submit, <button type="submit"><i class="fa fa-search"></i><span>go</span></button>)
</form>
)
_=
CONTENT=
$(DIVID forum-content,<?content?>)
_=