Changeset 1125
- Timestamp:
- 05/24/08 13:46:53 (6 months ago)
- Files:
-
- bb-lightbox2/trunk/bb-lightbox2.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
bb-lightbox2/trunk/bb-lightbox2.php
r1124 r1125 25 25 26 26 function bb_preg_callback2($matches) { 27 print_r ($matches);28 27 return '<a href="'.$matches[2].'" rel="lightbox">'.'<img src="'.ImgTumb($matches).'" />'.'</a>'; 29 28 } … … 31 30 function bb_removeLinks($content) { 32 31 33 $content = preg_replace_callback('@(]|<img.*src="(([^>"]*/)(.*[^"]))"*[^<].>) .[^(</a>)]@i', "bb_preg_callback2", $content);32 $content = preg_replace_callback('@(]|<img.*src="(([^>"]*/)(.*[^"]))"*[^<].>)@i', "bb_preg_callback2", $content); 34 33 35 34 return $content;
