Make WordPress Core


Ignore:
Timestamp:
02/11/2008 07:44:21 AM (17 years ago)
Author:
matt
Message:

Butter upload buttons. Still need custom dialogs for music/video/other.

File:
1 edited

Legend:

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

    r6747 r6781  
    9999<p>
    100100    <button name="image-add" id="image-add" class="button-ok" value="1"><?php _e('Add Image'); ?></button>
    101     <a href="#" onclick="return top.tb_remove();" id="image-cancel" class="button-cancel"><?php _e('Cancel'); ?></a>
     101    <a href="#" onClick="return top.tb_remove();" id="image-cancel" class="button-cancel"><?php _e('Cancel'); ?></a>
    102102</p>
    103103    <input type="hidden" name="post_id" value="<?php echo attribute_escape($post_id); ?>" />
     
    352352    $multimedia_upload_iframe_src = apply_filters('multimedia_upload_iframe_src', $multimedia_upload_iframe_src);
    353353    $out = <<<EOF
    354 <a href="{$multimedia_upload_iframe_src}&TB_iframe=true&height=500&width=640" class="thickbox">Multimedia</a>
    355 <a href="{$image_upload_iframe_src}&TB_iframe=true&height=500&width=460" class="thickbox">
    356 <img src="./images/media-buttons.gif" alt="" />
    357 </a>
     354
     355<a href="{$image_upload_iframe_src}&TB_iframe=true&height=500&width=480" class="thickbox"><img src='images/media-button-image.gif' alt='' /></a>
     356<a href="{$multimedia_upload_iframe_src}&TB_iframe=true&height=500&width=640" class="thickbox"><img src='images/media-button-gallery.gif' alt='' /></a>
     357<a href="{$image_upload_iframe_src}&TB_iframe=true&height=500&width=640" class="thickbox"><img src='images/media-button-video.gif' alt='' /></a>
     358<a href="{$image_upload_iframe_src}&TB_iframe=true&height=500&width=640" class="thickbox"><img src='images/media-button-music.gif' alt='' /></a>
     359<a href="{$image_upload_iframe_src}&TB_iframe=true&height=500&width=640" class="thickbox"><img src='images/media-button-other.gif' alt='' /></a>
     360
     361
    358362EOF;
    359363    echo $out;
Note: See TracChangeset for help on using the changeset viewer.