Changeset 515560
- Timestamp:
- 03/06/2012 08:50:48 PM (14 years ago)
- Location:
- pulsemaps/trunk
- Files:
-
- 4 edited
-
pm-config.php (modified) (1 diff)
-
pm-widget.php (modified) (1 diff)
-
pulsemaps.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pulsemaps/trunk/pm-config.php
r496995 r515560 5 5 6 6 global $pulsemaps_version; 7 $pulsemaps_version = 9;7 $pulsemaps_version = 10; 8 8 9 9 $local_config = dirname(__FILE__) . '/pm-config-local.php'; -
pulsemaps/trunk/pm-widget.php
r496995 r515560 75 75 </script> 76 76 <?php 77 echo $opts['after_text']; 77 78 echo $after_widget; 78 79 } -
pulsemaps/trunk/pulsemaps.php
r499390 r515560 4 4 Plugin URI: http://pulsemaps.com/wordpress/ 5 5 Description: Show off your visitors on the world map. When people around the world visit your blog, the corresponding areas on the heat map widget light up! 6 Version: 1.5. 26 Version: 1.5.3 7 7 Author: Aito Software Inc. 8 8 License: GPLv2 or later … … 153 153 $opts['activated'] = false; 154 154 } 155 if (!isset($opts['after_text'])) { 156 $opts['after_text'] = ''; 157 } 155 158 156 159 update_option('pulsemaps_options', $opts); 157 160 158 } 161 if (!wp_next_scheduled('pulsemaps_daily')) { 162 wp_schedule_event(time(), 'daily', 'pulsemaps_daily'); 163 } 164 } 165 166 register_deactivation_hook(__FILE__, 'pulsemaps_uninstall'); 167 function pulsemaps_uninstall() { 168 wp_clear_scheduled_hook('pulsemaps_daily'); 169 } 170 171 function pulsemaps_refresh() { 172 global $pulsemaps_url; 173 $opts = get_option('pulsemaps_options', array()); 174 $c = curl_init($pulsemaps_url . '/refresh'); 175 $data = array('key' => $opts['key'], 176 'name' => get_option('blogname'), 177 'url' => get_option('home')); 178 curl_setopt($c, CURLOPT_POSTFIELDS, $data); 179 curl_setopt($c, CURLOPT_RETURNTRANSFER, true); 180 $ret = curl_exec($c); 181 $code = curl_getinfo($c, CURLINFO_HTTP_CODE); 182 curl_close($c); 183 foreach (json_decode($ret, true) as $k => $v) { 184 $opts[$k] = $v; 185 } 186 update_option('pulsemaps_options', $opts); 187 } 188 add_action('pulsemaps_daily', 'pulsemaps_refresh'); 189 159 190 160 191 function pulsemaps_tracking_active() { -
pulsemaps/trunk/readme.txt
r499390 r515560 8 8 Requires at least: 2.9 9 9 Tested up to: 3.3.1 10 Stable tag: 1.5. 210 Stable tag: 1.5.3 11 11 12 12 Show off your visitors on the world map. When people around the world visit your blog, the corresponding areas on the heat map widget light up! … … 68 68 69 69 == Changelog == 70 71 = 1.5.3 = 72 73 * Site name and URL on map details page updated automatically. 70 74 71 75 = 1.5.2 =
Note: See TracChangeset
for help on using the changeset viewer.