/**
  * Loads new-version info and returns it as a string.
  * 
  * @since 2.1
  * 
  * @return string
  */
 function get_plugin_update_info($nv)
 {
     $change_types = array('New Module' => 'module', 'Feature' => 'feature', 'SEO Feature' => 'feature', 'Bugfix' => 'bugfix', 'Improvement' => 'improvement', 'Security Fix' => 'security', 'New Translation' => 'new-lang', 'Updated Translation' => 'updated-lang');
     $change_labels = array('module' => array(__('new module', 'seo-ultimate'), __('new modules', 'seo-ultimate')), 'feature' => array(__('new feature', 'seo-ultimate'), __('new features', 'seo-ultimate')), 'bugfix' => array(__('bugfix', 'seo-ultimate'), __('bugfixes', 'seo-ultimate')), 'improvement' => array(__('improvement', 'seo-ultimate'), __('improvements', 'seo-ultimate')), 'security' => array(__('security fix', 'seo-ultimate'), __('security fixes', 'seo-ultimate')), 'new-lang' => array(__('new language pack', 'seo-ultimate'), __('new language packs', 'seo-ultimate')), 'updated-lang' => array(__('language pack update', 'seo-ultimate'), __('language pack updates', 'seo-ultimate')));
     $changes = array_fill_keys($change_types, 0);
     $versions = $this->download_changelog();
     if (!is_array($versions) || !count($versions)) {
         return '';
     }
     foreach ($versions as $version_title => $version_changelog) {
         if (preg_match('|Version ([0-9.]{3,9}) |', $version_title, $matches)) {
             $version = $matches[1];
             //If we're running the same version or a newer version, continue
             if (version_compare(SU_VERSION, $version, '>=')) {
                 continue;
             }
             $version_changes = explode('</li>', $version_changelog);
             foreach ($version_changes as $change) {
                 if (preg_match('|<li>([a-zA-Z ]+): |', $change, $matches2)) {
                     $change_type_label = $matches2[1];
                     if (isset($change_types[$change_type_label])) {
                         $changes[$change_types[$change_type_label]]++;
                     }
                 }
             }
         }
     }
     if (!count($changes)) {
         return '';
     }
     $nlchanges = array();
     foreach ($changes as $change_type => $changes_count) {
         if (is_string($change_type) && $changes_count > 0) {
             $nlchanges[] = sprintf(__('%d %s', 'seo-ultimate'), number_format_i18n($changes_count), _n($change_labels[$change_type][0], $change_labels[$change_type][1], $changes_count, 'seo-ultimate'));
         }
     }
     return sprintf(__('Upgrade now to get %s. %s.', 'seo-ultimate'), sustr::nl_implode($nlchanges), '<a href="plugin-install.php?tab=plugin-information&amp;plugin=seo-ultimate&amp;section=changelog&amp;TB_iframe=true&amp;width=640&amp;height=530" class="thickbox">' . __('View changelog', 'seo-ultimate') . '</a>');
 }