diff options
-rw-r--r-- | views/default/object/image.php | 5 | ||||
-rw-r--r-- | views/default/tidypics/exif.php | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/views/default/object/image.php b/views/default/object/image.php index bd81e238e..b7e19d8c0 100644 --- a/views/default/object/image.php +++ b/views/default/object/image.php @@ -214,10 +214,7 @@ if ($photo_tags) { if (get_plugin_setting('exif', 'tidypics') != "disabled") { ?> <div id="tidypics_breadcrumbs"> - <?php - $exif = tp_exif_formatted($file_guid); - if($exif) echo $exif; - ?> + <?php echo elgg_view('tidypics/exif', array('guid'=> $file_guid)); ?> </div> <?php } ?> <div id="tidypics_info"> diff --git a/views/default/tidypics/exif.php b/views/default/tidypics/exif.php new file mode 100644 index 000000000..80d52d781 --- /dev/null +++ b/views/default/tidypics/exif.php @@ -0,0 +1,8 @@ +<?php
+
+ $guid = $vars['guid'];
+
+ $exif = tp_exif_formatted($guid);
+ if($exif) echo $exif;
+
+?>
\ No newline at end of file |