index.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php /** @var \OCP\IL10N $l */ ?>
  2. <?php $_['appNavigation']->printPage(); ?>
  3. <div id="app-content" tabindex="0">
  4. <input type="checkbox" class="hidden-visually" id="showgridview"
  5. aria-label="<?php p($l->t('Toggle grid view'))?>"
  6. <?php if ($_['showgridview']) { ?>checked="checked" <?php } ?>/>
  7. <label id="view-toggle" for="showgridview" tabindex="0" class="button <?php p($_['showgridview'] ? 'icon-toggle-filelist' : 'icon-toggle-pictures') ?>"
  8. title="<?php p($_['showgridview'] ? $l->t('Show list view') : $l->t('Show grid view'))?>"></label>
  9. <!-- New files vue container -->
  10. <div id="app-content-vue" class="hidden"></div>
  11. <!-- Legacy views -->
  12. <?php foreach ($_['appContents'] as $content) { ?>
  13. <div id="app-content-<?php p($content['id']) ?>" class="hidden viewcontainer">
  14. <?php print_unescaped($content['content']) ?>
  15. </div>
  16. <?php } ?>
  17. <div id="searchresults" class="hidden"></div>
  18. </div><!-- closing app-content -->
  19. <!-- config hints for javascript -->
  20. <input type="hidden" name="filesApp" id="filesApp" value="1" />
  21. <input type="hidden" name="usedSpacePercent" id="usedSpacePercent" value="<?php p($_['usedSpacePercent']); ?>" />
  22. <input type="hidden" name="owner" id="owner" value="<?php p($_['owner']); ?>" />
  23. <input type="hidden" name="ownerDisplayName" id="ownerDisplayName" value="<?php p($_['ownerDisplayName']); ?>" />
  24. <input type="hidden" name="fileNotFound" id="fileNotFound" value="<?php p($_['fileNotFound']); ?>" />
  25. <?php if (!$_['isPublic']) :?>
  26. <input type="hidden" name="allowShareWithLink" id="allowShareWithLink" value="<?php p($_['allowShareWithLink']) ?>" />
  27. <input type="hidden" name="defaultFileSorting" id="defaultFileSorting" value="<?php p($_['defaultFileSorting']) ?>" />
  28. <input type="hidden" name="defaultFileSortingDirection" id="defaultFileSortingDirection" value="<?php p($_['defaultFileSortingDirection']) ?>" />
  29. <input type="hidden" name="showHiddenFiles" id="showHiddenFiles" value="<?php p($_['showHiddenFiles']); ?>" />
  30. <input type="hidden" name="cropImagePreviews" id="cropImagePreviews" value="<?php p($_['cropImagePreviews']); ?>" />
  31. <?php endif;
  32. foreach ($_['hiddenFields'] as $name => $value) {?>
  33. <input type="hidden" name="<?php p($name) ?>" id="<?php p($name) ?>" value="<?php p($value) ?>" />
  34. <?php }