Make WordPress Core


Ignore:
Timestamp:
05/16/2009 07:21:29 PM (15 years ago)
Author:
azaozz
Message:

Add footer actions to iframe footer, props DD32, fixes #9832

File:
1 edited

Legend:

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

    r11353 r11366  
    33243324 *
    33253325 */
    3326 function iframe_header( $title = '', $limit_styles = false) {
     3326function iframe_header( $title = '', $limit_styles = false ) {
    33273327?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    33283328<html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
     
    33593359 */
    33603360function iframe_footer() {
    3361     echo '
    3362     <script type="text/javascript">if(typeof wpOnload=="function")wpOnload();</script>
    3363     </body>
    3364 </html>';
     3361    //We're going to hide any footer output on iframe pages, but run the hooks anyway since they output Javascript or other needed content. ?>
     3362    <div class="hidden">
     3363<?php
     3364    do_action('admin_footer', '');
     3365    do_action('admin_print_footer_scripts'); ?>
     3366    </div>
     3367<script type="text/javascript">if(typeof wpOnload=="function")wpOnload();</script>
     3368</body>
     3369</html>
     3370<?php
    33653371}
    33663372
Note: See TracChangeset for help on using the changeset viewer.