Changeset 1124
- Timestamp:
- 05/24/08 13:04:37 (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
r1123 r1124 25 25 26 26 function bb_preg_callback2($matches) { 27 print_r ($matches); 27 28 return '<a href="'.$matches[2].'" rel="lightbox">'.'<img src="'.ImgTumb($matches).'" />'.'</a>'; 28 29 } … … 30 31 function bb_removeLinks($content) { 31 32 32 $content = preg_replace_callback('@(]|<img.*src="(([^>"]*/)(.*[^"]))"*[^<].>) [^(</a>)]@i', "bb_preg_callback2", $content);33 $content = preg_replace_callback('@(]|<img.*src="(([^>"]*/)(.*[^"]))"*[^<].>).[^(</a>)]@i', "bb_preg_callback2", $content); 33 34 34 35 return $content;
