mirror of
https://github.com/jimeh/dlist.git
synced 2026-02-19 07:56:41 +00:00
dList v2.2.3 beta
- started keeping track of version numbers properly - added finnish translation - edited multiple things in simple template - added file/folder hiding by the use of regular expressions - updated most main parts of dlist git-svn-id: file:///Users/jimeh/Desktop/dlist/trunk@19 a5845835-ea0f-0410-a762-dd0bfe9bfde8
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
<div id="stats"><?=Path::stats($dlist->stats_files, $dlist->stats_folders, $dlist->stats_totalsize)?></div>
|
||||
<table border="0" cellspacing="0" cellpadding="0" id="icons"><tr><td>
|
||||
<div id="sort-nav">
|
||||
<a href="<?=Sort::get_url('name')?>"<? if($current_sort == 'name'): ?> class="current"<? endif ?>><?=$lang->name?></a> |
|
||||
@@ -9,7 +10,7 @@
|
||||
<li><a href="../"><p class="icon"><img src="<?=Icon::get_parent('large')?>" alt="" /></p><p class="name">..</p><p class="info"><?=$lang->parent_dir?></p></a></li>
|
||||
<? endif ?>
|
||||
<? foreach ($dlist->list as $key => $item): $info = ($item['type'] == 'file') ? $item['size'] : $item['mtime'] ;?>
|
||||
<li><a href="<?=DIR_URL.$item['name']?><? if($item['type'] == 'dir') echo '/'; ?>"><p class="icon"><img src="<?=Icon::get_url($item['name'], 'large', $item['type'], true)?>" alt="" /></p><p class="name"><?=$item['name']?></p><p class="info"><?=$info?></p></a></li>
|
||||
<li><a href="<?=rawurlencode($item['name'])?><? if($item['type'] == 'dir') echo '/'; ?>"><p class="icon"><img src="<?=Icon::get_url($item['name'], 'large', $item['type'], true)?>" alt="" /></p><p class="name"><?=Path::wordbreak($item['name'], 16, "\n", 1)?></p><p class="info"><?=$info?></p></a></li>
|
||||
<? endforeach ?>
|
||||
</ul>
|
||||
</td></tr></table>
|
||||
@@ -4,8 +4,9 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
||||
<title><?=$lang->index_of.' '.DIR_URL?></title>
|
||||
<link rel="stylesheet" href="<?=TPL_URL?>stylesheets/css.php?src=screen.css&dir=<?=TPL_URL?>" type="text/css" media="screen" title="screen" charset="utf-8" />
|
||||
<script src="<?=TPL_URL?>javascripts/main.js" type="text/javascript" language="javascript" charset="utf-8"></script>
|
||||
<link rel="stylesheet" href="<?=TPL_URL?>stylesheets/screen.css.php?dir=<?=TPL_URL?>" type="text/css" media="screen" title="screen" charset="utf-8" />
|
||||
<!-- <script src="<?=TPL_URL?>javascripts/overlib_mini.js" type="text/javascript" language="javascript" charset="utf-8"></script> -->
|
||||
</head>
|
||||
<body id="index">
|
||||
<div id="header">
|
||||
@@ -18,9 +19,7 @@
|
||||
<div id="files">
|
||||
<? include(TPL_PATH.$config->tpl_mode) ?>
|
||||
</div>
|
||||
<div id="stats">
|
||||
<div id="timer"><?=$lang->powered_by?>. <?=$timer->end()?>.</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>
|
||||
<div id="timer"><?=$lang->powered_by?>. <?=$timer->end()?>.</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>
|
||||
</body>
|
||||
</html>
|
||||
7
templates/simple/stylesheets/css.php
Normal file
7
templates/simple/stylesheets/css.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
header('Content-type: text/css;');
|
||||
$dir = ( empty($dir) && !empty($_REQUEST['dir']) ) ? $_REQUEST['dir'] : '' ;
|
||||
if ( !empty($_REQUEST['src']) && preg_match("/\.css$/", $_REQUEST['src']) ) include($_REQUEST['src']);
|
||||
|
||||
?>
|
||||
@@ -1,4 +1,3 @@
|
||||
<?php header('Content-type: text/css;'); ( empty($dir) && !empty($_REQUEST['dir']) ) ? $dir = $_REQUEST['dir'] : $dir = '' ; ?>
|
||||
BODY {
|
||||
background-color: #FFF;
|
||||
color: #000;
|
||||
@@ -7,6 +6,10 @@ BODY {
|
||||
padding: 18px;
|
||||
}
|
||||
|
||||
IMG {
|
||||
border-style: none;
|
||||
}
|
||||
|
||||
#header {
|
||||
font: 20px "Myriad Pro", "Trebuchet MS", Verdana, sans-serif;
|
||||
padding: 15px 15px 30px 30px;
|
||||
@@ -19,10 +22,22 @@ BODY {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
#stats {
|
||||
color: #BBB;
|
||||
padding: 3px;
|
||||
/* font-style: italic;*/
|
||||
font-size: 9px;
|
||||
text-align: right;
|
||||
position: absolute;
|
||||
top: 97px;
|
||||
right: 30px;
|
||||
}
|
||||
|
||||
#files {
|
||||
|
||||
}
|
||||
/* <?=$dir?> */
|
||||
|
||||
|
||||
/* Details View (#list) */
|
||||
#list {
|
||||
background-color: #DDD;
|
||||
@@ -118,7 +133,7 @@ BODY {
|
||||
#icons LI {
|
||||
display: block;
|
||||
float: left;
|
||||
margin: 12px 12px 12px 12px;
|
||||
margin: 8px;
|
||||
width: 140px;
|
||||
height: 100px;
|
||||
text-align: center;
|
||||
@@ -174,10 +189,6 @@ BODY {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#stats {
|
||||
|
||||
}
|
||||
|
||||
#server-info {
|
||||
color: #999;
|
||||
padding: 3px;
|
||||
@@ -213,6 +224,3 @@ BODY {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user