Plugin Directory

Changeset 496740


Ignore:
Timestamp:
01/29/2012 05:16:23 AM (14 years ago)
Author:
sivel
Message:

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.

Location:
shadowbox-js/trunk
Files:
1 deleted
8 edited

Legend:

Unmodified
Added
Removed
  • shadowbox-js/trunk/inc/admin.php

    r390051 r496740  
    6565        add_action ( 'wp_ajax_nopriv_shadowboxjs' , array ( &$this , 'build_shadowbox' ) );
    6666
     67        add_action ( 'wp_ajax_getshadowboxsrc' , array ( &$this , 'ajax_get_src' ) );
     68
    6769        // Load localizations if available
    6870        load_plugin_textdomain ( 'shadowbox-js' , false , 'shadowbox-js/localization' );
     
    7678        // Activate the options page
    7779        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
    78114    }
    79115
     
    102138            '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' )
    103139        ) );
     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
    104165    }
    105166
     
    356417            $this->check_upgrade ();
    357418        }
    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 );
    359422    }
    360423
     
    394457
    395458    /**
    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
    397503     *
    398504     * @return none
     
    484590     * @since 3.0.3
    485591     * @param $tofile Boolean write output to file instead of echoing
    486      * @return none
     592     * @return mixed false if the file could not be built and a string of the file location if successful
    487593     */
    488594    function build_shadowbox ( $tofile = false ) {
     
    492598
    493599        $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";
    495610
    496611        // Ouput correct content-type, and caching headers
     
    498613            cache_javascript_headers();
    499614
    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        }
    532655
    533656        // if we are supposed to write to a file then do so
    534657        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             else
    539                 $basedir = WP_CONTENT_DIR . '/uploads';
    540 
    541             $shadowbox_dir = "$basedir/shadowbox-js/";
    542658            $shadowbox_file = $shadowbox_dir . $this->md5 () . '.js';
    543659
     
    553669                    @chmod ( $shadowbox_file , $chmod );
    554670            }
     671
     672            if ( ! file_exists ( $shadowbox_file ) )
     673                return false;
     674            else
     675                return $shadowbox_file;
     676
    555677        } else if ( ! $tofile ) { // otherwise just echo (backup call to admin-ajax.php for on the fly building)
    556678            die ( $output );
     
    559681
    560682    /**
     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>&#8230;", $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&#8230; (%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&#8230;' , '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&#8230;' , '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&#8230;' , '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>&#8230;" , $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    /**
    561769     * Add the options page
    562770     *
     
    566774    function add_page () {
    567775        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 ) );
    569781            add_action ( "admin_print_scripts-{$this->options_page_hookname}" , array ( &$this , 'admin_js' ) );
    570782            add_action ( "admin_print_styles-{$this->options_page_hookname}" , array ( &$this , 'admin_css' ) );
    571783            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
    574814    }
    575815
     
    598838        }
    599839    }
     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    }
    600888}
  • shadowbox-js/trunk/inc/frontend.php

    r472089 r496740  
    106106    function styles () {
    107107        $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' );
    109118        wp_register_style ( 'shadowbox-css' , $shadowbox_css , false , $this->sbversion , 'screen' );
    110119        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  
    1111?>
    1212        <div class="wrap shadowbox">
     13            <div id="icon-options-general" class="icon32"><br /></div>
    1314            <h2><?php _e( 'Shadowbox JS' , 'shadowbox-js' ); ?></h2>
    1415            <?php if ( has_filter ( 'shadowbox-js' ) ) : ?>
     
    2122            </div>
    2223            <?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; ?>
    2329            <form action="options.php" method="post">
    2430                <?php settings_fields ( 'shadowbox' ); ?>
  • shadowbox-js/trunk/localization/shadowbox-js-template.po

    r222446 r496740  
    33"Project-Id-Version: shadowbox-js\n"
    44"Report-Msgid-Bugs-To: \n"
    5 "POT-Creation-Date: 2010-03-28 09:46-0600\n"
    6 "PO-Revision-Date: 2010-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"
    77"Last-Translator: Matt Martz <matt@sivel.net>\n"
    88"Language-Team: Matt Martz <matt@sivel.net>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"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
    1714#, php-format
    1815msgid "Shadowbox JS has been automatically deactivated because the file <strong>%s</strong> is missing. Please reinstall the plugin and reactivate."
    1916msgstr ""
    2017
    21 #: inc/admin.php:100
    22 #: inc/options-page.php:116
     18#: inc/admin.php:95
     19msgid "Oops, looks like you landed somewhere you shouldn't be."
     20msgstr ""
     21
     22#: inc/admin.php:136
     23#: inc/options-page.php:135
    2324msgid "Show Advanced Configuration"
    2425msgstr ""
    2526
    26 #: inc/admin.php:101
     27#: inc/admin.php:137
    2728msgid "Hide Advanced Configuration"
    2829msgstr ""
    2930
    30 #: inc/admin.php:102
     31#: inc/admin.php:138
    3132msgid "Do you agree that you are not using FLV support for commercial purposes or have already purchased a license for JW FLV Media Player?"
    3233msgstr ""
    3334
    34 #: inc/admin.php:580
    35 #: inc/options-page.php:13
     35#: inc/admin.php:689
     36msgid "Uh, Oh! You've been a bad boy!"
     37msgstr ""
     38
     39#: inc/admin.php:708
     40msgid "Could not setup WP_Filesystem"
     41msgstr ""
     42
     43#: inc/admin.php:717
     44msgid "File downloaded but does not appear to exist, or is unreadable"
     45msgstr ""
     46
     47#: inc/admin.php:724
     48msgid "MD5 checksum failed. Exiting&#8230;"
     49msgstr ""
     50
     51#: inc/admin.php:739
     52msgid "Clearing out the current Shadowbox JS source directory&#8230;"
     53msgstr ""
     54
     55#: inc/admin.php:745
     56msgid "Removing the current Shadowbox JS source directory&#8230;"
     57msgstr ""
     58
     59#: inc/admin.php:754
     60msgid "Successfully retrieved and extracted the <strong>Shadowbox JS</strong> source files"
     61msgstr ""
     62
     63#: inc/admin.php:760
     64msgid "Attempting to build and cache the compiled shadowbox.js..."
     65msgstr ""
     66
     67#: inc/admin.php:765
     68msgid "Failed to build and cache the compiled shadowbox.js. This is ok, the plugin should still be able to function"
     69msgstr ""
     70
     71#: inc/admin.php:780
     72#: inc/options-page.php:14
    3673msgid "Shadowbox JS"
    3774msgstr ""
    3875
    39 #: inc/admin.php:595
     76#: inc/admin.php:788
     77msgid "Missing Shadowbox JS Source Files!"
     78msgstr ""
     79
     80#: inc/admin.php:801
     81msgid "<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>"
     82msgstr ""
     83
     84#: inc/admin.php:805
     85msgid "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>."
     86msgstr ""
     87
     88#: inc/admin.php:806
     89msgid "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>."
     90msgstr ""
     91
     92#: inc/admin.php:808
     93#: inc/admin.php:810
     94msgid "Get Shadowbox Source Files"
     95msgstr ""
     96
     97#: inc/admin.php:824
    4098msgid "Settings"
    4199msgstr ""
    42100
    43 #: inc/options-page.php:18
     101#: inc/admin.php:878
     102msgid "Retrieving Shadowbox JS source package"
     103msgstr ""
     104
     105#: inc/admin.php:884
     106msgid "Return to the Shadowbox JS settings page"
     107msgstr ""
     108
     109#: inc/options-page.php:19
    44110msgid "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."
    45111msgstr ""
    46112
    47 #: inc/options-page.php:27
     113#: inc/options-page.php:33
    48114msgid "General"
    49115msgstr ""
    50116
    51 #: inc/options-page.php:28
     117#: inc/options-page.php:34
    52118msgid "These are general options for the Shadowbox Javascript that tell Shadowbox how to run, how to look and what language to use."
    53119msgstr ""
    54120
    55 #: inc/options-page.php:32
     121#: inc/options-page.php:38
    56122msgid "Javascript Library"
    57123msgstr ""
    58124
    59 #: inc/options-page.php:36
     125#: inc/options-page.php:42
    60126msgid "None"
    61127msgstr ""
    62128
    63 #: inc/options-page.php:43
     129#: inc/options-page.php:49
    64130msgid "Default is None."
    65131msgstr ""
    66132
    67 #: inc/options-page.php:48
     133#: inc/options-page.php:54
    68134msgid "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."
    69135msgstr ""
    70136
    71 #: inc/options-page.php:58
     137#: inc/options-page.php:64
    72138msgid "Language"
    73139msgstr ""
    74140
    75 #: inc/options-page.php:68
     141#: inc/options-page.php:74
    76142msgid "Default is en."
    77143msgstr ""
    78144
    79 #: inc/options-page.php:73
     145#: inc/options-page.php:79
    80146msgid "Players"
    81147msgstr ""
    82148
    83 #: inc/options-page.php:84
     149#: inc/options-page.php:90
    84150msgid "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."
    85151msgstr ""
    86152
    87 #: inc/options-page.php:89
     153#: inc/options-page.php:95
    88154msgid "Enable FLV Support"
    89155msgstr ""
    90156
    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
     180msgid "true"
     181msgstr ""
     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
     206msgid "false"
     207msgstr ""
     208
     209#: inc/options-page.php:103
     210msgid "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."
     211msgstr ""
     212
     213#: inc/options-page.php:109
     214msgid "Enable Smart Loading"
     215msgstr ""
     216
     217#: inc/options-page.php:117
     218msgid "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."
     219msgstr ""
     220
     221#: inc/options-page.php:122
     222msgid "Use Cached shadowbox.js"
     223msgstr ""
     224
     225#: inc/options-page.php:130
     226msgid "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."
     227msgstr ""
     228
     229#: inc/options-page.php:134
     230msgid "Advanced Configuration"
     231msgstr ""
     232
     233#: inc/options-page.php:139
     234msgid "Animate"
     235msgstr ""
     236
     237#: inc/options-page.php:147
     238msgid "Set this false to disable all fancy animations (except fades). This can improve the overall effect on computers with poor performance. Defaults to true."
     239msgstr ""
     240
     241#: inc/options-page.php:152
     242msgid "Fade Animations"
     243msgstr ""
     244
     245#: inc/options-page.php:160
     246msgid "Set this false to disable all fading animations. Defaults to true."
     247msgstr ""
     248
     249#: inc/options-page.php:165
     250msgid "Animation Sequence"
     251msgstr ""
     252
     253#: inc/options-page.php:174
     254msgid "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\"."
     255msgstr ""
     256
     257#: inc/options-page.php:179
     258msgid "Modal"
     259msgstr ""
     260
     261#: inc/options-page.php:187
     262msgid "Set this true to disable listening for mouse clicks on the overlay that will close Shadowbox. Defaults to false."
     263msgstr ""
     264
     265#: inc/options-page.php:192
     266msgid "Show Overlay"
     267msgstr ""
     268
     269#: inc/options-page.php:200
     270msgid "Set this false to disable showing the overlay. Defaults to true."
     271msgstr ""
     272
     273#: inc/options-page.php:205
     274msgid "Overlay Color"
     275msgstr ""
     276
     277#: inc/options-page.php:210
     278msgid "The color to use for the modal overlay (in hex). Defaults to \"#000\"."
     279msgstr ""
     280
     281#: inc/options-page.php:215
     282msgid "Overlay Opacity"
     283msgstr ""
     284
    97285#: inc/options-page.php:220
    98 #: inc/options-page.php:233
     286msgid "The opacity to use for the modal overlay. Defaults to 0.8."
     287msgstr ""
     288
     289#: inc/options-page.php:225
     290msgid "Flash Background Color"
     291msgstr ""
     292
     293#: inc/options-page.php:230
     294msgid "The default background color to use for Flash movies. Defaults to \"#000000\"."
     295msgstr ""
     296
     297#: inc/options-page.php:235
     298msgid "Auto-Play Movies"
     299msgstr ""
     300
     301#: inc/options-page.php:243
     302msgid "Set this false to disable automatically playing movies when they are loaded. Defaults to true."
     303msgstr ""
     304
     305#: inc/options-page.php:248
     306msgid "Show Movie Controls"
     307msgstr ""
     308
     309#: inc/options-page.php:256
     310msgid "Set this false to disable displaying QuickTime and Windows Media player movie control bars. Defaults to true."
     311msgstr ""
     312
     313#: inc/options-page.php:261
     314msgid "Slideshow Delay"
     315msgstr ""
     316
     317#: inc/options-page.php:266
     318msgid "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."
     319msgstr ""
     320
     321#: inc/options-page.php:271
     322msgid "Resize Duration"
     323msgstr ""
     324
    99325#: inc/options-page.php:276
    100 #: inc/options-page.php:289
    101 #: inc/options-page.php:302
    102 #: inc/options-page.php:375
     326msgid "The duration (in seconds) of the resizing animations. Defaults to 0.55."
     327msgstr ""
     328
     329#: inc/options-page.php:281
     330msgid "Fade Duration"
     331msgstr ""
     332
     333#: inc/options-page.php:286
     334msgid "The duration (in seconds) of the fade animations. Defaults to 0.35."
     335msgstr ""
     336
     337#: inc/options-page.php:291
     338msgid "Display Navigation"
     339msgstr ""
     340
     341#: inc/options-page.php:299
     342msgid "Set this false to hide the gallery navigation controls. Defaults to true."
     343msgstr ""
     344
     345#: inc/options-page.php:304
     346msgid "Continuous"
     347msgstr ""
     348
     349#: inc/options-page.php:312
     350msgid "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."
     351msgstr ""
     352
     353#: inc/options-page.php:317
     354msgid "Display Counter"
     355msgstr ""
     356
     357#: inc/options-page.php:325
     358msgid "Set this false to hide the gallery counter. Counters are never displayed on elements that are not part of a gallery. Defaults to true."
     359msgstr ""
     360
     361#: inc/options-page.php:330
     362msgid "Counter Type"
     363msgstr ""
     364
     365#: inc/options-page.php:334
     366msgid "default"
     367msgstr ""
     368
     369#: inc/options-page.php:335
     370msgid "skip"
     371msgstr ""
     372
     373#: inc/options-page.php:338
     374msgid "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\"."
     375msgstr ""
     376
     377#: inc/options-page.php:343
     378msgid "Counter Limit"
     379msgstr ""
     380
     381#: inc/options-page.php:348
     382msgid "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."
     383msgstr ""
     384
     385#: inc/options-page.php:353
     386msgid "Viewport Padding"
     387msgstr ""
     388
     389#: inc/options-page.php:358
     390msgid "The amount of padding (in pixels) to maintain around the edge of the browser window. Defaults to 20."
     391msgstr ""
     392
     393#: inc/options-page.php:363
     394msgid "Handle Oversize"
     395msgstr ""
     396
     397#: inc/options-page.php:367
     398msgid "none"
     399msgstr ""
     400
     401#: inc/options-page.php:368
     402msgid "resize"
     403msgstr ""
     404
     405#: inc/options-page.php:369
     406msgid "drag"
     407msgstr ""
     408
     409#: inc/options-page.php:372
     410msgid "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\"."
     411msgstr ""
     412
     413#: inc/options-page.php:377
     414msgid "Handle Unsupported"
     415msgstr ""
     416
     417#: inc/options-page.php:381
     418msgid "link"
     419msgstr ""
     420
     421#: inc/options-page.php:382
     422msgid "remove"
     423msgstr ""
     424
     425#: inc/options-page.php:385
     426msgid "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\"."
     427msgstr ""
     428
     429#: inc/options-page.php:390
     430msgid "Auto Dimensions"
     431msgstr ""
     432
     433#: inc/options-page.php:398
     434msgid "Set this true to automatically set the initialHeight and initialWidth automatically from the configured object's height and width. Defaults to false."
     435msgstr ""
     436
     437#: inc/options-page.php:403
     438msgid "Initial Height"
     439msgstr ""
     440
    103441#: 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
     442msgid "The height of Shadowbox (in pixels) when it first appears on the screen. Defaults to 160."
     443msgstr ""
     444
     445#: inc/options-page.php:413
     446msgid "Initial Width"
     447msgstr ""
     448
     449#: inc/options-page.php:418
     450msgid "The width of Shadowbox (in pixels) when it first appears on the screen. Defaults to 320."
     451msgstr ""
     452
     453#: inc/options-page.php:423
     454msgid "Enable Keys"
     455msgstr ""
     456
     457#: inc/options-page.php:431
     458msgid "Set this false to disable keyboard navigation of galleries. Defaults to true."
     459msgstr ""
     460
     461#: inc/options-page.php:436
     462msgid "Skip Setup"
     463msgstr ""
     464
     465#: inc/options-page.php:444
     466msgid "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."
     467msgstr ""
     468
     469#: inc/options-page.php:449
     470msgid "Use Sizzle"
     471msgstr ""
     472
     473#: inc/options-page.php:457
     474msgid "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."
     475msgstr ""
     476
     477#: inc/options-page.php:462
     478msgid "Flash Params"
     479msgstr ""
     480
     481#: inc/options-page.php:467
     482msgid "A list of parameters (in a JavaScript object) that will be passed to a flash &lt;object&gt;. 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}."
     483msgstr ""
     484
     485#: inc/options-page.php:472
     486msgid "Flash Vars"
     487msgstr ""
     488
     489#: inc/options-page.php:477
     490msgid "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 {}."
     491msgstr ""
     492
    131493#: 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
     494msgid "Flash Version"
     495msgstr ""
     496
     497#: inc/options-page.php:487
     498msgid "The minimum Flash version required to play a flash movie (as a string). Defaults to \"9.0.0\"."
     499msgstr ""
     500
     501#: inc/options-page.php:491
     502msgid "Shadowbox Automation"
     503msgstr ""
     504
     505#: inc/options-page.php:492
     506msgid "These options will give you the capability to have Shadowbox automatically used for all of a certain file type."
     507msgstr ""
     508
     509#: inc/options-page.php:496
     510msgid "Image Links"
     511msgstr ""
     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
     517msgid "Default is true."
     518msgstr ""
     519
     520#: inc/options-page.php:509
     521msgid "FLV Links"
     522msgstr ""
     523
     524#: inc/options-page.php:518
     525msgid "Default is false.  To enable this option you must first <a href=\"#enableFlv\">enable FLV support</a>."
     526msgstr ""
     527
     528#: inc/options-page.php:520
     529msgid "Default is false."
     530msgstr ""
     531
     532#: inc/options-page.php:526
     533msgid "Movie Links"
     534msgstr ""
     535
     536#: inc/options-page.php:539
     537msgid "Music Links"
     538msgstr ""
     539
     540#: inc/options-page.php:552
     541msgid "YouTube and Google Video Links"
     542msgstr ""
     543
     544#: inc/options-page.php:564
     545msgid "Sizes"
     546msgstr ""
     547
     548#: inc/options-page.php:568
     549msgid "Generic Video Width"
     550msgstr ""
     551
     552#: inc/options-page.php:573
     553msgid "The width of Shadowbox (in pixels) when displaying videos. Defaults to 640."
     554msgstr ""
     555
     556#: inc/options-page.php:578
     557msgid "Generic Video Height"
     558msgstr ""
     559
     560#: inc/options-page.php:583
     561msgid "The height of Shadowbox (in pixels) when when displaying videos. Defaults to 385."
     562msgstr ""
     563
     564#: inc/options-page.php:588
     565msgid "The settings for this plugin have been deleted. The plugin can now be"
     566msgstr ""
     567
     568#: inc/options-page.php:588
     569msgid "Deactivate Shadowbox JS"
     570msgstr ""
     571
     572#: inc/options-page.php:588
     573msgid "deactivated"
     574msgstr ""
     575
     576#: inc/options-page.php:588
     577msgid "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\""
     578msgstr ""
     579
     580#: inc/options-page.php:590
     581msgid "Resets"
     582msgstr ""
     583
    137584#: inc/options-page.php:591
    138 msgid "false"
    139 msgstr ""
    140 
    141 #: inc/options-page.php:97
    142 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:103
    146 msgid "Enable Smart Loading"
    147 msgstr ""
    148 
    149 #: inc/options-page.php:111
    150 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:115
    154 msgid "Advanced Configuration"
    155 msgstr ""
    156 
    157 #: inc/options-page.php:120
    158 msgid "Animate"
    159 msgstr ""
    160 
    161 #: inc/options-page.php:128
    162 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:133
    166 msgid "Fade Animations"
    167 msgstr ""
    168 
    169 #: inc/options-page.php:141
    170 msgid "Set this false to disable all fading animations. Defaults to true."
    171 msgstr ""
    172 
    173 #: inc/options-page.php:146
    174 msgid "Animation Sequence"
    175 msgstr ""
    176 
    177 #: inc/options-page.php:155
    178 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:160
    182 msgid "Modal"
    183 msgstr ""
    184 
    185 #: inc/options-page.php:168
    186 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:173
    190 msgid "Show Overlay"
    191 msgstr ""
    192 
    193 #: inc/options-page.php:181
    194 msgid "Set this false to disable showing the overlay. Defaults to true."
    195 msgstr ""
    196 
    197 #: inc/options-page.php:186
    198 msgid "Overlay Color"
    199 msgstr ""
    200 
    201 #: inc/options-page.php:191
    202 msgid "The color to use for the modal overlay (in hex). Defaults to \"#000\"."
    203 msgstr ""
    204 
    205 #: inc/options-page.php:196
    206 msgid "Overlay Opacity"
    207 msgstr ""
    208 
    209 #: inc/options-page.php:201
    210 msgid "The opacity to use for the modal overlay. Defaults to 0.8."
    211 msgstr ""
    212 
    213 #: inc/options-page.php:206
    214 msgid "Flash Background Color"
    215 msgstr ""
    216 
    217 #: inc/options-page.php:211
    218 msgid "The default background color to use for Flash movies. Defaults to \"#000000\"."
    219 msgstr ""
    220 
    221 #: inc/options-page.php:216
    222 msgid "Auto-Play Movies"
    223 msgstr ""
    224 
    225 #: inc/options-page.php:224
    226 msgid "Set this false to disable automatically playing movies when they are loaded. Defaults to true."
    227 msgstr ""
    228 
    229 #: inc/options-page.php:229
    230 msgid "Show Movie Controls"
    231 msgstr ""
    232 
    233 #: inc/options-page.php:237
    234 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:242
    238 msgid "Slideshow Delay"
    239 msgstr ""
    240 
    241 #: inc/options-page.php:247
    242 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:252
    246 msgid "Resize Duration"
    247 msgstr ""
    248 
    249 #: inc/options-page.php:257
    250 msgid "The duration (in seconds) of the resizing animations. Defaults to 0.55."
    251 msgstr ""
    252 
    253 #: inc/options-page.php:262
    254 msgid "Fade Duration"
    255 msgstr ""
    256 
    257 #: inc/options-page.php:267
    258 msgid "The duration (in seconds) of the fade animations. Defaults to 0.35."
    259 msgstr ""
    260 
    261 #: inc/options-page.php:272
    262 msgid "Display Navigation"
    263 msgstr ""
    264 
    265 #: inc/options-page.php:280
    266 msgid "Set this false to hide the gallery navigation controls. Defaults to true."
    267 msgstr ""
    268 
    269 #: inc/options-page.php:285
    270 msgid "Continuous"
    271 msgstr ""
    272 
    273 #: inc/options-page.php:293
    274 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:298
    278 msgid "Display Counter"
    279 msgstr ""
    280 
    281 #: inc/options-page.php:306
    282 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:311
    286 msgid "Counter Type"
    287 msgstr ""
    288 
    289 #: inc/options-page.php:315
    290 msgid "default"
    291 msgstr ""
    292 
    293 #: inc/options-page.php:316
    294 msgid "skip"
    295 msgstr ""
    296 
    297 #: inc/options-page.php:319
    298 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:324
    302 msgid "Counter Limit"
    303 msgstr ""
    304 
    305 #: inc/options-page.php:329
    306 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:334
    310 msgid "Viewport Padding"
    311 msgstr ""
    312 
    313 #: inc/options-page.php:339
    314 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:344
    318 msgid "Handle Oversize"
    319 msgstr ""
    320 
    321 #: inc/options-page.php:348
    322 msgid "none"
    323 msgstr ""
    324 
    325 #: inc/options-page.php:349
    326 msgid "resize"
    327 msgstr ""
    328 
    329 #: inc/options-page.php:350
    330 msgid "drag"
    331 msgstr ""
    332 
    333 #: inc/options-page.php:353
    334 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:358
    338 msgid "Handle Unsupported"
    339 msgstr ""
    340 
    341 #: inc/options-page.php:362
    342 msgid "link"
    343 msgstr ""
    344 
    345 #: inc/options-page.php:363
    346 msgid "remove"
    347 msgstr ""
    348 
    349 #: inc/options-page.php:366
    350 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:371
    354 msgid "Auto Dimensions"
    355 msgstr ""
    356 
    357 #: inc/options-page.php:379
    358 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:384
    362 msgid "Initial Height"
    363 msgstr ""
    364 
    365 #: inc/options-page.php:389
    366 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:394
    370 msgid "Initial Width"
    371 msgstr ""
    372 
    373 #: inc/options-page.php:399
    374 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:404
    378 msgid "Enable Keys"
    379 msgstr ""
    380 
    381 #: inc/options-page.php:412
    382 msgid "Set this false to disable keyboard navigation of galleries. Defaults to true."
    383 msgstr ""
    384 
    385 #: inc/options-page.php:417
    386 msgid "Skip Setup"
    387 msgstr ""
    388 
    389 #: inc/options-page.php:425
    390 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:430
    394 msgid "Use Sizzle"
    395 msgstr ""
    396 
    397 #: inc/options-page.php:438
    398 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:443
    402 msgid "Flash Params"
    403 msgstr ""
    404 
    405 #: inc/options-page.php:448
    406 msgid "A list of parameters (in a JavaScript object) that will be passed to a flash &lt;object&gt;. 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:453
    410 msgid "Flash Vars"
    411 msgstr ""
    412 
    413 #: inc/options-page.php:458
    414 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:463
    418 msgid "Flash Version"
    419 msgstr ""
    420 
    421 #: inc/options-page.php:468
    422 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:472
    426 msgid "Shadowbox Automation"
    427 msgstr ""
    428 
    429 #: inc/options-page.php:473
    430 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:477
    434 msgid "Image Links"
    435 msgstr ""
    436 
    437 #: inc/options-page.php:485
    438 #: inc/options-page.php:515
    439 #: inc/options-page.php:528
    440 #: inc/options-page.php:541
    441 msgid "Default is true."
    442 msgstr ""
    443 
    444 #: inc/options-page.php:490
    445 msgid "FLV Links"
    446 msgstr ""
    447 
    448 #: inc/options-page.php:499
    449 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:501
    453 msgid "Default is false."
    454 msgstr ""
    455 
    456 #: inc/options-page.php:507
    457 msgid "Movie Links"
    458 msgstr ""
    459 
    460 #: inc/options-page.php:520
    461 msgid "Music Links"
    462 msgstr ""
    463 
    464 #: inc/options-page.php:533
    465 msgid "YouTube and Google Video Links"
    466 msgstr ""
    467 
    468 #: inc/options-page.php:545
    469 msgid "Sizes"
    470 msgstr ""
    471 
    472 #: inc/options-page.php:549
    473 msgid "Generic Video Width"
    474 msgstr ""
    475 
    476 #: inc/options-page.php:554
    477 msgid "The width of Shadowbox (in pixels) when displaying videos. Defaults to 640."
    478 msgstr ""
    479 
    480 #: inc/options-page.php:559
    481 msgid "Generic Video Height"
    482 msgstr ""
    483 
    484 #: inc/options-page.php:564
    485 msgid "The height of Shadowbox (in pixels) when when displaying videos. Defaults to 385."
    486 msgstr ""
    487 
    488 #: inc/options-page.php:569
    489 msgid "The settings for this plugin have been deleted. The plugin can now be"
    490 msgstr ""
    491 
    492 #: inc/options-page.php:569
    493 msgid "Deactivate Shadowbox JS"
    494 msgstr ""
    495 
    496 #: inc/options-page.php:569
    497 msgid "deactivated"
    498 msgstr ""
    499 
    500 #: inc/options-page.php:569
    501 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:571
    505 msgid "Resets"
    506 msgstr ""
    507 
    508 #: inc/options-page.php:572
    509585msgid "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."
    510586msgstr ""
    511587
    512 #: inc/options-page.php:576
     588#: inc/options-page.php:595
    513589msgid "Reset to Defaults"
    514590msgstr ""
    515591
    516 #: inc/options-page.php:587
     592#: inc/options-page.php:606
    517593msgid "Delete Options for a Clean Uninstall"
    518594msgstr ""
    519595
    520 #: inc/options-page.php:598
     596#: inc/options-page.php:617
    521597msgid "Save Changes"
    522598msgstr ""
  • shadowbox-js/trunk/readme.txt

    r472149 r496740  
    2525This 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).
    2626
     27Neither 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
    2729Please 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).
    2830
    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.
     31This 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.
    3132
    3233== Installation ==
    3334
    34 1. Upload the `shadowbox-js` folder to the `/wp-content/plugins/` directory or install directly through the plugin installer.
     351. Upload the `shadowbox-js` folder to the `/wp-content/plugins/` directory or install directly through the plugin installer
    35361. 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`
     371. Visit the settings page in the Admin at `Settings -> Shadowbox JS` and install the required dependencies
    37381. Optional: Activate the 'Shadowbox JS - Use Title from Image' plugin to push the title from 'img' tags onto the parent 'a' tag
    3839
     
    6364You do not necessarily have to do both.  It is possible to only load a custom markup or only a custom css.
    6465
    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
     68You 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
     72Follow 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
     76Download or purchase Shadowbox from http://www.shadowbox-js.com/ and then...
    6677
    6778This 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:
     
    7687Just drop that code, modifying to your needs, in a custom plugin or mu-plugin and enjoy.
    7788
    78 = How can I use my own custom shadowbox.css? =
     89= How can I use my own shadowbox.css? =
    7990
    8091Just 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:
     
    101112Try changing the Javascript Library used by this plugin to something other than 'None' on the Shadowbox JS settings page in the WordPress admin.
    102113
     114= Is this plugin really GPL? =
     115
     116The plugin itself is GPL, however Shadowbox and JW FLV Player are not GPL.  Without the non GPL Shadowbox component, this plugin cannot function.
     117
     118Shadowbox 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
     120JW 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
     122Neither 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
    103124== Screenshots ==
    104125
     
    1141351. Upload the new `shadowbox-js` folder to the `/wp-content/plugins/` directory
    1151361. Activate the Shadowbox JS plugin
    116 1. Optional: Visit the settings page in the WordPress admin at `Settings -> Shadowbox JS`
     1371. Visit the settings page in the WordPress admin at `Settings -> Shadowbox JS` and install the required dependencies if needed
    117138
    118139== Usage ==
     
    135156== Upgrade Notice ==
    136157
     158= 3.0.3.10 =
     159
     160Removed 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
    137162= 3.0.3.9 =
    138163
     
    164189
    165190== 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.
    166194
    167195= 3.0.3.9 (2011-12-08): =
  • shadowbox-js/trunk/shadowbox-js.php

    r472089 r496740  
    88 *
    99 * @author Matt Martz <matt@sivel.net>
    10  * @version 3.0.3.9
     10 * @version 3.0.3.10
    1111 * @package shadowbox-js
    1212 */
     
    1616Plugin URI:   http://sivel.net/wordpress/shadowbox-js/
    1717Description:  A javascript media viewer similar to Lightbox and Thickbox. Supports all types of media, not just images.
    18 Version:      3.0.3.9
     18Version:      3.0.3.10a
    1919Author:       Matt Martz
    2020Author URI:   http://sivel.net/
    2121Text Domain:  shadowbox-js
    2222Domain Path:  shadowbox-js/localization
    23 License:      LGPL
    24 
    25     Shadowbox JS (c) 2008-2011 Matt 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.txt
     23License:      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
    2828
    2929    Shadowbox (c) 2007-2010 Michael J. I. Jackson (http://www.shadowbox-js.com/)
     
    5656     * @var int
    5757     */
    58     var $version = '3.0.3.9';
     58    var $version = '3.0.3.10';
    5959
    6060    /**
  • shadowbox-js/trunk/shadowbox-title-push.php

    r472089 r496740  
    1414Plugin URI:   http://sivel.net/wordpress/shadowbox-js/
    1515Description:  Push the title attribute from the img tag to the anchor tag
    16 Version:      3.0.3.9
     16Version:      3.0.3.10a
    1717Author:       Matt Martz
    1818Author URI:   http://sivel.net/
  • shadowbox-js/trunk/uninstall.php

    r240766 r496740  
    11<?php
    22/**
    3  * Uninstalls the shadowbox-js options when an uninstall has been requested 
     3 * Uninstalls the shadowbox-js options when an uninstall has been requested
    44 * from the WordPress admin
    55 *
Note: See TracChangeset for help on using the changeset viewer.