aboutsummaryrefslogtreecommitdiff
path: root/views/default/photos/sidebar/exif.php
blob: 1d4444b53dc41333245119c14cc86a7b9908a8b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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);
}