forked from ReimuHakurei/phpPgAdmin
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathThemes.php
More file actions
27 lines (23 loc) · 549 Bytes
/
Themes.php
File metadata and controls
27 lines (23 loc) · 549 Bytes
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
<?php
declare(strict_types=1);
namespace PhpPgAdmin;
final class Themes
{
/**
* @return array<string, string>
*/
public static function available(): array
{
return [
'bootstrap' => 'Bootstrap3',
'cappuccino' => 'Cappuccino',
'dark' => 'Dark',
'default' => 'Default',
'gotar' => 'Blue/Green',
];
}
public static function cssExists(string $theme): bool
{
return is_file(dirname(__DIR__) . "/themes/{$theme}/global.css");
}
}