Changeset 9141 for trunk/wp-admin/includes/template.php
- Timestamp:
- 10/13/2008 11:39:56 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r9134 r9141 3065 3065 */ 3066 3066 function _admin_search_query() { 3067 echo ( isset($_GET['s']) ) ? attribute_escape( stripslashes( $_GET['s'] ) ) : ''; 3068 } 3069 3067 echo isset($_GET['s']) ? attribute_escape( stripslashes( $_GET['s'] ) ) : ''; 3068 } 3069 3070 /** 3071 * Generic Iframe header for use with Thickbox 3072 * 3073 * @since 2.7.0 3074 * @param string $title Title of the Iframe page. 3075 * @param bool $limit_styles Limit styles to colour-related styles only (unless others are enqueued). 3076 * 3077 */ 3078 function iframe_header( $title = '', $limit_styles = false) { 3079 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 3080 <html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>> 3081 <head> 3082 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" /> 3083 <title><?php bloginfo('name') ?> › <?php echo $title ?> — <?php _e('WordPress'); ?></title> 3084 <?php 3085 wp_enqueue_style( 'global' ); 3086 wp_enqueue_style( 'colors' ); 3087 if ( ! $limit_styles ) 3088 wp_enqueue_style( 'wp-admin' ); 3070 3089 ?> 3090 <script type="text/javascript"> 3091 //<![CDATA[ 3092 function addLoadEvent(func) {if ( typeof wpOnload!='function'){wpOnload=func;}else{ var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}} 3093 //]]> 3094 </script> 3095 <?php 3096 do_action('admin_print_styles'); 3097 do_action('admin_print_scripts'); 3098 do_action('admin_head'); 3099 ?> 3100 </head> 3101 <body<?php if ( isset($GLOBALS['body_id']) ) echo ' id="' . $GLOBALS['body_id'] . '"'; ?>> 3102 <?php 3103 } 3104 3105 /** 3106 * Generic Iframe footer for use with Thickbox 3107 * 3108 * @since 2.7.0 3109 * 3110 */ 3111 function iframe_footer() { 3112 echo ' 3113 </body> 3114 </html>'; 3115 } 3116 3117 ?>
Note: See TracChangeset
for help on using the changeset viewer.