Changeset 46123
- Timestamp:
- 05/16/08 05:50:03 (2 months ago)
- Files:
-
- lightbox-2/tags/2.6.0 (copied) (copied from lightbox-2/trunk)
- lightbox-2/tags/2.6.0/Themes (copied) (copied from lightbox-2/trunk/Themes)
- lightbox-2/tags/2.6.0/Themes/Dark Grey/lightbox.css (copied) (copied from lightbox-2/trunk/Themes/Dark Grey/lightbox.css)
- lightbox-2/tags/2.6.0/lightbox2.php (copied) (copied from lightbox-2/trunk/lightbox2.php) (2 diffs)
- lightbox-2/tags/2.6.0/options.php (copied) (copied from lightbox-2/trunk/options.php) (1 diff)
- lightbox-2/tags/2.6.0/readme.txt (copied) (copied from lightbox-2/trunk/readme.txt) (1 diff)
- lightbox-2/trunk/lightbox2.php (modified) (2 diffs)
- lightbox-2/trunk/lightbox2/images (deleted)
- lightbox-2/trunk/lightbox2/lightbox.css (deleted)
- lightbox-2/trunk/options.php (modified) (1 diff)
- lightbox-2/trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lightbox-2/tags/2.6.0/lightbox2.php
r26899 r46123 3 3 Plugin Name: Lightbox 2 4 4 Plugin URI: http://www.stimuli.ca/lightbox/ 5 Description: Used to overlay images on the current page. Lightbox JS v2.2 by <a href="http://www.huddletogether.com/projects/lightbox2/" title="Lightbox JS v2.2 ">Lokesh Dhakar</a>. 6 Version: 2. 5.05 Description: Used to overlay images on the current page. Lightbox JS v2.2 by <a href="http://www.huddletogether.com/projects/lightbox2/" title="Lightbox JS v2.2 ">Lokesh Dhakar</a>. Mad props to Krembo99 for the auto-lightbox code! 6 Version: 2.6.0 7 7 Author: Rupert Morris 8 8 Author URI: http://www.stimuli.ca/ … … 46 46 } 47 47 48 /* Added a code to automatically insert rel="lightbox[nameofpost]" to every image with no manual work. */ 49 50 function krembo99_replace ($content) 51 { 52 global $post; 53 $pattern = "/<a(.*?)href=('|\")([A-Za-z0-9\/_\.\~\:-]*?)(\.bmp|\.gif|\.jpg|\.jpeg|\.png)('|\")([^\>]*?)>/i"; /*this was inside the tag K99---- (\.bmp|\.gif|\.jpg|\.jpeg|\.png|\.swf)-----*/ 54 $replacement = '<a$1href=$2$3$4$5 rel="lightbox[%LIGHTID%]"$6>'; /*Krembo99- this was inside the tag KREMBO99--- rel="gallery[%LIGHTID%]"$6----*/ 55 $content = preg_replace($pattern, $replacement, $content); 56 $content = str_replace("%LIGHTID%", $post->ID, $content); 57 58 return $content; 59 } 60 add_filter('the_content', 'krembo99_replace'); 61 48 62 /* we want to add the above xhtml to the header of our pages: */ 49 63 add_action('wp_head', 'lightbox_styles'); lightbox-2/tags/2.6.0/options.php
r26899 r46123 20 20 <th scope="row"><?php _e('Lightbox Appearance:') ?></th> 21 21 <td> 22 <? 22 23 <?php 23 24 /* Check if there are themes: */ 24 25 $lightbox_2_theme_path = get_option('lightbox_2_theme_path'); lightbox-2/tags/2.6.0/readme.txt
r26901 r46123 3 3 Tags: AJAX, image, lightbox, photo, picture 4 4 Requires at least: 1.5 5 Tested up to: 2. 3.16 Stable tag: 2. 5.05 Tested up to: 2.5 6 Stable tag: 2.6.0 7 7 8 8 == Description == lightbox-2/trunk/lightbox2.php
r26899 r46123 3 3 Plugin Name: Lightbox 2 4 4 Plugin URI: http://www.stimuli.ca/lightbox/ 5 Description: Used to overlay images on the current page. Lightbox JS v2.2 by <a href="http://www.huddletogether.com/projects/lightbox2/" title="Lightbox JS v2.2 ">Lokesh Dhakar</a>. 6 Version: 2. 5.05 Description: Used to overlay images on the current page. Lightbox JS v2.2 by <a href="http://www.huddletogether.com/projects/lightbox2/" title="Lightbox JS v2.2 ">Lokesh Dhakar</a>. Mad props to Krembo99 for the auto-lightbox code! 6 Version: 2.6.0 7 7 Author: Rupert Morris 8 8 Author URI: http://www.stimuli.ca/ … … 46 46 } 47 47 48 /* Added a code to automatically insert rel="lightbox[nameofpost]" to every image with no manual work. */ 49 50 function krembo99_replace ($content) 51 { 52 global $post; 53 $pattern = "/<a(.*?)href=('|\")([A-Za-z0-9\/_\.\~\:-]*?)(\.bmp|\.gif|\.jpg|\.jpeg|\.png)('|\")([^\>]*?)>/i"; /*this was inside the tag K99---- (\.bmp|\.gif|\.jpg|\.jpeg|\.png|\.swf)-----*/ 54 $replacement = '<a$1href=$2$3$4$5 rel="lightbox[%LIGHTID%]"$6>'; /*Krembo99- this was inside the tag KREMBO99--- rel="gallery[%LIGHTID%]"$6----*/ 55 $content = preg_replace($pattern, $replacement, $content); 56 $content = str_replace("%LIGHTID%", $post->ID, $content); 57 58 return $content; 59 } 60 add_filter('the_content', 'krembo99_replace'); 61 48 62 /* we want to add the above xhtml to the header of our pages: */ 49 63 add_action('wp_head', 'lightbox_styles'); lightbox-2/trunk/options.php
r26899 r46123 20 20 <th scope="row"><?php _e('Lightbox Appearance:') ?></th> 21 21 <td> 22 <? 22 23 <?php 23 24 /* Check if there are themes: */ 24 25 $lightbox_2_theme_path = get_option('lightbox_2_theme_path'); lightbox-2/trunk/readme.txt
r26901 r46123 3 3 Tags: AJAX, image, lightbox, photo, picture 4 4 Requires at least: 1.5 5 Tested up to: 2. 3.16 Stable tag: 2. 5.05 Tested up to: 2.5 6 Stable tag: 2.6.0 7 7 8 8 == Description ==
