includes/render.php
changeset 85 7c68a18a27be
parent 73 0a74676a2f2f
child 91 8079b0288e8e
equal deleted inserted replaced
84:f99fb84bd959 85:7c68a18a27be
   824       //   $img_tag .= 'width="' . $r_width . '" height="' . $r_height . '" ';
   824       //   $img_tag .= 'width="' . $r_width . '" height="' . $r_height . '" ';
   825       // }
   825       // }
   826       
   826       
   827       $img_tag .= 'style="border-width: 0px; /* background-color: white; */" ';
   827       $img_tag .= 'style="border-width: 0px; /* background-color: white; */" ';
   828       
   828       
       
   829       $code = $plugins->setHook('img_tag_parse_img');
       
   830       foreach ( $code as $cmd )
       
   831       {
       
   832         eval($cmd);
       
   833       }
       
   834       
   829       $img_tag .= '/>';
   835       $img_tag .= '/>';
   830       
   836       
   831       $complete_tag = '';
   837       $complete_tag = '';
   832       
   838       
   833       if ( !empty($scale_type) && $caption != '|raw' )
   839       if ( !empty($scale_type) && $caption != '|raw' )
   866         $text = str_replace($full_tag, $repl, $text);
   872         $text = str_replace($full_tag, $repl, $text);
   867         continue;
   873         continue;
   868       }
   874       }
   869       else
   875       else
   870       {
   876       {
   871         $complete_tag .= '<a href="' . makeUrlNS('File', $filename) . '" style="display: block;">';
   877         $complete_tag .= '<a href="' . makeUrlNS('File', $filename) . '" style="display: block;"';
       
   878         $code = $plugins->setHook('img_tag_parse_link');
       
   879         foreach ( $code as $cmd )
       
   880         {
       
   881           eval($cmd);
       
   882         }
       
   883         $complete_tag .= '>';
   872         $complete_tag .= $img_tag;
   884         $complete_tag .= $img_tag;
   873         $complete_tag .= '</a>';
   885         $complete_tag .= '</a>';
   874       }
   886       }
   875       
   887       
   876       $complete_tag .= "\n\n";
   888       $complete_tag .= "\n\n";