]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/Utils.php
Change templates set through administration UI
[github/shaarli/Shaarli.git] / application / Utils.php
index 35d652241bb6a5a4c42c7ded7b7381be48dc7f15..7556d3c9a9a46c7011fc68d659d7752531907790 100644 (file)
@@ -270,3 +270,13 @@ function normalize_spaces($string)
 {
     return preg_replace('/\s{2,}/', ' ', trim($string));
 }
+
+function getAllTheme($raintpl_tpl)
+{
+    $allTheme = glob($raintpl_tpl.'/*', GLOB_ONLYDIR);
+    foreach ($allTheme as $value) {
+        $themes[] = str_replace($raintpl_tpl.'/', '', $value);
+    }
+
+    return $themes;
+}