Projet

Général

Profil

Paste
Télécharger (4,96 ko) Statistiques
| Branche: | Révision:

root / htmltest / sites / all / modules / imce / tpl / imce-content.tpl.php @ 011029ce

1
<?php
2
$imce =& $imce_ref['imce'];//keep this line.
3
?>
4

    
5
<script type="text/javascript">
6
<!--//--><![CDATA[//><!--
7
  imce.hooks.load.push(imce.initiateShortcuts); //shortcuts for directories and files
8
  imce.hooks.load.push(imce.initiateSorting); //file sorting
9
  imce.hooks.load.push(imce.initiateResizeBars); //area resizing
10

    
11
  //inline preview
12
  imce.hooks.list.push(imce.thumbRow);
13
  imce.vars.tMaxW = 120; //maximum width of an image to be previewed inline
14
  imce.vars.tMaxH = 120; //maximum height of an image to be previewed inline
15
  imce.vars.prvW = 40; //maximum width of the thumbnail used in inline preview.
16
  imce.vars.prvH = 40; //maximum height of the thumbnail used in inline preview.
17
  //imce.vars.prvstyle = 'stylename'; //preview larger images inline using an image style(imagecache preset).
18

    
19
  //enable box view for file list. set box dimensions = preview dimensions + 30 or more
20
  //imce.vars.boxW = 100; //width of a file info box
21
  //imce.vars.boxH = 100; //height of a file info box
22

    
23
  //imce.vars.previewImages = 0; //disable click previewing of images.
24
  //imce.vars.cache = 0; //disable directory caching. File lists will always refresh.
25
  //imce.vars.absurls = 1; //make IMCE return absolute file URLs to external applications.
26
//--><!]]>
27
</script>
28

    
29
<div id="imce-content">
30

    
31
<div id="message-box"></div>
32

    
33
<div id="help-box"><!-- Update help content if you disable any of the extra features above. -->
34
  <div id="help-box-title"><span><?php print t('Help'); ?>!</span></div>
35
  <div id="help-box-content">
36
    <h4><?php print t('Tips'); ?>:</h4>
37
    <ul class="tips">
38
      <li><?php print t('Select a file by clicking the corresponding row in the file list.'); ?></li>
39
      <li><?php print t('Ctrl+click to add files to the selection or to remove files from the selection.'); ?></li>
40
      <li><?php print t('Shift+click to create a range selection. Click to start the range and shift+click to end it.'); ?></li>
41
      <li><?php print t('In order to send a file to an external application, double click on the file row.'); ?></li>
42
      <li><?php print t('Sort the files by clicking a column header of the file list.'); ?></li>
43
      <li><?php print t('Resize the work-spaces by dragging the horizontal or vertical resize-bars.'); ?></li>
44
      <li><?php print t('Keyboard shortcuts for file list: up, down, left, home, end, ctrl+A.'); ?></li>
45
      <li><?php print t('Keyboard shortcuts for selected files: enter/insert, delete, R(esize), T(humbnails), U(pload).'); ?></li>
46
      <li><?php print t('Keyboard shortcuts for directory list: up, down, left, right, home, end.'); ?></li>
47
    </ul>
48
    <h4><?php print t('Limitations'); ?>:</h4>
49
    <ul class="tips">
50
      <li><?php print t('Maximum file size per upload') .': '. ($imce['filesize'] ? format_size($imce['filesize']) : t('unlimited')); ?></li>
51
      <li><?php print t('Permitted file extensions') .': '. ($imce['extensions'] != '*' ? $imce['extensions'] : t('all')); ?></li>
52
      <li><?php print t('Maximum image resolution') .': '. ($imce['dimensions'] ? $imce['dimensions'] : t('unlimited')); ?></li>
53
      <li><?php print t('Maximum number of files per operation') .': '. ($imce['filenum'] ? $imce['filenum'] : t('unlimited')); ?></li>
54
    </ul>
55
  </div>
56
</div>
57

    
58
<div id="ops-wrapper">
59
  <div id="op-items"><ul id="ops-list"><li></li></ul></div>
60
  <div id="op-contents"></div>
61
</div>
62

    
63
<div id="resizable-content">
64

    
65
<div id="browse-wrapper">
66

    
67
  <div id="navigation-wrapper">
68
    <div class="navigation-text" id="navigation-header"><span><?php print t('Navigation'); ?></span></div>
69
    <ul id="navigation-tree"><li class="expanded root"><?php print $tree; ?></li></ul>
70
  </div>
71

    
72
  <div id="navigation-resizer" class="x-resizer"></div>
73

    
74
  <div id="sub-browse-wrapper">
75

    
76
    <div id="file-header-wrapper">
77
      <table id="file-header" class="files"><tbody><tr>
78
        <td class="name"><?php print t('File name'); ?></td>
79
        <td class="size"><?php print t('Size'); ?></td>
80
        <td class="width"><?php print t('Width'); ?></td>
81
        <td class="height"><?php print t('Height'); ?></td>
82
        <td class="date"><?php print t('Date'); ?></td>
83
      </tr></tbody></table>
84
    </div>
85

    
86
    <div id="file-list-wrapper">
87
      <?php print theme('imce_file_list', array('imce_ref' => $imce_ref)); /* see imce-file-list-tpl.php */?>
88
    </div>
89

    
90
    <div id="dir-stat"><?php print t('!num files using !dirsize of !quota', array(
91
        '!num' => '<span id="file-count">'. count($imce['files']) .'</span>',
92
        '!dirsize' => '<span id="dir-size">'. format_size($imce['dirsize']) .'</span>',
93
        '!quota' => '<span id="dir-quota">'. ($imce['quota'] ? format_size($imce['quota']) : ($imce['tuquota'] ? format_size($imce['tuquota']) : t('unlimited quota'))) .'</span>'
94
      )); ?>
95
    </div>
96

    
97
  </div><!-- sub-browse-wrapper -->
98
</div><!-- browse-wrapper -->
99

    
100
<div id="browse-resizer" class="y-resizer"></div>
101

    
102
<div id="preview-wrapper"><div id="file-preview"></div></div>
103

    
104
</div><!-- resizable-content -->
105

    
106
<div id="forms-wrapper"><?php print $forms; ?></div>
107

    
108
</div><!-- imce-content -->