aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-06-17 01:48:48 +0000
committerCash Costello <cash.costello@gmail.com>2009-06-17 01:48:48 +0000
commit17854bb2fece61401f9d4c8d5dc31f396e0fbf70 (patch)
treebad1344dc5963960e0315e4f0c32bc439c876bfa /views
parent9eadf21d8a1782f4f77d99826c91d705cade404d (diff)
downloadelgg-17854bb2fece61401f9d4c8d5dc31f396e0fbf70.tar.gz
elgg-17854bb2fece61401f9d4c8d5dc31f396e0fbf70.tar.bz2
moved exif to a view
Diffstat (limited to 'views')
-rw-r--r--views/default/object/image.php5
-rw-r--r--views/default/tidypics/exif.php8
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