Changeset 496740
- Timestamp:
- 01/29/2012 05:16:23 AM (14 years ago)
- Location:
- shadowbox-js/trunk
- Files:
-
- 1 deleted
- 8 edited
-
inc/admin.php (modified) (12 diffs)
-
inc/frontend.php (modified) (1 diff)
-
inc/options-page.php (modified) (2 diffs)
-
localization/shadowbox-js-template.po (modified) (2 diffs)
-
readme.txt (modified) (7 diffs)
-
shadowbox (deleted)
-
shadowbox-js.php (modified) (3 diffs)
-
shadowbox-title-push.php (modified) (1 diff)
-
uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
shadowbox-js/trunk/inc/admin.php
r390051 r496740 65 65 add_action ( 'wp_ajax_nopriv_shadowboxjs' , array ( &$this , 'build_shadowbox' ) ); 66 66 67 add_action ( 'wp_ajax_getshadowboxsrc' , array ( &$this , 'ajax_get_src' ) ); 68 67 69 // Load localizations if available 68 70 load_plugin_textdomain ( 'shadowbox-js' , false , 'shadowbox-js/localization' ); … … 76 78 // Activate the options page 77 79 add_action ( 'admin_menu' , array ( &$this , 'add_page' ) ) ; 80 81 add_filter ( 'explain_nonce_getshadowboxcreds' , 'nonce_oops' ); 82 add_filter ( 'explain_nonce_getshadowboxsrc' , 'nonce_oops' ); 83 84 if ( get_option ( 'shadowbox-js-missing-src' ) ) 85 add_action ( 'admin_notices' , array ( &$this , 'missing_src_notice' ) ); 86 } 87 88 /** 89 * Callback function for explaining the failure of a nonce check specific to this plugin 90 * 91 * @return string 92 * @since 3.0.3.10 93 */ 94 function nonce_oops () { 95 return __( "Oops, looks like you landed somewhere you shouldn't be." ); 96 } 97 98 /** 99 * Display an admin notice if the Shadowbox JS source files are missing 100 * 101 * @since 3.0.3.10 102 */ 103 function missing_src_notice () { 104 global $hook_suffix; 105 if ( $hook_suffix == $this->options_page_hookname ) 106 return; 107 108 $url = menu_page_url ( 'shadowbox-js', false ); 109 ?> 110 <div class="error"> 111 <p><?php _e( sprintf ( "<strong>The Shadowbox JS source files are missing</strong>. Please visit the <a href='%s'>Shadowbox JS Settings page</a> to resolve this issue." , $url ) , 'shadowbox-js' ); ?><p> 112 </div> 113 <?php 78 114 } 79 115 … … 102 138 'messageConfirm' => __( 'Do you agree that you are not using FLV support for commercial purposes or have already purchased a license for JW FLV Media Player?' , 'shadowbox-js' ) 103 139 ) ); 140 } 141 142 /** 143 * Output JS to listen for button clicks to retrieve the source files. 144 * This is only used when the user doesn't have to enter credentials for WP_Filesystem. 145 * 146 * @since 3.0.3.10 147 */ 148 function admin_footer_js () { 149 ?> 150 <script type="text/javascript"> 151 /* <![CDATA[ */ 152 jQuery('#sbajaxgetsrc').click(function(e) { 153 e.preventDefault(); 154 jQuery('#sbgetsrcinfo').load( 155 ajaxurl, 156 { 157 action: 'getshadowboxsrc', 158 _wpnonce: '<?php echo wp_create_nonce ( "getshadowboxsrc" ); ?>' 159 } 160 ); 161 }); 162 /* ]]> */ 163 </script> 164 <?php 104 165 } 105 166 … … 356 417 $this->check_upgrade (); 357 418 } 358 $this->build_shadowbox ( true ); // Attempt to build and cache shadowbox.js 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 ); 359 422 } 360 423 … … 394 457 395 458 /** 396 * Upgrade options 459 * Check to see whether the user must be prompted for connection details by WP_Filesystem 460 * 461 * @since 3.0.3.10 462 * @return bool 463 */ 464 function can_modify_fs () { 465 ob_start(); 466 if ( false !== ( $credentials = request_filesystem_credentials ( '' ) ) ) { 467 ob_end_clean (); 468 return true; 469 } else { 470 ob_end_clean (); 471 return false; 472 } 473 } 474 475 /** 476 * Check to see if the Shadowbox source files exist and that they are the correct version. 477 * 478 * @return bool 479 * @since 3.0.3.10 480 */ 481 function check_for_src_file () { 482 $uploads = wp_upload_dir (); 483 if ( empty( $uploads['error'] ) && ! empty( $uploads['basedir'] ) ) 484 $basedir = $uploads['basedir']; 485 else 486 $basedir = WP_CONTENT_DIR . '/uploads'; 487 488 $status = true; 489 if ( ! file_exists ( $basedir . '/shadowbox-js/src/intro.js' ) ) 490 $status = false; 491 492 if ( version_compare ( trim ( @file_get_contents ( $basedir . '/shadowbox-js/src/VERSION' ) ) , $this->sbversion ) !== 0 ) 493 $status = false; 494 495 if ( $status === false ) 496 update_option ( 'shadowbox-js-missing-src', true ); 497 498 return $status; 499 } 500 501 /** 502 * Upgrade options 397 503 * 398 504 * @return none … … 484 590 * @since 3.0.3 485 591 * @param $tofile Boolean write output to file instead of echoing 486 * @return none592 * @return mixed false if the file could not be built and a string of the file location if successful 487 593 */ 488 594 function build_shadowbox ( $tofile = false ) { … … 492 598 493 599 $plugin_url = $this->plugin_url (); 494 $plugin_dir = WP_PLUGIN_DIR . '/' . dirname ( $this->plugin_basename ); 600 //$plugin_dir = WP_PLUGIN_DIR . '/' . dirname ( $this->plugin_basename ); 601 602 $uploads = wp_upload_dir (); 603 if ( empty( $uploads['error'] ) && ! empty( $uploads['basedir'] ) ) 604 $basedir = $uploads['basedir']; 605 else 606 $basedir = WP_CONTENT_DIR . '/uploads'; 607 608 $shadowbox_dir = "$basedir/shadowbox-js/"; 609 $shadowbox_src_dir = "{$shadowbox_dir}src"; 495 610 496 611 // Ouput correct content-type, and caching headers … … 498 613 cache_javascript_headers(); 499 614 500 $output = ''; 501 502 // Start build 503 foreach ( array ( 'intro' , 'core' , 'util' ) as $include ) { 504 // Replace S.path with the correct path, so we don't have to rely on autodetection which is broken with this method 505 if ( $include == 'core' ) 506 $output .= str_replace ( 'S.path=null;' , "S.path='$plugin_url/shadowbox/';" , file_get_contents ( "$plugin_dir/shadowbox/$include.js" ) ); 507 else 508 $output .= file_get_contents ( "$plugin_dir/shadowbox/$include.js" ); 509 } 510 511 $library = $this->get_option ( 'library' ); 512 $output .= file_get_contents ( "$plugin_dir/shadowbox/adapters/$library.js" ); 513 514 foreach ( array ( 'load' , 'plugins' , 'cache' ) as $include ) 515 $output .= file_get_contents ( "$plugin_dir/shadowbox/$include.js" ); 516 517 if ( $this->get_option ( 'useSizzle' ) == 'true' && $this->get_option ( 'library' ) != 'jquery' ) 518 $output .= file_get_contents ( "$plugin_dir/shadowbox/find.js" ); 519 520 $players = (array) $this->get_option ( 'players' ); 521 if ( in_array ( 'flv' , $players ) || in_array ( 'swf' , $players ) ) 522 $output .= file_get_contents ( "$plugin_dir/shadowbox/flash.js" ); 523 524 $language = $this->get_option ( 'language' ); 525 $output .= file_get_contents ( "$plugin_dir/shadowbox/languages/$language.js" ); 526 527 foreach ( $players as $player ) 528 $output .= file_get_contents ( "$plugin_dir/shadowbox/players/$player.js" ); 529 530 foreach ( array ( 'skin' , 'outro' ) as $include ) 531 $output .= file_get_contents ( "$plugin_dir/shadowbox/$include.js" ); 615 $output = wp_cache_get ( $this->md5 () , 'shadowbox-js' ); 616 617 if ( empty ( $output ) ) { 618 619 $output = ''; 620 621 // Start build 622 foreach ( array ( 'intro' , 'core' , 'util' ) as $include ) { 623 // Replace S.path with the correct path, so we don't have to rely on autodetection which is broken with this method 624 if ( $include == 'core' ) 625 $output .= str_replace ( 'S.path=null;' , "S.path='$plugin_url/shadowbox/';" , file_get_contents ( "$shadowbox_src_dir/$include.js" ) ); 626 else 627 $output .= file_get_contents ( "$shadowbox_src_dir/$include.js" ); 628 } 629 630 $library = $this->get_option ( 'library' ); 631 $output .= file_get_contents ( "$shadowbox_src_dir/adapters/$library.js" ); 632 633 foreach ( array ( 'load' , 'plugins' , 'cache' ) as $include ) 634 $output .= file_get_contents ( "$shadowbox_src_dir/$include.js" ); 635 636 if ( $this->get_option ( 'useSizzle' ) == 'true' && $this->get_option ( 'library' ) != 'jquery' ) 637 $output .= file_get_contents ( "$shadowbox_src_dir/find.js" ); 638 639 $players = (array) $this->get_option ( 'players' ); 640 if ( in_array ( 'flv' , $players ) || in_array ( 'swf' , $players ) ) 641 $output .= file_get_contents ( "$shadowbox_src_dir/flash.js" ); 642 643 $language = $this->get_option ( 'language' ); 644 $output .= file_get_contents ( "$shadowbox_src_dir/languages/$language.js" ); 645 646 foreach ( $players as $player ) 647 $output .= file_get_contents ( "$shadowbox_src_dir/players/$player.js" ); 648 649 foreach ( array ( 'skin' , 'outro' ) as $include ) 650 $output .= file_get_contents ( "$shadowbox_src_dir/$include.js" ); 651 652 wp_cache_set ( $this->md5 () , 'shadowbox-js' ); 653 654 } 532 655 533 656 // if we are supposed to write to a file then do so 534 657 if ( $tofile && $this->get_option ( 'useCache' ) == 'true' ) { 535 $uploads = wp_upload_dir ();536 if ( empty( $uploads['error'] ) && ! empty( $uploads['basedir'] ) )537 $basedir = $uploads['basedir'];538 else539 $basedir = WP_CONTENT_DIR . '/uploads';540 541 $shadowbox_dir = "$basedir/shadowbox-js/";542 658 $shadowbox_file = $shadowbox_dir . $this->md5 () . '.js'; 543 659 … … 553 669 @chmod ( $shadowbox_file , $chmod ); 554 670 } 671 672 if ( ! file_exists ( $shadowbox_file ) ) 673 return false; 674 else 675 return $shadowbox_file; 676 555 677 } else if ( ! $tofile ) { // otherwise just echo (backup call to admin-ajax.php for on the fly building) 556 678 die ( $output ); … … 559 681 560 682 /** 683 * AJAX provileged callback for retrieving the shadowbox source, hands off to ShadowboxAdmin::get_src() 684 * 685 * @since 3.0.3.10 686 */ 687 function ajax_get_src () { 688 if ( ! current_user_can ( 'update_plugins' ) || ! check_admin_referer ( 'getshadowboxsrc' ) ) 689 die ( __( "Uh, Oh! You've been a bad boy!" , 'shadowbox-js' ) ); 690 691 die ( $this->get_src () ); 692 } 693 694 /** 695 * This function will retrieve the shadowbox source via the HTTP API and move the files 696 * into place using WP_Filesystem 697 * 698 * @param string credentials from request_filesystem_credentials() 699 * @since 3.0.3.10 700 */ 701 function get_src ( $creds = '' ) { 702 global $wp_filesystem; 703 704 if ( empty ( $creds ) ) 705 $creds = request_filesystem_credentials ( '' ); 706 707 if ( ! WP_Filesystem ( $creds ) ) 708 die ( '<p>' . __( 'Could not setup WP_Filesystem' ) . '</p>' ); 709 710 echo "<p>" . __( sprintf ( "Downloading source package from <span class='code'>http://dl.sivel.net/wordpress/plugin/shadowbox-js-src.%s.zip</span>…", $this->sbversion ) , 'shadowbox-js' ) . "</p>"; 711 $tempfname = download_url ( "http://dl.sivel.net/wordpress/plugin/shadowbox-js-src.{$this->sbversion}.zip" ); 712 713 if ( is_wp_error ( $tempfname ) ) 714 die ( "<p>" . __( sprintf ( "Could not download the file (%s)" , $tempfname->get_error_message () ) , 'shadowbox-js' ) . "</p>" ); 715 716 if ( ! file_exists ( $tempfname ) ) 717 die ( '<p>' . __( 'File downloaded but does not appear to exist, or is unreadable' , 'shadowbox-js' ) . '</p>' ); 718 719 $dlmd5response = wp_remote_get ( "http://dl.sivel.net/wordpress/plugin/shadowbox-js-src.{$this->sbversion}.md5" ); 720 if ( is_wp_error ( $dlmd5response ) || (int) wp_remote_retrieve_response_code ( $dlmd5response ) !== 200 ) { 721 echo "<p>" . __( sprintf ( "Failed to download the md5 checksum file. Continuing… (%s)" , $dlmd5response->get_error_message () ) , 'shadowbox-js' ) . "</p>"; 722 } else { 723 if ( md5_file ( $tempfname ) != current ( explode ( ' ' , wp_remote_retrieve_body ( $dlmd5response ) ) ) ) 724 die ( '<p>' . __( 'MD5 checksum failed. Exiting…' , 'shadowbox-js' ) . '</p>' ); 725 } 726 727 $uploads = wp_upload_dir (); 728 if ( empty ( $uploads['error'] ) && ! empty ( $uploads['basedir'] ) ) 729 $basedir = $uploads['basedir']; 730 else 731 $basedir = WP_CONTENT_DIR . '/uploads'; 732 733 $basedir = trailingslashit ( untrailingslashit ( $wp_filesystem->find_folder ( dirname ( $basedir ) ) ) ) . basename ( $basedir ); 734 735 $srcdir = $basedir . '/shadowbox-js/src'; 736 737 $srcfiles = $wp_filesystem->dirlist ( $srcdir ); 738 if ( ! empty ( $srcfiles ) ) { 739 echo '<p>' . __( 'Clearing out the current Shadowbox JS source directory…' , 'shadowbox-js' ) . '</p>'; 740 foreach ( $srcfiles as $file ) 741 $wp_filesystem->delete ( $srcdir . $file['name'] , true ); 742 } 743 744 if ( $wp_filesystem->is_dir ( $srcdir ) ) { 745 echo '<p>' . __( 'Removing the current Shadowbox JS source directory…' , 'shadowbox-js' ) . '</p>'; 746 $wp_filesystem->delete ( $srcdir , true ); 747 } 748 749 echo "<p>" . __( sprintf ( "Unpacking the Shadowbox JS source files to <span class='code'>%s</span>…" , $srcdir ) , 'shadowbox-js' ) . "</p>"; 750 $result = unzip_file ( $tempfname , dirname ( $srcdir ) ); 751 unlink ( $tempfname ); 752 753 if ( $result === true ) { 754 echo '<p>' . __( 'Successfully retrieved and extracted the <strong>Shadowbox JS</strong> source files' , 'shadowbox-js' ) . '</p>'; 755 update_option ( 'shadowbox-js-missing-src' , false ); 756 } else { 757 die ( "<p>" . __( sprintf ( "Failed to extract the <strong>Shadowbox JS</strong> source files (%s)" , $result->get_error_data () ) , 'shadowbox-js' ) . "</p>" ); 758 } 759 760 echo '<p>' . __( 'Attempting to build and cache the compiled shadowbox.js...' , 'shadowbox-js' ) . '</p>'; 761 $buildresult = $this->build_shadowbox ( true ); 762 if ( $buildresult ) 763 echo "<p>" . __( sprintf ( "Successfully built and cached the compiled shadowbox.js to <span class='code'>%s</span>" , $buildresult ) , 'shadowbox-js' ) . "</p>"; 764 else 765 echo '<p>' . __( 'Failed to build and cache the compiled shadowbox.js. This is ok, the plugin should still be able to function' , 'shadowbox-js' ) . '</p>'; 766 } 767 768 /** 561 769 * Add the options page 562 770 * … … 566 774 function add_page () { 567 775 if ( current_user_can ( 'manage_options' ) ) { 568 $this->options_page_hookname = add_options_page ( __( 'Shadowbox JS' , 'shadowbox-js' ) , __( 'Shadowbox JS' , 'shadowbox-js' ) , 'manage_options' , 'shadowbox-js' , array ( &$this , 'admin_page' ) ); 776 $callback = 'admin_page'; 777 if ( isset ( $_GET['sbgetsrc'] ) && (int) $_GET['sbgetsrc'] === 1 ) 778 $callback = 'get_src_admin_page'; 779 780 $this->options_page_hookname = add_options_page ( __( 'Shadowbox JS' , 'shadowbox-js' ) , __( 'Shadowbox JS' , 'shadowbox-js' ) , 'manage_options' , 'shadowbox-js' , array ( &$this , $callback ) ); 569 781 add_action ( "admin_print_scripts-{$this->options_page_hookname}" , array ( &$this , 'admin_js' ) ); 570 782 add_action ( "admin_print_styles-{$this->options_page_hookname}" , array ( &$this , 'admin_css' ) ); 571 783 add_filter ( "plugin_action_links_{$this->plugin_basename}" , array ( &$this , 'filter_plugin_actions' ) ); 572 add_contextual_help($this->options_page_hookname, 'This is Shadowbox JS'); 573 } 784 785 add_action ( "admin_footer-{$this->options_page_hookname}" , array ( &$this , 'admin_footer_js' ) ); 786 787 if ( ! $this->check_for_src_file () ) 788 add_meta_box ( 'sbgetsrcinfometabox' , __( 'Missing Shadowbox JS Source Files!' , 'shadowbox-js' ) , array ( &$this , 'srcinfo_meta_box' ) , 'shadowbox-js' , 'normal' , 'high' ); 789 } 790 } 791 792 /** 793 * Callback for the shadowbox-js meta box display, to inform the user that 794 * the Shadowbox source files must be downloaded 795 * 796 * @since 3.0.3.10 797 */ 798 function srcinfo_meta_box () { 799 ?> 800 <div id="sbgetsrcinfo"> 801 <p><?php _e( '<strong>You are missing the Shadowbox source files. Do you wish to retrieve them? You will likely be unable to use this plugin until you do.</strong>', 'shadowbox-js' ); ?></p> 802 <p><?php _e( sprintf ( '<strong>NOTE:</strong> This action will cause this plugin to download the source from this plugin authors site.<br /> 803 If you are concerned about this action "phoning home" you can download the source from<br /> 804 <span class="code"><a href="http://dl.sivel.net/wordpress/plugin/shadowbox-js-src.%1$s.zip">http://dl.sivel.net/wordpress/plugin/shadowbox-js-src.%1$s.zip</a></span> and extract to <span class="code">wp-content/uploads/shadowbox-js/src</span>' , $this->sbversion ) , 'shadowbox-js' ); ?></p> 805 <p><?php _e( 'Shadowbox is licensed under the terms of the <a href="http://shadowbox-js.com/LICENSE" target="_blank">Shadowbox.js License</a>. This license grants personal, non-commercial users the right to use Shadowbox without paying a fee. It also provides an option for users who wish to use Shadowbox for commercial purposes. You are encouraged to review the terms of the license before using Shadowbox. If you would like to use Shadowbox for commercial purposes, you can purchase a license from <spann class="code"><a href="http://www.shadowbox-js.com/" target="_blank">http://www.shadowbox-js.com/</a></span>.' ); ?></p> 806 <p><?php _e( 'This plugin also makes use of the <a href="http://www.longtailvideo.com/players/jw-flv-player/" target="_blank">JW FLV Player</a>. JW FLV Player is licensed under the terms of the <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/" target="_blank">Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License</a>. If you would like to use JW FLV Player for commercial purposes, you can purchase a license from <span class="code"><a href="https://www.longtailvideo.com/players/order2" target="_blank">https://www.longtailvideo.com/players/order2</a></span>.' ); ?></p> 807 <?php if ( $this->can_modify_fs () ) : ?> 808 <p><a class="button" id="sbajaxgetsrc" href="#"><?php _e( 'Get Shadowbox Source Files' , 'shadowbox-js' ); ?></a></p> 809 <?php else: ?> 810 <p><a class="button" href="<?php echo wp_nonce_url ( add_query_arg ( array ( 'sbgetsrc' => 1 ) , menu_page_url ( 'shadowbox-js' , false ) ) , 'getshadowboxsrc' ); ?>"><?php _e( 'Get Shadowbox Source Files' , 'shadowbox-js' ); ?></a></p> 811 <?php endif; ?> 812 </div> 813 <?php 574 814 } 575 815 … … 598 838 } 599 839 } 840 841 /** 842 * Execute request_filesystem_credentials to get the connection credentials and verify them 843 * 844 * @return string 845 * @since 3.0.3.10 846 */ 847 function request_fs_credentials () { 848 global $wp_filesystem; 849 850 check_admin_referer ( 'getshadowboxsrc' ); 851 852 $url = wp_nonce_url ( add_query_arg ( array ( 'sbgetsrc' => 1 ) , menu_page_url ( 'shadowbox-js' , false ) ) , 'getshadowboxsrc' ); 853 if ( false === ( $creds = request_filesystem_credentials ( $url , '' , false , false ) ) ) 854 return true; 855 856 if ( ! WP_Filesystem ( $creds ) ) { 857 request_filesystem_credentials ( $url , '' , true , false ); 858 return true; 859 } 860 861 return $creds; 862 } 863 864 /** 865 * Admin "options" page callback to handle the retrieval of Shadowbox source when 866 * filesystem connection credentials were required of the user 867 * 868 * @since 3.0.3.10 869 */ 870 function get_src_admin_page () { 871 if ( $this->request_fs_credentials () === true ) 872 return; 873 874 check_admin_referer ( 'getshadowboxsrc' ); 875 ?> 876 <div class="wrap"> 877 <div id="icon-options-general" class="icon32"><br /></div> 878 <h2><?php _e( 'Retrieving Shadowbox JS source package' , 'shadowbox-js' ); ?></h2> 879 <?php 880 $this->get_src ( $creds ); 881 882 $url = menu_page_url ( 'shadowbox-js' , false ); 883 ?> 884 <p><a href='<?php echo $url; ?>'><?php _e( 'Return to the Shadowbox JS settings page' , 'shadowbox-js' ); ?></a></p> 885 </div> 886 <?php 887 } 600 888 } -
shadowbox-js/trunk/inc/frontend.php
r472089 r496740 106 106 function styles () { 107 107 $plugin_url = $this->plugin_url (); 108 $shadowbox_css = apply_filters ( 'shadowbox-css' , $plugin_url . '/shadowbox/shadowbox.css' ); 108 $uploads = wp_upload_dir (); 109 if ( empty( $uploads['error'] ) && ! empty( $uploads['basedir'] ) ) { 110 $baseurl = $uploads['baseurl']; 111 $basedir = $uploads['basedir']; 112 } else { 113 $baseurl = WP_CONTENT_URL . '/uploads'; 114 $basedir = WP_CONTENT_DIR . '/uploads'; 115 } 116 117 $shadowbox_css = apply_filters ( 'shadowbox-css' , $baseurl . '/shadowbox-js/src/shadowbox.css' ); 109 118 wp_register_style ( 'shadowbox-css' , $shadowbox_css , false , $this->sbversion , 'screen' ); 110 119 wp_register_style ( 'shadowbox-extras' , apply_filters ( 'shadowbox-extras' , $plugin_url . '/css/extras.css' ) , false , $this->version , 'screen' ); -
shadowbox-js/trunk/inc/options-page.php
r249218 r496740 11 11 ?> 12 12 <div class="wrap shadowbox"> 13 <div id="icon-options-general" class="icon32"><br /></div> 13 14 <h2><?php _e( 'Shadowbox JS' , 'shadowbox-js' ); ?></h2> 14 15 <?php if ( has_filter ( 'shadowbox-js' ) ) : ?> … … 21 22 </div> 22 23 <?php endif; ?> 24 <?php if ( ! empty ( $this->options ) && ! has_filter( 'shadowbox-js' ) ) : ?> 25 <div class="metabox-holder"> 26 <?php do_meta_boxes ( 'shadowbox-js' , 'normal' , '' ); ?> 27 </div> 28 <?php endif; ?> 23 29 <form action="options.php" method="post"> 24 30 <?php settings_fields ( 'shadowbox' ); ?> -
shadowbox-js/trunk/localization/shadowbox-js-template.po
r222446 r496740 3 3 "Project-Id-Version: shadowbox-js\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 201 0-03-28 09:46-0600\n"6 "PO-Revision-Date: 201 0-03-28 09:46-0600\n"5 "POT-Creation-Date: 2012-01-28 23:07-0600\n" 6 "PO-Revision-Date: 2012-01-28 23:07-0600\n" 7 7 "Last-Translator: Matt Martz <matt@sivel.net>\n" 8 8 "Language-Team: Matt Martz <matt@sivel.net>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "X-Poedit-KeywordsList: __;_e\n" 13 "X-Poedit-Basepath: /var/www/trunk/wp-content/plugins/shadowbox-js\n" 14 "X-Poedit-SearchPath-0: .\n" 15 16 #: shadowbox-js.php:146 12 13 #: shadowbox-js.php:204 17 14 #, php-format 18 15 msgid "Shadowbox JS has been automatically deactivated because the file <strong>%s</strong> is missing. Please reinstall the plugin and reactivate." 19 16 msgstr "" 20 17 21 #: inc/admin.php:100 22 #: inc/options-page.php:116 18 #: inc/admin.php:95 19 msgid "Oops, looks like you landed somewhere you shouldn't be." 20 msgstr "" 21 22 #: inc/admin.php:136 23 #: inc/options-page.php:135 23 24 msgid "Show Advanced Configuration" 24 25 msgstr "" 25 26 26 #: inc/admin.php:1 0127 #: inc/admin.php:137 27 28 msgid "Hide Advanced Configuration" 28 29 msgstr "" 29 30 30 #: inc/admin.php:1 0231 #: inc/admin.php:138 31 32 msgid "Do you agree that you are not using FLV support for commercial purposes or have already purchased a license for JW FLV Media Player?" 32 33 msgstr "" 33 34 34 #: inc/admin.php:580 35 #: inc/options-page.php:13 35 #: inc/admin.php:689 36 msgid "Uh, Oh! You've been a bad boy!" 37 msgstr "" 38 39 #: inc/admin.php:708 40 msgid "Could not setup WP_Filesystem" 41 msgstr "" 42 43 #: inc/admin.php:717 44 msgid "File downloaded but does not appear to exist, or is unreadable" 45 msgstr "" 46 47 #: inc/admin.php:724 48 msgid "MD5 checksum failed. Exiting…" 49 msgstr "" 50 51 #: inc/admin.php:739 52 msgid "Clearing out the current Shadowbox JS source directory…" 53 msgstr "" 54 55 #: inc/admin.php:745 56 msgid "Removing the current Shadowbox JS source directory…" 57 msgstr "" 58 59 #: inc/admin.php:754 60 msgid "Successfully retrieved and extracted the <strong>Shadowbox JS</strong> source files" 61 msgstr "" 62 63 #: inc/admin.php:760 64 msgid "Attempting to build and cache the compiled shadowbox.js..." 65 msgstr "" 66 67 #: inc/admin.php:765 68 msgid "Failed to build and cache the compiled shadowbox.js. This is ok, the plugin should still be able to function" 69 msgstr "" 70 71 #: inc/admin.php:780 72 #: inc/options-page.php:14 36 73 msgid "Shadowbox JS" 37 74 msgstr "" 38 75 39 #: inc/admin.php:595 76 #: inc/admin.php:788 77 msgid "Missing Shadowbox JS Source Files!" 78 msgstr "" 79 80 #: inc/admin.php:801 81 msgid "<strong>You are missing the Shadowbox source files. Do you wish to retrieve them? You will likely be unable to use this plugin until you do.</strong>" 82 msgstr "" 83 84 #: inc/admin.php:805 85 msgid "Shadowbox is licensed under the terms of the <a href=\"http://shadowbox-js.com/LICENSE\" target=\"_blank\">Shadowbox.js License</a>. This license grants personal, non-commercial users the right to use Shadowbox without paying a fee. It also provides an option for users who wish to use Shadowbox for commercial purposes. You are encouraged to review the terms of the license before using Shadowbox. If you would like to use Shadowbox for commercial purposes, you can purchase a license from <spann class=\"code\"><a href=\"http://www.shadowbox-js.com/\" target=\"_blank\">http://www.shadowbox-js.com/</a></span>." 86 msgstr "" 87 88 #: inc/admin.php:806 89 msgid "This plugin also makes use of the <a href=\"http://www.longtailvideo.com/players/jw-flv-player/\" target=\"_blank\">JW FLV Player</a>. JW FLV Player is licensed under the terms of the <a href=\"http://creativecommons.org/licenses/by-nc-sa/3.0/\" target=\"_blank\">Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License</a>. If you would like to use JW FLV Player for commercial purposes, you can purchase a license from <span class=\"code\"><a href=\"https://www.longtailvideo.com/players/order2\" target=\"_blank\">https://www.longtailvideo.com/players/order2</a></span>." 90 msgstr "" 91 92 #: inc/admin.php:808 93 #: inc/admin.php:810 94 msgid "Get Shadowbox Source Files" 95 msgstr "" 96 97 #: inc/admin.php:824 40 98 msgid "Settings" 41 99 msgstr "" 42 100 43 #: inc/options-page.php:18 101 #: inc/admin.php:878 102 msgid "Retrieving Shadowbox JS source package" 103 msgstr "" 104 105 #: inc/admin.php:884 106 msgid "Return to the Shadowbox JS settings page" 107 msgstr "" 108 109 #: inc/options-page.php:19 44 110 msgid "The URL for shadowbox.js has been overridden. Numerous options on this page will not display when the URL for shadowbox.js has been overriden as they will not have any effect." 45 111 msgstr "" 46 112 47 #: inc/options-page.php: 27113 #: inc/options-page.php:33 48 114 msgid "General" 49 115 msgstr "" 50 116 51 #: inc/options-page.php: 28117 #: inc/options-page.php:34 52 118 msgid "These are general options for the Shadowbox Javascript that tell Shadowbox how to run, how to look and what language to use." 53 119 msgstr "" 54 120 55 #: inc/options-page.php:3 2121 #: inc/options-page.php:38 56 122 msgid "Javascript Library" 57 123 msgstr "" 58 124 59 #: inc/options-page.php: 36125 #: inc/options-page.php:42 60 126 msgid "None" 61 127 msgstr "" 62 128 63 #: inc/options-page.php:4 3129 #: inc/options-page.php:49 64 130 msgid "Default is None." 65 131 msgstr "" 66 132 67 #: inc/options-page.php: 48133 #: inc/options-page.php:54 68 134 msgid "The URL for shadowbox.js has been overridden. The above setting must match the library/adapter that was chosen when building shadowbox.js or Shadowbox will not function." 69 135 msgstr "" 70 136 71 #: inc/options-page.php: 58137 #: inc/options-page.php:64 72 138 msgid "Language" 73 139 msgstr "" 74 140 75 #: inc/options-page.php: 68141 #: inc/options-page.php:74 76 142 msgid "Default is en." 77 143 msgstr "" 78 144 79 #: inc/options-page.php:7 3145 #: inc/options-page.php:79 80 146 msgid "Players" 81 147 msgstr "" 82 148 83 #: inc/options-page.php: 84149 #: inc/options-page.php:90 84 150 msgid "The list of enabled or disabled players. Default is HTML, IFRAME, IMG, QT, SWF and WMP. The FLV option will not be available until you <a href=\"#enableFlv\">enable FLV support</a> as outlined below." 85 151 msgstr "" 86 152 87 #: inc/options-page.php: 89153 #: inc/options-page.php:95 88 154 msgid "Enable FLV Support" 89 155 msgstr "" 90 156 91 #: inc/options-page.php:93 92 #: inc/options-page.php:107 93 #: inc/options-page.php:124 94 #: inc/options-page.php:137 95 #: inc/options-page.php:164 96 #: inc/options-page.php:177 157 #: inc/options-page.php:99 158 #: inc/options-page.php:113 159 #: inc/options-page.php:126 160 #: inc/options-page.php:143 161 #: inc/options-page.php:156 162 #: inc/options-page.php:183 163 #: inc/options-page.php:196 164 #: inc/options-page.php:239 165 #: inc/options-page.php:252 166 #: inc/options-page.php:295 167 #: inc/options-page.php:308 168 #: inc/options-page.php:321 169 #: inc/options-page.php:394 170 #: inc/options-page.php:427 171 #: inc/options-page.php:440 172 #: inc/options-page.php:453 173 #: inc/options-page.php:500 174 #: inc/options-page.php:513 175 #: inc/options-page.php:530 176 #: inc/options-page.php:543 177 #: inc/options-page.php:556 178 #: inc/options-page.php:600 179 #: inc/options-page.php:611 180 msgid "true" 181 msgstr "" 182 183 #: inc/options-page.php:100 184 #: inc/options-page.php:114 185 #: inc/options-page.php:127 186 #: inc/options-page.php:144 187 #: inc/options-page.php:157 188 #: inc/options-page.php:184 189 #: inc/options-page.php:197 190 #: inc/options-page.php:240 191 #: inc/options-page.php:253 192 #: inc/options-page.php:296 193 #: inc/options-page.php:309 194 #: inc/options-page.php:322 195 #: inc/options-page.php:395 196 #: inc/options-page.php:428 197 #: inc/options-page.php:441 198 #: inc/options-page.php:454 199 #: inc/options-page.php:501 200 #: inc/options-page.php:514 201 #: inc/options-page.php:531 202 #: inc/options-page.php:544 203 #: inc/options-page.php:557 204 #: inc/options-page.php:599 205 #: inc/options-page.php:610 206 msgid "false" 207 msgstr "" 208 209 #: inc/options-page.php:103 210 msgid "By enabling FLV support you are agreeing to the the <a href=\"http://creativecommons.org/licenses/by-nc-sa/3.0/\">noncommercial license</a> used by JW FLV Media Player. The JW FLV Media Player is licensed under the terms of the <a href=\"http://creativecommons.org/licenses/by-nc-sa/3.0/\">Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License</a>. After enabling FLV support you will need to select FLV from the list of players above, and optionally enable automation for FLV links under \"Shadowbox Automation\". Default is false." 211 msgstr "" 212 213 #: inc/options-page.php:109 214 msgid "Enable Smart Loading" 215 msgstr "" 216 217 #: inc/options-page.php:117 218 msgid "Enabling this will only load Shadowbox and its dependencies when needed based on the content of your posts.\tPlease note that when enabling this Shadowbox will not be loaded if rel=\"shadowbox\" is not found in the content of your post(s). If you experience problems after enabling this, try disabling. Default is false." 219 msgstr "" 220 221 #: inc/options-page.php:122 222 msgid "Use Cached shadowbox.js" 223 msgstr "" 224 225 #: inc/options-page.php:130 226 msgid "This will allow this plugin to create a cached copy of shadowbox.js in wp-content/uploads/shadowbox-js. With this disabled the shadowbox.js file will be built on the fly during each page load. If you experience problems with this plugin not working with this enabled, try disabling. Default is true." 227 msgstr "" 228 229 #: inc/options-page.php:134 230 msgid "Advanced Configuration" 231 msgstr "" 232 233 #: inc/options-page.php:139 234 msgid "Animate" 235 msgstr "" 236 237 #: inc/options-page.php:147 238 msgid "Set this false to disable all fancy animations (except fades). This can improve the overall effect on computers with poor performance. Defaults to true." 239 msgstr "" 240 241 #: inc/options-page.php:152 242 msgid "Fade Animations" 243 msgstr "" 244 245 #: inc/options-page.php:160 246 msgid "Set this false to disable all fading animations. Defaults to true." 247 msgstr "" 248 249 #: inc/options-page.php:165 250 msgid "Animation Sequence" 251 msgstr "" 252 253 #: inc/options-page.php:174 254 msgid "The animation sequence to use when resizing Shadowbox. May be either \"wh\" (width first, then height), \"hw\" (height first, then width), or \"sync\" (both simultaneously). Defaults to \"sync\"." 255 msgstr "" 256 257 #: inc/options-page.php:179 258 msgid "Modal" 259 msgstr "" 260 261 #: inc/options-page.php:187 262 msgid "Set this true to disable listening for mouse clicks on the overlay that will close Shadowbox. Defaults to false." 263 msgstr "" 264 265 #: inc/options-page.php:192 266 msgid "Show Overlay" 267 msgstr "" 268 269 #: inc/options-page.php:200 270 msgid "Set this false to disable showing the overlay. Defaults to true." 271 msgstr "" 272 273 #: inc/options-page.php:205 274 msgid "Overlay Color" 275 msgstr "" 276 277 #: inc/options-page.php:210 278 msgid "The color to use for the modal overlay (in hex). Defaults to \"#000\"." 279 msgstr "" 280 281 #: inc/options-page.php:215 282 msgid "Overlay Opacity" 283 msgstr "" 284 97 285 #: inc/options-page.php:220 98 #: inc/options-page.php:233 286 msgid "The opacity to use for the modal overlay. Defaults to 0.8." 287 msgstr "" 288 289 #: inc/options-page.php:225 290 msgid "Flash Background Color" 291 msgstr "" 292 293 #: inc/options-page.php:230 294 msgid "The default background color to use for Flash movies. Defaults to \"#000000\"." 295 msgstr "" 296 297 #: inc/options-page.php:235 298 msgid "Auto-Play Movies" 299 msgstr "" 300 301 #: inc/options-page.php:243 302 msgid "Set this false to disable automatically playing movies when they are loaded. Defaults to true." 303 msgstr "" 304 305 #: inc/options-page.php:248 306 msgid "Show Movie Controls" 307 msgstr "" 308 309 #: inc/options-page.php:256 310 msgid "Set this false to disable displaying QuickTime and Windows Media player movie control bars. Defaults to true." 311 msgstr "" 312 313 #: inc/options-page.php:261 314 msgid "Slideshow Delay" 315 msgstr "" 316 317 #: inc/options-page.php:266 318 msgid "A delay (in seconds) to use for slideshows. If set to anything other than 0, this value determines an interval at which Shadowbox will automatically proceed to the next piece in the gallery. Defaults to 0." 319 msgstr "" 320 321 #: inc/options-page.php:271 322 msgid "Resize Duration" 323 msgstr "" 324 99 325 #: inc/options-page.php:276 100 #: inc/options-page.php:289 101 #: inc/options-page.php:302 102 #: inc/options-page.php:375 326 msgid "The duration (in seconds) of the resizing animations. Defaults to 0.55." 327 msgstr "" 328 329 #: inc/options-page.php:281 330 msgid "Fade Duration" 331 msgstr "" 332 333 #: inc/options-page.php:286 334 msgid "The duration (in seconds) of the fade animations. Defaults to 0.35." 335 msgstr "" 336 337 #: inc/options-page.php:291 338 msgid "Display Navigation" 339 msgstr "" 340 341 #: inc/options-page.php:299 342 msgid "Set this false to hide the gallery navigation controls. Defaults to true." 343 msgstr "" 344 345 #: inc/options-page.php:304 346 msgid "Continuous" 347 msgstr "" 348 349 #: inc/options-page.php:312 350 msgid "Set this true to enable \"continuous\" galleries. By default, the galleries will not let a user go before the first image or after the last. Enabling this feature will let the user go directly to the first image in a gallery from the last one by selecting \"Next\". Defaults to false." 351 msgstr "" 352 353 #: inc/options-page.php:317 354 msgid "Display Counter" 355 msgstr "" 356 357 #: inc/options-page.php:325 358 msgid "Set this false to hide the gallery counter. Counters are never displayed on elements that are not part of a gallery. Defaults to true." 359 msgstr "" 360 361 #: inc/options-page.php:330 362 msgid "Counter Type" 363 msgstr "" 364 365 #: inc/options-page.php:334 366 msgid "default" 367 msgstr "" 368 369 #: inc/options-page.php:335 370 msgid "skip" 371 msgstr "" 372 373 #: inc/options-page.php:338 374 msgid "The mode to use for the gallery counter. May be either \"default\" or \"skip\". The default counter is a simple \"1 of 5\" message. The skip counter displays a separate link to each piece in the gallery, enabling quick navigation in large galleries. Defaults to \"default\"." 375 msgstr "" 376 377 #: inc/options-page.php:343 378 msgid "Counter Limit" 379 msgstr "" 380 381 #: inc/options-page.php:348 382 msgid "Limits the number of counter links that will be displayed in a \"skip\" style counter. If the actual number of gallery elements is greater than this value, the counter will be restrained to the elements immediately preceding and following the current element. Defaults to 10." 383 msgstr "" 384 385 #: inc/options-page.php:353 386 msgid "Viewport Padding" 387 msgstr "" 388 389 #: inc/options-page.php:358 390 msgid "The amount of padding (in pixels) to maintain around the edge of the browser window. Defaults to 20." 391 msgstr "" 392 393 #: inc/options-page.php:363 394 msgid "Handle Oversize" 395 msgstr "" 396 397 #: inc/options-page.php:367 398 msgid "none" 399 msgstr "" 400 401 #: inc/options-page.php:368 402 msgid "resize" 403 msgstr "" 404 405 #: inc/options-page.php:369 406 msgid "drag" 407 msgstr "" 408 409 #: inc/options-page.php:372 410 msgid "The mode to use for handling content that is too large for the viewport. May be one of \"none\", \"resize\", or \"drag\" (for images). The \"none\" setting will not alter the image dimensions, though clipping may occur. Setting this to \"resize\" enables on-the-fly resizing of large content. In this mode, the height and width of large, resizable content will be adjusted so that it may still be viewed in its entirety while maintaining its original aspect ratio. The \"drag\" mode will display an oversized image at its original resolution, but will allow the user to drag it within the view to see portions that may be clipped. Defaults to \"resize\"." 411 msgstr "" 412 413 #: inc/options-page.php:377 414 msgid "Handle Unsupported" 415 msgstr "" 416 417 #: inc/options-page.php:381 418 msgid "link" 419 msgstr "" 420 421 #: inc/options-page.php:382 422 msgid "remove" 423 msgstr "" 424 425 #: inc/options-page.php:385 426 msgid "The mode to use for handling unsupported media. May be either \"link\" or \"remove\". Media are unsupported when the browser plugin required to display the media properly is not installed. The link option will display a user-friendly error message with a link to a page where the needed plugin can be downloaded. The remove option will simply remove any unsupported gallery elements from the gallery before displaying it. With this option, if the element is not part of a gallery, the link will simply be followed. Defaults to \"link\"." 427 msgstr "" 428 429 #: inc/options-page.php:390 430 msgid "Auto Dimensions" 431 msgstr "" 432 433 #: inc/options-page.php:398 434 msgid "Set this true to automatically set the initialHeight and initialWidth automatically from the configured object's height and width. Defaults to false." 435 msgstr "" 436 437 #: inc/options-page.php:403 438 msgid "Initial Height" 439 msgstr "" 440 103 441 #: inc/options-page.php:408 104 #: inc/options-page.php:421 105 #: inc/options-page.php:434 106 #: inc/options-page.php:481 107 #: inc/options-page.php:494 108 #: inc/options-page.php:511 109 #: inc/options-page.php:524 110 #: inc/options-page.php:537 111 #: inc/options-page.php:581 112 #: inc/options-page.php:592 113 msgid "true" 114 msgstr "" 115 116 #: inc/options-page.php:94 117 #: inc/options-page.php:108 118 #: inc/options-page.php:125 119 #: inc/options-page.php:138 120 #: inc/options-page.php:165 121 #: inc/options-page.php:178 122 #: inc/options-page.php:221 123 #: inc/options-page.php:234 124 #: inc/options-page.php:277 125 #: inc/options-page.php:290 126 #: inc/options-page.php:303 127 #: inc/options-page.php:376 128 #: inc/options-page.php:409 129 #: inc/options-page.php:422 130 #: inc/options-page.php:435 442 msgid "The height of Shadowbox (in pixels) when it first appears on the screen. Defaults to 160." 443 msgstr "" 444 445 #: inc/options-page.php:413 446 msgid "Initial Width" 447 msgstr "" 448 449 #: inc/options-page.php:418 450 msgid "The width of Shadowbox (in pixels) when it first appears on the screen. Defaults to 320." 451 msgstr "" 452 453 #: inc/options-page.php:423 454 msgid "Enable Keys" 455 msgstr "" 456 457 #: inc/options-page.php:431 458 msgid "Set this false to disable keyboard navigation of galleries. Defaults to true." 459 msgstr "" 460 461 #: inc/options-page.php:436 462 msgid "Skip Setup" 463 msgstr "" 464 465 #: inc/options-page.php:444 466 msgid "Set this true to skip Shadowbox.setup() during Shadowbox.init(). For purposes of this plugin you will have to manually add Shadowbox.setup() to the footer of your theme. Defaults to false." 467 msgstr "" 468 469 #: inc/options-page.php:449 470 msgid "Use Sizzle" 471 msgstr "" 472 473 #: inc/options-page.php:457 474 msgid "Set this true to enable loading the <a href=\"http://sizzlejs.com/\">Sizzle.js</a> CSS selector library. Note that if you choose not to use Sizzle you may not use CSS selectors to set up your links. In order to use Sizzle.js you must set Skip Setup to true. Defaults to false." 475 msgstr "" 476 477 #: inc/options-page.php:462 478 msgid "Flash Params" 479 msgstr "" 480 481 #: inc/options-page.php:467 482 msgid "A list of parameters (in a JavaScript object) that will be passed to a flash <object>. For a partial list of available parameters, see <a href=\"http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_12701\">this page</a>. Only one parameter is specified by default: bgcolor. Defaults to {bgcolor:\"#000000\", allowFullScreen:true}." 483 msgstr "" 484 485 #: inc/options-page.php:472 486 msgid "Flash Vars" 487 msgstr "" 488 489 #: inc/options-page.php:477 490 msgid "A list of variables (in a JavaScript object) that will be passed to a flash movie as <a href=\"http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16417\">FlashVars</a>. Defaults to {}." 491 msgstr "" 492 131 493 #: inc/options-page.php:482 132 #: inc/options-page.php:495 133 #: inc/options-page.php:512 134 #: inc/options-page.php:525 135 #: inc/options-page.php:538 136 #: inc/options-page.php:580 494 msgid "Flash Version" 495 msgstr "" 496 497 #: inc/options-page.php:487 498 msgid "The minimum Flash version required to play a flash movie (as a string). Defaults to \"9.0.0\"." 499 msgstr "" 500 501 #: inc/options-page.php:491 502 msgid "Shadowbox Automation" 503 msgstr "" 504 505 #: inc/options-page.php:492 506 msgid "These options will give you the capability to have Shadowbox automatically used for all of a certain file type." 507 msgstr "" 508 509 #: inc/options-page.php:496 510 msgid "Image Links" 511 msgstr "" 512 513 #: inc/options-page.php:504 514 #: inc/options-page.php:534 515 #: inc/options-page.php:547 516 #: inc/options-page.php:560 517 msgid "Default is true." 518 msgstr "" 519 520 #: inc/options-page.php:509 521 msgid "FLV Links" 522 msgstr "" 523 524 #: inc/options-page.php:518 525 msgid "Default is false. To enable this option you must first <a href=\"#enableFlv\">enable FLV support</a>." 526 msgstr "" 527 528 #: inc/options-page.php:520 529 msgid "Default is false." 530 msgstr "" 531 532 #: inc/options-page.php:526 533 msgid "Movie Links" 534 msgstr "" 535 536 #: inc/options-page.php:539 537 msgid "Music Links" 538 msgstr "" 539 540 #: inc/options-page.php:552 541 msgid "YouTube and Google Video Links" 542 msgstr "" 543 544 #: inc/options-page.php:564 545 msgid "Sizes" 546 msgstr "" 547 548 #: inc/options-page.php:568 549 msgid "Generic Video Width" 550 msgstr "" 551 552 #: inc/options-page.php:573 553 msgid "The width of Shadowbox (in pixels) when displaying videos. Defaults to 640." 554 msgstr "" 555 556 #: inc/options-page.php:578 557 msgid "Generic Video Height" 558 msgstr "" 559 560 #: inc/options-page.php:583 561 msgid "The height of Shadowbox (in pixels) when when displaying videos. Defaults to 385." 562 msgstr "" 563 564 #: inc/options-page.php:588 565 msgid "The settings for this plugin have been deleted. The plugin can now be" 566 msgstr "" 567 568 #: inc/options-page.php:588 569 msgid "Deactivate Shadowbox JS" 570 msgstr "" 571 572 #: inc/options-page.php:588 573 msgid "deactivated" 574 msgstr "" 575 576 #: inc/options-page.php:588 577 msgid "If you want to create the settings with their defaults so this plugin can be used again, set \"Reset to Defaults\" to \"true\" and click \"Save Changes\"" 578 msgstr "" 579 580 #: inc/options-page.php:590 581 msgid "Resets" 582 msgstr "" 583 137 584 #: inc/options-page.php:591 138 msgid "false"139 msgstr ""140 141 #: inc/options-page.php:97142 msgid "By enabling FLV support you are agreeing to the the <a href=\"http://creativecommons.org/licenses/by-nc-sa/3.0/\">noncommercial license</a> used by JW FLV Media Player. The JW FLV Media Player is licensed under the terms of the <a href=\"http://creativecommons.org/licenses/by-nc-sa/3.0/\">Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License</a>. After enabling FLV support you will need to select FLV from the list of players above, and optionally enable automation for FLV links under \"Shadowbox Automation\". Default is false."143 msgstr ""144 145 #: inc/options-page.php:103146 msgid "Enable Smart Loading"147 msgstr ""148 149 #: inc/options-page.php:111150 msgid "Enabling this will only load Shadowbox and its dependencies when needed based on the content of your posts.\tPlease note that when enabling this Shadowbox will not be loaded if rel=\"shadowbox\" is not found in the content of your post(s). If you experience problems after enabling this, try disabling. Default is false."151 msgstr ""152 153 #: inc/options-page.php:115154 msgid "Advanced Configuration"155 msgstr ""156 157 #: inc/options-page.php:120158 msgid "Animate"159 msgstr ""160 161 #: inc/options-page.php:128162 msgid "Set this false to disable all fancy animations (except fades). This can improve the overall effect on computers with poor performance. Defaults to true."163 msgstr ""164 165 #: inc/options-page.php:133166 msgid "Fade Animations"167 msgstr ""168 169 #: inc/options-page.php:141170 msgid "Set this false to disable all fading animations. Defaults to true."171 msgstr ""172 173 #: inc/options-page.php:146174 msgid "Animation Sequence"175 msgstr ""176 177 #: inc/options-page.php:155178 msgid "The animation sequence to use when resizing Shadowbox. May be either \"wh\" (width first, then height), \"hw\" (height first, then width), or \"sync\" (both simultaneously). Defaults to \"sync\"."179 msgstr ""180 181 #: inc/options-page.php:160182 msgid "Modal"183 msgstr ""184 185 #: inc/options-page.php:168186 msgid "Set this true to disable listening for mouse clicks on the overlay that will close Shadowbox. Defaults to false."187 msgstr ""188 189 #: inc/options-page.php:173190 msgid "Show Overlay"191 msgstr ""192 193 #: inc/options-page.php:181194 msgid "Set this false to disable showing the overlay. Defaults to true."195 msgstr ""196 197 #: inc/options-page.php:186198 msgid "Overlay Color"199 msgstr ""200 201 #: inc/options-page.php:191202 msgid "The color to use for the modal overlay (in hex). Defaults to \"#000\"."203 msgstr ""204 205 #: inc/options-page.php:196206 msgid "Overlay Opacity"207 msgstr ""208 209 #: inc/options-page.php:201210 msgid "The opacity to use for the modal overlay. Defaults to 0.8."211 msgstr ""212 213 #: inc/options-page.php:206214 msgid "Flash Background Color"215 msgstr ""216 217 #: inc/options-page.php:211218 msgid "The default background color to use for Flash movies. Defaults to \"#000000\"."219 msgstr ""220 221 #: inc/options-page.php:216222 msgid "Auto-Play Movies"223 msgstr ""224 225 #: inc/options-page.php:224226 msgid "Set this false to disable automatically playing movies when they are loaded. Defaults to true."227 msgstr ""228 229 #: inc/options-page.php:229230 msgid "Show Movie Controls"231 msgstr ""232 233 #: inc/options-page.php:237234 msgid "Set this false to disable displaying QuickTime and Windows Media player movie control bars. Defaults to true."235 msgstr ""236 237 #: inc/options-page.php:242238 msgid "Slideshow Delay"239 msgstr ""240 241 #: inc/options-page.php:247242 msgid "A delay (in seconds) to use for slideshows. If set to anything other than 0, this value determines an interval at which Shadowbox will automatically proceed to the next piece in the gallery. Defaults to 0."243 msgstr ""244 245 #: inc/options-page.php:252246 msgid "Resize Duration"247 msgstr ""248 249 #: inc/options-page.php:257250 msgid "The duration (in seconds) of the resizing animations. Defaults to 0.55."251 msgstr ""252 253 #: inc/options-page.php:262254 msgid "Fade Duration"255 msgstr ""256 257 #: inc/options-page.php:267258 msgid "The duration (in seconds) of the fade animations. Defaults to 0.35."259 msgstr ""260 261 #: inc/options-page.php:272262 msgid "Display Navigation"263 msgstr ""264 265 #: inc/options-page.php:280266 msgid "Set this false to hide the gallery navigation controls. Defaults to true."267 msgstr ""268 269 #: inc/options-page.php:285270 msgid "Continuous"271 msgstr ""272 273 #: inc/options-page.php:293274 msgid "Set this true to enable \"continuous\" galleries. By default, the galleries will not let a user go before the first image or after the last. Enabling this feature will let the user go directly to the first image in a gallery from the last one by selecting \"Next\". Defaults to false."275 msgstr ""276 277 #: inc/options-page.php:298278 msgid "Display Counter"279 msgstr ""280 281 #: inc/options-page.php:306282 msgid "Set this false to hide the gallery counter. Counters are never displayed on elements that are not part of a gallery. Defaults to true."283 msgstr ""284 285 #: inc/options-page.php:311286 msgid "Counter Type"287 msgstr ""288 289 #: inc/options-page.php:315290 msgid "default"291 msgstr ""292 293 #: inc/options-page.php:316294 msgid "skip"295 msgstr ""296 297 #: inc/options-page.php:319298 msgid "The mode to use for the gallery counter. May be either \"default\" or \"skip\". The default counter is a simple \"1 of 5\" message. The skip counter displays a separate link to each piece in the gallery, enabling quick navigation in large galleries. Defaults to \"default\"."299 msgstr ""300 301 #: inc/options-page.php:324302 msgid "Counter Limit"303 msgstr ""304 305 #: inc/options-page.php:329306 msgid "Limits the number of counter links that will be displayed in a \"skip\" style counter. If the actual number of gallery elements is greater than this value, the counter will be restrained to the elements immediately preceding and following the current element. Defaults to 10."307 msgstr ""308 309 #: inc/options-page.php:334310 msgid "Viewport Padding"311 msgstr ""312 313 #: inc/options-page.php:339314 msgid "The amount of padding (in pixels) to maintain around the edge of the browser window. Defaults to 20."315 msgstr ""316 317 #: inc/options-page.php:344318 msgid "Handle Oversize"319 msgstr ""320 321 #: inc/options-page.php:348322 msgid "none"323 msgstr ""324 325 #: inc/options-page.php:349326 msgid "resize"327 msgstr ""328 329 #: inc/options-page.php:350330 msgid "drag"331 msgstr ""332 333 #: inc/options-page.php:353334 msgid "The mode to use for handling content that is too large for the viewport. May be one of \"none\", \"resize\", or \"drag\" (for images). The \"none\" setting will not alter the image dimensions, though clipping may occur. Setting this to \"resize\" enables on-the-fly resizing of large content. In this mode, the height and width of large, resizable content will be adjusted so that it may still be viewed in its entirety while maintaining its original aspect ratio. The \"drag\" mode will display an oversized image at its original resolution, but will allow the user to drag it within the view to see portions that may be clipped. Defaults to \"resize\"."335 msgstr ""336 337 #: inc/options-page.php:358338 msgid "Handle Unsupported"339 msgstr ""340 341 #: inc/options-page.php:362342 msgid "link"343 msgstr ""344 345 #: inc/options-page.php:363346 msgid "remove"347 msgstr ""348 349 #: inc/options-page.php:366350 msgid "The mode to use for handling unsupported media. May be either \"link\" or \"remove\". Media are unsupported when the browser plugin required to display the media properly is not installed. The link option will display a user-friendly error message with a link to a page where the needed plugin can be downloaded. The remove option will simply remove any unsupported gallery elements from the gallery before displaying it. With this option, if the element is not part of a gallery, the link will simply be followed. Defaults to \"link\"."351 msgstr ""352 353 #: inc/options-page.php:371354 msgid "Auto Dimensions"355 msgstr ""356 357 #: inc/options-page.php:379358 msgid "Set this true to automatically set the initialHeight and initialWidth automatically from the configured object's height and width. Defaults to false."359 msgstr ""360 361 #: inc/options-page.php:384362 msgid "Initial Height"363 msgstr ""364 365 #: inc/options-page.php:389366 msgid "The height of Shadowbox (in pixels) when it first appears on the screen. Defaults to 160."367 msgstr ""368 369 #: inc/options-page.php:394370 msgid "Initial Width"371 msgstr ""372 373 #: inc/options-page.php:399374 msgid "The width of Shadowbox (in pixels) when it first appears on the screen. Defaults to 320."375 msgstr ""376 377 #: inc/options-page.php:404378 msgid "Enable Keys"379 msgstr ""380 381 #: inc/options-page.php:412382 msgid "Set this false to disable keyboard navigation of galleries. Defaults to true."383 msgstr ""384 385 #: inc/options-page.php:417386 msgid "Skip Setup"387 msgstr ""388 389 #: inc/options-page.php:425390 msgid "Set this true to skip Shadowbox.setup() during Shadowbox.init(). For purposes of this plugin you will have to manually add Shadowbox.setup() to the footer of your theme. Defaults to false."391 msgstr ""392 393 #: inc/options-page.php:430394 msgid "Use Sizzle"395 msgstr ""396 397 #: inc/options-page.php:438398 msgid "Set this true to enable loading the <a href=\"http://sizzlejs.com/\">Sizzle.js</a> CSS selector library. Note that if you choose not to use Sizzle you may not use CSS selectors to set up your links. In order to use Sizzle.js you must set Skip Setup to true. Defaults to false."399 msgstr ""400 401 #: inc/options-page.php:443402 msgid "Flash Params"403 msgstr ""404 405 #: inc/options-page.php:448406 msgid "A list of parameters (in a JavaScript object) that will be passed to a flash <object>. For a partial list of available parameters, see <a href=\"http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_12701\">this page</a>. Only one parameter is specified by default: bgcolor. Defaults to {bgcolor:\"#000000\", allowFullScreen:true}."407 msgstr ""408 409 #: inc/options-page.php:453410 msgid "Flash Vars"411 msgstr ""412 413 #: inc/options-page.php:458414 msgid "A list of variables (in a JavaScript object) that will be passed to a flash movie as <a href=\"http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16417\">FlashVars</a>. Defaults to {}."415 msgstr ""416 417 #: inc/options-page.php:463418 msgid "Flash Version"419 msgstr ""420 421 #: inc/options-page.php:468422 msgid "The minimum Flash version required to play a flash movie (as a string). Defaults to \"9.0.0\"."423 msgstr ""424 425 #: inc/options-page.php:472426 msgid "Shadowbox Automation"427 msgstr ""428 429 #: inc/options-page.php:473430 msgid "These options will give you the capability to have Shadowbox automatically used for all of a certain file type."431 msgstr ""432 433 #: inc/options-page.php:477434 msgid "Image Links"435 msgstr ""436 437 #: inc/options-page.php:485438 #: inc/options-page.php:515439 #: inc/options-page.php:528440 #: inc/options-page.php:541441 msgid "Default is true."442 msgstr ""443 444 #: inc/options-page.php:490445 msgid "FLV Links"446 msgstr ""447 448 #: inc/options-page.php:499449 msgid "Default is false. To enable this option you must first <a href=\"#enableFlv\">enable FLV support</a>."450 msgstr ""451 452 #: inc/options-page.php:501453 msgid "Default is false."454 msgstr ""455 456 #: inc/options-page.php:507457 msgid "Movie Links"458 msgstr ""459 460 #: inc/options-page.php:520461 msgid "Music Links"462 msgstr ""463 464 #: inc/options-page.php:533465 msgid "YouTube and Google Video Links"466 msgstr ""467 468 #: inc/options-page.php:545469 msgid "Sizes"470 msgstr ""471 472 #: inc/options-page.php:549473 msgid "Generic Video Width"474 msgstr ""475 476 #: inc/options-page.php:554477 msgid "The width of Shadowbox (in pixels) when displaying videos. Defaults to 640."478 msgstr ""479 480 #: inc/options-page.php:559481 msgid "Generic Video Height"482 msgstr ""483 484 #: inc/options-page.php:564485 msgid "The height of Shadowbox (in pixels) when when displaying videos. Defaults to 385."486 msgstr ""487 488 #: inc/options-page.php:569489 msgid "The settings for this plugin have been deleted. The plugin can now be"490 msgstr ""491 492 #: inc/options-page.php:569493 msgid "Deactivate Shadowbox JS"494 msgstr ""495 496 #: inc/options-page.php:569497 msgid "deactivated"498 msgstr ""499 500 #: inc/options-page.php:569501 msgid "If you want to create the settings with their defaults so this plugin can be used again, set \"Reset to Defaults\" to \"true\" and click \"Save Changes\""502 msgstr ""503 504 #: inc/options-page.php:571505 msgid "Resets"506 msgstr ""507 508 #: inc/options-page.php:572509 585 msgid "These options will allow you to revert the options back to their defaults or to remove the options from the database for a clean uninstall." 510 586 msgstr "" 511 587 512 #: inc/options-page.php:5 76588 #: inc/options-page.php:595 513 589 msgid "Reset to Defaults" 514 590 msgstr "" 515 591 516 #: inc/options-page.php: 587592 #: inc/options-page.php:606 517 593 msgid "Delete Options for a Clean Uninstall" 518 594 msgstr "" 519 595 520 #: inc/options-page.php: 598596 #: inc/options-page.php:617 521 597 msgid "Save Changes" 522 598 msgstr "" -
shadowbox-js/trunk/readme.txt
r472149 r496740 25 25 This plugin also makes use of the [JW FLV Player](http://www.longtailvideo.com/players/jw-flv-player/). JW FLV Player is licensed under the terms of the [Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License](http://creativecommons.org/licenses/by-nc-sa/3.0/). If you would like to use JW FLV Player for commercial purposes, you can purchase a license from [https://www.longtailvideo.com/players/order2](https://www.longtailvideo.com/players/order2). 26 26 27 Neither Shadowbox nor the JW FLV Player are actually included in this plugin. The plugin will ask you to download these files after installation and activation. 28 27 29 Please use the Shadowbox JS [support forum](http://wordpress.org/tags/shadowbox-js) for problems or questions with this plugin. Support questions will be ignored if left as comments on my site, through my contact form or by email. The only supported location for support questions is [http://wordpress.org/tags/shadowbox-js](http://wordpress.org/tags/shadowbox-js). 28 30 29 This plugin is absolutely not supported when used in combination with the Thesis theme. Please do not ask for support if y 30 ou are using such a configuration. 31 This plugin is absolutely not supported when used in combination with the Thesis theme. Please do not ask for support if you are using such a configuration. 31 32 32 33 == Installation == 33 34 34 1. Upload the `shadowbox-js` folder to the `/wp-content/plugins/` directory or install directly through the plugin installer .35 1. Upload the `shadowbox-js` folder to the `/wp-content/plugins/` directory or install directly through the plugin installer 35 36 1. Activate the plugin through the 'Plugins' menu in WordPress or by using the link provided by the plugin installer 36 1. Optional: Visit the settings page in the Admin at `Settings -> Shadowbox JS`37 1. Visit the settings page in the Admin at `Settings -> Shadowbox JS` and install the required dependencies 37 38 1. Optional: Activate the 'Shadowbox JS - Use Title from Image' plugin to push the title from 'img' tags onto the parent 'a' tag 38 39 … … 63 64 You do not necessarily have to do both. It is possible to only load a custom markup or only a custom css. 64 65 65 = How can I use my own custom shadowbox.js? = 66 = I cannot seem to get the plugin to download the Shadowbox source. What can I do? = 67 68 You can follow the steps outlined in the 'How can I use my own shadowbox.js' and 'How can I use my own shadowbox.css?' or you can manually download and extract as explained by the plugin. 69 70 = I don't want to downlaod the source from your site at all. How else can I get the source? = 71 72 Follow the steps outlined in the 'How can I use my own shadowbox.js' and 'How can I use my own shadowbox.css?'. 73 74 = How can I use my own shadowbox.js? = 75 76 Download or purchase Shadowbox from http://www.shadowbox-js.com/ and then... 66 77 67 78 This can be accomplished using filters. You will need to run a filter on 'shadowbox-js'; and here is some sample code to show you how: … … 76 87 Just drop that code, modifying to your needs, in a custom plugin or mu-plugin and enjoy. 77 88 78 = How can I use my own customshadowbox.css? =89 = How can I use my own shadowbox.css? = 79 90 80 91 Just as above this can be accomplished using filters. You will need to run a filter on 'shadowbox-css'; and here is some sample code to show you how: … … 101 112 Try changing the Javascript Library used by this plugin to something other than 'None' on the Shadowbox JS settings page in the WordPress admin. 102 113 114 = Is this plugin really GPL? = 115 116 The plugin itself is GPL, however Shadowbox and JW FLV Player are not GPL. Without the non GPL Shadowbox component, this plugin cannot function. 117 118 Shadowbox is licensed under the terms of the [Shadowbox.js License](http://shadowbox-js.com/LICENSE). This license grants personal, non-commercial users the right to use Shadowbox without paying a fee. It also provides an option for users who wish to use Shadowbox for commercial purposes. You are encouraged to review the terms of the license before using Shadowbox. If you would like to use Shadowbox for commercial purposes, you can purchase a license from [http://www.shadowbox-js.com/](http://www.shadowbox-js.com/).▒ 119 120 JW FLV Player is licensed under the terms of the [Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License](http://creativecommons.org/licenses/by-nc-sa/3.0/). If you would like to use JW FLV Player for commercial purposes, you can purchase a license from [https://www.longtailvideo.com/players/order2](https://www.longtailvideo.com/players/order2).▒ 121 122 Neither Shadowbox nor the JW FLV Player are actually included in this plugin. The plugin will ask you to download these files after installation and activation. 123 103 124 == Screenshots == 104 125 … … 114 135 1. Upload the new `shadowbox-js` folder to the `/wp-content/plugins/` directory 115 136 1. Activate the Shadowbox JS plugin 116 1. Optional: Visit the settings page in the WordPress admin at `Settings -> Shadowbox JS`137 1. Visit the settings page in the WordPress admin at `Settings -> Shadowbox JS` and install the required dependencies if needed 117 138 118 139 == Usage == … … 135 156 == Upgrade Notice == 136 157 158 = 3.0.3.10 = 159 160 Removed the upstream Shadowbox JS package from the plugin. As a result, this plugin has been updated to handle downloading the required files for use. 161 137 162 = 3.0.3.9 = 138 163 … … 164 189 165 190 == Changelog == 191 192 = 3.0.3.10 (2012-01-14): = 193 * Removed the upstream Shadowbox JS package from the plugin. As a result, this plugin has been updated to handle downloading the required files for use. 166 194 167 195 = 3.0.3.9 (2011-12-08): = -
shadowbox-js/trunk/shadowbox-js.php
r472089 r496740 8 8 * 9 9 * @author Matt Martz <matt@sivel.net> 10 * @version 3.0.3. 910 * @version 3.0.3.10 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. 918 Version: 3.0.3.10a 19 19 Author: Matt Martz 20 20 Author URI: http://sivel.net/ 21 21 Text Domain: shadowbox-js 22 22 Domain Path: shadowbox-js/localization 23 License: LGPL24 25 Shadowbox JS (c) 2008-201 1Matt Martz (http://sivel.net/)26 Shadowbox JS is released under the GNU General Public License ( LGPL)27 http://www.gnu.org/licenses/ lgpl-2.1.txt23 License: GPL 24 25 Shadowbox JS (c) 2008-2012 Matt Martz (http://sivel.net/) 26 Shadowbox JS is released under the GNU General Public License (GPL) 27 http://www.gnu.org/licenses/gpl-2.0.txt 28 28 29 29 Shadowbox (c) 2007-2010 Michael J. I. Jackson (http://www.shadowbox-js.com/) … … 56 56 * @var int 57 57 */ 58 var $version = '3.0.3. 9';58 var $version = '3.0.3.10'; 59 59 60 60 /** -
shadowbox-js/trunk/shadowbox-title-push.php
r472089 r496740 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. 916 Version: 3.0.3.10a 17 17 Author: Matt Martz 18 18 Author URI: http://sivel.net/ -
shadowbox-js/trunk/uninstall.php
r240766 r496740 1 1 <?php 2 2 /** 3 * Uninstalls the shadowbox-js options when an uninstall has been requested 3 * Uninstalls the shadowbox-js options when an uninstall has been requested 4 4 * from the WordPress admin 5 5 *
Note: See TracChangeset
for help on using the changeset viewer.