Parse('http://tarskitheme.com/version.atom'); if($option == 'link') { return wp_specialchars($result['feed']['entries'][0]['id']); } else { return wp_specialchars($result['feed']['entries'][0]['title']['value']); } } function version_status() { if(!latest_version()) { return "noconn"; } elseif(theme_version() == latest_version()) { return "current"; } elseif(theme_version() != latest_version()) { return "unequal"; } } function update_notifier_dashboard() { echo '

'. __('Tarski Updates','tarski'). '

'."\n"; if(get_tarski_option('update_notification') == 'true') { if(version_status() == "noconn") { echo '

'; echo __('No connection to update server. Your installed version is ','tarski'). ''. theme_version(). ''. __('.','tarski'); echo '

'."\n"; } elseif(version_status() == "current") { echo '

'; echo __('Your version of Tarski is up to date.','tarski'); echo '

'."\n"; } elseif(version_status() == "unequal") { echo '
'."\n"; echo '

'; echo __('A new version of the Tarski theme, version ','tarski'). ''. latest_version(). ''. __(', ','tarski'). ''. __('is now available','tarski'). ''. __('. Your installed version is ','tarski'). ''. theme_version(). ''. __('.','tarski'); echo '

'."\n"; echo '
'."\n"; } } else { echo '

'; echo __('Update notification for Tarski is disabled. You can enable it on the ','tarski'). ''. __('Tarski Options page','tarski'). ''. __('.','tarski'); echo '

'."\n"; } } function update_notifier_optionspage() { if((version_status() == 'unequal') && (get_tarski_option('update_notification') == 'true')) { echo '
'."\n"; echo '

'; echo __('A new version of the Tarski theme, version ','tarski'). ''. latest_version(). ''. __(', ','tarski'). ''. __('is now available','tarski'). ''. __('. Your installed version is ','tarski'). ''. theme_version(). ''. __('.','tarski'); echo '

'."\n"; echo '
'."\n"; } } // ~fin~ ?>