Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.

Commit

Permalink
dont backport component
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernhard Posselt committed Sep 22, 2014
1 parent cfd8513 commit d2fd028
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions templates/7.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

0 comments on commit d2fd028

Please sign in to comment.