summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-12-17 11:45:59 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2014-12-17 11:45:59 +0100
commit63255263b4afc6201cd551e99a0e07368f5f25f9 (patch)
tree226ee6c743628baae668a08edee9fc765fd6c8d8 /templates
parentaf95556560f2474ca504218c0a18eef267e7cd16 (diff)
add client side plugins
Diffstat (limited to 'templates')
-rw-r--r--templates/index.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/index.php b/templates/index.php
index 7862aab77..e732dac59 100644
--- a/templates/index.php
+++ b/templates/index.php
@@ -1,4 +1,6 @@
<?php
+use OCA\News\Plugin\Client\Plugin;
+
script('news', [
'vendor/es6-shim/es6-shim.min',
'vendor/angular/angular.min',
@@ -35,6 +37,14 @@ if (defined('DEBUG') && DEBUG === true) {
script('news', 'build/app.min');
}
+
+// load plugin scripts and styles
+foreach (Plugin::getStyles() as $appName => $fileName) {
+ style($appName, $fileName);
+}
+foreach (Plugin::getScripts() as $appName => $fileName) {
+ script($appName, $fileName);
+}
?>
<div id="app" ng-app="News" ng-cloak ng-strict-di