diff --git a/core/SSViewer.php b/core/SSViewer.php index 818c92398..4e5f8194f 100755 --- a/core/SSViewer.php +++ b/core/SSViewer.php @@ -132,6 +132,15 @@ class SSViewer { return self::$current_theme; } + /** + * Returns the path to the theme folder + * + * @return String + */ + static function get_theme_folder() { + return self::current_theme() ? THEMES_DIR . "/" . self::current_theme() : project(); + } + /** * @return string */