Plugin Directory

Changeset 397260


Ignore:
Timestamp:
06/14/2011 11:33:32 PM (15 years ago)
Author:
rxn
Message:

added arizona

Location:
sunrise-sunset/trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • sunrise-sunset/trunk/readme.txt

    r348773 r397260  
    22Contributors: rxn
    33Tags: sunrise, sunset, widget
    4 Requires at least: 3.1
     4Requires at least: 3.0
    55Tested up to: 3.0.5
    6 Stable tag: 1.0.2
     6Stable tag: 1.0.3
    77License: GPLv2
    88
     
    4242
    4343== Changelog ==
     44= 1.0.3 =
     45* Added Arizona
     46
    4447= 1.0.1 =
    4548* Added screenshots.
  • sunrise-sunset/trunk/sunrisesunset.php

    r348579 r397260  
    8181        }
    8282
     83        if ($instance['timezone'] == 'US/Arizona') {
     84            $select_box .= sprintf('<option value="%s" selected="yes">%s</option>', 'US/Arizona', 'Arizona');
     85        } else {
     86            $select_box .= sprintf('<option value="%s">%s</option>', 'US/Arizona', 'Arizona');
     87        }
     88        // add arizona here
     89
    8390        $select_box .= '</select>';
    8491        echo $select_box;
     
    119126    function ss_get_sunset($instance) {
    120127
    121         $latitude = array('America/Chicago' => 41.51, 'America/Los_Angeles' => 34.30, 'America/New_York' => 40.47);
    122         $longitude = array('America/Chicago' => -87.39, 'America/Los_Angeles' => -118.15, 'America/New_York' => -73.58);
     128//        add arizona here
     129        $latitude = array('America/Chicago' => 41.51, 'America/Los_Angeles' => 34.30, 'America/New_York' => 40.47, 'US/Arizona' => 33.29);
     130        $longitude = array('America/Chicago' => -87.39, 'America/Los_Angeles' => -118.15, 'America/New_York' => -73.58, 'US/Arizona' => -122.04);
     131
     132
    123133
    124134        $target_time_zone = $instance['timezone'];
Note: See TracChangeset for help on using the changeset viewer.