Changeset 529508
- Timestamp:
- 04/10/2012 03:25:36 PM (14 years ago)
- Location:
- shadowbox-js
- Files:
-
- 8 edited
- 1 copied
-
tags/3.0.3.10.1 (copied) (copied from shadowbox-js/trunk)
-
tags/3.0.3.10.1/inc/admin.php (modified) (4 diffs)
-
tags/3.0.3.10.1/readme.txt (modified) (3 diffs)
-
tags/3.0.3.10.1/shadowbox-js.php (modified) (2 diffs)
-
tags/3.0.3.10.1/shadowbox-title-push.php (modified) (1 diff)
-
trunk/inc/admin.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/shadowbox-js.php (modified) (2 diffs)
-
trunk/shadowbox-title-push.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
shadowbox-js/tags/3.0.3.10.1/inc/admin.php
r496740 r529508 418 418 } 419 419 //$this->build_shadowbox ( true ); // Attempt to build and cache shadowbox.js 420 if ( ! $this->check_for_src_file () ) 421 update_option ( 'shadowbox-js-missing-src', true ); 420 $this->check_for_src_file (); 422 421 } 423 422 … … 493 492 $status = false; 494 493 495 if ( $status === false ) 494 $option = get_option( 'shadowbox-js-missing-src' ); 495 496 if ( $status === false && ! $option ) 496 497 update_option ( 'shadowbox-js-missing-src', true ); 498 else if ( $status === true && $option ) 499 update_option ( 'shadowbox-js-missing-src', false ); 497 500 498 501 return $status; … … 601 604 602 605 $uploads = wp_upload_dir (); 603 if ( empty( $uploads['error'] ) && ! empty( $uploads['basedir'] ) ) 606 if ( empty( $uploads['error'] ) && ! empty( $uploads['basedir'] ) ) { 607 $baseurl = $uploads['baseurl']; 604 608 $basedir = $uploads['basedir']; 605 else 609 } else { 610 $baseurl = WP_CONTENT_URL . '/uploads'; 606 611 $basedir = WP_CONTENT_DIR . '/uploads'; 612 } 607 613 608 614 $shadowbox_dir = "$basedir/shadowbox-js/"; 609 615 $shadowbox_src_dir = "{$shadowbox_dir}src"; 616 $shadowbox_src_url = "{$baseurl}/shadowbox-js/src"; 610 617 611 618 // Ouput correct content-type, and caching headers … … 623 630 // Replace S.path with the correct path, so we don't have to rely on autodetection which is broken with this method 624 631 if ( $include == 'core' ) 625 $output .= str_replace ( 'S.path=null;' , "S.path=' $plugin_url/shadowbox/';" , file_get_contents ( "$shadowbox_src_dir/$include.js" ) );632 $output .= str_replace ( 'S.path=null;' , "S.path='{$shadowbox_src_url}/';" , file_get_contents ( "$shadowbox_src_dir/$include.js" ) ); 626 633 else 627 $output .= file_get_contents ( " $shadowbox_src_dir/$include.js" );634 $output .= file_get_contents ( "{$shadowbox_src_dir}/{$include}.js" ); 628 635 } 629 636 630 637 $library = $this->get_option ( 'library' ); 631 $output .= file_get_contents ( " $shadowbox_src_dir/adapters/$library.js" );638 $output .= file_get_contents ( "{$shadowbox_src_dir}/adapters/{$library}.js" ); 632 639 633 640 foreach ( array ( 'load' , 'plugins' , 'cache' ) as $include ) 634 $output .= file_get_contents ( " $shadowbox_src_dir/$include.js" );641 $output .= file_get_contents ( "{$shadowbox_src_dir}/{$include}.js" ); 635 642 636 643 if ( $this->get_option ( 'useSizzle' ) == 'true' && $this->get_option ( 'library' ) != 'jquery' ) 637 $output .= file_get_contents ( " $shadowbox_src_dir/find.js" );644 $output .= file_get_contents ( "{$shadowbox_src_dir}/find.js" ); 638 645 639 646 $players = (array) $this->get_option ( 'players' ); 640 647 if ( in_array ( 'flv' , $players ) || in_array ( 'swf' , $players ) ) 641 $output .= file_get_contents ( " $shadowbox_src_dir/flash.js" );648 $output .= file_get_contents ( "{$shadowbox_src_dir}/flash.js" ); 642 649 643 650 $language = $this->get_option ( 'language' ); 644 $output .= file_get_contents ( " $shadowbox_src_dir/languages/$language.js" );651 $output .= file_get_contents ( "{$shadowbox_src_dir}/languages/{$language}.js" ); 645 652 646 653 foreach ( $players as $player ) 647 $output .= file_get_contents ( " $shadowbox_src_dir/players/$player.js" );654 $output .= file_get_contents ( "{$shadowbox_src_dir}/players/{$player}.js" ); 648 655 649 656 foreach ( array ( 'skin' , 'outro' ) as $include ) 650 $output .= file_get_contents ( " $shadowbox_src_dir/$include.js" );657 $output .= file_get_contents ( "{$shadowbox_src_dir}/{$include}.js" ); 651 658 652 659 wp_cache_set ( $this->md5 () , 'shadowbox-js' ); -
shadowbox-js/tags/3.0.3.10.1/readme.txt
r518933 r529508 4 4 Tags: shadowbox-js, shadowbox, js, javascript, overlay, images, movies, audio, youtube, formatting, links, post, posts, lightbox, thickbox, lightview 5 5 Requires at least: 3.3 6 Tested up to: 3. 37 Stable tag: 3.0.3.10 6 Tested up to: 3.4 7 Stable tag: 3.0.3.10.1 8 8 9 9 Shadowbox is an online media vieiwing application similar to Lightbox and Thickbox but with more functionality. Supports all types of media. … … 156 156 == Upgrade Notice == 157 157 158 = 3.0.3.10.1 = 159 160 Fix issue with 3.0.3.10 where the FLV player could not be found due to a URL change, and make sure we get rid of the missing file nag if the source files were manually downloaded. 161 158 162 = 3.0.3.10 = 159 163 … … 189 193 190 194 == Changelog == 195 196 = 3.0.3.10.1 (2012-04-10): = 197 * Update S.path in shadowbox to the new URL of where the source files are located 198 * Clear the missing files nag if the files were downloaded manually 191 199 192 200 = 3.0.3.10 (2012-03-13): = -
shadowbox-js/tags/3.0.3.10.1/shadowbox-js.php
r518933 r529508 8 8 * 9 9 * @author Matt Martz <matt@sivel.net> 10 * @version 3.0.3.10 10 * @version 3.0.3.10.1 11 11 * @package shadowbox-js 12 12 */ … … 16 16 Plugin URI: http://sivel.net/wordpress/shadowbox-js/ 17 17 Description: A javascript media viewer similar to Lightbox and Thickbox. Supports all types of media, not just images. 18 Version: 3.0.3.10 18 Version: 3.0.3.10.1 19 19 Author: Matt Martz 20 20 Author URI: http://sivel.net/ -
shadowbox-js/tags/3.0.3.10.1/shadowbox-title-push.php
r518933 r529508 14 14 Plugin URI: http://sivel.net/wordpress/shadowbox-js/ 15 15 Description: Push the title attribute from the img tag to the anchor tag 16 Version: 3.0.3.10 16 Version: 3.0.3.10.1 17 17 Author: Matt Martz 18 18 Author URI: http://sivel.net/ -
shadowbox-js/trunk/inc/admin.php
r496740 r529508 418 418 } 419 419 //$this->build_shadowbox ( true ); // Attempt to build and cache shadowbox.js 420 if ( ! $this->check_for_src_file () ) 421 update_option ( 'shadowbox-js-missing-src', true ); 420 $this->check_for_src_file (); 422 421 } 423 422 … … 493 492 $status = false; 494 493 495 if ( $status === false ) 494 $option = get_option( 'shadowbox-js-missing-src' ); 495 496 if ( $status === false && ! $option ) 496 497 update_option ( 'shadowbox-js-missing-src', true ); 498 else if ( $status === true && $option ) 499 update_option ( 'shadowbox-js-missing-src', false ); 497 500 498 501 return $status; … … 601 604 602 605 $uploads = wp_upload_dir (); 603 if ( empty( $uploads['error'] ) && ! empty( $uploads['basedir'] ) ) 606 if ( empty( $uploads['error'] ) && ! empty( $uploads['basedir'] ) ) { 607 $baseurl = $uploads['baseurl']; 604 608 $basedir = $uploads['basedir']; 605 else 609 } else { 610 $baseurl = WP_CONTENT_URL . '/uploads'; 606 611 $basedir = WP_CONTENT_DIR . '/uploads'; 612 } 607 613 608 614 $shadowbox_dir = "$basedir/shadowbox-js/"; 609 615 $shadowbox_src_dir = "{$shadowbox_dir}src"; 616 $shadowbox_src_url = "{$baseurl}/shadowbox-js/src"; 610 617 611 618 // Ouput correct content-type, and caching headers … … 623 630 // Replace S.path with the correct path, so we don't have to rely on autodetection which is broken with this method 624 631 if ( $include == 'core' ) 625 $output .= str_replace ( 'S.path=null;' , "S.path=' $plugin_url/shadowbox/';" , file_get_contents ( "$shadowbox_src_dir/$include.js" ) );632 $output .= str_replace ( 'S.path=null;' , "S.path='{$shadowbox_src_url}/';" , file_get_contents ( "$shadowbox_src_dir/$include.js" ) ); 626 633 else 627 $output .= file_get_contents ( " $shadowbox_src_dir/$include.js" );634 $output .= file_get_contents ( "{$shadowbox_src_dir}/{$include}.js" ); 628 635 } 629 636 630 637 $library = $this->get_option ( 'library' ); 631 $output .= file_get_contents ( " $shadowbox_src_dir/adapters/$library.js" );638 $output .= file_get_contents ( "{$shadowbox_src_dir}/adapters/{$library}.js" ); 632 639 633 640 foreach ( array ( 'load' , 'plugins' , 'cache' ) as $include ) 634 $output .= file_get_contents ( " $shadowbox_src_dir/$include.js" );641 $output .= file_get_contents ( "{$shadowbox_src_dir}/{$include}.js" ); 635 642 636 643 if ( $this->get_option ( 'useSizzle' ) == 'true' && $this->get_option ( 'library' ) != 'jquery' ) 637 $output .= file_get_contents ( " $shadowbox_src_dir/find.js" );644 $output .= file_get_contents ( "{$shadowbox_src_dir}/find.js" ); 638 645 639 646 $players = (array) $this->get_option ( 'players' ); 640 647 if ( in_array ( 'flv' , $players ) || in_array ( 'swf' , $players ) ) 641 $output .= file_get_contents ( " $shadowbox_src_dir/flash.js" );648 $output .= file_get_contents ( "{$shadowbox_src_dir}/flash.js" ); 642 649 643 650 $language = $this->get_option ( 'language' ); 644 $output .= file_get_contents ( " $shadowbox_src_dir/languages/$language.js" );651 $output .= file_get_contents ( "{$shadowbox_src_dir}/languages/{$language}.js" ); 645 652 646 653 foreach ( $players as $player ) 647 $output .= file_get_contents ( " $shadowbox_src_dir/players/$player.js" );654 $output .= file_get_contents ( "{$shadowbox_src_dir}/players/{$player}.js" ); 648 655 649 656 foreach ( array ( 'skin' , 'outro' ) as $include ) 650 $output .= file_get_contents ( " $shadowbox_src_dir/$include.js" );657 $output .= file_get_contents ( "{$shadowbox_src_dir}/{$include}.js" ); 651 658 652 659 wp_cache_set ( $this->md5 () , 'shadowbox-js' ); -
shadowbox-js/trunk/readme.txt
r518933 r529508 4 4 Tags: shadowbox-js, shadowbox, js, javascript, overlay, images, movies, audio, youtube, formatting, links, post, posts, lightbox, thickbox, lightview 5 5 Requires at least: 3.3 6 Tested up to: 3. 37 Stable tag: 3.0.3.10 6 Tested up to: 3.4 7 Stable tag: 3.0.3.10.1 8 8 9 9 Shadowbox is an online media vieiwing application similar to Lightbox and Thickbox but with more functionality. Supports all types of media. … … 156 156 == Upgrade Notice == 157 157 158 = 3.0.3.10.1 = 159 160 Fix issue with 3.0.3.10 where the FLV player could not be found due to a URL change, and make sure we get rid of the missing file nag if the source files were manually downloaded. 161 158 162 = 3.0.3.10 = 159 163 … … 189 193 190 194 == Changelog == 195 196 = 3.0.3.10.1 (2012-04-10): = 197 * Update S.path in shadowbox to the new URL of where the source files are located 198 * Clear the missing files nag if the files were downloaded manually 191 199 192 200 = 3.0.3.10 (2012-03-13): = -
shadowbox-js/trunk/shadowbox-js.php
r518933 r529508 8 8 * 9 9 * @author Matt Martz <matt@sivel.net> 10 * @version 3.0.3.10 10 * @version 3.0.3.10.1 11 11 * @package shadowbox-js 12 12 */ … … 16 16 Plugin URI: http://sivel.net/wordpress/shadowbox-js/ 17 17 Description: A javascript media viewer similar to Lightbox and Thickbox. Supports all types of media, not just images. 18 Version: 3.0.3.10 18 Version: 3.0.3.10.1 19 19 Author: Matt Martz 20 20 Author URI: http://sivel.net/ -
shadowbox-js/trunk/shadowbox-title-push.php
r518933 r529508 14 14 Plugin URI: http://sivel.net/wordpress/shadowbox-js/ 15 15 Description: Push the title attribute from the img tag to the anchor tag 16 Version: 3.0.3.10 16 Version: 3.0.3.10.1 17 17 Author: Matt Martz 18 18 Author URI: http://sivel.net/
Note: See TracChangeset
for help on using the changeset viewer.