This repository has been archived by the owner on Aug 23, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
style.php
102 lines (89 loc) · 2.21 KB
/
style.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
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
96
97
98
99
100
101
102
<?php
header("Content-Type: text/css");
$config_atkroot = "./";
include_once("atk.inc");
// dummy namespace. if we don't use dummy here, the session is corrupted
// because style.php is loaded between two dispatch.php calls.
atksession("dummy");
atksecure();
include_once("./theme.inc");
?>
BODY
{
font-family: <?php echo $g_theme["FontFamily"]; ?>;
font-size: <?php echo $g_theme["FontSize"]; ?>pt;
font-weight: <?php echo $g_theme["FontWeight"]; ?>;
background-color: <?php echo $g_theme["BgColor"]; ?>;
color: <?php echo $g_theme["FgColor"]; ?>;
<?php
if ($g_theme["BgUrl"] != "") {
echo "background: url(" . $g_theme["BgUrl"] . ");\n";
}
?>
}
A:link
{
color: <?php echo $g_theme["LinkColor"]; ?>;
}
A:visited
{
color: <?php echo $g_theme["VisitedColor"]; ?>;
}
A:active
{
color: <?php echo $g_theme["VisitedColor"]; ?>;
}
A:hover
{
color: <?php echo $g_theme["HoverColor"]; ?>;
}
.block
{
font-family: <?php echo $g_theme["BlockFontFamily"]; ?>;
font-size: <?php echo $g_theme["BlockFontSize"]; ?>pt;
font-weight: <?php echo $g_theme["BlockFontWeight"]; ?>;
color: <?php echo $g_theme["BlockFgColor"]; ?>;
}
.tableheader
{
font-family: <?php echo $g_theme["TableHeaderFontFamily"]; ?>;
font-size: <?php echo $g_theme["TableHeaderFontSize"]; ?>pt;
font-weight: <?php echo $g_theme["TableHeaderFontWeight"]; ?>;
background-color: <?php echo $g_theme["TableHeaderBgColor"]; ?>;
color: <?php echo $g_theme["TableHeaderFgColor"]; ?>;
}
.tableheader_today
{
font-family: <?php echo $g_theme["TableHeaderFontFamily"]; ?>;
font-size: <?php echo $g_theme["TableHeaderFontSize"]; ?>pt;
font-weight: <?php echo $g_theme["TableHeaderFontWeight"]; ?>;
background-color: #FF0000;
color: #FFFFFF;
}
.table
{
font-family: <?php echo $g_theme["TableFontFamily"]; ?>;
font-size: <?php echo $g_theme["TableFontSize"]; ?>pt;
font-weight: <?php echo $g_theme["TableFontWeight"]; ?>;
color: <?php echo $g_theme["TableFgColor"]; ?>;
}
.backtable
{
background-color: <?php echo $g_theme["BorderColor"]; ?>;
}
.row1
{
<?php
if (isset($g_theme["RowColor1"])) {
?>
background-color: <?php echo $g_theme["RowColor1"]; ?>;
<?php } ?>
}
.row2
{
<?php
if (isset($g_theme["RowColor2"])) {
?>
background-color: <?php echo $g_theme["RowColor2"]; ?>;
<?php } ?>
}