1
0

themeing the exif data

This commit is contained in:
Fredrik Erlandsson 2011-11-18 14:08:03 +01:00
parent 22386c3a2a
commit 92c70a108c

View File

@ -0,0 +1,33 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<style type="text/css">
#g-exif-data { font-size: .85em; }
.g-odd { background: #333; }
.g-even { background: #222; }
</style>
<h1 style="display: none;"><?= t("Photo detail") ?></h1>
<div id="g-exif-data">
<table class="g-metadata" >
<tbody>
<? for ($i = 0; $i < count($details); $i++): ?>
<tr>
<td class="g-even">
<?= $details[$i]["caption"] ?>
</td>
<td class="g-odd">
<?= html::clean($details[$i]["value"]) ?>
</td>
<? if (!empty($details[++$i])): ?>
<td class="g-even">
<?= $details[$i]["caption"] ?>
</td>
<td class="g-odd">
<?= html::clean($details[$i]["value"]) ?>
</td>
<? else: ?>
<td class="g-even"></td><td class="g-odd"></td>
<? endif ?>
</tr>
<? endfor ?>
</tbody>
</table>
</div>