Changeset 1319825
- Timestamp:
- 01/02/2016 08:56:07 AM (10 years ago)
- Location:
- timezonecalculator/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (7 diffs)
-
timezonecalculator.php (modified) (17 diffs)
Legend:
- Unmodified
- Added
- Removed
-
timezonecalculator/trunk/readme.txt
r1301019 r1319825 218 218 == Changelog == 219 219 220 = 3.33 = 221 222 * adapted trigger of error-messages on settings-page to work with copy & paste 223 * fixed a warning with clock in Admin Bar - thanks for the [notification](https://wordpress.org/support/topic/wordpress-44-giving-errors) to bnizette 224 * fixed some typos 225 220 226 = 3.32 = 221 227 … … 243 249 244 250 * made settings-page retina/hdpi-display ready 245 * ad opted settings-page to be fully touch-display enabled251 * adapted settings-page to be fully touch-display enabled 246 252 * renamed settings-page sections 247 253 * moved vendor-code to separate directory … … 277 283 * removed PHP closing tag before EOF 278 284 * removed reference sign on function calls 279 * ad opted plugin-links to the new structure of wordpress.org285 * adapted plugin-links to the new structure of wordpress.org 280 286 * cleaned-up code 281 287 … … 286 292 = 2.44 = 287 293 * extended length of format_timezone-string to 150 chars 288 * ad opted 'Defaults'-string to use WordPress internal i18n294 * adapted 'Defaults'-string to use WordPress internal i18n 289 295 * updated support section 290 296 * updated project-information … … 294 300 * changed handling of contextual help for WordPress 3.3 295 301 * implemented WordPress 3.3 Admin Bar add_node() function 296 * ad opted handling of default settings302 * adapted handling of default settings 297 303 * external files are now registered in init-hook 298 304 … … 304 310 305 311 * fixed a bug with Ajax-update functionality in a SSL-environment. Thanks to huyz who has mentioned this in the forum https://wordpress.org/support/topic/plugin-generalstats-makes-https-call-to-admin-ajax-even-if-site-is-http 306 * ad opted Admin Header Clock to WordPress 3.2 Admin Menu312 * adapted Admin Header Clock to WordPress 3.2 Admin Menu 307 313 308 314 = 2.40 = … … 314 320 = 2.31 = 315 321 316 * ad opted Admin Bar implementation to re-worked WordPress code322 * adapted Admin Bar implementation to re-worked WordPress code 317 323 318 324 = 2.30 = -
timezonecalculator/trunk/timezonecalculator.php
r1301019 r1319825 6 6 Description: Calculates, displays and automatically updates times and dates in different timezones with respect to daylight saving. 7 7 Author: Dr. Bernhard Riedl 8 Version: 3.3 28 Version: 3.33 9 9 Author URI: http://www.bernhard-riedl.com/ 10 10 */ … … 13 13 Copyright 2005-2015 Dr. Bernhard Riedl 14 14 15 Inspirations & Proof-Reading 2007-201 515 Inspirations & Proof-Reading 2007-2016 16 16 by Veronika Grascher 17 17 … … 96 96 'display' => true, 97 97 98 'display_sponsored_link' => true98 'display_sponsored_link' => false 99 99 ); 100 100 … … 137 137 'section' => 'selection_gui', 138 138 139 'display_sponsored_link' => true139 'display_sponsored_link' => false 140 140 ); 141 141 … … 1570 1570 elseif (strlen($query_time)>2) { 1571 1571 1572 $ad opted_for_strtotime=$current_utc;1572 $adapted_for_strtotime=$current_utc; 1573 1573 1574 1574 /* 1575 ad opt timestamp for strtotime1575 adapt timestamp for strtotime 1576 1576 so +2 hours and tomorrow 3pm 1577 1577 will be interpreted correctly … … 1580 1580 if (!empty($query_timezone)) { 1581 1581 $offset=$this->calculate_utc_offset($current_utc, $query_timezone); 1582 $ad opted_for_strtotime+=$offset;1582 $adapted_for_strtotime+=$offset; 1583 1583 } 1584 1584 … … 1620 1620 /* 1621 1621 convert query_time, based on 1622 ad opted datetime1622 adapted datetime 1623 1623 */ 1624 1624 1625 $parsed_date=strtotime($query_time, $ad opted_for_strtotime);1625 $parsed_date=strtotime($query_time, $adapted_for_strtotime); 1626 1626 1627 1627 /* … … 1991 1991 1992 1992 function head_meta() { 1993 echo("<meta name=\"".$this->get_nicename()."\" content=\"3.3 2\"/>\n");1993 echo("<meta name=\"".$this->get_nicename()."\" content=\"3.33\"/>\n"); 1994 1994 } 1995 1995 … … 2052 2052 2053 2053 function admin_bar_clock() { 2054 2055 /* 2056 check if Admin Bar 2057 is available 2058 and has been enabled 2059 */ 2060 2061 if (is_admin_bar_showing()) 2062 add_action('admin_bar_menu', array($this, 'admin_bar_wordpress_clock'), apply_filters($this->get_prefix().'admin_bar_clock_position', 1000)); 2054 add_action('admin_bar_menu', array($this, 'admin_bar_wordpress_clock'), apply_filters($this->get_prefix().'admin_bar_clock_position', 1000)); 2063 2055 } 2064 2056 … … 3068 3060 */ 3069 3061 3070 jQuery('#<?php echo($this->get_prefix().'form_settings'); ?> input:text'). keyup(function (e) {3062 jQuery('#<?php echo($this->get_prefix().'form_settings'); ?> input:text').on('input', function (e) { 3071 3063 var submit_elements=jQuery('#<?php echo($this->get_prefix().'form_settings'); ?> :submit'); 3072 3064 … … 3531 3523 <li>You can insert new timezones by filling out the TimeZone form and clicking <strong>Insert</strong>.</li> 3532 3524 3533 <li>To customize existing timezones click on the entry you want to change in the TimeZone Entries form and edit the parameters in the TimeZone form. If you want to adjust the details of a timezone entry, you have to click on the arrow<div class="dashicons dashicons-arrow-down"></div>in the TimeZone form. This will open the advanced menu where you can either select to use the abbreviations and names of the timezone database, or manually insert your own descriptions. After clicking <strong>Edit</strong> the selected timezone's parameters will be ad opted.</li>3525 <li>To customize existing timezones click on the entry you want to change in the TimeZone Entries form and edit the parameters in the TimeZone form. If you want to adjust the details of a timezone entry, you have to click on the arrow<div class="dashicons dashicons-arrow-down"></div>in the TimeZone form. This will open the advanced menu where you can either select to use the abbreviations and names of the timezone database, or manually insert your own descriptions. After clicking <strong>Edit</strong> the selected timezone's parameters will be adapted.</li> 3534 3526 3535 3527 <li>To re-order the timezones within a list either use drag and drop or click on the arrows<div class="dashicons dashicons-arrow-up"></div><div class="dashicons dashicons-arrow-down"></div>on the left side of the particular timezone.</li> … … 3667 3659 ); 3668 3660 3669 $on keyup_check_semicolons='onkeyup="'.$this->get_prefix().'inline_error(jQuery(this), \'Semicolon is not supported!\', jQuery(this).val().indexOf(\';\')>-1);"';3661 $oninput_check_semicolons='oninput="'.$this->get_prefix().'inline_error(jQuery(this), \'Semicolon is not supported!\', jQuery(this).val().indexOf(\';\')>-1);"'; 3670 3662 3671 3663 ?> … … 3691 3683 <?php foreach($edit_abbr_fields as $key => $edit_abbr_field) { 3692 3684 echo('<tr><td><label for="'.$this->get_prefix().$key.'">'.$edit_abbr_field.'</label></td>'); 3693 echo('<td><input '.$on keyup_check_semicolons.' disabled="disabled" id="'.$this->get_prefix().$key.'" type="text" size="15" maxlength="15" /></td></tr>');3685 echo('<td><input '.$oninput_check_semicolons.' disabled="disabled" id="'.$this->get_prefix().$key.'" type="text" size="15" maxlength="15" /></td></tr>'); 3694 3686 } ?> 3695 3687 … … 3701 3693 <?php foreach($edit_name_fields as $key => $edit_name_field) { 3702 3694 echo('<tr><td><label for="'.$this->get_prefix().$key.'">'.$edit_name_field.'</label></td>'); 3703 echo('<td><input '.$on keyup_check_semicolons.' disabled="disabled" id="'.$this->get_prefix().$key.'" type="text" style="width:99%" maxlength="50" /></td></tr>');3695 echo('<td><input '.$oninput_check_semicolons.' disabled="disabled" id="'.$this->get_prefix().$key.'" type="text" style="width:99%" maxlength="50" /></td></tr>'); 3704 3696 } ?> 3705 3697 … … 3790 3782 */ 3791 3783 3792 jQuery('#<?php echo($this->get_prefix().'edit'); ?> input:text'). keyup(function (e) {3784 jQuery('#<?php echo($this->get_prefix().'edit'); ?> input:text').on('input', function (e) { 3793 3785 var submit_elements=jQuery('#<?php echo($this->get_prefix().'edit_create'); ?>'); 3794 3786 … … 3810 3802 3811 3803 function callback_settings_manual_selection() { ?> 3812 In this section you can ad opt your timezones-selection 'by hand'. Changes you make here are only reflected in the <?php echo($this->get_section_link($this->options_page_sections, 'selection_gui', 'Selection GUI Section')); ?> after clicking on <strong>Save Changes</strong>.<br /><br />3804 In this section you can adapt your timezones-selection 'by hand'. Changes you make here are only reflected in the <?php echo($this->get_section_link($this->options_page_sections, 'selection_gui', 'Selection GUI Section')); ?> after clicking on <strong>Save Changes</strong>.<br /><br /> 3813 3805 3814 3806 All parameters need to be separated by a semicolon. Please note, that only the <em>timezone_id</em> is mandatory. … … 3929 3921 3930 3922 function setting_ajax_refresh_time($params=array()) { 3931 $this->setting_textfield('ajax_refresh_time', 'options', 4, 'on keyup="'.$this->get_prefix().'check_integer(jQuery(this), 1, 3600);"');3923 $this->setting_textfield('ajax_refresh_time', 'options', 4, 'oninput="'.$this->get_prefix().'check_integer(jQuery(this), 1, 3600);"'); 3932 3924 } 3933 3925
Note: See TracChangeset
for help on using the changeset viewer.