WordPress.org

Plugin Directory

Changeset 574403 for syndicate-press


Ignore:
Timestamp:
07/19/12 05:31:41 (21 months ago)
Author:
hranchFundi
Message:

v1.0.17
Added new nofollow SEO control
Fixed donation links

Location:
syndicate-press/trunk
Files:
3 edited

Legend:

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

    r565228 r574403  
    22/* 
    33File: TinyFeedParser.php 
    4 Date: 6/25/2012 
    5 Version 1.9.5 
     4Date: 7/18/2012 
     5Version 1.9.6 
    66Author: HenryRanch LLC 
    77 
     
    7676    var $allowImagesInDescription = 'false'; 
    7777    var $allowMarkupInDescription = 'false'; 
     78     
     79    var $addNoFollowTag = 'true'; 
    7880     
    7981    var $showContentOnlyInLinkTitle = false; 
     
    463465            if($urlLink != "" && $urlLink != 'NO_LINK') 
    464466            { 
    465                 $text .= " <a href=\"$urlLink\" target=\"_blank\" title=\"Open article in a new window\">...</a>"; 
     467                $text .= " <a href=\"$urlLink\" target=\"_blank\" title=\"Open article in a new window\"";               
     468                if($this->addNoFollowTag == 'true') 
     469                { 
     470                    $text .= ' rel="nofollow"'; 
     471                } 
     472                $text .= ">...</a>"; 
    466473            } 
    467474            else 
     
    557564            if($article->image) 
    558565            { 
    559                 $html .= '<a href="'.$article->image->link.'"><img src="'.$article->image->url.'"></a>';//."\r\n";      
     566                $html .= '<a href="'.$article->image->link.'"'; 
     567                if($this->addNoFollowTag == 'true') 
     568                { 
     569                    $html .= ' rel="nofollow"'; 
     570                } 
     571                $html .= '><img src="'.$article->image->url.'"></a>';//."\r\n";      
    560572            } 
    561573            $html .= $headerHtmlPre; 
     
    573585                $html .= 'title="Click to read article..."'; 
    574586            } 
     587            if($this->addNoFollowTag == 'true') 
     588            { 
     589                $html .= ' rel="nofollow"'; 
     590            } 
    575591            $html .= ' target=_blank>'.$article->title.'</a>'.$headerHtmlPost."\r\n"; 
    576592            if($article->subtitle != '') 
  • syndicate-press/trunk/readme.txt

    r565228 r574403  
    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 
    7 Stable tag: 1.0.16 
     6Tested up to: 3.4.1 
     7Stable tag: 1.0.17 
    88 
    99Syndicate Press lets you include RSS, RDF or Atom feeds directly in your Wordpress posts, pages, widgets or theme.  
     
    4747 
    4848http://henryranch.net/software/syndicate-press/syndicate-press-releases/ 
     49 
     501.0.17: New feature release<br> 
     51Added new SEO feature which allows the admin to add the rel=nofollow tag to the article links. 
    4952 
    50531.0.16: New feature release and bug fixes<br> 
  • syndicate-press/trunk/syndicate-press-plugin.php

    r565228 r574403  
    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.16 
     7Version: 1.0.17 
    88Author URI: http://henryranch.net/ 
    99License: GPL2 
     
    6161if (!class_exists("SyndicatePressPlugin")) { 
    6262    class SyndicatePressPlugin { 
    63         var $version = "1.0.16"; 
     63        var $version = "1.0.17"; 
    6464        var $homepageURL = "http://henryranch.net/software/syndicate-press/"; 
    6565         
     
    102102            'articleTitleHTMLCodePost' => '</h3>', 
    103103            'feedSeparationHTMLCode' => '<hr>', 
     104            'addNoFollowTag' => 'true', 
    104105            'feedNotAvailableHTMLCode' => 'Sorry, the {feedname} feed is not available at this time.' 
    105106            ); 
     
    668669                $parser->showArticlePublishTimestamp = $configOptions['showArticlePublishTimestamp']; 
    669670                $parser->allowMarkupInDescription = $configOptions['allowMarkupInDescription']; 
     671                $parser->addNoFollowTag = $configOptions['addNoFollowTag']; 
    670672                if($configOptions['timestampFormat']  != '') 
    671673                { 
     
    881883                if (isset($_POST['syndicatePressShowContentOnlyInLinkTitle'])) { 
    882884                    $configOptions['showContentOnlyInLinkTitle'] = $_POST['syndicatePressShowContentOnlyInLinkTitle']; 
    883                 }    
     885                }        
     886                if (isset($_POST['syndicatePressAddNoFollowTag'])) { 
     887                    $configOptions['addNoFollowTag'] = $_POST['syndicatePressAddNoFollowTag']; 
     888                } 
    884889                if (isset($_POST['syndicatePressShowSyndicatePressLinkback'])) { 
    885890                    $configOptions['showSyndicatePressLinkback'] = $_POST['syndicatePressShowSyndicatePressLinkback']; 
     
    983988<table> 
    984989<tr><td>&nbsp;</td><td>&nbsp;</td></tr> 
    985 <tr><td> 
     990<tr> 
     991<td> 
     992<form action="https://www.paypal.com/cgi-bin/webscr" method="post"> 
     993<input type="hidden" name="cmd" value="_s-xclick"> 
     994<input type="hidden" name="hosted_button_id" value="WNRCV8LST3ALA"> 
     995<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> 
     996<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"> 
     997</form> 
     998</td> 
     999<td> 
    9861000<form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>"> 
    9871001<input name="synPress-clearInputFeedCache" type="hidden" value="<?php echo wp_create_nonce('synPress-clearInputFeedCache'); ?>" /> 
     
    9991013<input type="submit" name="update_SyndicatePressPluginSettings" value="<?php _e('Update Settings', 'SyndicatePressPlugin') ?>" /> 
    10001014<input name="synPress-update_settings" type="hidden" value="<?php echo wp_create_nonce('synPress-update_settings'); ?>" /> 
     1015<!--  Must leave this form element open, because it is the form across all the tabs--> 
    10011016</td> 
    10021017</tr> 
     
    11601175        </div> 
    11611176     </div> 
     1177     <div class="tabbertab"> 
     1178        <h2>SEO</h2> 
     1179        <b><u>No-follow directive:</u></b><br> 
     1180        <div style="padding-left: 20px;"> 
     1181        <label for="syndicatePressAddNoFollowTag_yes"><input type="radio" id="syndicatePressAddNoFollowTag_yes" name="syndicatePressAddNoFollowTag" value="true" <?php if ($configOptions['addNoFollowTag'] == "true") { _e('checked="checked"', "SyndicatePressPlugin"); }?> /> Add no-follow tag to article URL's.</label><br> 
     1182        <label for="syndicatePressAddNoFollowTag_no"><input type="radio" id="syndicatePressAddNoFollowTag_no" name="syndicatePressAddNoFollowTag" value="false" <?php if ($configOptions['addNoFollowTag'] == "false") { _e('checked="checked"', "SyndicatePressPlugin"); }?>/> Do not add the no-follow tag to URL's.</label><br> 
     1183        </div> 
     1184    </div> 
     1185</form> 
    11621186     <div class="tabbertab"> 
    11631187        <h2>Help</h2> 
     
    12251249        <p> 
    12261250        A donation is a great way to show your support for this plugin.  Donations help offset the cost of maintenance, development and hosting.<br><br> 
    1227         There is no minimum donation amount.  If you like this plugin and find that it has saved you time or effort, you can be the judge of how much that is worth to you.<br><br> 
     1251        Donations also help keep the developer motivated to add new features.  :-)<br><br> 
     1252        There is no minimum donation amount.  If you like this plugin and find that it has saved you time or effort, you can be the judge of how much that is worth to you.<br><br> 
    12281253        Thank you! 
    12291254        </p> 
    12301255        <p align="center"> 
    12311256        <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> 
    1232         <input type="hidden" name="cmd" value="_s-xclick"> 
    1233         <input type="hidden" name="hosted_button_id" value="8983567"> 
    1234         <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> 
    1235         <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"> 
    1236         </form> 
     1257        <input type="hidden" name="cmd" value="_s-xclick"> 
     1258        <input type="hidden" name="hosted_button_id" value="G3XU76VEAWT4Y"> 
     1259        <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> 
     1260        <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"> 
     1261        </form> 
     1262        <br>Donations are securely processed by Paypal.<br> 
    12371263        </p> 
    12381264        <!--</div>--> 
     
    12571283     </div>    
    12581284</div> 
    1259 </form> 
    12601285 
    12611286</div> 
    1262  
    12631287 
    12641288 </div> 
Note: See TracChangeset for help on using the changeset viewer.