]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
moved exif to a view
authorCash Costello <cash.costello@gmail.com>
Wed, 17 Jun 2009 01:48:48 +0000 (01:48 +0000)
committerCash Costello <cash.costello@gmail.com>
Wed, 17 Jun 2009 01:48:48 +0000 (01:48 +0000)
views/default/object/image.php
views/default/tidypics/exif.php [new file with mode: 0644]

index bd81e238e0124c819738acd3f054448adebb4cb6..b7e19d8c0056454f95943e61e47975da4576e183 100644 (file)
@@ -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 (file)
index 0000000..80d52d7
--- /dev/null
@@ -0,0 +1,8 @@
+<?php\r
+\r
+       $guid = $vars['guid'];\r
+       \r
+       $exif = tp_exif_formatted($guid);\r
+       if($exif) echo $exif;\r
+       \r
+?>
\ No newline at end of file