raw
mp-wp_genesis           1 <?php
mp-wp_genesis 2 /**
mp-wp_genesis 3 * Turbo Administration Panel.
mp-wp_genesis 4 *
mp-wp_genesis 5 * @package WordPress
mp-wp_genesis 6 * @subpackage Administration
mp-wp_genesis 7 */
mp-wp_genesis 8
mp-wp_genesis 9 /** WordPress Administration Bootstrap */
mp-wp_genesis 10 require_once('admin.php');
mp-wp_genesis 11
mp-wp_genesis 12 $title = __('Tools');
mp-wp_genesis 13 wp_enqueue_script( 'wp-gears' );
mp-wp_genesis 14
mp-wp_genesis 15 require_once('admin-header.php');
mp-wp_genesis 16
mp-wp_genesis 17 screen_icon();
mp-wp_genesis 18 ?>
mp-wp_genesis 19 <div class="wrap">
mp-wp_genesis 20 <h2><?php echo wp_specialchars( $title ); ?></h2>
mp-wp_genesis 21
mp-wp_genesis 22 <div class="tool-box">
mp-wp_genesis 23 <?php
mp-wp_genesis 24 if ( ! $is_opera ) {
mp-wp_genesis 25 ?>
mp-wp_genesis 26 <div id="gears-msg1">
mp-wp_genesis 27 <h3 class="title"><?php _e('Turbo:'); ?> <?php _e('Speed up WordPress'); ?></h3>
mp-wp_genesis 28 <p><?php _e('WordPress now has support for Gears, which adds new features to your web browser.'); ?><br />
mp-wp_genesis 29 <a href="http://gears.google.com/" target="_blank" style="font-weight:normal;"><?php _e('More information...'); ?></a></p>
mp-wp_genesis 30 <p><?php _e('After you install and enable Gears, most of WordPress&#8217; images, scripts, and CSS files will be stored locally on your computer. This speeds up page load time.'); ?></p>
mp-wp_genesis 31 <p><strong><?php _e('Don&#8217;t install on a public or shared computer.'); ?></strong></p>
mp-wp_genesis 32 <div class="buttons"><button onclick="window.location = 'http://gears.google.com/?action=install&amp;return=<?php echo urlencode( admin_url() ); ?>';" class="button"><?php _e('Install Now'); ?></button></div>
mp-wp_genesis 33 </div>
mp-wp_genesis 34
mp-wp_genesis 35 <div id="gears-msg2" style="display:none;">
mp-wp_genesis 36 <h3 class="title"><?php _e('Turbo:'); ?> <?php _e('Gears Status'); ?></h3>
mp-wp_genesis 37 <p><?php _e('Gears is installed on this computer, but is not enabled for use with WordPress.'); ?></p>
mp-wp_genesis 38 <p><?php _e('To enable it click the button below.'); ?></p>
mp-wp_genesis 39 <p><strong><?php _e('Note: Do not enable Gears if this is a public or shared computer!'); ?></strong></p>
mp-wp_genesis 40 <div class="buttons"><button class="button" onclick="wpGears.getPermission();"><?php _e('Enable Gears'); ?></button></div>
mp-wp_genesis 41 </div>
mp-wp_genesis 42
mp-wp_genesis 43 <div id="gears-msg3" style="display:none;">
mp-wp_genesis 44 <h3 class="title"><?php _e('Turbo:'); ?> <?php _e('Gears Status'); ?></h3>
mp-wp_genesis 45 <p><?php
mp-wp_genesis 46
mp-wp_genesis 47 if ( $is_chrome )
mp-wp_genesis 48 _e('Gears is installed and enabled on this computer. You can disable it from your browser&#8217;s Options, Under the Hood menu.');
mp-wp_genesis 49 elseif ( $is_safari )
mp-wp_genesis 50 _e('Gears is installed and enabled on this computer. You can disable it from the Safari menu.');
mp-wp_genesis 51 else
mp-wp_genesis 52 _e('Gears is installed and enabled on this computer. You can disable it from your browser&#8217;s Tools menu.');
mp-wp_genesis 53
mp-wp_genesis 54 ?></p>
mp-wp_genesis 55 <p><?php _e('If there are any errors try disabling Gears, reloading the page, and re-enabling Gears.'); ?></p>
mp-wp_genesis 56 <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>
mp-wp_genesis 57 </div>
mp-wp_genesis 58
mp-wp_genesis 59 <div id="gears-msg4" style="display:none;">
mp-wp_genesis 60 <h3 class="title"><?php _e('Turbo:'); ?> <?php _e('Gears Status'); ?></h3>
mp-wp_genesis 61 <p><?php _e('Your browser&#8217;s settings do not permit this website to use Google Gears.'); ?></p>
mp-wp_genesis 62 <p><?php
mp-wp_genesis 63
mp-wp_genesis 64 if ( $is_chrome )
mp-wp_genesis 65 _e('To allow it, change the Gears settings in your browser&#8217;s Options, Under the Hood menu and reload this page.');
mp-wp_genesis 66 elseif ( $is_safari )
mp-wp_genesis 67 _e('To allow it, change the Gears settings in the Safari menu and reload this page.');
mp-wp_genesis 68 else
mp-wp_genesis 69 _e('To allow it, change the Gears settings in your browser&#8217;s Tools menu and reload this page.');
mp-wp_genesis 70
mp-wp_genesis 71 ?></p>
mp-wp_genesis 72 <p><strong><?php _e('Note: Do not enable Gears if this is a public or shared computer!'); ?></strong></p>
mp-wp_genesis 73 </div>
mp-wp_genesis 74 <script type="text/javascript">wpGears.message();</script>
mp-wp_genesis 75 <?php } else {
mp-wp_genesis 76 _e('Turbo is not available for your browser.');
mp-wp_genesis 77 } ?>
mp-wp_genesis 78 </div>
mp-wp_genesis 79
mp-wp_genesis 80 <?php if ( current_user_can('publish_posts') ) : ?>
mp-wp_genesis 81 <div class="tool-box">
mp-wp_genesis 82 <h3 class="title"><?php _e('Press This') ?></h3>
mp-wp_genesis 83 <p><?php _e('Press This is a bookmarklet: a little app that runs in your browser and lets you grab bits of the web.');?></p>
mp-wp_genesis 84
mp-wp_genesis 85 <p><?php _e('Use Press This to clip text, images and videos from any web page. Then edit and add more straight from Press This before you save or publish it in a post on your blog.'); ?></p>
mp-wp_genesis 86 <p><?php _e('Drag-and-drop the following link to your bookmarks bar or right click it and add it to your favorites for a posting shortcut.') ?></p>
mp-wp_genesis 87 <p class="pressthis"><a href="<?php echo htmlspecialchars( get_shortcut_link() ); ?>" title="<?php echo attribute_escape(__('Press This')) ?>"><?php _e('Press This') ?></a></p>
mp-wp_genesis 88 </div>
mp-wp_genesis 89 <?php endif; ?>
mp-wp_genesis 90 </div>
mp-wp_genesis 91 <?php
mp-wp_genesis 92 include('admin-footer.php');
mp-wp_genesis 93 ?>