Plugin Directory

Changeset 1319825


Ignore:
Timestamp:
01/02/2016 08:56:07 AM (10 years ago)
Author:
neoxx
Message:

3.33

Location:
timezonecalculator/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • timezonecalculator/trunk/readme.txt

    r1301019 r1319825  
    218218== Changelog ==
    219219
     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
    220226= 3.32 =
    221227
     
    243249
    244250* made settings-page retina/hdpi-display ready
    245 * adopted settings-page to be fully touch-display enabled
     251* adapted settings-page to be fully touch-display enabled
    246252* renamed settings-page sections
    247253* moved vendor-code to separate directory
     
    277283* removed PHP closing tag before EOF
    278284* removed reference sign on function calls
    279 * adopted plugin-links to the new structure of wordpress.org
     285* adapted plugin-links to the new structure of wordpress.org
    280286* cleaned-up code
    281287
     
    286292= 2.44 =
    287293* extended length of format_timezone-string to 150 chars
    288 * adopted 'Defaults'-string to use WordPress internal i18n
     294* adapted 'Defaults'-string to use WordPress internal i18n
    289295* updated support section
    290296* updated project-information
     
    294300* changed handling of contextual help for WordPress 3.3
    295301* implemented WordPress 3.3 Admin Bar add_node() function
    296 * adopted handling of default settings
     302* adapted handling of default settings
    297303* external files are now registered in init-hook
    298304
     
    304310
    305311* 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 * adopted Admin Header Clock to WordPress 3.2 Admin Menu
     312* adapted Admin Header Clock to WordPress 3.2 Admin Menu
    307313
    308314= 2.40 =
     
    314320= 2.31 =
    315321
    316 * adopted Admin Bar implementation to re-worked WordPress code
     322* adapted Admin Bar implementation to re-worked WordPress code
    317323
    318324= 2.30 =
  • timezonecalculator/trunk/timezonecalculator.php

    r1301019 r1319825  
    66Description: Calculates, displays and automatically updates times and dates in different timezones with respect to daylight saving.
    77Author: Dr. Bernhard Riedl
    8 Version: 3.32
     8Version: 3.33
    99Author URI: http://www.bernhard-riedl.com/
    1010*/
     
    1313Copyright 2005-2015 Dr. Bernhard Riedl
    1414
    15 Inspirations & Proof-Reading 2007-2015
     15Inspirations & Proof-Reading 2007-2016
    1616by Veronika Grascher
    1717
     
    9696        'display' => true,
    9797
    98         'display_sponsored_link' => true
     98        'display_sponsored_link' => false
    9999    );
    100100
     
    137137        'section' => 'selection_gui',
    138138
    139         'display_sponsored_link' => true
     139        'display_sponsored_link' => false
    140140    );
    141141
     
    15701570        elseif (strlen($query_time)>2) {
    15711571
    1572             $adopted_for_strtotime=$current_utc;
     1572            $adapted_for_strtotime=$current_utc;
    15731573
    15741574            /*
    1575             adopt timestamp for strtotime
     1575            adapt timestamp for strtotime
    15761576            so +2 hours and tomorrow 3pm
    15771577            will be interpreted correctly
     
    15801580            if (!empty($query_timezone)) {
    15811581                $offset=$this->calculate_utc_offset($current_utc, $query_timezone);
    1582                 $adopted_for_strtotime+=$offset;
     1582                $adapted_for_strtotime+=$offset;
    15831583            }
    15841584
     
    16201620            /*
    16211621            convert query_time, based on
    1622             adopted datetime
     1622            adapted datetime
    16231623            */
    16241624
    1625             $parsed_date=strtotime($query_time, $adopted_for_strtotime);
     1625            $parsed_date=strtotime($query_time, $adapted_for_strtotime);
    16261626
    16271627            /*
     
    19911991
    19921992    function head_meta() {
    1993         echo("<meta name=\"".$this->get_nicename()."\" content=\"3.32\"/>\n");
     1993        echo("<meta name=\"".$this->get_nicename()."\" content=\"3.33\"/>\n");
    19941994    }
    19951995
     
    20522052
    20532053    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));
    20632055    }
    20642056
     
    30683060    */
    30693061
    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) {
    30713063        var submit_elements=jQuery('#<?php echo($this->get_prefix().'form_settings'); ?> :submit');
    30723064
     
    35313523            <li>You can insert new timezones by filling  out the TimeZone form and clicking <strong>Insert</strong>.</li>
    35323524
    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 adopted.</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>
    35343526
    35353527            <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>
     
    36673659        );
    36683660
    3669         $onkeyup_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);"';
    36703662
    36713663        ?>
     
    36913683            <?php foreach($edit_abbr_fields as $key => $edit_abbr_field) {
    36923684                echo('<tr><td><label for="'.$this->get_prefix().$key.'">'.$edit_abbr_field.'</label></td>');
    3693             echo('<td><input '.$onkeyup_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>');
    36943686            } ?>
    36953687
     
    37013693            <?php foreach($edit_name_fields as $key => $edit_name_field) {
    37023694                echo('<tr><td><label for="'.$this->get_prefix().$key.'">'.$edit_name_field.'</label></td>');
    3703             echo('<td><input '.$onkeyup_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>');
    37043696            } ?>
    37053697
     
    37903782    */
    37913783
    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) {
    37933785        var submit_elements=jQuery('#<?php echo($this->get_prefix().'edit_create'); ?>');
    37943786
     
    38103802
    38113803    function callback_settings_manual_selection() { ?>
    3812         In this section you can adopt 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 />
    38133805
    38143806        All parameters need to be separated by a semicolon. Please note, that only the <em>timezone_id</em> is mandatory.
     
    39293921
    39303922    function setting_ajax_refresh_time($params=array()) {
    3931         $this->setting_textfield('ajax_refresh_time', 'options', 4, 'onkeyup="'.$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);"');
    39323924    }
    39333925
Note: See TracChangeset for help on using the changeset viewer.