Changes in trunk/wp-admin/admin-header.php [17217:18349]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-header.php
r17217 r18349 29 29 30 30 wp_user_settings(); 31 wp_menu_unfold();32 31 33 32 ?> … … 69 68 70 69 if ( in_array( $pagenow, array('post.php', 'post-new.php') ) ) { 71 add_action( 'admin_print_footer_scripts', 'wp_tiny_mce', 25 );72 add_action( 'admin_print_footer_scripts', 'wp_tiny_mce_preload_dialogs', 30 );73 70 wp_enqueue_script('quicktags'); 74 71 } … … 87 84 if ( is_admin_bar_showing() ) 88 85 $admin_body_class .= ' admin-bar'; 86 87 if ( is_rtl() ) 88 $admin_body_class .= ' rtl'; 89 90 $admin_body_class .= ' branch-' . str_replace( '.', '-', floatval( $wp_version ) ); 91 $admin_body_class .= ' version-' . str_replace( '.', '-', preg_replace( '/^([.0-9]+).*/', '$1', $wp_version ) ); 92 $admin_body_class .= ' admin-color-' . sanitize_html_class( get_user_option( 'admin_color' ), 'fresh' ); 89 93 90 94 if ( $is_iphone ) { ?> … … 104 108 105 109 <div id="wpwrap"> 110 <?php require(ABSPATH . 'wp-admin/menu-header.php'); ?> 106 111 <div id="wpcontent"> 107 112 <div id="wphead"> … … 133 138 ?> 134 139 135 <img id="header-logo" src="<?php echo esc_url( includes_url( 'images/blank.gif' ) ); ?>" alt="" width=" 32" height="32" />140 <img id="header-logo" src="<?php echo esc_url( includes_url( 'images/blank.gif' ) ); ?>" alt="" width="16" height="16" /> 136 141 <h1 id="site-heading" <?php echo $title_class ?>> 137 142 <a href="<?php echo trailingslashit( get_bloginfo( 'url' ) ); ?>" title="<?php esc_attr_e('Visit Site') ?>"> 138 143 <span id="site-title"><?php echo $blog_name ?></span> 139 144 </a> 140 <?php if ( !is_network_admin() && !is_user_admin() && current_user_can('manage_options') && '1' != get_option('blog_public') ): ?>141 <a id="privacy-on-link" href="options-privacy.php" title="<?php echo esc_attr( apply_filters('privacy_on_link_title', __('Your site is asking search engines not to index its content') ) ); ?>"><?php echo apply_filters('privacy_on_link_text', __('Search Engines Blocked') ); ?></a>142 <?php endif; ?>143 145 </h1> 144 146 145 <?php do_action('in_admin_header'); ?> 147 <?php 148 149 do_action('in_admin_header'); 150 151 $links = array(); 152 153 // Generate user profile and info links. 154 $links[5] = sprintf( __('Howdy, %1$s'), $user_identity ); 155 156 $links[8] = '<a href="profile.php" title="' . esc_attr__('Edit your profile') . '">' . __('Your Profile') . '</a>'; 157 158 if ( is_multisite() && is_super_admin() ) { 159 if ( !is_network_admin() ) 160 $links[10] = '<a href="' . network_admin_url() . '" title="' . ( ! empty( $update_title ) ? $update_title : esc_attr__('Network Admin') ) . '">' . __('Network Admin') . ( ! empty( $total_update_count ) ? ' (' . number_format_i18n( $total_update_count ) . ')' : '' ) . '</a>'; 161 else 162 $links[10] = '<a href="' . get_dashboard_url( get_current_user_id() ) . '" title="' . esc_attr__('Site Admin') . '">' . __('Site Admin') . '</a>'; 163 } 164 165 $links[15] = '<a href="' . wp_logout_url() . '" title="' . esc_attr__('Log Out') . '">' . __('Log Out') . '</a>'; 166 167 $links = apply_filters( 'admin_user_info_links', $links, $current_user ); 168 ksort( $links ); 169 170 // Trim whitespace and pipes from links, then convert to list items. 171 $links = array_map( 'trim', $links, array_fill( 0, count( $links ), " |\n\t" ) ); 172 173 $howdy = array_shift( $links ); 174 175 $links_no_js = implode( ' | ', $links ); 176 $links_js = '<li>' . implode( '</li><li>', $links ) . '</li>'; 177 178 ?> 146 179 147 180 <div id="wphead-info"> 148 181 <div id="user_info"> 149 <p><?php 150 $links = array(); 151 $links[5] = sprintf(__('Howdy, <a href="%1$s" title="Edit your profile">%2$s</a>'), 'profile.php', $user_identity); 152 if ( is_multisite() && is_super_admin() ) { 153 if ( !is_network_admin() ) 154 $links[10] = '| <a href="' . network_admin_url() . '" title="' . ( ! empty( $update_title ) ? $update_title : esc_attr__('Network Admin') ) . '">' . __('Network Admin') . ( ! empty( $total_update_count ) ? ' (' . number_format_i18n( $total_update_count ) . ')' : '' ) . '</a>'; 155 else 156 $links[10] = '| <a href="' . get_dashboard_url( get_current_user_id() ) . '" title="' . esc_attr__('Site Admin') . '">' . __('Site Admin') . '</a>'; 157 } 158 $links[15] = '| <a href="' . wp_logout_url() . '" title="' . esc_attr__('Log Out') . '">' . __('Log Out') . '</a>'; 159 160 $links = apply_filters('admin_user_info_links', $links, $current_user); 161 ksort($links); 162 163 echo implode(' ', $links); 164 ?></p> 165 </div> 166 167 <?php favorite_actions($current_screen); ?> 182 <p class="hide-if-js"><?php echo "$howdy | $links_no_js"; ?></p> 183 184 <div class="hide-if-no-js"> 185 <p><?php echo $howdy; ?></p> 186 <div id="user_info_arrow"></div> 187 <div id="user_info_links_wrap"><div id="user_info_links"> 188 <ul><?php echo $links_js; ?></ul> 189 </div></div> 190 </div> 168 191 </div> 169 192 </div> 170 193 194 </div> 195 171 196 <div id="wpbody"> 172 197 <?php 173 198 unset($title_class, $blog_name, $total_update_count, $update_title); 174 175 require(ABSPATH . 'wp-admin/menu-header.php');176 199 177 200 $current_screen->parent_file = $parent_file;
Note: See TracChangeset
for help on using the changeset viewer.