Changeset 216526
- Timestamp:
- 03/12/2010 04:42:23 AM (16 years ago)
- Location:
- gcal-sidebar/trunk
- Files:
-
- 2 edited
-
gcal-sidebar.php (modified) (6 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gcal-sidebar/trunk/gcal-sidebar.php
r210019 r216526 4 4 Plugin URI: http://www.oriontechnologysolutions.com/gcal-sidebar/ 5 5 Description: Pulls a Google Calendar feed and displays it in your sidebar. 6 Version: 0.56 Version: 1.0 7 7 Author: Orion Technology Solutions 8 8 Author URI: http://www.oriontechnologysolutions.com … … 91 91 <div> 92 92 <h4>Optional</h4> 93 <p><label for="<?php echo $this->get_field_id('tz_offset'); ?>"><?php _e('Timezone Offset:'); ?> <input class="widefat" id="<?php echo $this->get_field_id('tz_offset'); ?>" name="<?php echo $this->get_field_name('tz_offset'); ?>" type="text" value="<?php echo $tz_offset; ?>" /></label></p>94 95 93 <p><label for="<?php echo $this->get_field_id('map_link'); ?>"><?php _e('Display link to map:'); ?> 96 94 <select name="<?php echo $this->get_field_name('map_link'); ?>" id="<?php echo $this->get_field_id('map_link'); ?>" > … … 117 115 <input class="widefat" id="<?php echo $this->get_field_id('priv_id'); ?>" name="<?php echo $this->get_field_name('priv_id'); ?>" type="text" value="<?php echo $priv_id; ?>" /> 118 116 </p> 117 118 <p><label for="<?php echo $this->get_field_id('tz_offset'); ?>"><?php _e('Timezone Offset:'); ?> <input class="widefat" id="<?php echo $this->get_field_id('tz_offset'); ?>" name="<?php echo $this->get_field_name('tz_offset'); ?>" type="text" value="<?php echo $tz_offset; ?>" /></label></p> 119 119 120 </div> 120 121 <?php … … 180 181 $priv_id = trim(esc_attr($instance['priv_id'])); 181 182 182 if ($tz_offset == '')183 $tz_offset = 0;184 else if((-24 < $tz_offset) && ($tz_offset < 24))185 $tz_offset = $tz_offset * 60 * 60;186 187 183 if($rs_offset == '') 188 184 $rs_offset = 0; … … 200 196 $static_url = $instance['static_url_option']; 201 197 $xml = new SimpleXMLElement($xmlstr); 198 199 $gcal = $xml->children('http://schemas.google.com/gCal/2005'); 200 $ctz = $gcal->timezone->attributes()->value; 201 202 if ($tz_offset == '') { 203 $tz_offset = 0; 204 date_default_timezone_set ( $ctz ); 205 } 206 else if((-24 < $tz_offset) && ($tz_offset < 24)) { 207 $tz_offset = $tz_offset * 60 * 60; 208 } 202 209 203 210 echo '<ul id="events">'; … … 216 223 } 217 224 else { 218 $event_link = $entry->link->attributes()->href ;225 $event_link = $entry->link->attributes()->href . "&ctz=" . $ctz; 219 226 } 220 227 -
gcal-sidebar/trunk/readme.txt
r210019 r216526 5 5 Requires at least: 2.8 6 6 Tested up to: 2.9.2 7 Stable tag: 0.57 Stable tag: 1.0 8 8 9 9 Gcal Sidebar pulls a Google calendar feed and displays it in the sidebar of your wordpress blog. … … 34 34 == Changelog == 35 35 36 = 1.0 = 37 * Pull timezone from the calendar instead of relying on the current system or user input. 38 * Moved timezone offset option to end of the config as it should be almost never required now. 39 36 40 = 0.5 = 37 41 * Rearranged the widget config to put common items near the top.
Note: See TracChangeset
for help on using the changeset viewer.