aboutsummaryrefslogtreecommitdiffstats
path: root/template/default
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2004-08-25 21:09:09 +0000
committerz0rglub <z0rglub@piwigo.org>2004-08-25 21:09:09 +0000
commitd8494248fc3df1ac9b688fd5b250de60a50361b2 (patch)
tree209664043b3f2014be7acd492ba5a3b690c11883 /template/default
parent593574214c8dcbd9fa5bb79060d9bbbc81ffd1fc (diff)
"show metadata" feature added : you can ask to show metadata (EXIF and IPTC)
on picture.php page. Metadata read functions were moved from admin/include/functions_metadata.php to include/functions_metadata.inc.php git-svn-id: http://piwigo.org/svn/trunk@493 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--template/default/admin/configuration.tpl20
-rw-r--r--template/default/picture.tpl24
2 files changed, 44 insertions, 0 deletions
diff --git a/template/default/admin/configuration.tpl b/template/default/admin/configuration.tpl
index b2eb8f22b..d1a528b6d 100644
--- a/template/default/admin/configuration.tpl
+++ b/template/default/admin/configuration.tpl
@@ -197,6 +197,26 @@
<input type="radio" class="radio" name="use_iptc" value="false" {USE_IPTC_NO} />{L_NO}
</td>
</tr>
+ <tr>
+ <td>
+ <strong>{L_SHOW_EXIF}&nbsp;:</strong>
+ <br /><span class="small">{L_SHOW_EXIF_INFO}</span>
+ </td>
+ <td class="row1">
+ <input type="radio" class="radio" name="show_exif" value="true" {SHOW_EXIF_YES} />{L_YES}&nbsp;&nbsp;
+ <input type="radio" class="radio" name="show_exif" value="false" {SHOW_EXIF_NO} />{L_NO}
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <strong>{L_SHOW_IPTC}&nbsp;:</strong>
+ <br /><span class="small">{L_SHOW_IPTC_INFO}</span>
+ </td>
+ <td class="row1">
+ <input type="radio" class="radio" name="show_iptc" value="true" {SHOW_IPTC_YES} />{L_YES}&nbsp;&nbsp;
+ <input type="radio" class="radio" name="show_iptc" value="false" {SHOW_IPTC_NO} />{L_NO}
+ </td>
+ </tr>
<!-- BEGIN remote_sites -->
<tr>
<th colspan="2" align="center">{#remote_site}</th>
diff --git a/template/default/picture.tpl b/template/default/picture.tpl
index ea301a24e..58d445ced 100644
--- a/template/default/picture.tpl
+++ b/template/default/picture.tpl
@@ -69,6 +69,30 @@
</a>
</div>
<!-- END favorite -->
+
+ <!-- BEGIN show_metadata -->
+ [ <a href="{show_metadata.URL}">{L_PICTURE_SHOW_METADATA}</a> ]
+ <!-- END show_metadata -->
+
+ <!-- BEGIN hide_metadata -->
+ [ <a href="{hide_metadata.URL}">{L_PICTURE_HIDE_METADATA}</a> ]
+ <!-- END hide_metadata -->
+
+ <!-- BEGIN metadata -->
+ <table class="metadata">
+ <!-- BEGIN headline -->
+ <tr>
+ <th colspan="2">{metadata.headline.TITLE}</th>
+ </tr>
+ <!-- END headline -->
+ <!-- BEGIN line -->
+ <tr>
+ <td>{metadata.line.KEY}</td>
+ <td>{metadata.line.VALUE}</td>
+ </tr>
+ <!-- END line -->
+ </table>
+ <!-- END metadata -->
<!-- BEGIN modification -->
<div class="menu" style="text-align:center;margin:5px;">
[ <a href="{U_ADMIN}">{L_ADMIN}</a> ]