summaryrefslogtreecommitdiffstats
path: root/templates/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/index.php')
-rw-r--r--templates/index.php73
1 files changed, 73 insertions, 0 deletions
diff --git a/templates/index.php b/templates/index.php
new file mode 100644
index 000000000..3d277dbbf
--- /dev/null
+++ b/templates/index.php
@@ -0,0 +1,73 @@
+<?php
+// owncloud 7 backported style sheets
+$version = \OCP\Util::getVersion();
+
+if ($version[0] === 7 && $version[1] === 0 && $version[2] < 3) {
+ require_once __DIR__ . '/7.php';
+}
+
+if($version[0] > 7 && $version[1] <= 8) {
+ style('news', '7');
+}
+
+script('news', [
+ 'vendor/es6-shim/es6-shim.min',
+ 'vendor/angular/angular.min',
+ 'vendor/angular-route/angular-route.min',
+ 'vendor/angular-sanitize/angular-sanitize.min',
+ 'vendor/momentjs/min/moment-with-locales.min',
+ 'build/app',
+]);
+
+style('news', [
+ 'app',
+ 'navigation',
+ 'content',
+ 'settings',
+ 'custom'
+]);
+?>
+
+
+<div id="app" ng-app="News" ng-cloak ng-controller="AppController as App">
+
+ <div id="global-loading" class="icon-loading" ng-show="App.loading.isLoading('global')"></div>
+
+ <!-- navigation -->
+ <div id="app-navigation" ng-controller="NavigationController as Navigation" ng-hide="App.loading.isLoading('global')">
+ <news-title-unread-count unread-count="{{ Navigation.getUnreadCount() }}"></news-title-unread-count>
+
+ <ul class="with-icon" data-id="0" news-droppable>
+ <?php print_unescaped($this->inc('part.navigation.addfeed')) ?>
+ <?php print_unescaped($this->inc('part.navigation.addfolder')) ?>
+ <?php print_unescaped($this->inc('part.navigation.unreadfeed')) ?>
+ <?php print_unescaped($this->inc('part.navigation.starredfeed')) ?>
+ <?php print_unescaped($this->inc('part.navigation.feed', ['folderId' => '0'])) ?>
+ <?php print_unescaped($this->inc('part.navigation.folder')) ?>
+ </ul>
+
+ <!-- settings -->
+ <div id="app-settings" ng-controller="SettingsController as Settings">
+ <?php print_unescaped($this->inc('part.settings')) ?>
+ </div>
+ </div>
+
+ <!-- content -->
+ <script type="text/ng-template" id="content.html"><?php print_unescaped($this->inc('part.content')) ?></script>
+
+ <div id="app-content"
+ ng-class="{
+ 'loading-content': App.loading.isLoading('content') && !App.loading.isLoading('global'),
+ 'first-run': App.isFirstRun()
+ }"
+ tabindex="-1"
+ news-pull-to-refresh>
+ <div id="app-content-wrapper"
+ ng-class="{'autopaging': App.loading.isLoading('autopaging')}"
+ ng-hide="App.loading.isLoading('global')"
+ ng-view
+ news-scroll="#app-content"
+ news-scroll-enabled-mark-read="Content.markReadEnabled()"
+ news-scroll-auto-page="Content.autoPage()"
+ news-scroll-mark-read="Content.scrollRead(itemIds)"></div>
+</div>