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