Make WordPress Core


Ignore:
Timestamp:
04/04/2009 05:07:31 PM (16 years ago)
Author:
azaozz
Message:

Improved no-js styles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-header.php

    r10868 r10869  
    6060
    6161$admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix);
    62 ?>
    6362
    64 <noscript>
    65 <style type="text/css">
    66 .hide-if-no-js{display:none}
    67 .hide-if-js,.closed .inside{display:block}
    68 </style>
    69 </noscript>
     63if ( $is_iphone ) { ?>
     64<style type="text/css">.row-actions{visibility:visible;}</style>
     65<?php } ?>
     66</head>
     67<body class="wp-admin no-js <?php echo apply_filters( 'admin_body_class', '' ) . " $admin_body_class"; ?>">
    7068<script type="text/javascript">
    7169//<![CDATA[
    7270(function(){
    73     var ns = document.getElementsByTagName('noscript');
    74     if ( ns && (ns = ns[0]) ) ns.parentNode.removeChild(ns);
     71var c = document.body.className;
     72c = c.replace(/no-js/, 'js');
     73<?php if ( get_user_setting('mfold') == 'f' ) { ?>
     74c += ' folded';
     75<?php } ?>
     76document.body.className = c;
    7577})();
    7678//]]>
    7779</script>
    78 
    79 <?php if ( $is_iphone ) { ?>
    80 <style type="text/css">.row-actions{visibility:visible;}</style>
    81 <?php } ?>
    82 </head>
    83 <body class="wp-admin <?php echo apply_filters( 'admin_body_class', '' ) . " $admin_body_class"; ?>">
    8480
    8581<div id="wpwrap">
     
    119115</div>
    120116
    121 <?php if ( get_user_setting('mfold') == 'f' ) { ?>
    122 <script type="text/javascript">jQuery('#wpcontent').addClass('folded');</script>
    123 <?php } ?>
    124 
    125117<div id="wpbody">
    126118<?php require(ABSPATH . 'wp-admin/menu-header.php'); ?>
Note: See TracChangeset for help on using the changeset viewer.