+<?php
+$blog_name = get_bloginfo('name', 'display');
+if ( '' == $blog_name ) {
+ $blog_name = ' ';
+} else {
+ $blog_name_excerpt = wp_html_excerpt($blog_name, 40);
+ if ( $blog_name != $blog_name_excerpt )
+ $blog_name_excerpt = trim($blog_name_excerpt) . '…';
+ $blog_name = $blog_name_excerpt;
+}
+$title_class = '';
+if ( function_exists('mb_strlen') ) {
+ if ( mb_strlen($blog_name, 'UTF-8') > 30 )
+ $title_class = 'class="long-title"';
+} else {
+ if ( strlen($blog_name) > 30 )
+ $title_class = 'class="long-title"';
+}
+?>
+
+<img id="header-logo" src="../wp-includes/images/blank.gif" alt="" width="32" height="32" /> <h1 id="site-heading" <?php echo $title_class ?>><a href="<?php echo trailingslashit( get_bloginfo('url') ); ?>" title="<?php _e('Visit Site') ?>"><span id="site-title"><?php echo $blog_name ?></span> <em id="site-visit-button"><?php _e('Visit Site') ?></em></a></h1>
+
+<div id="wphead-info">
+<div id="user_info">
+<p><?php printf(__('Howdy, <a href="%1$s" title="Edit your profile">%2$s</a>'), 'profile.php', $user_identity) ?>
+<?php if ( ! $is_opera ) { ?><span class="turbo-nag hidden"> | <a href="tools.php"><?php _e('Turbo') ?></a></span><?php } ?> |
+<a href="<?php echo wp_logout_url() ?>" title="<?php _e('Log Out') ?>"><?php _e('Log Out'); ?></a></p>
+</div>
+
+<?php favorite_actions($hook_suffix); ?>
+</div>