imce-file-list.tpl.php 1.0 KB

12345678910111213141516171819202122232425
  1. <?php
  2. $imce =& $imce_ref['imce'];//keep this line.
  3. /*
  4. * Although the file list table here is available for theming,
  5. * it is not recommended to change the table structure, because
  6. * it is read and manipulated by javascript assuming this is the deafult structure.
  7. * You can always change the data created by format functions
  8. * such as format_size or format_date, or you can do css theming which is the best practice here.
  9. */
  10. ?>
  11. <table id="file-list" class="files"><tbody><?php
  12. if ($imce['perm']['browse'] && !empty($imce['files'])) {
  13. foreach ($imce['files'] as $name => $file) {?>
  14. <tr id="<?php print $raw = rawurlencode($file['name']); ?>">
  15. <td class="name"><?php print $raw; ?></td>
  16. <td class="size" id="<?php print $file['size']; ?>"><?php print format_size($file['size']); ?></td>
  17. <td class="width"><?php print $file['width']; ?></td>
  18. <td class="height"><?php print $file['height']; ?></td>
  19. <td class="date" id="<?php print $file['date']; ?>"><?php print format_date($file['date'], 'short'); ?></td>
  20. </tr><?php
  21. }
  22. }?>
  23. </tbody></table>