Changeset 21014 for trunk/wp-admin/customize.php
- Timestamp:
- 06/06/2012 09:45:17 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/customize.php
r21010 r21014 35 35 _wp_admin_html_begin(); 36 36 37 $body_class = ''; 38 39 if ( wp_is_mobile() ) : 40 $body_class .= ' mobile'; 41 42 ?><meta name="viewport" id="viewport-meta" content="width=device-width, initial-scale=0.8, minimum-scale=0.5, maximum-scale=1.2"><?php 43 endif; 44 45 $is_ios = wp_is_mobile() && preg_match( '/iPad|iPod|iPhone/', $_SERVER['HTTP_USER_AGENT'] ); 46 47 if ( $is_ios ) 48 $body_class .= ' ios'; 49 37 50 $admin_title = sprintf( __( '%1$s — WordPress' ), strip_tags( sprintf( __( 'Customize %s' ), $wp_customize->theme()->display('Name') ) ) ); 38 51 ?><title><?php echo $admin_title; ?></title><?php … … 42 55 ?> 43 56 </head> 44 <body class="wp-full-overlay"> 57 <body class="<?php echo esc_attr( $body_class ); ?>"> 58 <div class="wp-full-overlay expanded"> 45 59 <form id="customize-controls" class="wrap wp-full-overlay-sidebar"> 46 60 <?php wp_nonce_field( 'customize_controls-' . $wp_customize->get_stylesheet() ); ?> … … 141 155 'fallback' => $fallback_url, 142 156 ), 157 'browser' => array( 158 'mobile' => wp_is_mobile(), 159 'ios' => $is_ios, 160 ), 143 161 'settings' => array(), 144 162 'controls' => array(), … … 161 179 var _wpCustomizeSettings = <?php echo json_encode( $settings ); ?>; 162 180 </script> 181 </div> 163 182 </body> 164 183 </html>
Note: See TracChangeset
for help on using the changeset viewer.