summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/context-base.lmx
blob: af8c3c1270903f788ad8d608a1ebe7fdc40daaa0 (plain)
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<!-- compare with lmx framework variant -->

<!--
    filename : context-base.xml
    comment  : companion to mtx-server-ctx-startup.tex
    author   : Hans Hagen, PRAGMA-ADE, Hasselt NL
    copyright: PRAGMA ADE / ConTeXt Development Team
    license  : see context related readme files
-->

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
        <title><?lua inject(variables.title) ?></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <?lua if variables.refreshtime and (tonumber(variables.refreshtime) or 0) > 0 and variables.refreshurl then ?>
            <meta http-equiv='refresh' content="<?lua inject(variables.refreshtime) ?>; <?lua inject(variables.refreshurl) ?>"/>
        <?lua end ?>
        <style type="text/css">
            <?lmx-include context.css strip ?>
        </style>
        <style type="text/css">
            <?lua inject(variables.cssdata) ?>
        </style>
        <?lua if variables.javascriptfiles then for k, v in ipairs(variables.javascriptfiles) do ?>
            <script src="<?lua inject(v) ?>"></script>
        <?lua end end ?>
        <?lua if variables.styles then for k, v in ipairs(variables.styles) do ?>
            <link rel="StyleSheet" href="<?lua inject(v) ?>" type="text/css" />
        <?lua end end ?>
    </head>
    <?lua if variables.refreshtime and (tonumber(variables.refreshtime) or 0) > 0 and variables.refreshurl then ?>
        <!--[if IE]>
            <script type="text/javascript">
                setTimeout("document.location='<?lua inject(variables.refreshurl) ?>'", 1000*<?lua inject(variables.refreshtime) ?>);
            </script>
        <![endif]-->
    <?lua end ?>
    <body>
    <?lua if variables.action then ?>
        <?lua if variables.formmethod == "get" then ?>
            <form action="<?lua inject(variables.action) ?>" method="get">
        <?lua else ?>
            <form action="<?lua inject(variables.action) ?>" enctype="multi-part/form-data" method="post">
        <?lua end ?>
    <?lua end ?>
        <div id="top"><?lua if variables.title then ?>
            <div id="top-one">
                <div id="top-two"><?lua
                    inject(variables.title)
                ?> </div>
            </div>
        <?lua end ?></div>
        <div id="bottom"><?lua if variables.bottomtext then ?>
            <div id="bottom-one">
                <div id="bottom-two"><?lua
                    inject(variables.bottomtext)
                ?></div>
            </div>
        <?lua end ?></div>
        <div id="left"><?lua if variables.lefttext then ?>
            <div id="left-one">
                <div id="left-two"><?lua
                    inject(variables.lefttext)
                ?></div>
            </div>
        <?lua end ?></div>
        <div id="right"><?lua if variables.righttext then ?>
            <div id="right-safari">
                <div id="right-one">
                    <div id="right-two">
                        <div id="right-three">
                            <div id="right-four">
                                <div id="right-five"><?lua
                                    inject(variables.righttext)
                                ?></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        <?lua end ?></div>
        <div id="main">
            <div id='main-settings'>
                <?lua inject(variables.maintext) ?>
            </div>
        </div>
    <?lua if variables.action then ?>
        </form>
    <?lua end ?>
    </body>
</html>