function list_ultimate_updates() { $this->remote_version = $this->ult_getRemote_version(); $upgradeLink = Ultimate_Admin_Area::getUltimateUpgradeLink(); echo '<h3 id="brainstormforce-plugins">' . __('Brainstorm Force - Plugins', 'smile') . '</h3>'; if (!version_compare($this->current_version, $this->remote_version, '<')) { echo '<p>' . __('Your plugins from Brainstorm Force are all up to date.', 'smile') . '</p>'; } else { echo '<p>' . __('The following plugins from Brainstorm Force have new versions available.', 'smile') . '</p>'; ?> <table class="widefat" cellspacing="0" id="update-plugins-table"> <thead> <tr> <th scope="col" class="manage-column"><label><?php _e('Name', 'smile'); ?> </label></th> <th scope="col" class="manage-column"><label><?php _e('Installed Version', 'smile'); ?> </label></th> <th scope="col" class="manage-column"><label><?php _e('Latest Version', 'smile'); ?> </label></th> <th scope="col" class="manage-column"><label><?php _e('Actions', 'smile'); ?> </label></th> </tr> </thead> <tfoot> <tr> <th scope="col" class="manage-column"><label><?php _e('Name', 'smile'); ?> </label></th> <th scope="col" class="manage-column"><label><?php _e('Installed Version', 'smile'); ?> </label></th> <th scope="col" class="manage-column"><label><?php _e('Latest Version', 'smile'); ?> </label></th> <th scope="col" class="manage-column"><label><?php _e('Actions', 'smile'); ?> </label></th> </tr> </tfoot> <tbody class="plugins"> <tr class='active'> <td class='plugin-title'><strong>Ultimate Addons for Visual Composer</strong><?php _e('You have version ' . $this->current_version . ' installed. Update to ' . $this->remote_version); ?> </td> <td style='vertical-align:middle'><strong><?php echo $this->current_version; ?> </strong></td> <td style='vertical-align:middle'><strong><a href='http://ultimate2.sharkslab.com/wp-admin/plugin-install.php?tab=plugin-information&plugin=Ultimate_VC_Addons&section=changelog&TB_iframe=true&width=830&height=319' class='thickbox' title='View version <?php echo $this->remote_version; ?> details'><?php echo $this->remote_version; ?> </a></strong></td> <td style='vertical-align:middle'><?php echo $upgradeLink; ?> </td> </tr> </tbody> </table> <?php } }
function list_ultimate_updates() { //$this->remote_version = $this->ult_getRemote_version(); $remote_version = get_option("ultimate_notify_update"); $Ultimate_Admin_Area = new Ultimate_Admin_Area(); $upgradeLink = $Ultimate_Admin_Area->getUltimateUpgradeLink(); $transient = get_transient('ultimate_update_checked'); echo '<h3 id="brainstormforce-plugins">Brainstorm Force - ' . __('Plugins', 'ultimate_vc') . '</h3>'; $display_updates = false; if (!version_compare($this->current_version, $remote_version, '<')) { //if(!$remote_version){ echo '<p>' . __('Your plugins from Brainstorm Force are all up to date.', 'ultimate_vc') . '</p>'; } else { echo '<p>' . __('The following plugins from Brainstorm Force have new versions available.', 'ultimate_vc') . '</p>'; ?> <table class="widefat" cellspacing="0" id="update-plugins-table"> <thead> <tr> <th scope="col" class="manage-column"><label><?php _e('Name', 'ultimate_vc'); ?> </label></th> <th scope="col" class="manage-column"><label><?php _e('Installed Version', 'ultimate_vc'); ?> </label></th> <th scope="col" class="manage-column"><label><?php _e('Latest Version', 'ultimate_vc'); ?> </label></th> <th scope="col" class="manage-column"><label><?php _e('Actions', 'ultimate_vc'); ?> </label></th> </tr> </thead> <tfoot> <tr> <th scope="col" class="manage-column"><label><?php _e('Name', 'ultimate_vc'); ?> </label></th> <th scope="col" class="manage-column"><label><?php _e('Installed Version', 'ultimate_vc'); ?> </label></th> <th scope="col" class="manage-column"><label><?php _e('Latest Version', 'ultimate_vc'); ?> </label></th> <th scope="col" class="manage-column"><label><?php _e('Actions', 'ultimate_vc'); ?> </label></th> </tr> </tfoot> <tbody class="plugins"> <tr class='active'> <td class='plugin-title'><strong>Ultimate Addons for Visual Composer</strong><?php _e('You have version ' . $this->current_version . ' installed. Update to ' . $remote_version, 'ultimate_vc'); ?> </td> <td style='vertical-align:middle'><strong><?php echo __($this->current_version, 'ultimate_vc'); ?> </strong></td> <td style='vertical-align:middle'><strong><a href='<?php echo admin_url(); ?> plugin-install.php?tab=plugin-information&plugin=Ultimate_VC_Addons&section=changelog&TB_iframe=true&width=830&height=319' class='thickbox' title='<?php echo __('View version ' . $remote_version . ' details', 'ultimate_vc'); ?> '><?php echo __($remote_version, 'ultimate_vc'); ?> </a></strong></td> <td style='vertical-align:middle'><?php echo $upgradeLink; ?> </td> </tr> </tbody> </table> <?php } }