- Timestamp:
- Dec 24, 2009, 9:01:11 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/xpress_upgrade.php
r443 r499 15 15 if(get_xpress_latest_version()){ 16 16 $latest = get_option('xpressme_latest_version'); 17 //print_r($latest);18 17 if ($latest) { 19 18 $site_url=$latest['url']; … … 32 31 echo '<h3 class="response">'. __('There is a new version of XPressME Integration Kit available for upgrade', 'xpressme') . '</h3>'; 33 32 echo '<p>'; 34 // printf(__('You can upgrade to version %s automatically or download the package and install it manually:'),$latest_version);35 33 printf(__('You can upgrade to version %s download the package and install it manually:', 'xpressme'),$latest_version); 36 34 echo '</p>'; … … 51 49 } 52 50 51 // develop 53 52 if ($latest['develop_response'] == 'development_exists' 54 53 && !empty($latest['develop_package']) … … 61 60 printf(__('Download %s', 'xpressme') , $latest['develop_latest_version']); 62 61 echo '</a>'; 62 // develop diff 63 if ($latest['diff_develop_response'] == 'diff_develop_exists' 64 && !empty($latest['diff_develop_package']) 65 ) 66 { 67 echo '<p>'; 68 printf(__('You can download the differential file from version %s to %s and upgrade it manually:', 'xpressme'),$xpress_version,$latest['diff_develop_latest_version']); 69 echo '</p>'; 70 echo '<a class="button" href="' . $latest['diff_develop_package'] . '">'; 71 printf(__('Download differential file for %s', 'xpressme') , $latest['diff_develop_latest_version']); 72 echo '</a>'; 73 } 63 74 } 64 75 … … 141 152 if ( isset( $returns[15] ) ) $develop_latest_version = $returns[15]; else $develop_latest_version = ''; 142 153 if ( isset( $returns[16] ) ) $develop_lang = $returns[16]; else $develop_lang = ''; 154 155 // developer diff 156 if ( isset( $returns[18] ) ) $diff_develop_response = $returns[18]; else $diff_develop_response = ''; 157 if ( isset( $returns[19] ) ) $diff_develop_url = clean_url( $returns[19] ); else $diff_develop_url = ''; 158 if ( isset( $returns[20] ) ) $diff_develop_package = clean_url( $returns[20] ); else $diff_develop_package = ''; 159 if ( isset( $returns[21] ) ) $diff_develop_latest_version = $returns[21]; else $diff_develop_latest_version = ''; 160 if ( isset( $returns[22] ) ) $diff_develop_lang = $returns[22]; else $diff_develop_lang = ''; 143 161 144 162 $write_options = array ( … … 158 176 'develop_latest_version' => $develop_latest_version , 159 177 'develop_lang' => $develop_lang , 178 'diff_develop_response' => $diff_develop_response , 179 'diff_develop_url' => $diff_develop_url , 180 'diff_develop_package' => $diff_develop_package , 181 'diff_develop_latest_version' => $diff_develop_latest_version , 182 'diff_develop_lang' => $diff_develop_lang , 160 183 'check_time' => time() 161 184 );
Note: See TracChangeset
for help on using the changeset viewer.