Make WordPress Core


Ignore:
Timestamp:
09/05/2008 04:29:03 PM (18 years ago)
Author:
azaozz
Message:

Add simple Chrome detection and updates for Gears dialog, fixes #7684

File:
1 edited

Legend:

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

    r8785 r8815  
    101101        <h3 class="info-box-title"><?php _e('Gears Status'); ?></h3>
    102102        <p><?php _e('Gears is installed on this computer, but is not enabled for use with WordPress.'); ?></p>
    103         <p><?php
    104 
    105         if ( $is_safari )
    106                 _e('To enable it, ensure this web site is not on the denied list in Gears Settings under the Safari menu, then click the button below.');
    107         else
    108                 _e('To enable it, ensure this web site is not on the denied list in Gears Settings under your browser&#8217;s Tools menu, then click the button below.');
    109 
    110         ?></p>
     103        <p><?php _e('To enable it click the button below.'); ?></p>
    111104        <p><strong><?php _e('However, Gears should not be enabled if this is a public or shared computer.'); ?></strong></p>
    112105        <div class="submit"><button class="button" onclick="wpGears.getPermission();"><?php _e('Enable Gears'); ?></button>
    … …  
    118111        <p><?php
    119112
    120         if ( $is_safari )
     113        if ( $is_chrome )
     114                _e('Gears is installed and enabled on this computer. You can disable it from your browser&#8217;s Options, Under the Hood menu.');
     115        elseif ( $is_safari )
    121116                _e('Gears is installed and enabled on this computer. You can disable it from the Safari menu.');
    122117        else
    … …  
    125120        ?></p>
    126121        <p><?php _e('If there are any errors try disabling Gears, reloading the page, and re-enabling Gears.'); ?></p>
    127         <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>
     122        <p><?php _e('Local storage status:'); ?> <span id="gears-wait"><span style="color:#f00;"><?php _e('Updating files:'); ?></span> <span id="gears-upd-number"></span></span></p>
    128123        <div class="submit"><button class="button" onclick="document.getElementById('gears-info-box').style.display='none';"><?php _e('Close'); ?></button></div>
    129124        </div>
     125
     126        <div id="gears-msg4" style="display:none;">
     127        <h3 class="info-box-title"><?php _e('Gears Status'); ?></h3>
     128        <p><?php _e('This web site is denied to use Gears.'); ?></p>
     129        <p><?php
     130
     131        if ( $is_chrome )
     132                _e('To allow it, change the Gears settings from your browser&#8217;s Options, Under the Hood menu and reload this page.');
     133        elseif ( $is_safari )
     134                _e('To allow it, change the Gears settings from the Safari menu and reload this page.');
     135        else
     136                _e('To allow it, change the Gears settings from your browser&#8217;s Tools menu and reload this page.');
     137
     138        ?></p>
     139        <p><strong><?php _e('However, Gears should not be enabled if this is a public or shared computer.'); ?></strong></p>
     140        <div class="submit"><button class="button" onclick="document.getElementById('gears-info-box').style.display='none';"><?php _e('Cancel'); ?></button></div>
     141        </div>
     142       
    130143        </div>
    131144<?php } ?>
Note: See TracChangeset for help on using the changeset viewer.