@@ 76-88 (lines=13) @@ | ||
73 | * |
|
74 | * @return array |
|
75 | */ |
|
76 | public function getThemesList($customOnly = false) { |
|
77 | $themes = []; |
|
78 | if ($customOnly !== true) { |
|
79 | $themes = self::THEMES; |
|
80 | } |
|
81 | ||
82 | $customs = json_decode($this->configService->getAppValue(ConfigService::CUSTOM_THEMES), true); |
|
83 | if ($customs !== null) { |
|
84 | $themes = array_merge($themes, $customs); |
|
85 | } |
|
86 | ||
87 | return $themes; |
|
88 | } |
|
89 | ||
90 | ||
91 | /** |
@@ 90-102 (lines=13) @@ | ||
87 | * |
|
88 | * @return array |
|
89 | */ |
|
90 | public function getTemplatesList($customOnly = false) { |
|
91 | $templates = []; |
|
92 | if ($customOnly !== true) { |
|
93 | $templates = self::TEMPLATES; |
|
94 | } |
|
95 | ||
96 | $customs = json_decode($this->configService->getAppValue(ConfigService::CUSTOM_TEMPLATES), true); |
|
97 | if ($customs !== null) { |
|
98 | $templates = array_merge($templates, $customs); |
|
99 | } |
|
100 | ||
101 | return $templates; |
|
102 | } |
|
103 | ||
104 | ||
105 | /** |