Advertisements

wp_iframe

Definition:
function wp_iframe($content_func /* ... */) {}

Wrap iframe content (produced by $content_func) in a doctype, html head/body etc any additional function args will be passed to content_func.

Parameters

  • unknown_type $content_func

Defined actions

  • admin_xml_ns
    do_action('admin_xml_ns');
  • admin_enqueue_scripts
    do_action('admin_enqueue_scripts', 'media-upload-popup');
  • admin_print_styles-media-upload-popup
    do_action('admin_print_styles-media-upload-popup');
  • admin_print_styles
    do_action('admin_print_styles');
  • admin_print_scripts-media-upload-popup
    do_action('admin_print_scripts-media-upload-popup');
  • admin_print_scripts
    do_action('admin_print_scripts');
  • admin_head-media-upload-popup
    do_action('admin_head-media-upload-popup');
  • admin_head
    do_action('admin_head');
  • admin_head_{$content_func}
    do_action( "admin_head_{$content_func}" );

Source code

function wp_iframe($content_func /* ... */) {

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>

<head>

<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />

<title><?php bloginfo('name') ?> &rsaquo; <?php _e('Uploads'); ?> — <?php _e('WordPress'); ?></title>

<?php

wp_enqueue_style( 'global' );

wp_enqueue_style( 'wp-admin' );

wp_enqueue_style( 'colors' );

// Check callback name for 'media'

if ( ( is_array( $content_func ) && ! empty( $content_func[1] ) && 0 === strpos( (string) $content_func[1], 'media' ) )

	|| ( ! is_array( $content_func ) && 0 === strpos( $content_func, 'media' ) ) )

	wp_enqueue_style( 'media' );

wp_enqueue_style( 'ie' );

?>

<script type="text/javascript">

//<![CDATA[

addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};

var userSettings = {'url':'<?php echo SITECOOKIEPATH; ?>','uid':'<?php if ( ! isset($current_user) ) $current_user = wp_get_current_user(); echo $current_user->ID; ?>','time':'<?php echo time(); ?>'};

var ajaxurl = '<?php echo admin_url('admin-ajax.php'); ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',

isRtl = <?php echo (int) is_rtl(); ?>;

//]]>

</script>

<?php

do_action('admin_enqueue_scripts', 'media-upload-popup');

do_action('admin_print_styles-media-upload-popup');

do_action('admin_print_styles');

do_action('admin_print_scripts-media-upload-popup');

do_action('admin_print_scripts');

do_action('admin_head-media-upload-popup');

do_action('admin_head');



if ( is_string($content_func) )

	do_action( "admin_head_{$content_func}" );

3769

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: