1
0

index.php 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php /** @var \OCP\IL10N $l */ ?>
  2. <?php $_['appNavigation']->printPage(); ?>
  3. <!-- New files vue container -->
  4. <div id="app-content-vue" class="hidden"></div>
  5. <div id="app-content" tabindex="0">
  6. <input type="checkbox" class="hidden-visually" id="showgridview"
  7. aria-label="<?php p($l->t('Toggle grid view'))?>"
  8. <?php if ($_['showgridview']) { ?>checked="checked" <?php } ?>/>
  9. <label id="view-toggle" for="showgridview" tabindex="0" class="button <?php p($_['showgridview'] ? 'icon-toggle-filelist' : 'icon-toggle-pictures') ?>"
  10. title="<?php p($_['showgridview'] ? $l->t('Show list view') : $l->t('Show grid view'))?>"></label>
  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 }