]>
git.immae.eu Git - github/shaarli/Shaarli.git/blob - application/ThemeUtils.php
8 * Utility functions related to theme management.
15 * Get a list of available themes.
17 * It will return the name of any directory present in the template folder.
19 * @param string $tplDir Templates main directory.
21 * @return array List of theme names.
23 public static function getThemes($tplDir)
25 $tplDir = rtrim($tplDir, '/');
26 $allTheme = glob($tplDir.'/*', GLOB_ONLYDIR
);
28 foreach ($allTheme as $value) {
29 $themes[] = str_replace($tplDir.'/', '', $value);