web/drupal/modules/imce/tpl/imce-content.tpl.php
branchdrupal
changeset 74 0ff3ba646492
equal deleted inserted replaced
73:fcf75e232c5b 74:0ff3ba646492
       
     1 <?php
       
     2 // $Id: imce-content.tpl.php,v 1.8.2.4 2008/06/23 22:18:27 ufku Exp $
       
     3 $imce =& $imce_ref['imce'];//keep this line.
       
     4 $directory = drupal_get_path('module', 'imce');
       
     5 
       
     6 //main css file.
       
     7 drupal_add_css($directory .'/css/imce-content.css');
       
     8 
       
     9 //Browsing enhancements. Keyboard shortcuts, file sorting, resizebars, and inline thumbnail preview. (Safe to delete)
       
    10 drupal_add_js($directory .'/js/imce_extras.js');
       
    11 drupal_add_js('
       
    12   imce.hooks.load.push(imce.initiateShortcuts);//shortcuts for directories and files
       
    13   imce.hooks.load.push(imce.initiateSorting);//file sorting
       
    14   imce.hooks.load.push(imce.initiateResizeBars);//area resizing bars
       
    15   imce.hooks.list.push(imce.thumbRow); $.extend(imce.vars, {tMaxW: 120, tMaxH: 120, prvW: 40, prvH: 40});//inline thumbs
       
    16 ', 'inline');
       
    17 //You can disable any of the extra features by deleting or commenting the corresponding line.
       
    18 //For inline thumnails: images that are smaller than (tMaxW x tMaxH) are previewed inside the rows as (prvW x prvH).
       
    19 //This does not affect the main previewing feature, which can be disabled by uncommenting the line below.
       
    20 //drupal_add_js('$.extend(imce.vars, {previewImages: 0});', 'inline');
       
    21 ?>
       
    22 <!--[if IE]><style type="text/css">#file-list-wrapper{padding-right: 2em}#file-list{margin-right: -2em}</style><![endif]-->
       
    23 <!--[if IE 6]><style type="text/css">.y-resizer{font-size: 0.2em;}#sub-browse-wrapper{float: left; clear: right;}#preview-wrapper{overflow: visible;}#file-preview{width: 99%; height: 99%; overflow: auto;}</style><![endif]-->
       
    24 <noscript><?php print t('You should use a javascript-enabled browser in order to experince a much more user-friendly interface.'); ?></noscript>
       
    25 
       
    26 <div id="imce-content">
       
    27 
       
    28 <a href="#" id="help-box"><!-- Update help content if you disable any of the extra features above. -->
       
    29   <div id="help-box-title"><?php print t('Help'); ?>!</div>
       
    30   <div id="help-box-content">
       
    31     <strong><?php print t('Tips'); ?></strong>:
       
    32     <ul class="tips">
       
    33       <li><?php print t('Select a file by clicking the corresponding row in the file list.'); ?></li>
       
    34       <li><?php print t('Ctrl+click to add files to the selection or to remove files from the selection.'); ?></li>
       
    35       <li><?php print t('Shift+click to create a range selection. Click to start the range and shift+click to end it.'); ?></li>
       
    36       <li><?php print t('Sort the files by clicking a column header of the file list.'); ?></li>
       
    37       <li><?php print t('Resize the work-spaces by dragging the horizontal or vertical resize-bars.'); ?></li>
       
    38       <li><?php print t('Keyboard shortcuts for file list: up, down, left, home, end, ctrl+A.'); ?></li>
       
    39       <li><?php print t('Keyboard shortcuts for selected files: enter/insert, delete, R(esize), T(humbnails), U(pload).'); ?></li>
       
    40       <li><?php print t('Keyboard shortcuts for directory list: up, down, left, right, home, end.'); ?></li>
       
    41     </ul>
       
    42     <strong><?php print t('Limitations'); ?></strong>:
       
    43     <ul class="tips">
       
    44       <li><?php print t('Maximum file size per upload') .': '. ($imce['filesize'] ? format_size($imce['filesize']) : t('unlimited')); ?></li>
       
    45       <li><?php print t('Permitted file extensions') .': '. ($imce['extensions'] != '*' ? $imce['extensions'] : t('all')); ?></li>
       
    46       <li><?php print t('Maximum image resolution') .': '. ($imce['dimensions'] ? $imce['dimensions'] : t('unlimited')); ?></li>
       
    47       <li><?php print t('Maximum number of files per operation') .': '. ($imce['filenum'] ? $imce['filenum'] : t('unlimited')); ?></li>
       
    48     </ul>
       
    49   </div>
       
    50 </a>
       
    51 
       
    52 <div id="ops-wrapper">
       
    53   <div id="op-items"><ul class="tabs secondary" id="ops-list"></ul></div>
       
    54   <div id="op-contents"></div>
       
    55 </div>
       
    56 
       
    57 <div id="resizable-content">
       
    58 
       
    59 <div id="browse-wrapper">
       
    60 
       
    61   <div id="navigation-wrapper">
       
    62     <div class="navigation-text"><?php print t('Navigation'); ?></div>
       
    63     <ul id="navigation-tree"><li class="expanded root"><?php print $tree; ?></li></ul>
       
    64   </div>
       
    65 
       
    66   <div id="navigation-resizer" class="x-resizer"></div>
       
    67 
       
    68   <div id="sub-browse-wrapper">
       
    69 
       
    70     <div id="file-header-wrapper">
       
    71       <table id="file-header" class="files"><tbody><tr>
       
    72         <td class="name"><?php print t('File name'); ?></td>
       
    73         <td class="size"><?php print t('Size'); ?></td>
       
    74         <td class="width"><?php print t('Width'); ?></td>
       
    75         <td class="height"><?php print t('Height'); ?></td>
       
    76         <td class="date"><?php print t('Date'); ?></td>
       
    77       </tr></tbody></table>
       
    78     </div>
       
    79 
       
    80     <div id="file-list-wrapper">
       
    81       <?php print theme('imce_file_list', $imce_ref); /* see imce-file-list-tpl.php */?>
       
    82     </div>
       
    83 
       
    84     <div id="dir-stat"><?php print t('!num files using !dirsize of !quota', array(
       
    85         '!num' => '<span id="file-count">'. count($imce['files']) .'</span>',
       
    86         '!dirsize' => '<span id="dir-size">'. format_size($imce['dirsize']) .'</span>',
       
    87         '!quota' => '<span id="dir-quota">'. ($imce['quota'] ? format_size($imce['quota']) : ($imce['tuquota'] ? format_size($imce['tuquota']) : t('unlimited quota'))) .'</span>'
       
    88       )); ?>
       
    89     </div>
       
    90 
       
    91   </div><!-- sub-browse-wrapper -->
       
    92 </div><!-- browse-wrapper -->
       
    93 
       
    94 <div id="browse-resizer" class="y-resizer"></div>
       
    95 
       
    96 <div id="log-prv-wrapper">
       
    97   <div id="log-wrapper"></div>
       
    98   <div id="log-resizer" class="x-resizer"></div>
       
    99   <div id="preview-wrapper"><div id="file-preview"></div></div>
       
   100 </div>
       
   101 
       
   102 </div><!-- resizable-content -->
       
   103 
       
   104 <div id="content-resizer" class="y-resizer"></div>
       
   105 <a href="#" id="log-clearer" class="imce-hide"><?php print t('Clear log'); ?></a>
       
   106 
       
   107 <div id="forms-wrapper"><?php print $forms; ?></div>
       
   108 
       
   109 </div><!-- imce-content -->