Changeset 36007 for add-lightbox

Show
Ignore:
Timestamp:
03/24/08 11:44:31 (4 months ago)
Author:
Mdkart
Message:

Correction of a bug : version 0.3 now

Location:
add-lightbox
Files:
4 modified
1 copied

Legend:

Unmodified
Added
Removed
  • add-lightbox/tags/0.3/lightbox-auto.php

    r29398 r36007  
    22/* 
    33Plugin Name: Add Lightbox 
    4 Plugin URI: http://mdkart.fr/blog/2007/06/14/plugin-add-lightbox-pour-wordpress/ 
     4Plugin URI: http://mdkart.fr/blog/plugin-add-lightbox-pour-wordpress/ 
    55Description: 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! 
    66Author: Mdkart 
    77Author URI: http://mdkart.fr 
    8 Version: 0.2 
     8Version: 0.3 
    99Put in /wp-content/plugins/ of your Wordpress installation 
    1010Inpsired by this thread : http://wordpress.org/support/topic/106529 
     
    1313function addlightboxrel_replace ($content) 
    1414{   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"; 
    1716    $replacement = '<a$1href=$2$3.$4$5 rel="lightbox[%LIGHTID%]"$6>$7</a>'; 
    1817    $content = preg_replace($pattern, $replacement, $content); 
  • add-lightbox/tags/0.3/readme.txt

    r29403 r36007  
    2222 
    2323== Changelog / Todo == 
    24  
     240.3 
     25* Correction of a bug that added rel tag on links done on img tags 
    25260.2 
    2627* Correction of a small bug described by Kristof Mattei. Thanks to him for the help! 
  • add-lightbox/trunk/lightbox-auto.php

    r29398 r36007  
    22/* 
    33Plugin Name: Add Lightbox 
    4 Plugin URI: http://mdkart.fr/blog/2007/06/14/plugin-add-lightbox-pour-wordpress/ 
     4Plugin URI: http://mdkart.fr/blog/plugin-add-lightbox-pour-wordpress/ 
    55Description: 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! 
    66Author: Mdkart 
    77Author URI: http://mdkart.fr 
    8 Version: 0.2 
     8Version: 0.3 
    99Put in /wp-content/plugins/ of your Wordpress installation 
    1010Inpsired by this thread : http://wordpress.org/support/topic/106529 
     
    1313function addlightboxrel_replace ($content) 
    1414{   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"; 
    1716    $replacement = '<a$1href=$2$3.$4$5 rel="lightbox[%LIGHTID%]"$6>$7</a>'; 
    1817    $content = preg_replace($pattern, $replacement, $content); 
  • add-lightbox/trunk/readme.txt

    r29403 r36007  
    2222 
    2323== Changelog / Todo == 
    24  
     240.3 
     25* Correction of a bug that added rel tag on links done on img tags 
    25260.2 
    2627* Correction of a small bug described by Kristof Mattei. Thanks to him for the help!