mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
More theme install styling, see #8652
git-svn-id: https://develop.svn.wordpress.org/trunk@10823 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3243,13 +3243,14 @@ function iframe_header( $title = '', $limit_styles = false) {
|
||||
<title><?php bloginfo('name') ?> › <?php echo $title ?> — <?php _e('WordPress'); ?></title>
|
||||
<?php
|
||||
wp_enqueue_style( 'global' );
|
||||
wp_enqueue_style( 'colors' );
|
||||
if ( ! $limit_styles )
|
||||
wp_enqueue_style( 'wp-admin' );
|
||||
wp_enqueue_style( 'colors' );
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
function addLoadEvent(func) {if ( typeof wpOnload!='function'){wpOnload=func;}else{ var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}}
|
||||
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();}
|
||||
//]]>
|
||||
</script>
|
||||
<?php
|
||||
@@ -3270,6 +3271,7 @@ do_action('admin_head');
|
||||
*/
|
||||
function iframe_footer() {
|
||||
echo '
|
||||
<script type="text/javascript">if(typeof wpOnload=="function")wpOnload();</script>
|
||||
</body>
|
||||
</html>';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user