Changeset 19368 for trunk/wp-includes/class-wp-admin-bar.php
- Timestamp:
- 11/21/2011 02:03:02 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/class-wp-admin-bar.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-admin-bar.php
r19365 r19368 113 113 114 114 public function render() { 115 global $is_IE, $is_iphone; 115 116 116 117 $back_compat_parents = array( 117 118 'appearance' => 'site-name', 118 119 ); 120 121 // have to do this here since admin bar shows on the front end too 122 $class = 'nojq nojs'; 123 if ( $is_IE ) { 124 if ( strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 7') ) 125 $class .= ' ie7'; 126 elseif ( strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 8') ) 127 $class .= ' ie8'; 128 } elseif ( $is_iphone ) { 129 $class .= ' mobile'; 130 } 119 131 120 132 // Link nodes to parents. … … 143 155 144 156 ?> 145 <div id="wpadminbar" class=" nojq nojs">157 <div id="wpadminbar" class="<?php echo $class; ?>"> 146 158 <div class="quicklinks"> 147 159 <ul class="ab-top-menu"><?php
Note: See TracChangeset
for help on using the changeset viewer.