summaryrefslogtreecommitdiffstats
path: root/apps/files/templates/index.php
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-05-08 16:24:24 +0200
committerVincent Petry <pvince81@owncloud.com>2014-05-15 17:51:04 +0200
commit88ebb15f1d91b82022e02903ab73338065e223b9 (patch)
treefab7c807dc21209aa00980701107e26d695dba74 /apps/files/templates/index.php
parent9ccb3279dd09b7042ab07c936a4c04127282476f (diff)
downloadnextcloud-server-88ebb15f1d91b82022e02903ab73338065e223b9.tar.gz
nextcloud-server-88ebb15f1d91b82022e02903ab73338065e223b9.zip
Added navigation manager in files app for the sidebar
Apps can now register navigation items into the sidebar of the files app. For every sidebar item there is a container. The container's content is rendered based on the script name given at registration time.
Diffstat (limited to 'apps/files/templates/index.php')
-rw-r--r--apps/files/templates/index.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/files/templates/index.php b/apps/files/templates/index.php
index 9ed294e6b6f..335e2b2acd7 100644
--- a/apps/files/templates/index.php
+++ b/apps/files/templates/index.php
@@ -1,6 +1,7 @@
<?php /** @var $l OC_L10N */ ?>
<?php $_['appNavigation']->printPage(); ?>
<div id="app-content">
+<div id="app-content-files">
<div id="controls">
<div class="actions creatable hidden">
<?php if(!isset($_['dirToken'])):?>
@@ -110,7 +111,12 @@
<?php p($l->t('Current scanning'));?> <span id='scan-current'></span>
</p>
</div>
-
+</div><!-- closing app-content-files -->
+ <?php foreach ($_['appContents'] as $content) { ?>
+ <div id="app-content-<?php p($content['appname']) ?>" class="hidden">
+ <?php print_unescaped($content['content']) ?>
+ </div>
+ <?php } ?>
</div><!-- closing app-content -->
<!-- config hints for javascript -->