download_link) && ( current_user_can('install_plugins') || current_user_can('update_plugins') ) ) : ?>
' . __('Install Now') . '';
break;
case 'update_available':
if ( $status['url'] )
echo '' . __('Install Update Now') .'';
break;
case 'newer_installed':
echo '' . sprintf(__('Newer Version (%s) Installed'), $status['version']) . '';
break;
case 'latest_installed':
echo '' . __('Latest Version Installed') . '';
break;
}
?>
version) ) : ?>
- version ?>
author) ) : ?>
- author, '_blank') ?>
last_updated) ) : ?>
- last_updated)) ) ?>
requires) ) : ?>
- requires) ?>
tested) ) : ?>
- tested ?>
downloaded) ) : ?>
- downloaded), number_format_i18n($api->downloaded)) ?>
slug) && empty($api->external) ) : ?>
homepage) ) : ?>
rating) ) : ?>
num_ratings), number_format_i18n($api->num_ratings)); ?>
tested) && version_compare( substr($GLOBALS['wp_version'], 0, strlen($api->tested)), $api->tested, '>') )
echo '
' . __('Warning: This plugin has not been tested with your current version of WordPress.') . '
';
else if ( !empty($api->requires) && version_compare( substr($GLOBALS['wp_version'], 0, strlen($api->requires)), $api->requires, '<') )
echo '
' . __('Warning: This plugin has not been marked as compatible with your version of WordPress.') . '
';
foreach ( (array)$api->sections as $section_name => $content ) {
if ( isset( $plugins_section_titles[ $section_name ] ) )
$title = $plugins_section_titles[ $section_name ];
else
$title = ucwords( str_replace( '_', ' ', $section_name ) );
$content = links_add_base_url($content, 'http://wordpress.org/plugins/' . $api->slug . '/');
$content = links_add_target($content, '_blank');
$san_section = esc_attr( $section_name );
$display = ( $section_name == $section ) ? 'block' : 'none';
echo "\t
\n";
echo "\t\t";
echo $content;
echo "\t
\n";
}
echo "
\n";
iframe_footer();
exit;
}
add_action('install_plugins_pre_plugin-information', 'install_plugin_information');