aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/template
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/template')
-rw-r--r--lib/private/template/functions.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/private/template/functions.php b/lib/private/template/functions.php
index 3cbf0d9748f..09db011e748 100644
--- a/lib/private/template/functions.php
+++ b/lib/private/template/functions.php
@@ -24,6 +24,24 @@ function print_unescaped($string) {
}
/**
+ * Shortcut for adding scripts to a page
+ * @param string $app the appname
+ * @param string $file the filename
+ */
+function script($app, $file) {
+ OC_Util::addScript($app, $file);
+}
+
+/**
+ * Shortcut for adding styles to a page
+ * @param string $app the appname
+ * @param string $file the filename
+ */
+function style($app, $file) {
+ OC_Util::addStyle($app, $file);
+}
+
+/**
* make OC_Helper::linkTo available as a simple function
* @param string $app app
* @param string $file file