summaryrefslogtreecommitdiffstats
path: root/templates/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/index.php')
-rw-r--r--templates/index.php23
1 files changed, 14 insertions, 9 deletions
diff --git a/templates/index.php b/templates/index.php
index 561bf361b..1f661979c 100644
--- a/templates/index.php
+++ b/templates/index.php
@@ -1,14 +1,19 @@
<?php
+use OCA\News\Plugin\Client\Plugin;
+
script('news', 'nextcloud-news-main');
-style('news', 'navigation');
-style('news', 'explore');
-style('news', 'admin');
-style('news', 'app');
-style('news', 'content');
-style('news', 'custom');
-style('news', 'mobile');
-style('news', 'settings');
-style('news', 'shortcuts');
+
+// load plugin scripts and styles
+foreach (Plugin::getStyles() as $appName => $fileName) {
+ style($appName, $fileName);
+}
+foreach (Plugin::getScripts() as $appName => $fileName) {
+ script($appName, $fileName);
+}
+
+print_unescaped($this->inc('part.content.warnings'))
+
?>
+
<div id="q-app"></div>