WordPress.org

Plugin Directory

Changeset 639569 for syndicate-press


Ignore:
Timestamp:
12/15/12 06:06:34 (17 months ago)
Author:
hranchFundi
Message:

v1.0.18
added new short-code param: limitArticles

Location:
syndicate-press/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • syndicate-press/trunk/readme.txt

    r587291 r639569  
    44Tags: RSS,RDF,Atom,feed,syndicate,syndication,news,aggregator,aggregation,plugin,active,maintained,custom,widget,post,plugin,posts,admin,sidebar,theme,comments,images,twitter,page,google,links 
    55Requires at least: 2.8 
    6 Tested up to: 3.4.1 
    7 Stable tag: 1.0.17 
     6Tested up to: 3.5 
     7Stable tag: 1.0.18 
    88 
    99Syndicate Press lets you include RSS, RDF or Atom feeds directly in your Wordpress posts, pages, widgets or theme.  
     
    4747 
    4848http://syndicatepress.henryranch.net/documentation/changelog/ 
     49 
     501.0.18: New feature release<br> 
     51Added a new short-code parameter, limitArticles, which allows you to override the global article limit for the short-code that the param is included in.  Use the new param as follows: [sp# feedList=feedName limitArticles=5].  Change 5 to whatever you want the max number of articles to be. 
    4952 
    50531.0.17: New feature release<br> 
  • syndicate-press/trunk/syndicate-press-plugin.php

    r574403 r639569  
    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.17 
     7Version: 1.0.18 
    88Author URI: http://henryranch.net/ 
    99License: GPL2 
     
    6161if (!class_exists("SyndicatePressPlugin")) { 
    6262    class SyndicatePressPlugin { 
    63         var $version = "1.0.17"; 
     63        var $version = "1.0.18"; 
    6464        var $homepageURL = "http://henryranch.net/software/syndicate-press/"; 
    6565         
     
    279279                            $customConfigOverrides['showImages'] = $list[1]; 
    280280                        } 
     281                        else if(strpos($param, 'limitArticles') !== false) 
     282                        { 
     283                            $list = explode('=', $param); 
     284                            $customConfigOverrides['limitArticles'] = $list[1]; 
     285                        } 
    281286                        else if(strpos($param, 'feedList') !== false) 
    282287                        { 
     
    630635                $customConfigInclusiveKeywords = $customConfigOverrides['includeFilterList']; 
    631636                $customConfigShowImages = $customConfigOverrides['showImages']; 
     637                $customConfigLimitArticles = $customConfigOverrides['limitArticles']; 
    632638            } 
    633639             
     
    653659                $parser->showContentOnlyInLinkTitle = $configOptions['showContentOnlyInLinkTitle']; 
    654660                $parser->maxNumArticlesToDisplay = $configOptions['limitFeedItemsToDisplay']; 
     661                if(isset($customConfigLimitArticles)) 
     662                { 
     663                  $parser->maxNumArticlesToDisplay = $customConfigLimitArticles; 
     664                } 
    655665                 
    656666                $parser->exclusiveKeywordList = $configOptions['exclusiveKeywordFilter'] . ',' . $customConfigExclusiveKeywords; 
     
    669679                $parser->showArticlePublishTimestamp = $configOptions['showArticlePublishTimestamp']; 
    670680                $parser->allowMarkupInDescription = $configOptions['allowMarkupInDescription']; 
    671                 $parser->addNoFollowTag = $configOptions['addNoFollowTag']; 
    672                 if($configOptions['timestampFormat']  != '') 
    673                 { 
    674                     $parser->useCustomTimestampFormat = true; 
    675                     $parser->timestampFormatString = $configOptions['timestampFormat']; 
    676                     $parser->timestampFormatString = $this->sp_unescapeString($parser->timestampFormatString); 
    677                 } 
     681                $parser->addNoFollowTag = $configOptions['addNoFollowTag']; 
     682                if($configOptions['timestampFormat']  != '') 
     683                { 
     684                  $parser->useCustomTimestampFormat = true; 
     685                  $parser->timestampFormatString = $configOptions['timestampFormat']; 
     686                  $parser->timestampFormatString = $this->sp_unescapeString($parser->timestampFormatString); 
     687                } 
    678688                $parser->customFeedName = $this->sp_getCustomFeednameForUrl($url); 
    679689                if($parser->customFeedName == "") 
     
    11881198        <b><u>Inserting feed content into a Wordpress page or post...</u></b> 
    11891199        <p> 
    1190         To insert feed contents into a Page or Post, use the following syntax:<br> 
     1200        To insert feed contents into a Page, Post or Text Widget, use the following syntax:<br> 
    11911201        <div style="padding-left: 20px;"> 
    11921202        [sp# feedList=all] - insert all of the feeds in the feed list<br> 
    11931203        <i>In the following examples, <b>feedname</b> will match the name of a feed, or any word within the feed url</i><br> 
    11941204        [sp# feedList=feedname] - insert only the feed with the given name<br> 
     1205        [sp# feedList=feedname limitArticles=maxNumArticles] - limit the number of articles from the given feedname(s).  Overrides the global article limit.<br> 
    11951206        [sp# feedList=feedname1,feedname2,etc...] - insert the feeds with the given names<br> 
    11961207        [sp# feedList=feedname1,feedname2 include=keyword1,keyword2] - insert the feeds with the given names and the given inclusive keyword filters<br> 
     
    12091220        <div style="padding-left: 20px;"> 
    12101221        <p> 
    1211         By using Syndicate Press you accept full resposibility and liability for adherance to the terms of service of each feed you syndicate.  Please respect the copyright of feed publishers. 
     1222        By using Syndicate Press you accept full responsibility and liability for adherance to the terms of service of each feed you syndicate.  Please respect the copyright of feed publishers. 
    12121223        </p> 
    12131224        </div> 
Note: See TracChangeset for help on using the changeset viewer.