Changeset 704797
- Timestamp:
- 04/27/2013 07:44:03 PM (13 years ago)
- Location:
- sync-facebook-events/tags
- Files:
-
- 7 copied
-
1.0.7/facebook.php (copied) (copied from sync-facebook-events/trunk/facebook.php)
-
1.0.7/readme.txt (copied) (copied from sync-facebook-events/trunk/readme.txt) (1 diff)
-
1.0.7/screenshot-1.png (copied) (copied from sync-facebook-events/trunk/screenshot-1.png)
-
1.0.7/sync-facebook-events.php (copied) (copied from sync-facebook-events/trunk/sync-facebook-events.php) (6 diffs)
-
1.0.9 (copied) (copied from sync-facebook-events/trunk)
-
1.0.9/readme.txt (copied) (copied from sync-facebook-events/trunk/readme.txt)
-
1.0.9/sync-facebook-events.php (copied) (copied from sync-facebook-events/trunk/sync-facebook-events.php)
Legend:
- Unmodified
- Added
- Removed
-
sync-facebook-events/tags/1.0.7/readme.txt
r704792 r704797 3 3 Tags: facebook, events, synchronize, calendar 4 4 Requires at least: 3.0 5 Tested up to: 3. 4.26 Stable tag: 1.0. 85 Tested up to: 3.5.1 6 Stable tag: 1.0.7 7 7 8 8 A simple plugin to Sync Facebook events to The Events Calendar plugin by Modern Tribe. -
sync-facebook-events/tags/1.0.7/sync-facebook-events.php
r704792 r704797 5 5 Description: Sync Facebook Events to The Events Calendar Plugin 6 6 Author: Mark Nelson 7 Version: 1.0.6 7 Version: 1.0.7 8 Revision by: Sam Haines (Wordpress username shaines1) 8 9 Author URI: http://pdxt.com 9 10 */ 10 11 11 /* Copyright 201 2PDX Technologies, LLC. (mark.nelson@pdxt.com)12 /* Copyright 2013 PDX Technologies, LLC. (mark.nelson@pdxt.com) 12 13 13 14 This program is free software; you can redistribute it and/or modify … … 64 65 'cookie' => true, 65 66 )); 67 Facebook::$CURL_OPTS[CURLOPT_SSL_VERIFYPEER] = false; 68 Facebook::$CURL_OPTS[CURLOPT_SSL_VERIFYHOST] = 2; 66 69 67 70 $ret = array(); … … 103 106 'posts_per_page'=>'-1' 104 107 )); 105 108 109 110 106 111 foreach($query->posts as $post) { 107 112 if(!empty($post->to_ping)) { … … 124 129 125 130 foreach($events as $event) { 126 127 131 $args['post_title'] = $event['name']; 128 132 129 133 $offset = get_option('gmt_offset')*3600; 130 134 131 $offsetStart = $event['start_time']+$offset;135 $offsetStart = strtotime($event['start_time'])+$offset; 132 136 $offsetEnd = $event['end_time']+$offset; 133 137 134 138 //don't update or insert events from the past. 135 if($offsetEnd > time()) { 136 139 if($offsetStart > time()) { 137 140 $args['EventStartDate'] = date("m/d/Y", $offsetStart); 138 141 $args['EventStartHour'] = date("H", $offsetStart); … … 182 185 //eid, name, start_time, end_time, location, description 183 186 } 184 reset($eids);187 //reset($eids); 185 188 } 186 189 } … … 283 286 <?php if(isset($events)) { ?> 284 287 <div style="margin-top:20px;font-size:14px;color:#444;border:1px solid #999;padding:15px;width:95%;font-face:couriernew;"> 285 <span style="color:red;">Upda ing all facebook events...</span><br />288 <span style="color:red;">Updating all facebook events...</span><br /> 286 289 <?php fbes_send_events($events); ?><br /> 287 290 <span style="color:red;">Events Calendar updated with current Facebook events.</span><br /><br /> 288 291 </div> 289 <? } ?>292 <?php } ?> 290 293 <?php 291 294 }
Note: See TracChangeset
for help on using the changeset viewer.