summaryrefslogtreecommitdiff
path: root/modules/exif/views
diff options
context:
space:
mode:
authorTristan Zur <tzur@webserver.ccwn.org>2015-06-10 20:55:53 +0200
committerTristan Zur <tzur@webserver.ccwn.org>2015-06-10 20:55:53 +0200
commit406abd7c4df1ace2cd3e4e17159e8941a2e8c0c4 (patch)
treea324be16021f44f2fd6d55e609f47024e945b1db /modules/exif/views
Initial import
Diffstat (limited to 'modules/exif/views')
-rw-r--r--modules/exif/views/exif_dialog.html.php33
-rw-r--r--modules/exif/views/exif_sidebar.html.php6
2 files changed, 39 insertions, 0 deletions
diff --git a/modules/exif/views/exif_dialog.html.php b/modules/exif/views/exif_dialog.html.php
new file mode 100644
index 0000000..22744e2
--- /dev/null
+++ b/modules/exif/views/exif_dialog.html.php
@@ -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: #bdd2ff; }
+ .g-even { background: #dfeffc; }
+</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>
diff --git a/modules/exif/views/exif_sidebar.html.php b/modules/exif/views/exif_sidebar.html.php
new file mode 100644
index 0000000..8af2eb1
--- /dev/null
+++ b/modules/exif/views/exif_sidebar.html.php
@@ -0,0 +1,6 @@
+<?php defined("SYSPATH") or die("No direct script access.") ?>
+<a id="g-exif-data-link" href="<?= url::site("exif/show/{$item->id}") ?>" title="<?= t("Photo details")->for_html_attr() ?>"
+ class="g-dialog-link g-button ui-icon-left ui-state-default ui-corner-all">
+ <span class="ui-icon ui-icon-info"></span>
+ <?= t("View more information") ?>
+</a>