add shortcut functions for style and script
This commit is contained in:
parent
6ca2ba6fde
commit
7e4d244200
|
@ -23,6 +23,24 @@ function print_unescaped($string) {
|
||||||
print($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
|
* make OC_Helper::linkTo available as a simple function
|
||||||
* @param string $app app
|
* @param string $app app
|
||||||
|
|
Loading…
Reference in New Issue