diff options
-rw-r--r-- | templates/7.php | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/templates/7.php b/templates/7.php index 8450eca7c..0e2355fd3 100644 --- a/templates/7.php +++ b/templates/7.php @@ -35,20 +35,3 @@ function style($app, $file) { } } -/** - * Shortcut for HTML imports - * @param string $app the appname - * @param string|string[] $file the path relative to the app's component folder, - * if an array is given it will add all components - */ -function component($app, $file) { - if(is_array($file)) { - foreach($file as $f) { - $url = link_to($app, 'component/' . $f . '.html'); - \OCP\Util::addHeader('link', array('rel' => 'import', 'href' => $url)); - } - } else { - $url = link_to($app, 'component/' . $file . '.html'); - \OCP\Util::addHeader('link', array('rel' => 'import', 'href' => $url)); - } -}
\ No newline at end of file |