Fixed a couple typos, working on the directory listing for /files, theme integration mainly
This commit is contained in:
@ -1,114 +1,45 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<title><?php echo _('Directory listing for '), host(), $_SERVER['REQUEST_URI']; ?></title>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo templateDirectory();?>/style.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="headerwrap">
|
||||
<div id="header">
|
||||
<h1><?printBreadcrumb();?></h1>
|
||||
<form action="<?php echo scriptPath();?>" method="get">
|
||||
<?php // adds the current directory "&directory=blubb/blabl" to the url ?>
|
||||
<input type="hidden" name="directory" value="<?php echo currentDirectory();?>" />
|
||||
<ul>
|
||||
<?php // simple history-back js-command ?>
|
||||
<li><a href="javascript:history.back()" onclick="history.back()"><?php imgTagIcon('back', 'Back');?></a></li>
|
||||
|
||||
<?php if(currentDirectory() != './'): # If this folder is not the folder where pdirl is?>
|
||||
|
||||
<li><a href="<?php echo goParent()?>"><?php imgTagIcon('parent', 'Parent Directory')?></a></li>
|
||||
<li><a href="<?php echo scriptDirectory(); ?>"><?php imgTagIcon('home', 'Home Directory')?></a></li>
|
||||
|
||||
<?php else: ?>
|
||||
|
||||
<li><?php imgTagIcon('parent-disabled', 'Parent');?></li>
|
||||
<li><?php imgTagIcon('home-disabled', 'Home Directory');?></li>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<li><a href="<?php echo $_SERVER['REQUEST_URI']?>"><?php imgTagIcon('reload', 'Reload');?></a></li>
|
||||
<li style="color: #0C4F5F">|</li>
|
||||
<li>
|
||||
<?php imgTagIcon('search', 'Search...')?>
|
||||
<input name="gosearch" id="search" type="text" value="<?php echo searchInput()?>" onclick=" if(this.value == '<?php echo _('Search...')?>') { this.value = ''; }" /></li>
|
||||
</ul>
|
||||
</form>
|
||||
<div style="clear:left;"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="contentwrap">
|
||||
<?php if ($elements): ?>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td <?php if ($hideMTime) echo 'colspan="2"'; ?>>
|
||||
<?php sortLink('name', _('Name'));?></td>
|
||||
<?php if (!$hideMTime): ?>
|
||||
<td><?php sortLink('mtime', _('Last modification'))?></td>
|
||||
<?php endif; ?>
|
||||
<td><?php sortLink('bytes', _('Size'));?></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($elements as $element): ?>
|
||||
<tr>
|
||||
<td class="name"
|
||||
<?php
|
||||
if(!$element['readable']){
|
||||
echo 'colspan="3"';
|
||||
} elseif ($element['countonly']) {
|
||||
echo 'colspan="2"';
|
||||
} ?> title="<?php echo filetypeInfo($element['type']);?>">
|
||||
<img src="<?php echo iconDirectory();?>/<?php echo $element['type'];?>.png" alt="<?php echo _('Directory');?>" />
|
||||
<?php if(!$element['readable']) { echo imgTagIcon('locked', 'not accessible');} ?>
|
||||
<a href="<?php echo $element['urlpath'] ?>" id="<?php echo $element['name'];?>">
|
||||
<?php echo $element['name'];?>
|
||||
</a>
|
||||
<?php if(searchTag() && $element['location']): ?>
|
||||
<small><a href="<?php echo urlPath($element['locationurl']);?>">
|
||||
<?php echo $element['location'];?>
|
||||
</a></small>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<?php if($element['readable']): ?>
|
||||
<?php if($element['countonly']): ?>
|
||||
<td class="size">
|
||||
<?php printf(_('%s elements'), $element['numberofelements']); ?>
|
||||
</td>
|
||||
<?php else: ?>
|
||||
<td class="mtime">
|
||||
<?php echo $element['mtimer'];?>
|
||||
</td>
|
||||
<td class="size">
|
||||
<?php echo $element['sizer']['number'].' '.$element['sizer']['unit'];?>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php $totalSize = sizeReadable(totalSize()); ?>
|
||||
<?php $term = (searchTag())? _('Found %s element(s) totalling %s %s in size.') : _('This directory contains %s element(s) totalling %s %s in size.');?>
|
||||
<?php else: ?>
|
||||
<div id="nothing">
|
||||
<p>
|
||||
<?php if(searchTag()): ?>
|
||||
<?php echo _('No search result.');?>
|
||||
<?php else: ?>
|
||||
<?php echo _('This directory contains no files.');?>
|
||||
<?php endif; ?>
|
||||
- <a href="javascript:history.back()" onclick="history.back()"><?php echo _('Back'); ?></a></p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div id="footer">
|
||||
<?php if($elements): ?>
|
||||
<p><?php echo sprintf($term, numberOfElements(), $totalSize['number'], $totalSize['unit']);?></p>
|
||||
<?php endif; ?>
|
||||
<p><small>powered by <a href="http://pdirl.newroots.de/">pdirl - PHP Directory Listing</a>.</small></p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||
|
||||
<title>LinuxRocker</title>
|
||||
<link rel="stylesheet" href=".pdirl/templates/default/stylesheets/styles.css" />
|
||||
<link rel="stylesheet" href=".pdirl/templates/default/stylesheets/pygment_trac.css" />
|
||||
<link rel="stylesheet" href=".pdirl/templates/default/style.css" />
|
||||
<!--[if lt IE 8]><link rel="stylesheet" href="stylesheets/ie.min.css" /><![endif]-->
|
||||
|
||||
<!-- <link rel="shortcut icon" href="http://dev.jbirc.com/images/favicon.ico" type="image/x-icon" />
|
||||
<link rel="icon" href="http://dev.jbirc.com/images/favicon.ico" type="image/x-icon" /> -->
|
||||
</head>
|
||||
<body>
|
||||
<header id="header">
|
||||
<nav>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<div class="wrapper">
|
||||
<section>
|
||||
<header id="title">
|
||||
<h1>LinuxRocker</h1>
|
||||
<h2>Try not to die.</h2>
|
||||
</header>
|
||||
<hr />
|
||||
|
||||
<h1>
|
||||
<a name="Welcome" class="anchor" href="#whoandwhere"><span class="octicon octicon-link"></span></a>Welcome
|
||||
</h1>
|
||||
|
||||
<p class="tab"><?php include 'pdirl.php' ?></p>
|
||||
|
||||
<footer id="footer">
|
||||
<hr />
|
||||
<span class="credits left">Inspired design by <a href="http://github.com/Rikai">Rikai</a>, <a href="http://github.com/ChrisLAS">ChrisLAS</a> and <a href="http://twitter.com/michigangraham">mattgraham</a>. Customized to fit needs by <a href="http://github.com/mattburchett">Matt Burchett</a></span>
|
||||
<span class="credits right">Original design: <a href="http://github.com/rikai/JupiterColony.com">GitHub</a></span>
|
||||
</footer>
|
||||
</section>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user