WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r8418 r8249  
    7575
    7676<?php
    77 if ( ! $is_opera ) {
     77$gears_compat = false;
     78
     79if ( ($is_gecko || $is_winIE) && strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'webkit') === false ) {
     80    $gears_compat = true;
    7881?>
    7982    <div id="gears-info-box" class="info-box" style="display:none;">
     
    9194    <h3 class="info-box-title"><?php _e('Gears Status'); ?></h3>
    9295    <p><?php _e('Gears is installed on this computer but is not enabled for use with WordPress.'); ?></p>
    93     <p><?php
    94    
    95     if ( $is_safari )
    96         _e('To enable it, make sure this web site is not on the denied list in Gears Settings under the Safari menu, then click the button below.');
    97     else
    98         _e('To enable it, make sure this web site is not on the denied list in Gears Settings under your browser Tools menu, then click the button below.');
    99    
    100     ?></p>
     96    <p><?php _e('To enable it, make sure this web site is not on the denied list in Gears Settings under your browser\'s Tools menu, then click the button below.'); ?></p>
    10197    <p><strong><?php _e('However if this is a public or shared computer, Gears should not be enabled.'); ?></strong></p>
    10298    <div class="submit"><button class="button" onclick="wpGears.getPermission();"><?php _e('Enable Gears'); ?></button>
     
    106102    <div id="gears-msg3" style="display:none;">
    107103    <h3 class="info-box-title"><?php _e('Gears Status'); ?></h3>
    108     <p><?php
    109    
    110     if ( $is_safari )
    111         _e('Gears is installed and enabled on this computer. You can disable it from the Safari menu.');
    112     else
    113         _e('Gears is installed and enabled on this computer. You can disable it from your browser Tools menu.');
    114    
    115     ?></p>
     104    <p><?php _e('Gears is installed and enabled on this computer. You can disable it from your browser Tools menu.'); ?></p>
    116105    <p><?php _e('If there are any errors, try disabling Gears, then reload the page and enable it again.'); ?></p>
    117106    <p><?php _e('Local storage status:'); ?> <span id="gears-wait"><span style="color:#f00;"><?php _e('Please wait! Updating files:'); ?></span> <span id="gears-upd-number"></span></span></p>
     
    119108    </div>
    120109    </div>
     110
    121111<?php } ?>
    122112
    123 <div id="user_info"><p><?php printf(__('Howdy, <a href="%1$s">%2$s</a>!'), 'profile.php', $user_identity) ?> | <a href="<?php echo site_url('wp-login.php?action=logout', 'login') ?>" title="<?php _e('Log Out') ?>"><?php _e('Log Out'); ?></a> | <?php _e('<a href="http://codex.wordpress.org/">Help</a>') ?> | <?php _e('<a href="http://wordpress.org/support/">Forums</a>'); if ( ! $is_opera ) { ?> | <span id="gears-menu"><a href="#" onclick="wpGears.message(1);return false;"><?php _e('Turbo') ?></a></span><?php } ?></p></div>
     113<div id="user_info"><p><?php printf(__('Howdy, <a href="%1$s">%2$s</a>!'), 'profile.php', $user_identity) ?> | <a href="<?php echo site_url('wp-login.php?action=logout', 'login') ?>" title="<?php _e('Log Out') ?>"><?php _e('Log Out'); ?></a> | <?php _e('<a href="http://codex.wordpress.org/">Help</a>') ?> | <?php _e('<a href="http://wordpress.org/support/">Forums</a>'); if ( $gears_compat ) { ?> | <span id="gears-menu"><a href="#" onclick="wpGears.message(1);return false;"><?php _e('Turbo') ?></a></span><?php } ?></p></div>
    124114
    125115<?php
Note: See TracChangeset for help on using the changeset viewer.