WordPress.org

Plugin Directory

Changeset 663005 for syndicate-press


Ignore:
Timestamp:
02/04/13 04:27:25 (15 months ago)
Author:
hranchFundi
Message:

1.0.24: New feature release - Added the ability to remove the CDATA tags from the feed. The content is still retained that was within the CDATA tags. This feature can be accessed on the 'Display Settings' tab.

Location:
syndicate-press/trunk
Files:
2 edited

Legend:

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

    r658509 r663005  
    55Requires at least: 2.8 
    66Tested up to: 3.5.1 
    7 Stable tag: 1.0.23 
     7Stable tag: 1.0.24 
    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.24: New feature release<br> 
     51- Added the ability to remove the CDATA tags from the feed.  The content is still retained that was within the CDATA tags.  This feature can be accessed on the 'Display Settings' tab.<br> 
     52 
    4953 
    50541.0.23: New feature release<br> 
  • syndicate-press/trunk/syndicate-press-plugin.php

    r658509 r663005  
    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.23 
     7Version: 1.0.24 
    88Author URI: http://syndicatepress.henryranch.net/ 
    99License: GPL2 
     
    6464if (!class_exists("SyndicatePressPlugin")) { 
    6565  class SyndicatePressPlugin { 
    66         var $version = "1.0.23"; 
     66        var $version = "1.0.24"; 
    6767        var $homepageURL = "http://syndicatepress.henryranch.net/"; 
    6868         
     
    8888            'displayImages' => 'false', 
    8989            'allowMarkupInDescription' => 'false', 
     90            'stripCDataTags' => 'false', 
    9091            'showContentOnlyInLinkTitle' => 'false',  
    9192            'showSyndicatePressLinkback' => 'true', 
     
    356357        } 
    357358         
     359        function sp_stripCDataTags($cacheFilename) 
     360        {             
     361            //echo "stripping CDATA tag from file: $cacheFilename<br>"; 
     362            $content = file_get_contents($cacheFilename); 
     363            $content = str_replace('<![CDATA[', '', $content); 
     364            $content = str_replace(']]>', '', $content); 
     365            $this->sp_writeFile($cacheFilename, $content); 
     366        } 
     367 
    358368        function sp_unescapeString($str, $replaceDoubleQuotesWithSingleQuotesForTagParams=false) 
    359369        { 
     
    592602                } 
    593603            }  
     604            if($this->stripCDataTags == 'true') 
     605            { 
     606                //print "cache(): need to strip CDATA tags from $cacheFile<br>"; 
     607                $this->sp_stripCDataTags($cacheFile); 
     608            } 
    594609            return $cacheFile; 
    595610        }   
     
    682697        } 
    683698         
     699        function sp_clearCache() 
     700        { 
     701            //echo "clearing both caches...<br>"; 
     702            $this->sp_clearIncomingFeedCache(); 
     703            $this->sp_clearFormattedOutputCache(); 
     704        } 
     705 
    684706        /* Delete the incoming feed cache files 
    685707         * @package WordPress 
     
    10111033          $configOptions['displayImages'] = $_POST['syndicatePressDisplayImages']; 
    10121034        }     
     1035        if (isset($_POST['syndicatePressStripCdataTags'])) { 
     1036          $configOptions['stripCDataTags'] = $_POST['syndicatePressStripCdataTags']; 
     1037          $this->sp_clearCache(); 
     1038        } 
    10131039        if (isset($_POST['syndicatePressAllowMarkup'])) { 
    10141040          $configOptions['allowMarkupInDescription'] = $_POST['syndicatePressAllowMarkup']; 
     
    12751301        <label for="syndicatePressDisplayImages_yes"><input type="radio" id="syndicatePressDisplayImages_yes" name="syndicatePressDisplayImages" value="true" <?php if ($configOptions['displayImages'] == "true") { _e('checked="checked"', "SyndicatePressPlugin"); }?> /> Show images.</label><br> 
    12761302        <label for="syndicatePressDisplayImages_no"><input type="radio" id="syndicatePressDisplayImages_no" name="syndicatePressDisplayImages" value="false" <?php if ($configOptions['displayImages'] == "false") { _e('checked="checked"', "SyndicatePressPlugin"); }?>/> Strip images.</label><br> 
    1277         </div><br>&nbsp;<br> 
     1303        </div><br> 
     1304        <div style="padding-left: 20px;"> 
     1305        <u>Strip CDATA XML tags:</u><br> 
     1306        <div style="padding-left: 20px;"> 
     1307        <em>If images are not being shown, even though DisplayImages=Yes and DisplayHTML=Yes, set this to Yes.  It may be that the feed publisher is placing their content within CDATA tags.  Stripping the CDATA tag delimiters might allow images through.  If not, check with the feed publisher to verify that images are being published.</em><br> 
     1308        <label for="syndicatePressStripCdataTags_yes"><input type="radio" id="syndicatePressStripCdataTags_yes" name="syndicatePressStripCdataTags" value="true" <?php if ($configOptions['stripCDataTags'] == "true") { _e('checked="checked"', "SyndicatePressPlugin"); }?> /> Strip CDATA tags.</label><br> 
     1309        <label for="syndicatePressStripCdataTags_no"><input type="radio" id="syndicatePressStripCdataTags_no" name="syndicatePressStripCdataTags" value="false" <?php if ($configOptions['stripCDataTags'] == "false") { _e('checked="checked"', "SyndicatePressPlugin"); }?>/> Allow CDATA tags.</label><br> 
     1310        </div></div><br>&nbsp;<br> 
    12781311        <b><u>Syndicate Press link:</u></b><br> 
    12791312        <div style="padding-left: 20px;"> 
Note: See TracChangeset for help on using the changeset viewer.