Make WordPress Core


Ignore:
Timestamp:
05/17/2009 12:29:58 PM (15 years ago)
Author:
azaozz
Message:

Update SWFUpload to 2.2.0.1, see #9413

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/media.php

    r11312 r11372  
    328328    $args = array_slice($args, 1);
    329329    call_user_func_array($content_func, $args);
     330   
     331    do_action('admin_print_footer_scripts');
    330332?>
    331333<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
     
    13001302<script type="text/javascript">
    13011303//<![CDATA[
     1304var swfu;
    13021305SWFUpload.onload = function() {
    1303     swfu = new SWFUpload({
     1306    var settings = {
    13041307            button_text: '<span class="button"><?php _e('Select Files'); ?></span>',
    13051308            button_text_style: '.button { text-align: center; font-weight: bold; font-family:"Lucida Grande","Lucida Sans Unicode",Tahoma,Verdana,sans-serif; }',
    13061309            button_height: "24",
    13071310            button_width: "132",
     1311            button_text_top_padding: 1,
    13081312            button_image_url: '<?php echo includes_url('images/upload.png'); ?>',
    13091313            button_placeholder_id: "flash-browse-button",
     
    13371341            },
    13381342            debug: false
    1339         });
     1343        };
     1344        swfu = new SWFUpload(settings);
    13401345};
    13411346//]]>
     
    13451350<?php do_action('pre-flash-upload-ui'); ?>
    13461351
    1347     <div><?php _e( 'Choose files to upload' ); ?> <div id="flash-browse-button"></div></div>
     1352    <div>
     1353    <?php _e( 'Choose files to upload' ); ?>
     1354    <div id="flash-browse-button"></div>
     1355    <span><input id="cancel-upload" disabled="disabled" onclick="cancelUpload()" type="button" value="<?php esc_attr_e('Cancel Upload'); ?>" class="button" /></span>
     1356    </div>
    13481357<?php do_action('post-flash-upload-ui'); ?>
    13491358    <p class="howto"><?php _e('After a file has been uploaded, you can add titles and descriptions.'); ?></p>
    13501359</div>
    1351 
    13521360<?php endif; // $flash ?>
    13531361
     
    13951403
    13961404<script type="text/javascript">
    1397 <!--
     1405//<![CDATA[
    13981406jQuery(function($){
    13991407    var preloaded = $(".media-item.preloaded");
     
    14031411    updateMediaForm();
    14041412});
    1405 -->
     1413//]]>
    14061414</script>
    14071415<div id="media-items">
     
    14181426?>
    14191427</div>
    1420 <input type="submit" class="button savebutton" name="save" value="<?php esc_attr_e( 'Save all changes' ); ?>" />
     1428<p class="savebutton ml-submit">
     1429<input type="submit" class="button" name="save" value="<?php esc_attr_e( 'Save all changes' ); ?>" />
     1430</p>
    14211431<?php
    14221432}
     
    15681578<span>
    15691579<?php _e('All Tabs:'); ?>
    1570 <a href="#" id="showall" class="toggle"><?php _e('Show'); ?></a>
    1571 <a href="#" id="hideall" class="toggle" style="display:none;"><?php _e('Hide'); ?></a>
     1580<a href="#" id="showall"><?php _e('Show'); ?></a>
     1581<a href="#" id="hideall" style="display:none;"><?php _e('Hide'); ?></a>
    15721582</span>
    15731583<?php _e('Sort Order:'); ?>
Note: See TracChangeset for help on using the changeset viewer.