Changeset 1147120
- Timestamp:
- 04/27/2015 02:24:10 PM (11 years ago)
- Location:
- expresscurate/trunk
- Files:
-
- 10 edited
-
ExpressCurate.php (modified) (1 diff)
-
ExpressCurate_ContentManager.php (modified) (1 diff)
-
ExpressCurate_FeedManager.php (modified) (1 diff)
-
ExpressCurate_HtmlParser.php (modified) (1 diff)
-
css/expresscurate.css (modified) (3 diffs)
-
js/Dialog.js (modified) (3 diffs)
-
js/Settings.js (modified) (4 diffs)
-
readme.txt (modified) (3 diffs)
-
templates/dashboard/bookmarks_widget.php (modified) (1 diff)
-
templates/sitemap.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
expresscurate/trunk/ExpressCurate.php
r1140784 r1147120 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 27 Version: 2.0.13 8 8 Author: ExpressCurate 9 9 Author URI: http://www.expresscurate.com -
expresscurate/trunk/ExpressCurate_ContentManager.php
r1140784 r1147120 81 81 $HtmlParser = new ExpressCurate_HtmlParser($url); 82 82 $article = $HtmlParser->getContents(); 83 83 84 if ($echo == true) { 84 85 echo json_encode($article); -
expresscurate/trunk/ExpressCurate_FeedManager.php
r1140784 r1147120 909 909 { 910 910 $count = 0; 911 if ( $bookmarks&& $days_count > 0) {911 if (!empty($bookmarks) && $days_count > 0) { 912 912 $start = strtotime(date('Y-m-d') . "-" . $days_count . " days"); 913 913 $end = strtotime(date('Y-m-d')); -
expresscurate/trunk/ExpressCurate_HtmlParser.php
r1140784 r1147120 294 294 $content = mb_convert_encoding($content, 'UTF-8', $encoding); 295 295 $content = mb_convert_encoding($content, 'HTML-ENTITIES', 'UTF-8'); 296 296 297 } 297 298 } -
expresscurate/trunk/css/expresscurate.css
r1140784 r1147120 672 672 font-size: 16px; 673 673 border-top: solid 1px #dddddd; 674 overflow: hidden; 674 675 } 675 676 @media (max-width: 680px){ … … 3752 3753 margin-right: 10px; 3753 3754 } 3754 .expresscurate_feed_list .feedListControls .pull .loading.expresscurate_startRotate{ 3755 .expresscurate_feed_list .feedListControls .pull .loading.expresscurate_startRotate, 3756 .expresscurate .loading.expresscurate_startRotate{ 3755 3757 background: url("../images/refresh.svg") no-repeat transparent center; 3756 3758 height: 100%; … … 3761 3763 -o-animation: rotate 1.2s infinite linear; 3762 3764 animation: rotate 1.2s infinite linear; 3765 } 3766 .expresscurate #submitSiteMap{ 3767 position: relative; 3768 } 3769 .expresscurate #submitSiteMap.hideText{ 3770 color: transparent !important; 3771 } 3772 .expresscurate #submitSiteMap .loading.expresscurate_startRotate{ 3773 position: absolute; 3774 top: 0; 3775 left: 0; 3763 3776 } 3764 3777 @-webkit-keyframes rotate{ -
expresscurate/trunk/js/Dialog.js
r1140784 r1147120 87 87 liCount; 88 88 $paragraphsContainer.width(paragraphs.length * paragraphWidth); 89 89 90 $.each(paragraphs, function (index, value) { 90 if (value['value'].length > shortestParagraphLength) { 91 var parLength = value['value'].trim().length; 92 if (parLength > 0 && parLength > shortestParagraphLength) { 91 93 $sorted.push(value['value']); 92 94 } … … 373 375 if (data.result.paragraphs.length > 0) { 374 376 $curatedParagraphs = data.result.paragraphs; 377 375 378 displayCuratedParagraphs(data.result.paragraphs, $("#expresscurate_autosummary").val(), false); 376 379 } … … 379 382 $('#expresscurate_source').focus(); 380 383 } 381 } 382 else { 384 } else { 383 385 errorHTML = '<div class="error">Can\'t curate from this page</div>'; 384 386 $('#expresscurate_post_form').before(errorHTML); -
expresscurate/trunk/js/Settings.js
r1140784 r1147120 93 93 }); 94 94 $('.expresscurate #generateSiteMap').on('click', function () { 95 $('.expresscurate_Error').remove(); 95 96 $.ajax({ 96 97 type: 'POST', … … 102 103 } else { 103 104 $submitSitemap.addClass('expresscurate_displayNone').removeClass('generated'); 105 $submitSitemap.after('<p class="expresscurate_Error expresscurate_SettingsError">Something went wrong. Please, make sure you have authorized ExpressCurate to access to Google Webmaster Tools.</p>'); 104 106 } 105 107 }); … … 107 109 $submitSitemap.on('click', function () { 108 110 $('.expresscurate_Error').remove(); 111 var $this=$(this), 112 $loading = $this.find('.loading'); 113 $this.addClass('hideText'); 114 $loading.addClass('expresscurate_startRotate'); 109 115 var message = '', 110 116 className = ''; … … 113 119 url: 'admin-ajax.php?action=expresscurate_sitemap_submit' 114 120 }).done(function (res) { 115 var data = $.parseJSON(res); 121 var data = $.parseJSON(res), 122 $autorize = $('.getApiKey'); 116 123 if (data.status === 0) { 117 124 $submitSitemap.addClass('generated'); 118 125 message = data.message; 119 126 className='expresscurate_SettingsSuccess'; 120 } else if (data.status === 1) { 121 message = data.message; 127 } else{ 122 128 className='expresscurate_SettingsError'; 123 } else if (data.status === 2) {124 message = data.message;125 className='expresscurate_SettingsError';126 } else if (data.status === 3) {127 message = data.message;128 className='expresscurate_SettingsError';129 if (data.status === 1) { 130 message = data.message; 131 $autorize.removeClass('expresscurate_displayNone'); 132 } else if (data.status === 2 || data.status === 3) { 133 message = data.message; 134 } 129 135 } 130 136 }).always(function () { 131 137 $submitSitemap.after('<p class="expresscurate_Error '+className+'">' + message + '</p>'); 138 $loading.removeClass('expresscurate_startRotate'); 139 $this.removeClass('hideText'); 132 140 }); 133 141 }); -
expresscurate/trunk/readme.txt
r1140784 r1147120 4 4 Donate link: https://bit.ly/expresscuratedonate 5 5 Requires at least: 3.9 6 Tested up to: 4. 17 Stable tag: 2.0.1 26 Tested up to: 4.2 7 Stable tag: 2.0.13 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 2.zip "Your favorite content marketing tools") for WordPress.83 [Download ExpressCurate plugin](http://downloads.wordpress.org/plugin/expresscurate.2.0.13.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 … … 129 129 == Changelog == 130 130 131 = 2.0.13 = 132 * Wordpress 4.2 supported now. 133 * Other miscellaneous bug fixes and improvements. 134 131 135 = 2.0.12 = 132 136 * Content Feed pull is fixed. -
expresscurate/trunk/templates/dashboard/bookmarks_widget.php
r1109426 r1147120 4 4 if (!empty($bookmarks)){ 5 5 $sorted_bookmarks = array_reverse($bookmarks); 6 $sorted_bookmarks = array_slice($sorted_bookmarks, 0, 5); 6 7 } 7 8 $last_7_days = $feedManager->count_bookmarks_by_days($bookmarks, 7); 8 9 $bookmarks_count = count($bookmarks); 9 $sorted_bookmarks = array_slice($sorted_bookmarks, 0, 5);10 10 11 11 ?> -
expresscurate/trunk/templates/sitemap.php
r1140784 r1147120 9 9 <li> 10 10 <div class="title submitSitemapWrap"> 11 <a class="generate <?php if (strlen(get_option('expresscurate_google_refresh_token')) < 3) {echo 'expresscurate_displayNone'; }else {echo 'generated';}?>" id="submitSiteMap" href="#">Submit Sitemap< /a>11 <a class="generate <?php if (strlen(get_option('expresscurate_google_refresh_token')) < 3) {echo 'expresscurate_displayNone'; }else {echo 'generated';}?>" id="submitSiteMap" href="#">Submit Sitemap<span class="loading"></span></a> 12 12 </div> 13 13 <a class="generate" id="generateSiteMap" href="#">Generate Sitemap</a>
Note: See TracChangeset
for help on using the changeset viewer.