WordPress.org

Plugin Directory

Changeset 524972 for syndicate-press


Ignore:
Timestamp:
03/29/12 05:52:03 (2 years ago)
Author:
hranchFundi
Message:

1.0.10: This is a bug-fix release. Fixed the following issues:
Failure to show feed items when "Show item description only when the viewer hovers over the item link." is selected.
Error upon extra spaces and commas in the filter fields.

Location:
syndicate-press/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • syndicate-press/trunk/php/TinyFeedParser.php

    r512000 r524972  
    141141        foreach($filterKeywordArray as $filterKeyword) 
    142142        { 
     143            $filterKeyword = trim($filterKeyword); 
     144            if($filterKeyword == '') 
     145            { 
     146                continue; 
     147            } 
    143148            if($exclusive) 
    144149            { 
     
    384389    function cleanupArticle($article) 
    385390    { 
     391        if($article->link) 
     392        { 
     393            $article->link = trim($article->link); 
     394        } 
    386395        if($article->content) 
    387396        { 
     
    396405        { 
    397406            $article->description = (string)$this->removeImages($article->description); 
     407            $article->description = (string)$this->removeAllHtmlMarkup($article->description); 
    398408        } 
    399409        if($this->allowImagesInDescription == 'false') 
     
    404414        { 
    405415            $article->description = (string)$this->removeAllHtmlMarkup($article->description); 
    406             $article->description = $this->truncateToLength($article->description, $this->maxDescriptionLength, $article->link); 
     416            $truncateLink = $article->link; 
     417            if($this->showContentOnlyInLinkTitle == 'true') 
     418            { 
     419                $truncateLink = 'NO_LINK'; 
     420            } 
     421            $article->description = $this->truncateToLength($article->description, $this->maxDescriptionLength, $truncateLink); 
    407422        } 
    408423                 
    409424        $article->headline = $article->description; 
    410425        $article->headline = (string)$this->removeAllHtmlMarkup($article->headline); 
    411         $article->headline = $this->truncateToLength($article->headline, $this->maxHeadlineLength); 
     426        $article->headline = $this->truncateToLength($article->headline, $this->maxHeadlineLength, 'NO_LINK'); 
    412427         
    413428        $article->title = (string)$this->removeAllHtmlMarkup($article->title); 
    414         $article->title = $this->truncateToLength($article->title, $this->maxHeadlineLength); 
     429        $article->title = $this->truncateToLength($article->title, $this->maxHeadlineLength, 'NO_LINK'); 
    415430                 
    416431        $article->subtitle = (string)$this->removeAllHtmlMarkup($article->subtitle); 
     
    429444        { 
    430445            $text = substr($text, 0, $length); 
    431             if($urlLink != "") 
     446            if($urlLink != "" && $urlLink != 'NO_LINK') 
    432447            { 
    433448                $text .= " <a href=\"$urlLink\" target=\"_blank\" title=\"Open article in a new window\">...</a>"; 
     
    531546            if($this->showContentOnlyInLinkTitle == 'true') 
    532547            { 
    533                 $html .= 'title="'.$article->description.'"'; 
     548                $html .= 'title="'.$article->description.'  Click to read the full article..."'; 
     549                if($article->description == '') 
     550                { 
     551                    continue; 
     552                } 
    534553            } 
    535554            else 
     
    538557            } 
    539558            $html .= ' target=_blank>'.$article->title.'</a>'.$headerHtmlPost."\r\n"; 
    540             if($article->subtitle) 
     559            if($article->subtitle != '') 
    541560            { 
    542561                $html = $this->addBrIfNeeded($html); 
  • syndicate-press/trunk/readme.txt

    r521675 r524972  
    55Requires at least: 2.8 
    66Tested up to: 3.3.1 
    7 Stable tag: 1.0.9 
     7Stable tag: 1.0.10 
    88 
    99Syndicate Press lets you include RSS, RDF or Atom feeds directly in your Wordpress posts, pages, widgets or theme.  
     
    4848http://henryranch.net/software/syndicate-press/syndicate-press-releases/ 
    4949 
     501.0.10: This is a bug-fix release.  Fixed the following issues:  
     51Failure to show feed items when "Show item description only when the viewer hovers over the item link." is selected. 
     52Error upon extra spaces and commas in the filter fields. 
     53 
    50541.0.9: Added the showImages parameter to the bbcode to enable display of feed images for all feeds included by that bbcode snippet.  i.e. [sp# feedname showImages=true] 
    5155 
  • syndicate-press/trunk/syndicate-press-plugin.php

    r521675 r524972  
    55Description: This plugin provides a high performance, highly configurable and easy to use news syndication aggregator which supports RSS, RDF and ATOM feeds. 
    66Author: HenryRanch LLC (henryranch.net) 
    7 Version: 1.0.9 
     7Version: 1.0.10 
    88Author URI: http://henryranch.net/ 
    99License: GPL2 
     
    6161if (!class_exists("SyndicatePressPlugin")) { 
    6262    class SyndicatePressPlugin { 
    63         var $version = "1.0.9"; 
     63        var $version = "1.0.10"; 
    6464        var $homepageURL = "http://henryranch.net/software/syndicate-press/"; 
    6565         
     
    618618                    $parser->allowImagesInDescription = $customConfigShowImages; 
    619619                    $parser->allowMarkupInDescription = 'true'; 
     620                    $parser->showContentOnlyInLinkTitle = 'false'; 
     621                } 
     622                if($parser->showContentOnlyInLinkTitle == 'true') 
     623                { 
     624                    $parser->allowImagesInDescription = 'false'; 
     625                    $parser->allowMarkupInDescription = 'false'; 
    620626                } 
    621627                $parser->parseFeed($cachedInputFeedFile); 
Note: See TracChangeset for help on using the changeset viewer.