lib/Service/TemplatesService.php 1 location
|
@@ 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 |
|
/** |
lib/Service/ThemesService.php 1 location
|
@@ 71-83 (lines=13) @@
|
| 68 |
|
* |
| 69 |
|
* @return array |
| 70 |
|
*/ |
| 71 |
|
public function getThemesList($customOnly = false) { |
| 72 |
|
$themes = []; |
| 73 |
|
if ($customOnly !== true) { |
| 74 |
|
$themes = self::THEMES; |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
$customs = json_decode($this->configService->getAppValue(ConfigService::CUSTOM_THEMES), true); |
| 78 |
|
if ($customs !== null) { |
| 79 |
|
$themes = array_merge($themes, $customs); |
| 80 |
|
} |
| 81 |
|
|
| 82 |
|
return $themes; |
| 83 |
|
} |
| 84 |
|
|
| 85 |
|
|
| 86 |
|
/** |