index.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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. <?php foreach ($_['appContents'] as $content) { ?>
  10. <div id="app-content-<?php p($content['id']) ?>" class="hidden viewcontainer">
  11. <?php print_unescaped($content['content']) ?>
  12. </div>
  13. <?php } ?>
  14. <div id="searchresults" class="hidden"></div>
  15. </div><!-- closing app-content -->
  16. <!-- config hints for javascript -->
  17. <input type="hidden" name="filesApp" id="filesApp" value="1" />
  18. <input type="hidden" name="usedSpacePercent" id="usedSpacePercent" value="<?php p($_['usedSpacePercent']); ?>" />
  19. <input type="hidden" name="owner" id="owner" value="<?php p($_['owner']); ?>" />
  20. <input type="hidden" name="ownerDisplayName" id="ownerDisplayName" value="<?php p($_['ownerDisplayName']); ?>" />
  21. <input type="hidden" name="fileNotFound" id="fileNotFound" value="<?php p($_['fileNotFound']); ?>" />
  22. <?php if (!$_['isPublic']) :?>
  23. <input type="hidden" name="allowShareWithLink" id="allowShareWithLink" value="<?php p($_['allowShareWithLink']) ?>" />
  24. <input type="hidden" name="defaultFileSorting" id="defaultFileSorting" value="<?php p($_['defaultFileSorting']) ?>" />
  25. <input type="hidden" name="defaultFileSortingDirection" id="defaultFileSortingDirection" value="<?php p($_['defaultFileSortingDirection']) ?>" />
  26. <input type="hidden" name="showHiddenFiles" id="showHiddenFiles" value="<?php p($_['showHiddenFiles']); ?>" />
  27. <input type="hidden" name="cropImagePreviews" id="cropImagePreviews" value="<?php p($_['cropImagePreviews']); ?>" />
  28. <?php endif;
  29. foreach ($_['hiddenFields'] as $name => $value) {?>
  30. <input type="hidden" name="<?php p($name) ?>" id="<?php p($name) ?>" value="<?php p($value) ?>" />
  31. <?php }