display some meta data informations
authorAndreas Unterkircher <unki@netshadow.at>
Fri, 8 Jun 2007 04:17:24 +0000 (04:17 +0000)
committerAndreas Unterkircher <unki@netshadow.at>
Fri, 8 Jun 2007 04:17:24 +0000 (04:17 +0000)
git-svn-id: file:///var/lib/svn/phpfspot/trunk@49 fa6a889d-dae6-447d-9e79-4ba9a3039384

phpfspot.class.php
templates/single_photo.tpl

index 641cc0efbd215feb6d8fb08473e4340837b3f69b..c783939f894519dd00cbabdd07c44403e71763c1 100644 (file)
@@ -102,7 +102,10 @@ class PHPFSPOT {
 
 
       $details = $this->get_photo_details($photo);
 
 
       $details = $this->get_photo_details($photo);
+      $meta = $this->get_meta_informations($this->translate_path($details['directory_path']) ."/". $details['name']);
 
 
+      $this->tmpl->assign('c_date', $meta['DateTime']);
+      $this->tmpl->assign('madewith', $meta['Make'] ." ". $meta['Model']);
       $this->tmpl->assign('image_name', $details['name']);
       $this->tmpl->assign('image_url', 'phpfspot_img.php?idx='. $photo ."&amp;width=". $this->cfg->photo_width);
 
       $this->tmpl->assign('image_name', $details['name']);
       $this->tmpl->assign('image_url', 'phpfspot_img.php?idx='. $photo ."&amp;width=". $this->cfg->photo_width);
 
@@ -329,6 +332,13 @@ class PHPFSPOT {
 
    } // resize_image()
 
 
    } // resize_image()
 
+   public function get_meta_informations($file)
+   {
+
+      return exif_read_data($file);
+
+   } // get_meta_informations()
+
 }
 
 ?>
 }
 
 ?>
index 4501333261d606e3a46bada08ec63c1de4a63e6f..2243b5622c6a2fb2a216da24e165ca3b027c439c 100644 (file)
@@ -2,7 +2,7 @@
 <table>
  <tr>
   <td class="index_header" style="text-align: left;">
 <table>
  <tr>
   <td class="index_header" style="text-align: left;">
-   <b>Photo {$image_name}</b><br />
+   <b>Photo {$image_name}</b>, {$c_date}, {$madewith}<br />
   </td>
   <td class="index_header" style="text-align: right;">
    <img src="resources/information.png" />
   </td>
   <td class="index_header" style="text-align: right;">
    <img src="resources/information.png" />