updated handling of long filenames in icons views of "simple" and "slik" templates, and modified output functions in exec/output.exec.php.

git-svn-id: file:///Users/jimeh/Desktop/dlist/trunk@28 a5845835-ea0f-0410-a762-dd0bfe9bfde8
This commit is contained in:
jim
2006-10-13 20:59:04 +00:00
parent 86f5c6a93d
commit dc5ebee5f2
5 changed files with 26 additions and 16 deletions

View File

@@ -21,7 +21,7 @@
<?=$lang->group_id?>: <?=$item['group_id']?><br /><? endif; ?>
</span>
<p class="p"><img src="<?=Icon::get_url($item['name'], 'large', $item['type'], true)?>" alt="" /></p>
<p class="n"><?=Path::wordbreak($item['name'], $config->tpl_wordbreak, "\n", 1)?></p>
<p class="n"><?=Path::breakFilename($item['name'], $config->tpl_file_maxlength, $config->tpl_wordbreak)?></p>
<p class="i"><?=$info?></p>
</a>
</li><? $n++; endforeach; ?>

View File

@@ -8,7 +8,9 @@
// Icons view settings
'file_info' => 'size',
'folder_info' => 'mtime',
'wordbreak' => 18,
'file_maxlength' => 32,
'wordbreak' => 16,
'preview_width' => 175,
'preview_height' => 175,