photos_exif.tpl.php in Album Photos 7.3
Same filename and directory in other branches
Formats exif data.
1 theme call to photos_exif.tpl.php
- _photos_down_exif in inc/
photos.down.inc - Photos exif data.
File
tpl/photos_exif.tpl.phpView source
<?php
/**
* @file
* Formats exif data.
*/
if (is_array($exif)) {
?>
<table>
<?php
foreach ($exif as $key => $tag) {
?>
<?php
if (is_array($tag)) {
?>
<tr class="photos_exif_title"><td colspan="2"><?php
print $key;
?></td></tr>
<?php
foreach ($tag as $ctag => $val) {
?>
<tr><td class="photos_exif_name" width="30%"><?php
print $ctag;
?></td><td>
<?php
if (!is_array($val)) {
?>
<?php
print $val;
?>
<?php
}
else {
?>
<?php
print implode(',', $val);
?>
<?php
}
?>
</td></tr>
<?php
}
?>
<?php
}
?>
<?php
}
?>
</table>
<?php
}
else {
?>
<h2><?php
print $exif;
?></h2>
<?php
}