imce-content.tpl.php 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <?php
  2. $imce =& $imce_ref['imce'];//keep this line.
  3. ?>
  4. <script type="text/javascript">
  5. <!--//--><![CDATA[//><!--
  6. imce.hooks.load.push(imce.initiateShortcuts); //shortcuts for directories and files
  7. imce.hooks.load.push(imce.initiateSorting); //file sorting
  8. imce.hooks.load.push(imce.initiateResizeBars); //area resizing
  9. //inline preview
  10. imce.hooks.list.push(imce.thumbRow);
  11. imce.vars.tMaxW = 120; //maximum width of an image to be previewed inline
  12. imce.vars.tMaxH = 120; //maximum height of an image to be previewed inline
  13. imce.vars.prvW = 40; //maximum width of the thumbnail used in inline preview.
  14. imce.vars.prvH = 40; //maximum height of the thumbnail used in inline preview.
  15. //imce.vars.prvstyle = 'stylename'; //preview larger images inline using an image style(imagecache preset).
  16. //enable box view for file list. set box dimensions = preview dimensions + 30 or more
  17. //imce.vars.boxW = 100; //width of a file info box
  18. //imce.vars.boxH = 100; //height of a file info box
  19. //imce.vars.previewImages = 0; //disable click previewing of images.
  20. //imce.vars.cache = 0; //disable directory caching. File lists will always refresh.
  21. //imce.vars.absurls = 1; //make IMCE return absolute file URLs to external applications.
  22. //--><!]]>
  23. </script>
  24. <div id="imce-content">
  25. <div id="message-box"></div>
  26. <div id="help-box"><!-- Update help content if you disable any of the extra features above. -->
  27. <div id="help-box-title"><span><?php print t('Help'); ?>!</span></div>
  28. <div id="help-box-content">
  29. <h4><?php print t('Tips'); ?>:</h4>
  30. <ul class="tips">
  31. <li><?php print t('Select a file by clicking the corresponding row in the file list.'); ?></li>
  32. <li><?php print t('Ctrl+click to add files to the selection or to remove files from the selection.'); ?></li>
  33. <li><?php print t('Shift+click to create a range selection. Click to start the range and shift+click to end it.'); ?></li>
  34. <li><?php print t('In order to send a file to an external application, double click on the file row.'); ?></li>
  35. <li><?php print t('Sort the files by clicking a column header of the file list.'); ?></li>
  36. <li><?php print t('Resize the work-spaces by dragging the horizontal or vertical resize-bars.'); ?></li>
  37. <li><?php print t('Keyboard shortcuts for file list: up, down, left, home, end, ctrl+A.'); ?></li>
  38. <li><?php print t('Keyboard shortcuts for selected files: enter/insert, delete, R(esize), T(humbnails), U(pload).'); ?></li>
  39. <li><?php print t('Keyboard shortcuts for directory list: up, down, left, right, home, end.'); ?></li>
  40. </ul>
  41. <h4><?php print t('Limitations'); ?>:</h4>
  42. <ul class="tips">
  43. <li><?php print t('Maximum file size per upload') .': '. ($imce['filesize'] ? format_size($imce['filesize']) : t('unlimited')); ?></li>
  44. <li><?php print t('Permitted file extensions') .': '. ($imce['extensions'] != '*' ? $imce['extensions'] : t('all')); ?></li>
  45. <li><?php print t('Maximum image resolution') .': '. ($imce['dimensions'] ? $imce['dimensions'] : t('unlimited')); ?></li>
  46. <li><?php print t('Maximum number of files per operation') .': '. ($imce['filenum'] ? $imce['filenum'] : t('unlimited')); ?></li>
  47. </ul>
  48. </div>
  49. </div>
  50. <div id="ops-wrapper">
  51. <div id="op-items"><ul id="ops-list"><li></li></ul></div>
  52. <div id="op-contents"></div>
  53. </div>
  54. <div id="resizable-content">
  55. <div id="browse-wrapper">
  56. <div id="navigation-wrapper">
  57. <div class="navigation-text" id="navigation-header"><span><?php print t('Navigation'); ?></span></div>
  58. <ul id="navigation-tree"><li class="expanded root"><?php print $tree; ?></li></ul>
  59. </div>
  60. <div id="navigation-resizer" class="x-resizer"></div>
  61. <div id="sub-browse-wrapper">
  62. <div id="file-header-wrapper">
  63. <table id="file-header" class="files"><tbody><tr>
  64. <td class="name"><?php print t('File name'); ?></td>
  65. <td class="size"><?php print t('Size'); ?></td>
  66. <td class="width"><?php print t('Width'); ?></td>
  67. <td class="height"><?php print t('Height'); ?></td>
  68. <td class="date"><?php print t('Date'); ?></td>
  69. </tr></tbody></table>
  70. </div>
  71. <div id="file-list-wrapper">
  72. <?php print theme('imce_file_list', array('imce_ref' => $imce_ref)); /* see imce-file-list-tpl.php */?>
  73. </div>
  74. <div id="dir-stat"><?php print t('!num files using !dirsize of !quota', array(
  75. '!num' => '<span id="file-count">'. count($imce['files']) .'</span>',
  76. '!dirsize' => '<span id="dir-size">'. format_size($imce['dirsize']) .'</span>',
  77. '!quota' => '<span id="dir-quota">'. ($imce['quota'] ? format_size($imce['quota']) : ($imce['tuquota'] ? format_size($imce['tuquota']) : t('unlimited quota'))) .'</span>'
  78. )); ?>
  79. </div>
  80. </div><!-- sub-browse-wrapper -->
  81. </div><!-- browse-wrapper -->
  82. <div id="browse-resizer" class="y-resizer"></div>
  83. <div id="preview-wrapper"><div id="file-preview"></div></div>
  84. </div><!-- resizable-content -->
  85. <div id="forms-wrapper"><?php print $forms; ?></div>
  86. </div><!-- imce-content -->