Rev 1116 | Rev 1131 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1116 | Rev 1130 | ||
---|---|---|---|
Line 30... | Line 30... | ||
30 | 30 | ||
31 | # --- |
31 | # --- |
32 | 32 | ||
33 | $do_minify = OIDplus::baseConfig()->getValue('MINIFY_CSS', true); |
33 | $do_minify = OIDplus::baseConfig()->getValue('MINIFY_CSS', true); |
34 | 34 | ||
- | 35 | /** |
|
- | 36 | * @param string $filename |
|
- | 37 | * @return string |
|
- | 38 | */ |
|
35 | function process_file($filename) { |
39 | function process_file(string $filename): string { |
36 | global $do_minify; |
40 | global $do_minify; |
37 | 41 | ||
38 | $filename_min = preg_replace('/\.[^.]+$/', '.min.css', $filename); |
42 | $filename_min = preg_replace('/\.[^.]+$/', '.min.css', $filename); |
39 | $filename_full = $filename; |
43 | $filename_full = $filename; |
40 | 44 | ||
Line 128... | Line 132... | ||
128 | $out .= process_file(__DIR__ . '/userdata/styles/oidplus_add.css'); |
132 | $out .= process_file(__DIR__ . '/userdata/styles/oidplus_add.css'); |
129 | } |
133 | } |
130 | 134 | ||
131 | # --- |
135 | # --- |
132 | 136 | ||
133 | $inv = isset($_GET['invert']) ? $_GET['invert'] : 0; |
137 | $inv = $_GET['invert'] ?? 0; |
134 | if ($inv != 0) { |
138 | if ($inv != 0) { |
135 | $out = invertColorsOfCSS($out); |
139 | $out = invertColorsOfCSS($out); |
136 | } |
140 | } |
137 | 141 | ||
138 | $hs = isset($_GET['h_shift']) ? $_GET['h_shift'] : 0; |
142 | $hs = $_GET['h_shift'] ?? 0; |
139 | $ss = isset($_GET['s_shift']) ? $_GET['s_shift'] : 0; |
143 | $ss = $_GET['s_shift'] ?? 0; |
140 | $vs = isset($_GET['v_shift']) ? $_GET['v_shift'] : 0; |
144 | $vs = $_GET['v_shift'] ?? 0; |
141 | if (($hs != 0) ||($ss != 0) || ($vs != 0)) { |
145 | if (($hs != 0) ||($ss != 0) || ($vs != 0)) { |
142 | $out = changeHueOfCSS($out, $hs, $ss, $vs); |
146 | $out = changeHueOfCSS($out, $hs, $ss, $vs); |
143 | } |
147 | } |
144 | 148 | ||
145 | # --- |
149 | # --- |