mirror of
https://github.com/jimeh/dlist.git
synced 2026-02-19 07:56:41 +00:00
- renamed view.php to index.php
- renamed exec files from *.exc.php to *.exec.php - updated simple template - added local language names caching to cache/local_names.ini, language must be used before it can read the local name from the language file and cache it if not already cached git-svn-id: file:///Users/jimeh/Desktop/dlist/trunk@16 a5845835-ea0f-0410-a762-dd0bfe9bfde8
This commit is contained in:
@@ -1,26 +1,22 @@
|
||||
<table border="0" cellspacing="1" cellpadding="0" id="list">
|
||||
<tr>
|
||||
<th class="icon"></th>
|
||||
<? foreach ($fields as $key => $value): ?><th class="<?=$key?>"><a href="<?=Sort::get_url($key)?>"><?=$lang->$key?></a></th>
|
||||
<? endforeach ?>
|
||||
<? foreach ($fields as $key => $value): ?><th class="<?=$key?>"><a href="<?=Sort::get_url($key)?>"><?=$lang->$key?></a></th><? endforeach ?>
|
||||
</tr>
|
||||
<? if ( !$is_root ): ?>
|
||||
<? if ( !$is_root ): ?>
|
||||
<tr>
|
||||
<td class="icon"><a href="../" title="<?=$lang->parent_dir?>"><img src="<?=Icon::get_parent($config->tpl_icon_size)?>" class="" alt="" /></a></td>
|
||||
<td class="icon"><a href="../" title="<?=$lang->parent_dir?>"><img src="<?=Icon::get_parent('small')?>" alt="icon" /></a></td>
|
||||
<? foreach ($fields as $key => $value):
|
||||
if ($key == 'name'):?><td class="name"><a href="../" title="<?=$lang->parent_dir?>">..</a></td>
|
||||
<? else: ?><td></td><? endif ?>
|
||||
<? endforeach ?>
|
||||
if ($key == 'name'):?><td class="name"><a href="../" title="<?=$lang->parent_dir?>">..</a></td><? else: ?><td></td><? endif ?>
|
||||
<? endforeach ?>
|
||||
</tr>
|
||||
<? endif ?>
|
||||
<? foreach ($dlist->list as $key => $item): ?>
|
||||
<? endif ?>
|
||||
<? foreach ($dlist->list as $key => $item): ?>
|
||||
<tr>
|
||||
<td class="icon">
|
||||
<a href="<?=DIR_URL.$item['name']?><? if($item['type'] == 'dir') echo '/'; ?>" title="<?=$item['name']?>"><img src="<?=Icon::get_url($item['ext'], 'small', $item['type'])?>" class="" alt="" /></a>
|
||||
</td>
|
||||
<td class="icon"><a href="<?=DIR_URL.$item['name']?><? if($item['type'] == 'dir') echo '/'; ?>"><img src="<?=Icon::get_url($item['ext'], 'small', $item['type'])?>" alt="icon" /></a></td>
|
||||
<? foreach ($fields as $key => $value):
|
||||
if ($key == 'name'):?><td class="name"><a href="<?=DIR_URL.$item['name']?><? if($item['type'] == 'dir') echo '/'; ?>"><?=$item['name']?></a></td>
|
||||
<? else: ?><td class="<?=$key?>"><?=$item[$key]?></td><? endif ?><? endforeach ?>
|
||||
</tr>
|
||||
<? endforeach ?>
|
||||
<? endforeach ?>
|
||||
</table>
|
||||
@@ -24,7 +24,7 @@
|
||||
</div>
|
||||
<div id="stats">
|
||||
<div id="timer"><?=$lang->powered_by?>. <?=$timer->end()?>.</div>
|
||||
<div id="lang-select"><? foreach ($installed_languages as $key => $value): ?><a href="javascript:;" onclick="set_lang('<?=$value?>')"><?=ucfirst($value)?></a><? if(count($installed_languages)-1 != $key) echo ' | '; endforeach ?></div>
|
||||
<div id="lang-select"><? $n = 1; foreach ($installed_languages as $key => $value): ?><a href="javascript:;" onclick="set_lang('<?=$key?>')"><?=ucfirst($value)?></a><? if(count($installed_languages) > $n) echo ' | '; $n++; endforeach ?></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -36,10 +36,6 @@ if ( !empty($_COOKIE['dList_simple_viewMode']) && !empty($config->tpl_modes[$_CO
|
||||
}
|
||||
|
||||
|
||||
//>Section> installed_languages
|
||||
$installed_languages = installed_languages();
|
||||
|
||||
|
||||
//>Section> include_phtml
|
||||
include(TPL_PATH.'index.phtml');
|
||||
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
<?php
|
||||
|
||||
$config = array(
|
||||
'icon_size' => 'small',
|
||||
|
||||
# default mode
|
||||
'mode' => 'tiles',
|
||||
'mode' => 'icons',
|
||||
|
||||
# available modes
|
||||
'modes' => array(
|
||||
|
||||
Reference in New Issue
Block a user