bizou/template.php

96 lines
2.4 KiB
PHP
Raw Normal View History

2012-03-11 14:00:47 +01:00
<!DOCTYPE html>
2011-06-03 18:38:53 +02:00
<html>
<head>
2013-08-17 21:01:29 +02:00
<title> <?= $realDir ?> </title>
2011-06-03 18:38:53 +02:00
<style type="text/css">
body {
margin-top: 0;
font-family: sans-serif;
}
img {
border: 0;
}
a {
text-decoration: none;
}
.square {
display: inline-block;
2013-08-17 22:17:39 +02:00
vertical-align: top;
2011-06-03 18:38:53 +02:00
}
.image, .foldername, .image_nopreview, .foldername_nopreview {
display: table-cell;
vertical-align: middle;
}
.image, .image_nopreview {
2013-08-17 21:01:29 +02:00
width: <?= THUMB_SIZE ?>px;
2011-06-03 18:38:53 +02:00
text-align: center;
}
.image, .foldername {
2013-08-17 21:01:29 +02:00
height: <?= THUMB_SIZE ?>px;
2011-06-03 18:38:53 +02:00
}
.foldername, .foldername_nopreview {
padding-left: 1ex;
}
#parentfolder {
font-size: 4em;
font-weight: bold;
height: 0.6em;
}
#credit {
text-align: right;
font-size: 0.25cm;
color: gray;
}
</style>
<?php foreach ($plugins as $p) if (is_file("plugins/$p/style.css")) { ?>
2013-08-17 21:01:29 +02:00
<link rel="stylesheet" type="text/css" href="<?= $rootUrl."plugins/$p/style.css" ?>" />
2011-06-03 18:38:53 +02:00
<?php } ?>
<?php plugins_include("head.php") ?>
2011-06-03 18:38:53 +02:00
</head>
<body>
2013-11-11 10:52:35 +01:00
<div id="parentfolder">
2011-06-03 18:38:53 +02:00
<?php if ($parentLink !== '') { ?>
2013-11-11 10:52:35 +01:00
<a href="<?= $parentLink ?>">^</a>
2011-06-03 18:38:53 +02:00
<?php } ?>
2013-11-11 10:52:35 +01:00
</div>
2011-06-03 18:38:53 +02:00
<?php plugins_include("before_content.php") ?>
2013-08-17 19:17:32 +02:00
<div id="folders">
<?php foreach($folders as $folder) { $preview = getAlbumPreview($folder["file"]); ?>
2011-06-03 18:38:53 +02:00
<div class="folder">
<?php if ($preview === "") { ?>
2011-06-03 18:38:53 +02:00
<div class="square"><div class="image_nopreview"> - </div></div>
2013-08-17 21:01:29 +02:00
<div class="square"><div class="foldername_nopreview"> <a href="<?= $folder["link"] ?>"><?= $folder["name"] ?></a> </div></div>
2011-06-03 18:38:53 +02:00
<?php } else { ?>
2013-08-17 21:01:29 +02:00
<div class="square"><div class="image"> <a href="<?= $folder["link"] ?>"><img src="<?= $rootUrl.$preview ?>" /></a> </div></div>
<div class="square"><div class="foldername"> <a href="<?= $folder["link"] ?>"><?= $folder["name"] ?></a> </div></div>
<?php if (isset($generating)) { ob_flush(); flush(); } ?>
2011-06-03 18:38:53 +02:00
<?php } ?>
</div>
<?php } ?>
2013-08-17 19:17:32 +02:00
</div>
2011-06-03 18:38:53 +02:00
2013-08-17 19:17:32 +02:00
<div id="images">
2011-06-03 18:38:53 +02:00
<?php foreach ($imageFiles as $file) { ?>
<div class="square"><div class="image imagepreview"><a href="<?= $file["link"] ?>"><img src="<?= $rootUrl.getPreview($file["file"]) ?>" alt="<?= $file["name"] ?>" /></a></div><?php plugins_include("after_thumb.php") ?></div>
<?php if (isset($generating)) { ob_flush(); flush(); } ?>
2011-06-03 18:38:53 +02:00
<?php } ?>
2013-08-17 19:17:32 +02:00
</div>
2011-06-03 18:38:53 +02:00
2013-08-17 19:17:32 +02:00
<div id="miscfiles">
2011-06-03 18:38:53 +02:00
<?php foreach ($otherFiles as $file) { ?>
2013-08-17 21:01:29 +02:00
<div class="miscfile"><a href="<?= $file["link"] ?>"><?= $file["name"] ?></a></div>
2011-06-03 18:38:53 +02:00
<?php } ?>
2013-08-17 19:17:32 +02:00
</div>
2011-06-03 18:38:53 +02:00
2011-06-03 18:40:20 +02:00
<?php plugins_include("after_content.php") ?>
2011-06-03 18:38:53 +02:00
<p id="credit">
Generated by <a href="http://www.positon.org/bizou/">Bizou</a>
</p>
</body>
</html>