Skip to content
Snippets Groups Projects
Commit 7e4d2442 authored by Bernhard Posselt's avatar Bernhard Posselt
Browse files

add shortcut functions for style and script

parent 6ca2ba6f
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,24 @@ function print_unescaped($string) {
print($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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment