- <div class="alignright fyi">
- <?php if ( ! empty($api->download_link) && ( current_user_can('install_plugins') || current_user_can('update_plugins') ) ) : ?>
- <p class="action-button">
- <?php
- $status = install_plugin_install_status($api);
- switch ( $status['status'] ) {
- case 'install':
- if ( $status['url'] )
- echo '<a href="' . $status['url'] . '" target="_parent">' . __('Install Now') . '</a>';
- break;
- case 'update_available':
- if ( $status['url'] )
- echo '<a href="' . $status['url'] . '" target="_parent">' . __('Install Update Now') .'</a>';
- break;
- case 'newer_installed':
- echo '<a>' . sprintf(__('Newer Version (%s) Installed'), $status['version']) . '</a>';
- break;
- case 'latest_installed':
- echo '<a>' . __('Latest Version Installed') . '</a>';
- break;
- }
- ?>
- </p>
- <?php endif; ?>
- <h2 class="mainheader"><?php /* translators: For Your Information */ _e('FYI') ?></h2>