includes/render.php
changeset 85 7c68a18a27be
parent 73 0a74676a2f2f
child 91 8079b0288e8e
--- a/includes/render.php	Mon Aug 06 10:37:42 2007 -0400
+++ b/includes/render.php	Thu Aug 09 12:26:16 2007 -0400
@@ -826,6 +826,12 @@
       
       $img_tag .= 'style="border-width: 0px; /* background-color: white; */" ';
       
+      $code = $plugins->setHook('img_tag_parse_img');
+      foreach ( $code as $cmd )
+      {
+        eval($cmd);
+      }
+      
       $img_tag .= '/>';
       
       $complete_tag = '';
@@ -868,7 +874,13 @@
       }
       else
       {
-        $complete_tag .= '<a href="' . makeUrlNS('File', $filename) . '" style="display: block;">';
+        $complete_tag .= '<a href="' . makeUrlNS('File', $filename) . '" style="display: block;"';
+        $code = $plugins->setHook('img_tag_parse_link');
+        foreach ( $code as $cmd )
+        {
+          eval($cmd);
+        }
+        $complete_tag .= '>';
         $complete_tag .= $img_tag;
         $complete_tag .= '</a>';
       }