Changeset 36007
- Timestamp:
- 03/24/08 11:44:31 (4 months ago)
- Location:
- add-lightbox
- Files:
-
- 4 modified
- 1 copied
-
tags/0.3 (copied) (copied from add-lightbox/trunk)
-
tags/0.3/lightbox-auto.php (modified) (2 diffs)
-
tags/0.3/readme.txt (modified) (1 diff)
-
trunk/lightbox-auto.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
add-lightbox/tags/0.3/lightbox-auto.php
r29398 r36007 2 2 /* 3 3 Plugin Name: Add Lightbox 4 Plugin URI: http://mdkart.fr/blog/ 2007/06/14/plugin-add-lightbox-pour-wordpress/4 Plugin URI: http://mdkart.fr/blog/plugin-add-lightbox-pour-wordpress/ 5 5 Description: This plugin automatically add the rel="lightbox[ID_OF_THE_POST]" to images linked in a post. ID_OF_THE_POST is unique per post so all images per post are grouped in one lightbox set. Doesn't add the the files required for lightbox! 6 6 Author: Mdkart 7 7 Author URI: http://mdkart.fr 8 Version: 0. 28 Version: 0.3 9 9 Put in /wp-content/plugins/ of your Wordpress installation 10 10 Inpsired by this thread : http://wordpress.org/support/topic/106529 … … 13 13 function addlightboxrel_replace ($content) 14 14 { global $post; 15 //$pattern = "/<a(.*?)href=('|\")(.*?).(bmp|gif|jpeg|jpg|png)('|\")(.*?)>/i"; 16 $pattern = "/<a(.*?)href=('|\")(.*?).(bmp|gif|jpeg|jpg|png)('|\")(.*?)>(.*?)<\/a>/i"; 15 $pattern = "/<a(.*?)href=('|\")([^>]*).(bmp|gif|jpeg|jpg|png)('|\")(.*?)>(.*?)<\/a>/i"; 17 16 $replacement = '<a$1href=$2$3.$4$5 rel="lightbox[%LIGHTID%]"$6>$7</a>'; 18 17 $content = preg_replace($pattern, $replacement, $content); -
add-lightbox/tags/0.3/readme.txt
r29403 r36007 22 22 23 23 == Changelog / Todo == 24 24 0.3 25 * Correction of a bug that added rel tag on links done on img tags 25 26 0.2 26 27 * Correction of a small bug described by Kristof Mattei. Thanks to him for the help! -
add-lightbox/trunk/lightbox-auto.php
r29398 r36007 2 2 /* 3 3 Plugin Name: Add Lightbox 4 Plugin URI: http://mdkart.fr/blog/ 2007/06/14/plugin-add-lightbox-pour-wordpress/4 Plugin URI: http://mdkart.fr/blog/plugin-add-lightbox-pour-wordpress/ 5 5 Description: This plugin automatically add the rel="lightbox[ID_OF_THE_POST]" to images linked in a post. ID_OF_THE_POST is unique per post so all images per post are grouped in one lightbox set. Doesn't add the the files required for lightbox! 6 6 Author: Mdkart 7 7 Author URI: http://mdkart.fr 8 Version: 0. 28 Version: 0.3 9 9 Put in /wp-content/plugins/ of your Wordpress installation 10 10 Inpsired by this thread : http://wordpress.org/support/topic/106529 … … 13 13 function addlightboxrel_replace ($content) 14 14 { global $post; 15 //$pattern = "/<a(.*?)href=('|\")(.*?).(bmp|gif|jpeg|jpg|png)('|\")(.*?)>/i"; 16 $pattern = "/<a(.*?)href=('|\")(.*?).(bmp|gif|jpeg|jpg|png)('|\")(.*?)>(.*?)<\/a>/i"; 15 $pattern = "/<a(.*?)href=('|\")([^>]*).(bmp|gif|jpeg|jpg|png)('|\")(.*?)>(.*?)<\/a>/i"; 17 16 $replacement = '<a$1href=$2$3.$4$5 rel="lightbox[%LIGHTID%]"$6>$7</a>'; 18 17 $content = preg_replace($pattern, $replacement, $content); -
add-lightbox/trunk/readme.txt
r29403 r36007 22 22 23 23 == Changelog / Todo == 24 24 0.3 25 * Correction of a bug that added rel tag on links done on img tags 25 26 0.2 26 27 * Correction of a small bug described by Kristof Mattei. Thanks to him for the help!
