iframe_header( string $title = '', bool $deprecated = false )
Generic Iframe header for use with Thickbox
Description Description
Parameters Parameters
- $title
-
(string) (Optional) Title of the Iframe page.
Default value: ''
- $deprecated
-
(bool) (Optional) Not used.
Default value: false
Source Source
File: wp-admin/includes/template.php
1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 | function iframe_header( $title = '' , $deprecated = false ) { show_admin_bar( false ); global $hook_suffix , $admin_body_class , $wp_locale ; $admin_body_class = preg_replace( '/[^a-z0-9_-]+/i' , '-' , $hook_suffix ); $current_screen = get_current_screen(); @header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) ); _wp_admin_html_begin(); ?> <title><?php bloginfo( 'name' ); ?> › <?php echo $title ; ?> — <?php _e( 'WordPress' ); ?></title> <?php wp_enqueue_style( 'colors' ); ?> <script type= "text/javascript" > 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();}}}; function tb_close(){ var win=window.dialogArguments||opener||parent||top;win.tb_remove();} var ajaxurl = '<?php echo admin_url( ' admin-ajax.php ', ' relative ' ); ?>' , pagenow = '<?php echo $current_screen->id; ?>' , typenow = '<?php echo $current_screen->post_type; ?>' , adminpage = '<?php echo $admin_body_class; ?>' , thousandsSeparator = '<?php echo addslashes( $wp_locale->number_format[' thousands_sep '] ); ?>' , decimalPoint = '<?php echo addslashes( $wp_locale->number_format[' decimal_point '] ); ?>' , isRtl = <?php echo (int) is_rtl(); ?>; </script> <?php /** This action is documented in wp-admin/admin-header.php */ do_action( 'admin_enqueue_scripts' , $hook_suffix ); /** This action is documented in wp-admin/admin-header.php */ do_action( "admin_print_styles-$hook_suffix" ); /** This action is documented in wp-admin/admin-header.php */ do_action( 'admin_print_styles' ); /** This action is documented in wp-admin/admin-header.php */ do_action( "admin_print_scripts-$hook_suffix" ); /** This action is documented in wp-admin/admin-header.php */ do_action( 'admin_print_scripts' ); /** This action is documented in wp-admin/admin-header.php */ do_action( "admin_head-$hook_suffix" ); /** This action is documented in wp-admin/admin-header.php */ do_action( 'admin_head' ); $admin_body_class .= ' locale-' . sanitize_html_class( strtolower ( str_replace ( '_' , '-' , get_user_locale() ) ) ); if ( is_rtl() ) { $admin_body_class .= ' rtl' ; } ?> </head> <?php /** This filter is documented in wp-admin/admin-header.php */ $admin_body_classes = apply_filters( 'admin_body_class' , '' ); $admin_body_classes = ltrim( $admin_body_classes . ' ' . $admin_body_class ); ?> <body <?php /** * @global string $body_id */ if ( isset( $GLOBALS [ 'body_id' ] ) ) { echo ' id="' . $GLOBALS [ 'body_id' ] . '"' ; } ?> class = "wp-admin wp-core-ui no-js iframe <?php echo $admin_body_classes; ?>" > <script type= "text/javascript" > ( function (){ var c = document.body.className; c = c.replace(/no-js/, 'js' ); document.body.className = c; })(); </script> <?php } |
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |