Ticket #10660: 10660.diff
File 10660.diff, 4.1 KB (added by , 14 years ago) |
---|
-
wp-admin/css/wp-admin.dev.css
3078 3078 font-family: Verdana, Arial, "Bitstream Vera Sans", sans-serif; 3079 3079 } 3080 3080 3081 #timezone_suggest_working { 3082 padding-bottom: 4px; 3083 vertical-align: bottom; 3084 display: none; 3085 } 3086 3087 #timezone_suggest_result { 3088 display: none; 3089 color: #f00; 3090 } 3091 3092 #timezone_suggest_use { 3093 display: none; 3094 margin-left: 5px; 3095 } 3096 3081 3097 ul#dismissed-updates { 3082 3098 display: none; 3083 3099 } -
wp-admin/options-general.php
50 50 action: 'date_format_custom' == format.attr('name') ? 'date_format' : 'time_format', 51 51 date : format.val() 52 52 }, function(d) { format.siblings('img').css('visibility','hidden'); format.siblings('.example').text(d); } ); 53 }) 54 $("#timezone_suggest").click(function(){ 55 $("#timezone_suggest_working").animate({opacity:'show'},500); 56 $.ajax({ 57 type: 'GET', 58 dataType: 'jsonp', 59 url: 'http://api.wordpress.org/core/ip-to-zoneinfo/1.0/', 60 success: function(data){ 61 if (data.errorcode) { 62 $("#timezone_suggest_result span").text('<?php esc_attr_e('Unable to suggest timezone'); ?>'); 63 } else { 64 var text = '<?php esc_attr_e('Based on your IP address, we suggest the %s timezone.'); ?>'; 65 text = text.replace('%s', data.timezoneId); 66 $("#timezone_suggest_result span").text(text); 67 $("#timezone_suggest_use").show().click(function () { 68 $("#timezone_string").val(data.timezoneId); 69 $("#timezone_suggest_result").animate({opacity:'hide'}, 2000, function() { 70 $("#timezone_suggest_use").hide(); 71 }); 72 }); 73 } 74 $("#timezone_suggest_working").animate( 75 {opacity:'hide'}, 76 500, 77 'linear', 78 function(){ 79 $("#timezone_suggest_result").animate({opacity:'show'},1000); 80 } 81 ); 82 } 83 }); 53 84 }); 54 85 }); 55 86 //]]> … … 64 95 '<p>' . __('The WordPress URL and the Site URL can be the same (example.com) or different; for example, having the WordPress core files (example.com/wordpress) in a subdirectory instead of the root directory.') . '</p>' . 65 96 '<p>' . __('If you want site visitors to be able to register themselves, as opposed to being registered by the site administrator, check the membership box. A default user role can be set for all new users, whether self-registered or registered by the site administrator.') . '</p>' . 66 97 '<p>' . __('UTC means Coordinated Universal Time.') . '</p>' . 98 '<p>' . __('The timezone suggest utility is powered by the GeoNames database. <code>api.wordpress.org</code> is used to suggest this timezone, based on your IP. No information is stored as a result of this utility.') . '</p>' . 67 99 '<p>' . __('Remember to click the Save Changes button at the bottom of the screen for new settings to take effect.') . '</p>' . 68 100 '<p><strong>' . __('For more information:') . '</strong></p>' . 69 101 '<p>' . __('<a href="http://codex.wordpress.org/Settings_General_SubPanel" target="_blank">Documentation on General Settings</a>') . '</p>' . … … 205 237 <span id="local-time"><?php printf(__('Local time is <code>%1$s</code>'), date_i18n($timezone_format)); ?></span> 206 238 <?php endif; ?> 207 239 <br /> 208 <span class="description"><?php _e('Choose a city in the same timezone as you.'); ?></span> 240 <input id="timezone_suggest" type="button" class="button" value="<?php esc_attr_e('Suggest a time zone'); ?>" /> 241 <img id="timezone_suggest_working" src="images/wpspin_light.gif" width="16" height="16" /><br /> 242 <p id="timezone_suggest_result"> 243 <span></span><input id="timezone_suggest_use" type="button" class="button" value="<?php esc_attr_e('Use this timezone') ?>" /> 244 </p> 245 <span class="description"><?php _e('WordPress can suggest a time zone for you based on your computers IP address, or you may manually select a city in the same time zone as you.'); ?></span> 209 246 <?php if ($check_zone_info && $tzstring) : ?> 210 247 <br /> 211 248 <span>