Rev 1211 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1211 | Rev 1212 | ||
---|---|---|---|
Line 26... | Line 26... | ||
26 | abstract class OIDplusDesignPlugin extends OIDplusPlugin { |
26 | abstract class OIDplusDesignPlugin extends OIDplusPlugin { |
27 | 27 | ||
28 | /** |
28 | /** |
29 | * @return string |
29 | * @return string |
30 | */ |
30 | */ |
- | 31 | public abstract function id(): string; |
|
- | 32 | ||
- | 33 | /** |
|
- | 34 | * @return string |
|
- | 35 | */ |
|
31 | public function getThemeColor(): string { |
36 | public function getThemeColor(): string { |
32 | return ''; // no theme color |
37 | return ''; // no theme color |
33 | } |
38 | } |
34 | 39 | ||
35 | /** |
40 | /** |
36 | * @return bool |
41 | * @return bool |
37 | * @throws OIDplusException |
42 | * @throws OIDplusException |
38 | */ |
43 | */ |
39 | public final function isActive(): bool { |
44 | public final function isActive(): bool { |
40 | return basename($this->getPluginDirectory()) === OIDplus::config()->getValue('design'); |
45 | return $this->id() == OIDplus::config()->getValue('design'); |
41 | } |
46 | } |
42 | 47 | ||
43 | } |
48 | } |