diff options
author | Cash Costello <cash.costello@gmail.com> | 2012-07-14 14:42:37 -0400 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2012-07-14 14:42:37 -0400 |
commit | 0eec78495e5f63a80c2b04fcb87bda1ccb2b6648 (patch) | |
tree | 42b2bb3b35e8d6ba2924f0aabe42f218beea6bca /views/default/photos/sidebar | |
parent | 65548983c054a48fe0adb94c327847a7101db390 (diff) | |
download | elgg-0eec78495e5f63a80c2b04fcb87bda1ccb2b6648.tar.gz elgg-0eec78495e5f63a80c2b04fcb87bda1ccb2b6648.tar.bz2 |
added exif back
Diffstat (limited to 'views/default/photos/sidebar')
-rw-r--r-- | views/default/photos/sidebar/exif.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/views/default/photos/sidebar/exif.php b/views/default/photos/sidebar/exif.php new file mode 100644 index 000000000..1d4444b53 --- /dev/null +++ b/views/default/photos/sidebar/exif.php @@ -0,0 +1,20 @@ +<?php +/** + * EXIF sidebar module + */ + +$image = $vars['image']; + +elgg_load_library('tidypics:exif'); + +$exif = tp_exif_formatted($image); +if ($exif) { + $title = "EXIF"; + $body = '<table class="elgg-table elgg-table-alt">'; + foreach ($exif as $key => $value) { + $body .= "<tr><td>$key</td><td>$value</td></tr>"; + } + $body .= '</table>'; + + echo elgg_view_module('aside', $title, $body); +} |