Changeset 1165036
- Timestamp:
- 05/21/2015 02:20:50 PM (11 years ago)
- Location:
- expresscurate/trunk
- Files:
-
- 10 edited
-
ExpressCurate.php (modified) (1 diff)
-
ExpressCurate_Actions.php (modified) (2 diffs)
-
ExpressCurate_AjaxExportAPI.php (modified) (1 diff)
-
ExpressCurate_FeedManager.php (modified) (3 diffs)
-
ExpressCurate_HtmlParser.php (modified) (1 diff)
-
css/dialog-style-3.9.css (modified) (4 diffs)
-
js/feed/contentFeed.js (modified) (1 diff)
-
js/feed/feedSettings.js (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
-
templates/feed_list.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
expresscurate/trunk/ExpressCurate.php
r1162493 r1165036 5 5 Plugin URI: http://www.expresscurate.com/products 6 6 Description: ExpressCurate plugin is a content curation tool for WordPress. It enables you to create and publish high quality content within minutes. 7 Version: 2.0.1 47 Version: 2.0.15 8 8 Author: ExpressCurate 9 9 Author URI: http://www.expresscurate.com -
expresscurate/trunk/ExpressCurate_Actions.php
r1162493 r1165036 690 690 //$the_post = get_post($post_id); 691 691 $post_content = $post->post_content; 692 if (strpos($post_content, 'keywordsHighlight') !== false) { 693 $tags_obj = new Expresscurate_Tags(); 694 $post_content = $tags_obj->removeHighlights($post_content); 695 } 692 $tags_obj = new Expresscurate_Tags(); 693 $post_content = $tags_obj->removeTagLinks($post_content); 696 694 } 697 695 … … 1107 1105 if (is_single() || is_page()) { 1108 1106 $post_id = $post->ID; 1109 $ title = get_post_meta($post_id, '_expresscurate_advanced_seo_title', true);1110 $title = !empty($ title) ? $title . ' | ' : '';1107 $seo_title = get_post_meta($post_id, '_expresscurate_advanced_seo_title', true); 1108 $title = !empty($seo_title) ? $seo_title . ' | ' : $title; 1111 1109 } 1112 1110 return $title; 1113 1111 } 1114 1112 1115 public function advanced_seo_update_canonical_url( $default_title)1113 public function advanced_seo_update_canonical_url() 1116 1114 { 1117 1115 global $post; -
expresscurate/trunk/ExpressCurate_AjaxExportAPI.php
r1162493 r1165036 33 33 { 34 34 $data = array(); 35 $data["title"] = get_bloginfo('name'); 35 36 $data["categories"] = array(); 36 37 $data["keywords"] = array(); -
expresscurate/trunk/ExpressCurate_FeedManager.php
r1147120 r1165036 48 48 49 49 $rssUrl = $this->getRssUrl($url); 50 51 if ($rssUrl === null) { 50 $existed_rss=""; 51 $rssLinks = array_values($curated_links_rss); 52 foreach($rssLinks as $link) { 53 if($link['feed_url']==$rssUrl) 54 { 55 $existed_rss = $link['feed_url']; 56 break; 57 } 58 } 59 if ($rssUrl === null || $rssUrl=="") { 52 60 $result['status'] = 'No RSS feed found at this URL.'; 53 } else if ( isset($curated_links_rss[$rssUrl])) {61 } else if (!empty($existed_rss)) { 54 62 $result['status'] = 'URL already exists.'; 55 63 } else { … … 406 414 // decode and collect 407 415 $result = json_decode($res, true); 416 408 417 $this->collect_feed($result, $deleted_urls, $feed_array, 'feed', $date); 409 418 } 410 419 } 411 412 420 // check if the feed is empty and sort 413 421 if(!empty($feed_array)) { … … 494 502 495 503 $story_array = array( 496 'title' => $story['title'],497 'desc' => isset($story['contentSnippet']) ? $story['contentSnippet']: '',504 'title' => str_replace(""","'",$story['title']), 505 'desc' => isset($story['contentSnippet']) ? str_replace(""","'",$story['contentSnippet']) : '', 498 506 'link' => $link, 499 507 'date' => $publishDate, -
expresscurate/trunk/ExpressCurate_HtmlParser.php
r1162493 r1165036 211 211 212 212 public function getRealURL(){ 213 foreach(get_headers($this->url) as $header) { 214 if (strpos($header, "Location:") === 0) { 215 $this->url = trim(substr($header, 9)); 213 if(self::supportsAsynch()){ 214 $ch = curl_init(); 215 curl_setopt($ch, CURLOPT_URL, $this->url); 216 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 217 curl_setopt($ch, CURLOPT_HEADER, 1); 218 curl_setopt($ch, CURLOPT_NOBODY, 1); 219 curl_exec($ch); 220 $this->url = curl_getinfo($ch,CURLINFO_EFFECTIVE_URL); 221 curl_close($ch); 222 }else{ 223 $headers = get_headers($this->url); 224 foreach($headers as $header) { 225 if (strpos($header, "Location:") === 0) { 226 $this->url = trim(substr($header, 9)); 227 } 216 228 } 217 229 } -
expresscurate/trunk/css/dialog-style-3.9.css
r1162493 r1165036 11 11 background: #000 !important; 12 12 position: fixed; 13 z-index: 100090 ;13 z-index: 100090 !important; 14 14 } 15 15 div[aria-describedby="expresscurate_clone_dialog"] .ui-dialog-titlebar, 16 16 div[aria-describedby="expresscurate_dialog"] .ui-dialog-titlebar{ 17 17 padding: 0; 18 font-size: 13px ;18 font-size: 13px !important; 19 19 line-height: 30px; 20 20 color: #fff; … … 36 36 text-overflow: ellipsis; 37 37 font-weight: normal; 38 height: 20px; 38 39 } 39 40 … … 71 72 } 72 73 74 #expresscurate_dialog { 75 width: 829px !important; 76 } 73 77 .expresscurate_dialog { 74 78 padding: 0 !important; … … 82 86 background-repeat: no-repeat; 83 87 } 84 #ui-datepicker-div{85 display: none;86 }87 88 #expresscurate_dialog_content_clone_editor{ 88 89 height: 190px; -
expresscurate/trunk/js/feed/contentFeed.js
r1140784 r1165036 80 80 }).done(function (res) { 81 81 var data = $.parseJSON(res); 82 if (data) { 83 $.each(data.content, function (index, value) { 84 $("#expresscurate_feedBoxes").load("admin-ajax.php?action=expresscurate_show_content_feed_items #expresscurate_feedBoxes > li", function () { 85 $('.pullTime p').text('in ' + data.minutes_to_next_pull); 86 $masonryWrap.masonry('destroy').masonry({ 87 itemSelector: '.expresscurate_masonryItem', 88 isResizable: true, 89 isAnimated: true, 90 columnWidth: '.expresscurate_masonryItem', 91 gutter: 10 92 }); 93 ExpressCurateUtils.notDefinedMessage($notDefFeed, $feedBoxes.find(' > li')); 82 if (data) { 83 $("#expresscurate_feedBoxes").load("admin-ajax.php?action=expresscurate_show_content_feed_items #expresscurate_feedBoxes > li", function () { 84 $('.pullTime p').text('in ' + data.minutes_to_next_pull); 85 $masonryWrap.masonry('destroy').masonry({ 86 itemSelector: '.expresscurate_masonryItem', 87 isResizable: true, 88 isAnimated: true, 89 columnWidth: '.expresscurate_masonryItem', 90 gutter: 10 94 91 }); 92 ExpressCurateUtils.notDefinedMessage($notDefFeed, $feedBoxes.find(' > li')); 95 93 }); 96 94 } -
expresscurate/trunk/js/feed/feedSettings.js
r1129694 r1165036 4 4 function addFeed() { 5 5 ExpressCurateUtils.track('/rss-feeds/add'); 6 7 6 var message = '', 8 link = $input.val() .replace(/\/\s*$/, ""),7 link = $input.val(), 9 8 liHTML = '', 10 9 $lastLi, -
expresscurate/trunk/readme.txt
r1162493 r1165036 5 5 Requires at least: 3.9 6 6 Tested up to: 4.2.2 7 Stable tag: 2.0.1 47 Stable tag: 2.0.15 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl.html … … 81 81 82 82 = How To Get Started = 83 [Download ExpressCurate plugin](http://downloads.wordpress.org/plugin/expresscurate.2.0.1 4.zip "Your favorite content marketing tools") for WordPress.83 [Download ExpressCurate plugin](http://downloads.wordpress.org/plugin/expresscurate.2.0.15.zip "Your favorite content marketing tools") for WordPress. 84 84 You can also [download](http://www.expresscurate.com/p/products/wordpress-theme "Your favorite WordPress Theme") a **free** [ExpressCurate WordPress theme](http://www.expresscurate.com/p/products/wordpress-theme "Your favorite WordPress Theme"). It will give your curated content a modern online news look. 85 85 … … 131 131 == Changelog == 132 132 133 = 2.0.15 = 134 * Compatibility with Fusion Core Plugin and Avada Theme. 135 * Miscellaneous bug fixes and improvements. 136 133 137 = 2.0.14 = 134 138 * Clone Post allows to copy the original post and re-post it in your blog. Minimal SEO for copy-blogging is done automatically. -
expresscurate/trunk/templates/feed_list.php
r1140784 r1165036 18 18 foreach ($feed_content as $content) { 19 19 $content['domain'] = parse_url($content['link'], PHP_URL_SCHEME) . "://" . parse_url($content['link'], PHP_URL_HOST); 20 $content['desc'] = str_replace(""","'",$content['desc']); 21 $content['title'] = str_replace(""","'",$content['title']); 20 22 array_push($sorted_feeds, $content); 21 23 } … … 78 80 </div> 79 81 <div class="expresscurate_clear"></div> 80 82 <ul id="expresscurate_feedBoxes" class="expresscurate_feedBoxes expresscurate_masonryWrap"> 81 83 <?php 82 84 if (!empty($sorted_feeds)) { 83 85 $i = 0; 84 86 ?> 85 < ul id="expresscurate_feedBoxes" class="expresscurate_feedBoxes expresscurate_masonryWrap"><?php87 <?php 86 88 foreach ($sorted_feeds as $key => $item) { 87 89 ?> … … 145 147 <?php $i++; 146 148 } 147 ?>< /ul><?php149 ?><?php 148 150 } ?> 149 151 <label class="expresscurate_notDefined expresscurate_displayNone">Your content feed is … … 151 153 href="admin.php?page=expresscurate_feeds">RSS feeds</a> to 152 154 start.'; ?></label> 153 155 </ul> 154 156 <form method="POST" action="<?php echo get_admin_url() ?>post-new.php#expresscurate_sources_collection" 155 157 id="expresscurate_bookmarks_curate">
Note: See TracChangeset
for help on using the changeset viewer.