imce-file-list.tpl.php in IMCE 7
Same filename and directory in other branches
Content Template file.
2 theme calls to imce-file-list.tpl.php
- imce-content.tpl.php in tpl/
imce-content.tpl.php - Content Template file.
- imce_js_navigate in inc/
imce.js.inc - Ajax operation: navigate.
File
tpl/imce-file-list.tpl.phpView source
<?php
/**
* @file
* Content Template file.
*/
// Keep this line.
$imce =& $imce_ref['imce'];
/*
* Although the file list table here is available for theming,
* it is not recommended to change the table structure, because
* it is read and manipulated by javascript assuming this is
* the deafult structure.
* You can always change the data created by format functions
* such as format_size or format_date, or you can do css theming
* which is the best practice here.
*/
?>
<table id="file-list" class="files"><tbody><?php
if ($imce['perm']['browse'] && !empty($imce['files'])) {
foreach ($imce['files'] as $name => $file) {
?>
<tr id="<?php
print $raw = rawurlencode($file['name']);
?>">
<td class="name" title="<?php
print $raw;
?>"><?php
print $raw;
?></td>
<td class="size" id="<?php
print $file['size'];
?>"><?php
print format_size($file['size']);
?></td>
<td class="width"><?php
print $file['width'];
?></td>
<td class="height"><?php
print $file['height'];
?></td>
<td class="date" id="<?php
print $file['date'];
?>"><?php
print format_date($file['date'], 'short');
?></td>
</tr><?php
}
}
?>
</tbody></table>