context-base.lmx /size: 3804 b    last modification: 2020-07-01 14:35
1
<?xml
version
=
"
1.0
"
encoding
=
"
UTF-8
"
?>
2 3
<!DOCTYPE
html
PUBLIC
"
-//W3C//DTD XHTML 1.0 Strict//EN
"
"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
"
>
4 5
<!--
compare
with
lmx
framework
variant
-->
6 7
<!--
8
filename
:
context-base.xml
9
comment
:
companion
to
mtx-server-ctx-startup.tex
10
author
:
Hans
Hagen,
PRAGMA-ADE,
Hasselt
NL
11
copyright:
PRAGMA
ADE
/
ConTeXt
Development
Team
12
license
:
see
context
related
readme
files
13
-->
14 15
<
html
xmlns
=
"
http://www.w3.org/1999/xhtml
"
lang
=
"
en
"
xml:
lang
=
"
en
"
>
16
<
head
>
17
<
title
>
<?lua
inject
(
variables
.
title
)
?>
</
title
>
18
<
meta
http-equiv
=
"
Content-Type
"
content
=
"
text/html; charset=UTF-8
"
/>
19
<?lua
if
variables
.
refreshtime
and
(
tonumber
(
variables
.
refreshtime
)
or
0
)
>
0
and
variables
.
refreshurl
then
?>
20
<
meta
http-equiv
=
'
refresh
'
content
=
"
<?lua inject(variables.refreshtime) ?>; <?lua inject(variables.refreshurl) ?>
"
/>
21
<?lua
end
?>
22
<
style
type
=
"
text/css
"
>
23
<?lmx-include
context.css strip
?>
24
</
style
>
25
<
style
type
=
"
text/css
"
>
26
<?lua
inject
(
variables
.
cssdata
)
?>
27
</
style
>
28
<?lua
if
variables
.
javascriptfiles
then
for
k
,
v
in
ipairs
(
variables
.
javascriptfiles
)
do
?>
29
<script src="<?lua inject(v) ?>
">
</script>
30
<?lua
end
end
?>
31
<?lua
if
variables
.
styles
then
for
k
,
v
in
ipairs
(
variables
.
styles
)
do
?>
32
<
link
rel
=
"
StyleSheet
"
href
=
"
<?lua inject(v) ?>
"
type
=
"
text/css
"
/>
33
<?lua
end
end
?>
34
</
head
>
35
<?lua
if
variables
.
refreshtime
and
(
tonumber
(
variables
.
refreshtime
)
or
0
)
>
0
and
variables
.
refreshurl
then
?>
36
<!--
[if
IE]>
37
<script
type="text/javascript">
38
setTimeout("document.location='<?lua
inject(variables.refreshurl)
?>'",
1000*<?lua
inject(variables.refreshtime)
?>);
39
</script>
40
<![endif]
-->
41
<?lua
end
?>
42
<
body
>
43
<?lua
if
variables
.
action
then
?>
44
<?lua
if
variables
.
formmethod
=
=
"
get
"
then
?>
45
<
form
action
=
"
<?lua inject(variables.action) ?>
"
method
=
"
get
"
>
46
<?lua
else
?>
47
<
form
action
=
"
<?lua inject(variables.action) ?>
"
enctype
=
"
multi-part/form-data
"
method
=
"
post
"
>
48
<?lua
end
?>
49
<?lua
end
?>
50
<
div
id
=
"
top
"
>
<?lua
if
variables
.
title
then
?>
51
<
div
id
=
"
top-one
"
>
52
<
div
id
=
"
top-two
"
>
<?lua
53
inject
(
variables
.
title
)
54
?>
</
div
>
55
</
div
>
56
<?lua
end
?>
</
div
>
57
<
div
id
=
"
bottom
"
>
<?lua
if
variables
.
bottomtext
then
?>
58
<
div
id
=
"
bottom-one
"
>
59
<
div
id
=
"
bottom-two
"
>
<?lua
60
inject
(
variables
.
bottomtext
)
61
?>
</
div
>
62
</
div
>
63
<?lua
end
?>
</
div
>
64
<
div
id
=
"
left
"
>
<?lua
if
variables
.
lefttext
then
?>
65
<
div
id
=
"
left-one
"
>
66
<
div
id
=
"
left-two
"
>
<?lua
67
inject
(
variables
.
lefttext
)
68
?>
</
div
>
69
</
div
>
70
<?lua
end
?>
</
div
>
71
<
div
id
=
"
right
"
>
<?lua
if
variables
.
righttext
then
?>
72
<
div
id
=
"
right-safari
"
>
73
<
div
id
=
"
right-one
"
>
74
<
div
id
=
"
right-two
"
>
75
<
div
id
=
"
right-three
"
>
76
<
div
id
=
"
right-four
"
>
77
<
div
id
=
"
right-five
"
>
<?lua
78
inject
(
variables
.
righttext
)
79
?>
</
div
>
80
</
div
>
81
</
div
>
82
</
div
>
83
</
div
>
84
</
div
>
85
<?lua
end
?>
</
div
>
86
<
div
id
=
"
main
"
>
87
<
div
id
=
'
main-settings
'
>
88
<?lua
inject
(
variables
.
maintext
)
?>
89
</
div
>
90
</
div
>
91
<?lua
if
variables
.
action
then
?>
92
</
form
>
93
<?lua
end
?>
94
</
body
>
95
</
html
>
96