Plugin Directory

Changeset 1147120


Ignore:
Timestamp:
04/27/2015 02:24:10 PM (11 years ago)
Author:
expresscurate
Message:

new version v2.0.13 with changes:

  • Wordpress 4.2 supported now.
  • Other miscellaneous bug fixes and improvements.
Location:
expresscurate/trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • expresscurate/trunk/ExpressCurate.php

    r1140784 r1147120  
    55  Plugin URI: http://www.expresscurate.com/products
    66  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.12
     7  Version: 2.0.13
    88  Author: ExpressCurate
    99  Author URI: http://www.expresscurate.com
  • expresscurate/trunk/ExpressCurate_ContentManager.php

    r1140784 r1147120  
    8181            $HtmlParser = new ExpressCurate_HtmlParser($url);
    8282            $article = $HtmlParser->getContents();
     83
    8384            if ($echo == true) {
    8485              echo json_encode($article);
  • expresscurate/trunk/ExpressCurate_FeedManager.php

    r1140784 r1147120  
    909909    {
    910910        $count = 0;
    911         if ($bookmarks && $days_count > 0) {
     911        if (!empty($bookmarks) && $days_count > 0) {
    912912            $start = strtotime(date('Y-m-d') . "-" . $days_count . " days");
    913913            $end = strtotime(date('Y-m-d'));
  • expresscurate/trunk/ExpressCurate_HtmlParser.php

    r1140784 r1147120  
    294294                $content = mb_convert_encoding($content, 'UTF-8', $encoding);
    295295                $content = mb_convert_encoding($content, 'HTML-ENTITIES', 'UTF-8');
     296
    296297            }
    297298        }
  • expresscurate/trunk/css/expresscurate.css

    r1140784 r1147120  
    672672            font-size: 16px;
    673673            border-top: solid 1px #dddddd;
     674            overflow: hidden;
    674675        }
    675676@media (max-width: 680px){
     
    37523753                margin-right: 10px;
    37533754            }
    3754                 .expresscurate_feed_list .feedListControls .pull .loading.expresscurate_startRotate{
     3755                .expresscurate_feed_list .feedListControls .pull .loading.expresscurate_startRotate,
     3756                .expresscurate .loading.expresscurate_startRotate{
    37553757                    background: url("../images/refresh.svg") no-repeat transparent center;
    37563758                    height: 100%;
     
    37613763                    -o-animation: rotate 1.2s infinite linear;
    37623764                    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;
    37633776                }
    37643777                @-webkit-keyframes rotate{
  • expresscurate/trunk/js/Dialog.js

    r1140784 r1147120  
    8787            liCount;
    8888        $paragraphsContainer.width(paragraphs.length * paragraphWidth);
     89
    8990        $.each(paragraphs, function (index, value) {
    90             if (value['value'].length > shortestParagraphLength) {
     91            var parLength = value['value'].trim().length;
     92            if (parLength > 0 && parLength > shortestParagraphLength) {
    9193                $sorted.push(value['value']);
    9294            }
     
    373375                            if (data.result.paragraphs.length > 0) {
    374376                                $curatedParagraphs = data.result.paragraphs;
     377
    375378                                displayCuratedParagraphs(data.result.paragraphs, $("#expresscurate_autosummary").val(), false);
    376379                            }
     
    379382                        $('#expresscurate_source').focus();
    380383                    }
    381                 }
    382                 else {
     384                } else {
    383385                    errorHTML = '<div class="error">Can\'t curate from this page</div>';
    384386                    $('#expresscurate_post_form').before(errorHTML);
  • expresscurate/trunk/js/Settings.js

    r1140784 r1147120  
    9393        });
    9494        $('.expresscurate #generateSiteMap').on('click', function () {
     95            $('.expresscurate_Error').remove();
    9596            $.ajax({
    9697                type: 'POST',
     
    102103                } else {
    103104                    $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>');
    104106                }
    105107            });
     
    107109        $submitSitemap.on('click', function () {
    108110            $('.expresscurate_Error').remove();
     111            var $this=$(this),
     112                $loading = $this.find('.loading');
     113            $this.addClass('hideText');
     114            $loading.addClass('expresscurate_startRotate');
    109115            var message = '',
    110116                className = '';
     
    113119                url: 'admin-ajax.php?action=expresscurate_sitemap_submit'
    114120            }).done(function (res) {
    115                 var data = $.parseJSON(res);
     121                var data = $.parseJSON(res),
     122                    $autorize = $('.getApiKey');
    116123                if (data.status === 0) {
    117124                    $submitSitemap.addClass('generated');
    118125                    message = data.message;
    119126                    className='expresscurate_SettingsSuccess';
    120                 } else if (data.status === 1) {
    121                     message = data.message;
     127                } else{
    122128                    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                    }
    129135                }
    130136            }).always(function () {
    131137                $submitSitemap.after('<p class="expresscurate_Error '+className+'">' + message + '</p>');
     138                $loading.removeClass('expresscurate_startRotate');
     139                $this.removeClass('hideText');
    132140            });
    133141        });
  • expresscurate/trunk/readme.txt

    r1140784 r1147120  
    44Donate link: https://bit.ly/expresscuratedonate
    55Requires at least: 3.9
    6 Tested up to: 4.1
    7 Stable tag: 2.0.12
     6Tested up to: 4.2
     7Stable tag: 2.0.13
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl.html
     
    8181
    8282= How To Get Started =
    83 [Download ExpressCurate plugin](http://downloads.wordpress.org/plugin/expresscurate.2.0.12.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. 
    8484You 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.
    8585
     
    129129== Changelog ==
    130130
     131= 2.0.13 =
     132* Wordpress 4.2 supported now.
     133* Other miscellaneous bug fixes and improvements.
     134
    131135= 2.0.12 =
    132136* Content Feed pull is fixed.
  • expresscurate/trunk/templates/dashboard/bookmarks_widget.php

    r1109426 r1147120  
    44if (!empty($bookmarks)){
    55    $sorted_bookmarks = array_reverse($bookmarks);
     6    $sorted_bookmarks = array_slice($sorted_bookmarks, 0, 5);
    67}
    78$last_7_days = $feedManager->count_bookmarks_by_days($bookmarks, 7);
    89$bookmarks_count = count($bookmarks);
    9 $sorted_bookmarks = array_slice($sorted_bookmarks, 0, 5);
    1010
    1111?>
  • expresscurate/trunk/templates/sitemap.php

    r1140784 r1147120  
    99<li>
    1010    <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>
    1212    </div>
    1313        <a class="generate" id="generateSiteMap" href="#">Generate Sitemap</a>
Note: See TracChangeset for help on using the changeset viewer.