updated Slik template for compatibility with recent changes to handling of long filenames.

git-svn-id: file:///Users/jimeh/Desktop/dlist/trunk@30 a5845835-ea0f-0410-a762-dd0bfe9bfde8
This commit is contained in:
jim
2006-10-13 21:58:24 +00:00
parent 0aefa36e2a
commit 19ce756fc0
2 changed files with 18 additions and 9 deletions

View File

@@ -10,15 +10,17 @@
</li><? $n = 1; foreach ($dlist->list as $key => $item): $info = ($item['type'] == 'file') ? $item[$config->tpl_file_info] : $item[$config->tpl_folder_info] ; $thumbnail = (Icon::is_image($item['ext']) && $config->thumbnails) ? ", '".Icon::get_thumbnail_url($item['name'], $config->tpl_preview_width, $config->tpl_preview_height)."'" : '' ; ?>
<li>
<a href="<?=rawurlencode($item['name'])?><? if($item['type'] == 'dir') echo '/'; ?>" onmouseover="iP(<?=$n.$thumbnail?>)" onmouseout="o()">
<span id="p<?=$n?>"><? if (!empty($fields['owner'])): ?>
<?=$lang->owner?>: <?=$item['owner']?><br /><? endif; if (!empty($fields['group'])): ?>
<?=$lang->group?>: <?=$item['group']?><br /><? endif; if (!empty($fields['perms'])): ?>
<?=$lang->perms?>: <?=$item['perms']?><br /><? endif; if (!empty($fields['chmod'])): ?>
<?=$lang->chmod?>: <?=$item['chmod']?><br /><? endif; if (!empty($fields['mtime']) && $item['type'] == 'file'): ?>
<?=$lang->mtime?>: <?=$item['mtime']?><br /><? endif; if (!empty($fields['atime'])): ?>
<?=$lang->atime?>: <?=$item['atime']?><br /><? endif; if (!empty($fields['owner_id'])): ?>
<?=$lang->owner_id?>: <?=$item['owner_id']?><br /><? endif; if (!empty($fields['group_id'])): ?>
<?=$lang->group_id?>: <?=$item['group_id']?><br /><? endif; ?>
<span id="p<?=$n?>"><div class="name"><?=$item['name']?></div>
<?
if ( !empty($fields['owner']) ) echo $lang->owner.': '.$item['owner'].'<br />';
if ( !empty($fields['group']) ) echo $lang->group.': '.$item['group'].'<br />';
if ( !empty($fields['perms']) ) echo $lang->perms.': '.$item['perms'].'<br />';
if ( !empty($fields['chmod']) ) echo $lang->chmod.': '.$item['chmod'].'<br />';
if ( !empty($fields['mtime']) && $item['type'] == 'file' ) echo $lang->mtime.': '.$item['mtime'].'<br />';
if ( !empty($fields['atime']) ) echo $lang->atime.': '.$item['atime'].'<br />';
if ( !empty($fields['owner_id']) ) echo $lang->owner_id.': '.$item['owner_id'].'<br />';
if ( !empty($fields['group_id']) ) echo $lang->group_id.': '.$item['group_id'].'<br />';
?>
</span>
<p class="p"><img src="<?=Icon::get_url($item['name'], 'large', $item['type'], true)?>" alt="" /></p>
<p class="n"><?=Path::breakFilename($item['name'], $config->tpl_file_maxlength, $config->tpl_wordbreak)?></p>

View File

@@ -549,6 +549,13 @@ A:hover {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
}
.pop-text .name {
border-bottom: 1px solid #DDD;
padding-bottom: 2px;
margin-bottom: 2px;
font-weight: bold;
text-align: center;
}
.preview {
border-top: 1px solid #DDD;
margin-top: 4px;