Changeset 131615
- Timestamp:
- 07/02/2009 08:43:19 PM (17 years ago)
- Location:
- everpress
- Files:
-
- 6 added
- 1 deleted
- 3 edited
-
tags/0.9.1 (added)
-
tags/0.9.1/evernote.gif (added)
-
tags/0.9.1/everpress-panel.php (added)
-
tags/0.9.1/everpress.php (added)
-
tags/0.9.1/readme.txt (added)
-
tags/0.9.1/simplepie.php (added)
-
trunk/everpress-panel.php (modified) (1 diff)
-
trunk/everpress.css (deleted)
-
trunk/everpress.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
everpress/trunk/everpress-panel.php
r131131 r131615 75 75 <td align="left"> 76 76 <label><input type="radio" name="ep_post_status" value="draft" <?php if ($options["ep_post_status"] =="draft") echo "checked";?>> Draft </label> | 77 <label><input type="radio" name="ep_post_status" value="publi c" <?php if ($options["ep_post_status"] =="public") echo "checked";?>> Public</label> |77 <label><input type="radio" name="ep_post_status" value="publish" <?php if ($options["ep_post_status"] =="publish") echo "checked";?>> Publish</label> | 78 78 <label><input type="radio" name="ep_post_status" value="private" <?php if ($options["ep_post_status"] =="private") echo "checked";?>> Private</label> | 79 79 </td> -
everpress/trunk/everpress.php
r131131 r131615 7 7 Author: Martin Hawksey 8 8 Author URI: http://www.rsc-ne-scotland.org.uk/mashe 9 Version: 0.9 9 Version: 0.9.1 10 10 */ 11 11 … … 176 176 $rss->set_feed_url($this->o["ep_feed_url"]); 177 177 $rss->enable_cache(false); 178 $rss->enable_order_by_date( true);178 $rss->enable_order_by_date(false); 179 179 $rss->init(); 180 180 181 181 $updated = $rss->get_channel_tags('', 'lastBuildDate'); 182 182 $last_update = strtotime($updated[0]["data"]); 183 $new_items = array();184 183 185 184 if ($this->o["ep_last_refresh_feed"] < $last_update) { … … 187 186 $pubDate = $item->get_item_tags('', 'pubDate'); 188 187 $crawl_time = strtotime($pubDate[0]["data"]); 188 $item_desc = $item->get_description(); 189 189 if ($newtime==0) { 190 190 $newtime=$crawl_time; 191 191 } 192 192 if ($this->o["ep_last_crawl"] < $crawl_time) { 193 $new_item["title"] = $item->get_title(); 194 $new_item["link"] = $item->get_link(); 195 $new_item["description"] = $item->get_description(); 196 197 $new_items[] = $new_item; 198 $new_post = array(); 193 194 if (strripos($item_desc, "...</")>1900){ 195 $read_more = "...[<a href=\"".$item->get_link()."\">read more</a>]</"; 196 $last = strrpos($item_desc, '...</'); 197 $total = strlen($item_desc)-5; 198 $stop = $last - $total; 199 $item_desc = substr_replace($item_desc, $read_more, $last, $stop); 200 } 199 201 200 202 if ($this->o["ep_post_evernote_logo"] == 1){ 201 $post_footer = "<div align=\"right\"><a href=\"".$ new_item["link"]."\"><img src=\"".RSSEVERPOST_URL."evernote.gif\" alt=\"Created with ... Evernote.com\"/></a></div>";203 $post_footer = "<div align=\"right\"><a href=\"".$item->get_link()."\"><img src=\"".RSSEVERPOST_URL."evernote.gif\" alt=\"Created with ... Evernote.com\"/></a></div>"; 202 204 } 205 $new_post = array(); 203 206 $new_post['comment_status'] = $this->o["ep_post_comments"] == 1 ? 'open' : 'closed'; 204 207 $new_post['post_author'] = $this->o["ep_post_author"]; 205 $new_post['post_content'] = str_replace("\n"," ",$ new_item["description"]).$post_footer;208 $new_post['post_content'] = str_replace("\n"," ",$item_desc).$post_footer; 206 209 $new_post['post_status'] = $this->o["ep_post_status"]; 207 $new_post['post_title'] = $ new_item["title"];210 $new_post['post_title'] = $item->get_title(); 208 211 $new_post['post_type'] = 'post'; 212 $new_post['post_date'] = date("Y-m-d H:i:s", $crawl_time); 209 213 $new_post['post_category'] = array($this->o["ep_post_category"]); 210 214 $new_post['tags_input'] = $this->o["ep_post_tags"]; -
everpress/trunk/readme.txt
r131131 r131615 4 4 Requires at least: 2.5 5 5 Tested up to: 2.7.1 6 Stable tag: 0.9 6 Stable tag: 0.9.1 7 7 8 8 EverPress allows Evernote users to automatic post their shared notebooks to WordPress. … … 34 34 35 35 == Changelog == 36 **0.9.1** - minor fix to allow direct publishing of Evernote items and feature update to link to appended posts. 36 37 37 38 **0.9** - major update. Evernote changed their website code for shared notebooks which broke the plugin. This update fixes the problem and includes some new features to the admin control panel
Note: See TracChangeset
for help on using the changeset viewer.