Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/wp-admin/admin-header.php

    r8249 r8418  
    7575
    7676<?php
    77 $gears_compat = false;
    78 
    79 if ( ($is_gecko || $is_winIE) && strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'webkit') === false ) {
    80     $gears_compat = true;
     77if ( ! $is_opera ) {
    8178?>
    8279    <div id="gears-info-box" class="info-box" style="display:none;">
     
    9491    <h3 class="info-box-title"><?php _e('Gears Status'); ?></h3>
    9592    <p><?php _e('Gears is installed on this computer but is not enabled for use with WordPress.'); ?></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>
     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>
    97101    <p><strong><?php _e('However if this is a public or shared computer, Gears should not be enabled.'); ?></strong></p>
    98102    <div class="submit"><button class="button" onclick="wpGears.getPermission();"><?php _e('Enable Gears'); ?></button>
     
    102106    <div id="gears-msg3" style="display:none;">
    103107    <h3 class="info-box-title"><?php _e('Gears Status'); ?></h3>
    104     <p><?php _e('Gears is installed and enabled on this computer. You can disable it from your browser Tools menu.'); ?></p>
     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>
    105116    <p><?php _e('If there are any errors, try disabling Gears, then reload the page and enable it again.'); ?></p>
    106117    <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>
     
    108119    </div>
    109120    </div>
    110 
    111121<?php } ?>
    112122
    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>
     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>
    114124
    115125<?php
Note: See TracChangeset for help on using the changeset viewer.