WordPress.org

Plugin Directory

Changeset 511917 for syndicate-press


Ignore:
Timestamp:
02/28/12 20:54:10 (2 years ago)
Author:
hranchFundi
Message:

v1.0.6
Major admin page UI refactor to use tabs.
First attempt at go-daddy style redirect follow

Location:
syndicate-press/trunk
Files:
4 added
4 edited

Legend:

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

    r475048 r511917  
    22/* 
    33File: TinyFeedParser.php 
    4 Date: 10/6/2011  
     4Date: 2/28/2012 
    55Version 1.9.3 
    6 Author: Shaun Henry, HenryRanch LLC 
     6Author: HenryRanch LLC 
    77 
    88LICENSE: 
    99============ 
    10 Copyright (c) 2009-2011, Henry Ranch LLC. All rights reserved. http://www.henryranch.net 
    11 Author email: s <at> henryranch.net 
     10Copyright (c) 2009-2012, Henry Ranch LLC. All rights reserved. http://www.henryranch.net 
     11 
    1212 
    1313TinyFeedParser is governed by the following license and is not licensed for use outside of  
    1414the SyndicatePress Wordpress plugin.  By downloading or using this software,  you 
    1515 agree to all the following:  
     16  
     17 YOU WILL NOT USE OR COPY THIS SOFTWARE OUTSIDE OF THE SYNDICATE PRESS 
     18 WORDPRESS PLUGIN. 
    1619 
    1720 THIS SOFTWARE IS PROVIDED BY HENRY RANCH LLC `AS IS' AND ANY EXPRESS 
  • syndicate-press/trunk/php/TinyHttpClient.php

    r475048 r511917  
    22/* 
    33File: TinyHttpClient.php 
    4 Date: 3/13/2010 
    5 Version 1.3.1 
    6 Author: Shaun Henry, HenryRanch LLC 
     4Date: 2/28/2012 
     5Version 1.3.2 
     6Author: HenryRanch LLC 
    77 
    88LICENSE: 
    99============ 
    10 Copyright (c) 2009-2011, Henry Ranch LLC. All rights reserved. http://www.henryranch.net 
    11 Author email: s <at> henryranch.net 
     10Copyright (c) 2009-2012, Henry Ranch LLC. All rights reserved. http://www.henryranch.net 
     11 
    1212 
    1313TinyHttpClient is governed by the following license and is not licensed for use outside of  
    1414the SyndicatePress Wordpress plugin.  By downloading or using this software,  you 
    1515 agree to all the following:  
     16  
     17 YOU WILL NOT USE OR COPY THIS SOFTWARE OUTSIDE OF THE SYNDICATE PRESS 
     18 WORDPRESS PLUGIN. 
    1619  
    1720 THIS SOFTWARE IS PROVIDED BY HENRY RANCH LLC `AS IS' AND ANY EXPRESS 
     
    159162        $numElements = count($dataArray); 
    160163        $body = ""; 
     164        $header = $dataArray[0]; 
    161165        for($i = 1; $i <= $numElements; $i++) 
    162166        { 
     
    166170        if($this->debug) 
    167171            print "<br><br>dataArray len is ".count($dataArray).".<br><br>". 
    168                 "header is:<br>".$dataArray[0]."<br><br>". 
     172                "header is:<br>".$header."<br><br>". 
    169173                "body is:<br>".$body."<br>"; 
    170                  
     174         
     175        if(strpos($header, "HTTP/1.1 301") !== false) 
     176        { 
     177            //print "Header contains move message when requesting $remoteFile<br>"; 
     178            $headerArray = explode("\r\n", $header); 
     179            $locationUrl = "not_found"; 
     180            $numElements = count($headerArray); 
     181            for($i = 0; $i < $numElements; $i++) 
     182            { 
     183                $headerLine = $headerArray[$i]; 
     184                if(strpos($headerLine, "Location:") !== false) 
     185                { 
     186                    $locationLine = explode(" ", $headerLine); 
     187                    $locationUrl = $locationLine[1]; 
     188                } 
     189            } 
     190            return "HTTP-301_MOVED_TO:".$locationUrl; 
     191        } 
    171192        if($localFilename == "") 
    172193        { 
  • syndicate-press/trunk/readme.txt

    r475053 r511917  
    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.3 
    7 Stable tag: 1.0.5 
     6Tested up to: 3.3.1 
     7Stable tag: 1.0.6 
    88 
    99Syndicate Press lets you include RSS, RDF or Atom feeds directly in your Wordpress posts, pages, widgets or theme.  
     
    4343http://henryranch.net/software/syndicate-press/syndicate-press-releases/ 
    4444 
     451.0.6: Major admin page UI refactoring to utilize tabs.  Tabs make managing the plugin much easier! 
     46Implemented first attempt at solving the go-daddy permanent redirect for rss feeds. 
     47 
    45481.0.5: Removed an extra line break after the article title and prior to the article timestamp.   
    4649Now the look of the title and timestamp is more controllable by the user.  The article title still defaults to a  
  • syndicate-press/trunk/syndicate-press-plugin.php

    r475048 r511917  
    1414LICENSE: 
    1515============ 
    16 Copyright (c) 2009-2011, Shaun Henry, Henry Ranch LLC. All rights reserved. http://www.henryranch.net 
    17 Author email: s <at> henryranch.net 
     16Copyright (c) 2009-2012 Henry Ranch LLC. All rights reserved. http://www.henryranch.net 
    1817 
    1918By downloading or using this software,  you agree to all the following:  
     
    4544  
    4645  
    47  Copyright 2009-2011  Shaun Henry, HenryRanch LLC  (email : s <at> henryranch.net) 
     46 Copyright 2009-2012  HenryRanch LLC   
    4847 
    4948    This program is free software; you can redistribute it and/or modify 
     
    6261if (!class_exists("SyndicatePressPlugin")) { 
    6362    class SyndicatePressPlugin { 
    64         var $version = "1.0.5"; 
     63        var $version = "1.0.6"; 
    6564        var $homepageURL = "http://henryranch.net/software/syndicate-press/"; 
    6665         
     
    416415                        //$tinyHttpClient->debug = true; 
    417416                        $retVal = $tinyHttpClient->getRemoteFile($host, $port, $remoteFile, $basicAuthUsernameColonPassword, $bufferSize, $mode, $fromEmail, $postData, $filename); 
     417                        if(strpos($retVal, "HTTP-301_MOVED_TO:") !== false) 
     418                        { 
     419                            //print "Received $retVal when requesting $remoteFile<br>"; 
     420                            $remoteFile = str_replace("HTTP-301_MOVED_TO:", $retVal, ""); 
     421                            $retVal = $tinyHttpClient->getRemoteFile($host, $port, $remoteFile, $basicAuthUsernameColonPassword, $bufferSize, $mode, $fromEmail, $postData, $filename); 
     422                        } 
    418423                        //print $retVal; 
    419424                    } 
     
    842847         
    843848         
    844          
    845          
     849        
    846850<div class=wrap> 
    847851<h2><a href="<?php echo $this->homepageURL; ?>" target=_blank title="Click for the Syndicate Press homepage...">Syndicate Press</a></h2> 
    848  
    849 <table border=1> 
    850 <tr> 
    851 <td valign=top> 
     852<em>Version <?php print $this->version;?></em><br> 
     853 
    852854<form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>"> 
    853855 
     
    855857 
    856858<input type="submit" name="update_SyndicatePressPluginSettings" value="<?php _e('Update Settings', 'SyndicatePressPlugin') ?>" /> 
    857  
    858 <h3>Output aggregated feed content?</h3> 
    859 <div style="padding-left: 20px;"> 
    860 <label for="syndicatePressEnable_yes"><input type="radio" id="syndicatePressEnable_yes" name="syndicatePressEnable" value="true" <?php if ($configOptions['enable'] == "true") { _e('checked="checked"', "SyndicatePressPlugin"); }?> /> Enable - show content</label><br> 
    861 <label for="syndicatePressEnable_no"><input type="radio" id="syndicatePressEnable_no" name="syndicatePressEnable" value="false" <?php if ($configOptions['enable'] == "false") { _e('checked="checked"', "SyndicatePressPlugin"); }?>/> Disable - do not show content</label> 
     859<input name="synPress-update_settings" type="hidden" value="<?php echo wp_create_nonce('synPress-update_settings'); ?>" /> 
     860 
     861 
     862<div class="tabber"> 
     863     <div class="tabbertab"> 
     864        <h2>News</h2> 
     865        <div style="padding-left: 20px;"> 
     866        <p> 
     867        <?php print $this->sp_getSPNews(); ?> 
     868        </p> 
     869        </div> 
     870     </div> 
     871     <div class="tabbertab"> 
     872        <h2>Output</h2> 
     873        <b><u>Output aggregated feed content?</u></b> 
     874        <div style="padding-left: 20px;"> 
     875        <label for="syndicatePressEnable_yes"><input type="radio" id="syndicatePressEnable_yes" name="syndicatePressEnable" value="true" <?php if ($configOptions['enable'] == "true") { _e('checked="checked"', "SyndicatePressPlugin"); }?> /> Enable - show content</label><br> 
     876        <label for="syndicatePressEnable_no"><input type="radio" id="syndicatePressEnable_no" name="syndicatePressEnable" value="false" <?php if ($configOptions['enable'] == "false") { _e('checked="checked"', "SyndicatePressPlugin"); }?>/> Disable - do not show content</label> 
     877        </div> 
     878     </div> 
     879     <div class="tabbertab"> 
     880        <h2>RSS Feeds</h2> 
     881        <b><u>List each RSS feed on a single line</u></b> 
     882        <div style="padding-left: 20px;"> 
     883        Enter a feed URL on each line<br> 
     884        Feeds without names: Simply enter 1 feed URL per line.<br> 
     885        Feeds with custom names (can be shown as the feed title).<br> 
     886        <div style="padding-left: 20px;"> 
     887        Enter 1 name/feed pair per line.  Separate the name and URL by a pipe character: |.<br> 
     888        </div> 
     889        You may mix and match feeds with names or without names.<br> 
     890        <textarea name="syndicatePressFeedUrlList" style="width: 95%; height: 200px;"><?php _e(apply_filters('format_to_edit',$configOptions['feedUrlList']), 'SyndicatePressPlugin') ?></textarea> 
     891        </div> 
     892     </div> 
     893     <div class="tabbertab"> 
     894        <h2>Filters</h2> 
     895        <b><u>Inclusive keyword filtering</u></b> 
     896        <div style="padding-left: 20px;"> 
     897        Only allow feed items that contain any of the following words.<br> 
     898        If a feed item contains one or more of the words in this list, the item <em>will</em> be displayed.<br> 
     899        <em>Inclusive filtering will be applied before the exclusive filters.</em><br> 
     900        Enter a comma separated list of keywords:<br> 
     901        <textarea name="syndicatePressInclusiveKeywordFilter" style="width: 95%; height: 50px;"><?php _e(apply_filters('format_to_edit',$configOptions['inclusiveKeywordFilter']), 'SyndicatePressPlugin') ?></textarea> 
     902        </div> 
     903        <br>&nbsp;<br> 
     904        <b><u>Exclusive keyword filtering</u></b> 
     905        <div style="padding-left: 20px;"> 
     906        Filter <em>out</em> feed items that contain any of the following words.<br> 
     907        If a feed item contains one or more of the words in this list, the item will <em>not</em> be displayed.<br> 
     908        <em>Exclusive filtering will be applied after the inclusive filters.</em><br> 
     909        Enter a comma separated list of keywords:<br> 
     910        <textarea name="syndicatePressExclusiveKeywordFilter" style="width: 95%; height: 50px;"><?php _e(apply_filters('format_to_edit',$configOptions['exclusiveKeywordFilter']), 'SyndicatePressPlugin') ?></textarea> 
     911        </div> 
     912     </div> 
     913     <div class="tabbertab"> 
     914        <h2>Cache</h2> 
     915        <b><u>Input feed caching</u></b> 
     916        <div style="padding-left: 20px;"> 
     917        <label for="syndicatePressEnableFeedCache_yes"><input type="radio" id="syndicatePressEnableFeedCache_yes" name="syndicatePressEnableFeedCache" value="true" <?php if ($configOptions['enableFeedCache'] == "true") { _e('checked="checked"', "SyndicatePressPlugin"); }?> /> Enable - Cache the incoming feeds.</label><br> 
     918        <div style="padding-left: 20px;"> 
     919        Cached feed expires after <input name="syndicatePressCacheTimeoutSeconds" size="10" value="<?php _e(apply_filters('format_to_edit',$configOptions['cacheTimeoutSeconds']), 'SyndicatePressPlugin') ?>"> seconds. (1 hour = 3600 seconds)<br> 
     920        </div> 
     921        <label for="syndicatePressEnableFeedCache_no"><input type="radio" id="syndicatePressEnableFeedCache_no" name="syndicatePressEnableFeedCache" value="false" <?php if ($configOptions['enableFeedCache'] == "false") { _e('checked="checked"', "SyndicatePressPlugin"); }?>/> Disable - Request the feed for every view of the Syndicate Press page.  <em>This is NOT recommended!</em></label><br> 
     922        Feed download mode:<br> 
     923        <div style="padding-left: 20px;"> 
     924        <label for="syndicatePressUseDownloadClient_yes"><input type="radio" id="syndicatePressUseDownloadClient_yes" name="syndicatePressUseDownloadClient" value="true" <?php if ($configOptions['useDownloadClient'] == "true") { _e('checked="checked"', "SyndicatePressPlugin"); }?> /> Use download client.  <em>Recommended when the web host disables file_get_contents() functionality.</em></label><br> 
     925        <label for="syndicatePressUseDownloadClient_no"><input type="radio" id="syndicatePressUseDownloadClient_no" name="syndicatePressUseDownloadClient" value="false" <?php if ($configOptions['useDownloadClient'] == "false") { _e('checked="checked"', "SyndicatePressPlugin"); }?>/> Use direct download.  <em>May not work on all web hosts.</em></label><br> 
     926        </div> 
     927        </div> 
     928        <br>&nbsp;<br> 
     929        <b><u>Formatted output caching</u></b> 
     930        <div style="padding-left: 20px;"> 
     931        <label for="syndicatePressEnableOutputCache_yes"><input type="radio" id="syndicatePressEnableOutputCache_yes" name="syndicatePressEnableOutputCache" value="true" <?php if ($configOptions['enableOutputCache'] == "true") { _e('checked="checked"', "SyndicatePressPlugin"); }?> /> Enable - Cache the formatted output.</label><br> 
     932        <label for="syndicatePressEnableOutputCache_no"><input type="radio" id="syndicatePressEnableOutputCache_no" name="syndicatePressEnableOutputCache" value="false" <?php if ($configOptions['enableOutputCache'] == "false") { _e('checked="checked"', "SyndicatePressPlugin"); }?>/> Disable - Parse and format the feed every time the page/post is requested.  <em>This is NOT recommended!</em></label> 
     933        </div> 
     934     </div> 
     935     <div class="tabbertab"> 
     936        <h2>Display Settings</h2> 
     937        <div style="padding-left: 20px;"> 
     938        Limit articles in a feed to <input name="syndicatePressLimitFeedItemsToDisplay" size="10" value="<?php _e(apply_filters('format_to_edit',$configOptions['limitFeedItemsToDisplay']), 'SyndicatePressPlugin') ?>"> items. (-1 to display all items in feed)<br> 
     939        Limit article to <input name="syndicatePressLimitFeedDescriptionCharsToDisplay" size="10" value="<?php _e(apply_filters('format_to_edit',$configOptions['limitFeedDescriptionCharsToDisplay']), 'SyndicatePressPlugin') ?>"> characters. (-1 to display complete article description)<br> 
     940        Limit article headline to <input name="syndicatePressMaxHeadlineLength" size="10" value="<?php _e(apply_filters('format_to_edit',$configOptions['maxHeadlineLength']), 'SyndicatePressPlugin') ?>"> characters. (-1 to display complete article headline)<br> 
     941        Show item description:<br> 
     942        <div style="padding-left: 20px;"> 
     943        <label for="syndicatePressShowContentOnlyInLinkTitle_yes"><input type="radio" id="syndicatePressShowContentOnlyInLinkTitle_yes" name="syndicatePressShowContentOnlyInLinkTitle" value="true" <?php if ($configOptions['showContentOnlyInLinkTitle'] == "true") { _e('checked="checked"', "SyndicatePressPlugin"); }?> /> only when the viewer hovers over the item link.</label><br> 
     944        <label for="syndicatePressShowContentOnlyInLinkTitle_no"><input type="radio" id="syndicatePressShowContentOnlyInLinkTitle_no" name="syndicatePressShowContentOnlyInLinkTitle" value="false" <?php if ($configOptions['showContentOnlyInLinkTitle'] == "false") { _e('checked="checked"', "SyndicatePressPlugin"); }?>/> below the item link.</label><br> 
     945        </div> 
     946        Item publication timestamp:<br> 
     947        <div style="padding-left: 20px;"> 
     948        <label for="syndicatePressshowArticlePublishTimestamp_yes"><input type="radio" id="syndicatePressshowArticlePublishTimestamp_yes" name="syndicatePressshowArticlePublishTimestamp" value="true" <?php if ($configOptions['showArticlePublishTimestamp'] == "true") { _e('checked="checked"', "SyndicatePressPlugin"); }?> /> Show timestamp.</label><br> 
     949        <label for="syndicatePressshowArticlePublishTimestamp_no"><input type="radio" id="syndicatePressshowArticlePublishTimestamp_no" name="syndicatePressshowArticlePublishTimestamp" value="false" <?php if ($configOptions['showArticlePublishTimestamp'] == "false") { _e('checked="checked"', "SyndicatePressPlugin"); }?>/> Hide timestamp.</label><br> 
     950        </div> 
     951        Display HTML formatting in article:<br> 
     952        <div style="padding-left: 20px;"> 
     953        <em>NOTE: Displaying HTML content in the articles will disable article length limitation</em><br> 
     954        <label for="syndicatePressAllowMarkup_yes"><input type="radio" id="syndicatePressAllowMarkup_yes" name="syndicatePressAllowMarkup" value="true" <?php if ($configOptions['allowMarkupInDescription'] == "true") { _e('checked="checked"', "SyndicatePressPlugin"); }?> /> Show HTML formatting.</label><br> 
     955        <label for="syndicatePressAllowMarkup_no"><input type="radio" id="syndicatePressAllowMarkup_no" name="syndicatePressAllowMarkup" value="false" <?php if ($configOptions['allowMarkupInDescription'] == "false") { _e('checked="checked"', "SyndicatePressPlugin"); }?>/> Strip HTML formatting, leaving only the article text.</label><br> 
     956        </div> 
     957        Syndicate Press link:<br> 
     958        <div style="padding-left: 20px;"> 
     959        <label for="syndicatePressShowSyndicatePressLinkback_yes"><input type="radio" id="syndicatePressShowSyndicatePressLinkback_yes" name="syndicatePressShowSyndicatePressLinkback" value="true" <?php if ($configOptions['showSyndicatePressLinkback'] == "true") { _e('checked="checked"', "SyndicatePressPlugin"); }?> /> Show 'Powered by <a href="<?php echo $this->homepageURL; ?>" target=_blank>Syndicate Press</a>' at the end of the aggregated feed content.</label><br> 
     960        <div style="padding-left: 20px;"> 
     961        <em>If you have not donated to Syndicate Press, a link back to the Syndicate Press site is requested.<br> 
     962        You may use this automated linkback, or you may place the link in the footer of your site.</em><br> 
     963        </div> 
     964        <label for="syndicatePressShowSyndicatePressLinkback_no"><input type="radio" id="syndicatePressShowSyndicatePressLinkback_no" name="syndicatePressShowSyndicatePressLinkback" value="false" <?php if ($configOptions['showSyndicatePressLinkback'] == "false") { _e('checked="checked"', "SyndicatePressPlugin"); }?>/> Do not show the Syndicate Press link.</label><br> 
     965        </div> 
     966        Processing and feed metrics:<br> 
     967        <div style="padding-left: 20px;"> 
     968        <label for="syndicatePressShowProcessingMetrics_yes"><input type="radio" id="syndicatePressShowProcessingMetrics_yes" name="syndicatePressShowProcessingMetrics" value="true" <?php if ($configOptions['showProcessingMetrics'] == "true") { _e('checked="checked"', "SyndicatePressPlugin"); }?> /> Show.</label><br> 
     969        <label for="syndicatePressShowProcessingMetrics_no"><input type="radio" id="syndicatePressShowProcessingMetrics_no" name="syndicatePressShowProcessingMetrics" value="false" <?php if ($configOptions['showProcessingMetrics'] == "false") { _e('checked="checked"', "SyndicatePressPlugin"); }?>/> Do not show.</label><br> 
     970        </div> 
     971        Feed name (title):<br> 
     972        <div style="padding-left: 20px;"> 
     973        <label for="syndicatePressUseCustomFeednameAsChannelTitle_yes"><input type="radio" id="syndicatePressUseCustomFeednameAsChannelTitle_yes" name="syndicatePressUseCustomFeednameAsChannelTitle" value="true" <?php if ($configOptions['useCustomFeednameAsChannelTitle'] == "true") { _e('checked="checked"', "SyndicatePressPlugin"); }?> /> Use custom feedname as feed title.</label><br> 
     974        <label for="syndicatePressUseCustomFeednameAsChannelTitle_no"><input type="radio" id="syndicatePressUseCustomFeednameAsChannelTitle_no" name="syndicatePressUseCustomFeednameAsChannelTitle" value="false" <?php if ($configOptions['useCustomFeednameAsChannelTitle'] == "false") { _e('checked="checked"', "SyndicatePressPlugin"); }?>/> Use publisher's title (including link and image if available).</label><br> 
     975        <div style="padding-left: 20px;"> 
     976        <label for="syndicatePressShowFeedChannelTitle_yes"><input type="radio" id="syndicatePressShowFeedChannelTitle_yes" name="syndicatePressShowFeedChannelTitle" value="true" <?php if ($configOptions['showFeedChannelTitle'] == "true") { _e('checked="checked"', "SyndicatePressPlugin"); }?> /> Show.</label><br> 
     977        <label for="syndicatePressShowFeedChannelTitle_no"><input type="radio" id="syndicatePressShowFeedChannelTitle_no" name="syndicatePressShowFeedChannelTitle" value="false" <?php if ($configOptions['showFeedChannelTitle'] == "false") { _e('checked="checked"', "SyndicatePressPlugin"); }?>/> Do not show.</label><br> 
     978        </div> 
     979        </div> 
     980        Title formatting:<br> 
     981        <div style="padding-left: 20px;"> 
     982        <em>You can use html tags to format the feed and article titles... i.e. &lt;h2&gt;title&lt;/h2&gt;</em><br> 
     983        <input name="syndicatePressFeedTitleHTMLCodePre" size="20" value="<?php _e(apply_filters('format_to_edit',$configOptions['feedTitleHTMLCodePre']), 'SyndicatePressPlugin') ?>">Feed title<input name="syndicatePressFeedTitleHTMLCodePost" size="20" value="<?php _e(apply_filters('format_to_edit',$configOptions['feedTitleHTMLCodePost']), 'SyndicatePressPlugin') ?>"><br> 
     984        <input name="syndicatePressArticleTitleHTMLCodePre" size="20" value="<?php _e(apply_filters('format_to_edit',$configOptions['articleTitleHTMLCodePre']), 'SyndicatePressPlugin') ?>">Article title<input name="syndicatePressArticleTitleHTMLCodePost" size="20" value="<?php _e(apply_filters('format_to_edit',$configOptions['articleTitleHTMLCodePost']), 'SyndicatePressPlugin') ?>"><br> 
     985        </div> 
     986        Custom feed separation code:<br> 
     987        <div style="padding-left: 20px;"> 
     988        <em>You can insert any html content between feeds (including advertising code)<br> 
     989        <div style="padding-left: 20px;"> 
     990        i.e. To insert a horizontal line: &lt;hr&gt;</em><br> 
     991        </div> 
     992        <textarea name="syndicatePressFeedSeparationHTMLCode" style="width: 95%; height: 100px;"><?php _e($this->sp_unescapeString(apply_filters('format_to_edit',$configOptions['feedSeparationHTMLCode'])), 'SyndicatePressPlugin') ?></textarea> 
     993        </div> 
     994        Custom content to show when a feed is unavailable:<br> 
     995        <div style="padding-left: 20px;"> 
     996        <em>You can insert custom html content when a feed is not available.<br> 
     997        To include the name of the unavailable feed, use {feedname} in the code below and it will be replaced with the name of the feed.<br> 
     998        To show nothing when a feed is not available, simply delete all of the content from this field.</em> 
     999        <textarea name="syndicatePressFeedNotAvailableHTMLCode" style="width: 95%; height: 100px;"><?php _e($this->sp_unescapeString(apply_filters('format_to_edit',$configOptions['feedNotAvailableHTMLCode'])), 'SyndicatePressPlugin') ?></textarea> 
     1000        </div> 
     1001     </div> 
     1002     </div> 
     1003     <div class="tabbertab"> 
     1004        <h2>Help</h2> 
     1005        <b><u>Inserting feed content into a Wordpress page or post...</u></b> 
     1006        <p> 
     1007        To insert feed contents into a Page or Post, use the following syntax:<br> 
     1008        <div style="padding-left: 20px;"> 
     1009        [sp# all] - insert all of the feeds in the feed list<br> 
     1010        [sp# feedname] - insert only the feed with the given name<br> 
     1011        [sp# feedname1,feedname2,etc...] - insert the feeds with the given names<br> 
     1012        &lt;?php sp_getFeedContent("feedname");?&gt; - inserts the feed(s) into a theme location 
     1013        </p> 
     1014        </div>         
     1015        <b><u>Inserting feed content into a Wordpress theme...</u></b> 
     1016        <div style="padding-left: 20px;"> 
     1017        <p> 
     1018        To insert feed contents into the php code of a theme:<br> 
     1019        &lt;?php sp_getFeedContent("feedname");?&gt; - inserts the feed(s) into a theme location 
     1020        </p> 
     1021        </div> 
     1022        <b><u>Credits</u></b> 
     1023        <div style="padding-left: 20px;"> 
     1024        Lightweight tab library provided by <a href="http://www.barelyfitz.com/projects/tabber/" target=_blank>tabber</a> 
     1025        </div> 
     1026        <p> 
     1027        <a href="<?php echo $this->homepageURL; ?>" target=_blank title="Click for the Syndicate Press homepage...">Help and documentation...</a><br> 
     1028        </p> 
     1029     </div>          
     1030     <div class="tabbertab"> 
     1031        <h2>Support</h2> 
     1032        <b><u>Usage Help</u></b> 
     1033        <p style="padding-left: 20px;"> 
     1034        For simple usage instructions, see the Help tab. 
     1035        </p> 
     1036        <b><u>Detailed documentation</u></b> 
     1037        <p style="padding-left: 20px;"> 
     1038        For more detailed documentation, you can visit the Syndicate Press homepage at <a href="http://henryranch.net/software/syndicate-press/" target=_blank>http://henryranch.net/software/syndicate-press/</a>. 
     1039        </p> 
     1040        <b><u>Community forum help</u></b> 
     1041        <p style="padding-left: 20px;"> 
     1042        With over 5500 installations of Syndicate Press across the world, we are starting to get a fairly active forum where you can ask questions.   
     1043        The Syndicate Press developers and testers regularly read the forum questions and respond with ideas and help.           
     1044        </p> 
     1045        <b><u>Personalized support</u></b> 
     1046        <p style="padding-left: 20px;"> 
     1047        If you would like personalized support from the Syndicate Press developers, you may contact us directly at s&nbsp;p&nbsp;[at]&nbsp;h&nbsp;e&nbsp;n&nbsp;r&nbsp;y&nbsp;r&nbsp;a&nbsp;n&nbsp;c&nbsp;h&nbsp;.&nbsp;n&nbsp;e&nbsp;t.<br> 
     1048        <i>We request a donation to Syndicate Press for personalized support.</i> 
     1049        </p> 
     1050     </div> 
     1051     <div class="tabbertab"> 
     1052        <h2>Donations</h2> 
     1053        <!--<div style='background: #ffc; border: 1px solid #333; margin: 2px; padding: 5px'>--> 
     1054        <b><u>Help support this plugin!</u></b> 
     1055        <p> 
     1056        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> 
     1057        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> 
     1058        Thank you! 
     1059        </p> 
     1060        <p align="center"> 
     1061        <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> 
     1062        <input type="hidden" name="cmd" value="_s-xclick"> 
     1063        <input type="hidden" name="hosted_button_id" value="8983567"> 
     1064        <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!"> 
     1065        <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"> 
     1066        </form> 
     1067        </p> 
     1068        <!--</div>--> 
     1069     </div> 
     1070     <div class="tabbertab"> 
     1071        <h2>Recommended reading</h2> 
     1072        <b><u>Other ways to support this plugin</u></b> 
     1073        <p> 
     1074        In addition to direct donations, you can also support Syndicate Press by following one of the Amazon book links below and buying a book. 
     1075        </p> 
     1076        <br>&nbsp<br> 
     1077        <table style="margin-left: auto; margin-right: auto"> 
     1078        <tr> 
     1079        <td style="padding: 10px;"><iframe src="http://rcm.amazon.com/e/cm?t=henrantecandl-20&o=1&p=8&l=as1&asins=0470592745&ref=qf_sp_asin_til&fc1=000000&IS2=1&lt1=_blank&m=amazon&lc1=0000FF&bc1=000000&bg1=FFFFFF&f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></td> 
     1080        <td style="padding: 10px;"><iframe src="http://rcm.amazon.com/e/cm?t=henrantecandl-20&o=1&p=8&l=as1&asins=0470937815&ref=qf_sp_asin_til&fc1=000000&IS2=1&lt1=_blank&m=amazon&lc1=0000FF&bc1=000000&bg1=FFFFFF&f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></td> 
     1081        <td style="padding: 10px;"><iframe src="http://rcm.amazon.com/e/cm?t=henrantecandl-20&o=1&p=8&l=as1&asins=0470560541&ref=qf_sp_asin_til&fc1=000000&IS2=1&lt1=_blank&m=amazon&lc1=0000FF&bc1=000000&bg1=FFFFFF&f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></td> 
     1082        <td style="padding: 10px;"><iframe src="http://rcm.amazon.com/e/cm?t=henrantecandl-20&o=1&p=8&l=as1&asins=1849514100&ref=qf_sp_asin_til&fc1=000000&IS2=1&lt1=_blank&m=amazon&lc1=0000FF&bc1=000000&bg1=FFFFFF&f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></td> 
     1083        <td style="padding: 10px;"><iframe src="http://rcm.amazon.com/e/cm?t=henrantecandl-20&o=1&p=8&l=as1&asins=B00168NGGU&ref=qf_sp_asin_til&fc1=000000&IS2=1&lt1=_blank&m=amazon&lc1=0000FF&bc1=000000&bg1=FFFFFF&f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></td> 
     1084        <td style="padding: 10px;"><iframe src="http://rcm.amazon.com/e/cm?t=henrantecandl-20&o=1&p=8&l=as1&asins=B004DNWI8W&ref=qf_sp_asin_til&fc1=000000&IS2=1&lt1=_blank&m=amazon&lc1=0000FF&bc1=000000&bg1=FFFFFF&f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></td> 
     1085        </tr> 
     1086        </table> 
     1087     </div>    
    8621088</div> 
    863  
    864 <br>&nbsp<br> 
    865 <h3>List each RSS feed on a single line</h3> 
    866 <div style="padding-left: 20px;"> 
    867 Enter a feed URL on each line<br> 
    868 Feeds without names: Simply enter 1 feed URL per line.<br> 
    869 Feeds with custom names (can be shown as the feed title).<br> 
    870 <div style="padding-left: 20px;"> 
    871 Enter 1 name/feed pair per line.  Separate the name and URL by a pipe character: |.<br> 
    872 </div> 
    873 You may mix and match feeds with names or without names.<br> 
    874 <textarea name="syndicatePressFeedUrlList" style="width: 95%; height: 200px;"><?php _e(apply_filters('format_to_edit',$configOptions['feedUrlList']), 'SyndicatePressPlugin') ?></textarea> 
    875 </div> 
    876  
    877 <br>&nbsp<br> 
    878 <h3>Inclusive keyword filtering</h3> 
    879 <div style="padding-left: 20px;"> 
    880 Only allow feed items that contain any of the following words.<br> 
    881 If a feed item contains one or more of the words in this list, the item <em>will</em> be displayed.<br> 
    882 <em>Inclusive filtering will be applied before the exclusive filters.</em><br> 
    883 Enter a comma separated list of keywords:<br> 
    884 <textarea name="syndicatePressInclusiveKeywordFilter" style="width: 95%; height: 50px;"><?php _e(apply_filters('format_to_edit',$configOptions['inclusiveKeywordFilter']), 'SyndicatePressPlugin') ?></textarea> 
    885 </div> 
    886  
    887 <br>&nbsp<br> 
    888 <h3>Exclusive keyword filtering</h3> 
    889 <div style="padding-left: 20px;"> 
    890 Filter <em>out</em> feed items that contain any of the following words.<br> 
    891 If a feed item contains one or more of the words in this list, the item will <em>not</em> be displayed.<br> 
    892 <em>Exclusive filtering will be applied after the inclusive filters.</em><br> 
    893 Enter a comma separated list of keywords:<br> 
    894 <textarea name="syndicatePressExclusiveKeywordFilter" style="width: 95%; height: 50px;"><?php _e(apply_filters('format_to_edit',$configOptions['exclusiveKeywordFilter']), 'SyndicatePressPlugin') ?></textarea> 
    895 </div> 
    896  
    897 <br>&nbsp<br> 
    898 <h3>Input feed caching</h3> 
    899 <div style="padding-left: 20px;"> 
    900 <label for="syndicatePressEnableFeedCache_yes"><input type="radio" id="syndicatePressEnableFeedCache_yes" name="syndicatePressEnableFeedCache" value="true" <?php if ($configOptions['enableFeedCache'] == "true") { _e('checked="checked"', "SyndicatePressPlugin"); }?> /> Enable - Cache the incoming feeds.</label><br> 
    901 <div style="padding-left: 20px;"> 
    902 Cached feed expires after <input name="syndicatePressCacheTimeoutSeconds" size="10" value="<?php _e(apply_filters('format_to_edit',$configOptions['cacheTimeoutSeconds']), 'SyndicatePressPlugin') ?>"> seconds. (1 hour = 3600 seconds)<br> 
    903 </div> 
    904 <label for="syndicatePressEnableFeedCache_no"><input type="radio" id="syndicatePressEnableFeedCache_no" name="syndicatePressEnableFeedCache" value="false" <?php if ($configOptions['enableFeedCache'] == "false") { _e('checked="checked"', "SyndicatePressPlugin"); }?>/> Disable - Request the feed for every view of the Syndicate Press page.  <em>This is NOT recommended!</em></label><br> 
    905 Feed download mode:<br> 
    906 <div style="padding-left: 20px;"> 
    907 <label for="syndicatePressUseDownloadClient_yes"><input type="radio" id="syndicatePressUseDownloadClient_yes" name="syndicatePressUseDownloadClient" value="true" <?php if ($configOptions['useDownloadClient'] == "true") { _e('checked="checked"', "SyndicatePressPlugin"); }?> /> Use download client.  <em>Recommended when the web host disables file_get_contents() functionality.</em></label><br> 
    908 <label for="syndicatePressUseDownloadClient_no"><input type="radio" id="syndicatePressUseDownloadClient_no" name="syndicatePressUseDownloadClient" value="false" <?php if ($configOptions['useDownloadClient'] == "false") { _e('checked="checked"', "SyndicatePressPlugin"); }?>/> Use direct download.  <em>May not work on all web hosts.</em></label><br> 
    909 </div> 
    910 </div> 
    911  
    912 <br>&nbsp<br> 
    913 <h3>Formatted output caching</h3> 
    914 <div style="padding-left: 20px;"> 
    915 <label for="syndicatePressEnableOutputCache_yes"><input type="radio" id="syndicatePressEnableOutputCache_yes" name="syndicatePressEnableOutputCache" value="true" <?php if ($configOptions['enableOutputCache'] == "true") { _e('checked="checked"', "SyndicatePressPlugin"); }?> /> Enable - Cache the formatted output.</label><br> 
    916 <label for="syndicatePressEnableOutputCache_no"><input type="radio" id="syndicatePressEnableOutputCache_no" name="syndicatePressEnableOutputCache" value="false" <?php if ($configOptions['enableOutputCache'] == "false") { _e('checked="checked"', "SyndicatePressPlugin"); }?>/> Disable - Parse and format the feed every time the page/post is requested.  <em>This is NOT recommended!</em></label> 
    917 </div> 
    918  
    919 <br>&nbsp<br> 
    920 <h3>Display</h3> 
    921 <div style="padding-left: 20px;"> 
    922 Limit articles in a feed to <input name="syndicatePressLimitFeedItemsToDisplay" size="10" value="<?php _e(apply_filters('format_to_edit',$configOptions['limitFeedItemsToDisplay']), 'SyndicatePressPlugin') ?>"> items. (-1 to display all items in feed)<br> 
    923 Limit article to <input name="syndicatePressLimitFeedDescriptionCharsToDisplay" size="10" value="<?php _e(apply_filters('format_to_edit',$configOptions['limitFeedDescriptionCharsToDisplay']), 'SyndicatePressPlugin') ?>"> characters. (-1 to display complete article description)<br> 
    924 Limit article headline to <input name="syndicatePressMaxHeadlineLength" size="10" value="<?php _e(apply_filters('format_to_edit',$configOptions['maxHeadlineLength']), 'SyndicatePressPlugin') ?>"> characters. (-1 to display complete article headline)<br> 
    925 Show item description:<br> 
    926 <div style="padding-left: 20px;"> 
    927 <label for="syndicatePressShowContentOnlyInLinkTitle_yes"><input type="radio" id="syndicatePressShowContentOnlyInLinkTitle_yes" name="syndicatePressShowContentOnlyInLinkTitle" value="true" <?php if ($configOptions['showContentOnlyInLinkTitle'] == "true") { _e('checked="checked"', "SyndicatePressPlugin"); }?> /> only when the viewer hovers over the item link.</label><br> 
    928 <label for="syndicatePressShowContentOnlyInLinkTitle_no"><input type="radio" id="syndicatePressShowContentOnlyInLinkTitle_no" name="syndicatePressShowContentOnlyInLinkTitle" value="false" <?php if ($configOptions['showContentOnlyInLinkTitle'] == "false") { _e('checked="checked"', "SyndicatePressPlugin"); }?>/> below the item link.</label><br> 
    929 </div> 
    930 Item publication timestamp:<br> 
    931 <div style="padding-left: 20px;"> 
    932 <label for="syndicatePressshowArticlePublishTimestamp_yes"><input type="radio" id="syndicatePressshowArticlePublishTimestamp_yes" name="syndicatePressshowArticlePublishTimestamp" value="true" <?php if ($configOptions['showArticlePublishTimestamp'] == "true") { _e('checked="checked"', "SyndicatePressPlugin"); }?> /> Show timestamp.</label><br> 
    933 <label for="syndicatePressshowArticlePublishTimestamp_no"><input type="radio" id="syndicatePressshowArticlePublishTimestamp_no" name="syndicatePressshowArticlePublishTimestamp" value="false" <?php if ($configOptions['showArticlePublishTimestamp'] == "false") { _e('checked="checked"', "SyndicatePressPlugin"); }?>/> Hide timestamp.</label><br> 
    934 </div> 
    935 Display HTML formatting in article:<br> 
    936 <div style="padding-left: 20px;"> 
    937 <em>NOTE: Displaying HTML content in the articles will disable article length limitation</em><br> 
    938 <label for="syndicatePressAllowMarkup_yes"><input type="radio" id="syndicatePressAllowMarkup_yes" name="syndicatePressAllowMarkup" value="true" <?php if ($configOptions['allowMarkupInDescription'] == "true") { _e('checked="checked"', "SyndicatePressPlugin"); }?> /> Show HTML formatting.</label><br> 
    939 <label for="syndicatePressAllowMarkup_no"><input type="radio" id="syndicatePressAllowMarkup_no" name="syndicatePressAllowMarkup" value="false" <?php if ($configOptions['allowMarkupInDescription'] == "false") { _e('checked="checked"', "SyndicatePressPlugin"); }?>/> Strip HTML formatting, leaving only the article text.</label><br> 
    940 </div> 
    941 Syndicate Press link:<br> 
    942 <div style="padding-left: 20px;"> 
    943 <label for="syndicatePressShowSyndicatePressLinkback_yes"><input type="radio" id="syndicatePressShowSyndicatePressLinkback_yes" name="syndicatePressShowSyndicatePressLinkback" value="true" <?php if ($configOptions['showSyndicatePressLinkback'] == "true") { _e('checked="checked"', "SyndicatePressPlugin"); }?> /> Show 'Powered by <a href="<?php echo $this->homepageURL; ?>" target=_blank>Syndicate Press</a>' at the end of the aggregated feed content.</label><br> 
    944 <div style="padding-left: 20px;"> 
    945 <em>If you have not donated to Syndicate Press, a link back to the Syndicate Press site is requested.<br> 
    946 You may use this automated linkback, or you may place the link in the footer of your site.</em><br> 
    947 </div> 
    948 <label for="syndicatePressShowSyndicatePressLinkback_no"><input type="radio" id="syndicatePressShowSyndicatePressLinkback_no" name="syndicatePressShowSyndicatePressLinkback" value="false" <?php if ($configOptions['showSyndicatePressLinkback'] == "false") { _e('checked="checked"', "SyndicatePressPlugin"); }?>/> Do not show the Syndicate Press link.</label><br> 
    949 </div> 
    950 Processing and feed metrics:<br> 
    951 <div style="padding-left: 20px;"> 
    952 <label for="syndicatePressShowProcessingMetrics_yes"><input type="radio" id="syndicatePressShowProcessingMetrics_yes" name="syndicatePressShowProcessingMetrics" value="true" <?php if ($configOptions['showProcessingMetrics'] == "true") { _e('checked="checked"', "SyndicatePressPlugin"); }?> /> Show.</label><br> 
    953 <label for="syndicatePressShowProcessingMetrics_no"><input type="radio" id="syndicatePressShowProcessingMetrics_no" name="syndicatePressShowProcessingMetrics" value="false" <?php if ($configOptions['showProcessingMetrics'] == "false") { _e('checked="checked"', "SyndicatePressPlugin"); }?>/> Do not show.</label><br> 
    954 </div> 
    955 Feed name (title):<br> 
    956 <div style="padding-left: 20px;"> 
    957 <label for="syndicatePressUseCustomFeednameAsChannelTitle_yes"><input type="radio" id="syndicatePressUseCustomFeednameAsChannelTitle_yes" name="syndicatePressUseCustomFeednameAsChannelTitle" value="true" <?php if ($configOptions['useCustomFeednameAsChannelTitle'] == "true") { _e('checked="checked"', "SyndicatePressPlugin"); }?> /> Use custom feedname as feed title.</label><br> 
    958 <label for="syndicatePressUseCustomFeednameAsChannelTitle_no"><input type="radio" id="syndicatePressUseCustomFeednameAsChannelTitle_no" name="syndicatePressUseCustomFeednameAsChannelTitle" value="false" <?php if ($configOptions['useCustomFeednameAsChannelTitle'] == "false") { _e('checked="checked"', "SyndicatePressPlugin"); }?>/> Use publisher's title (including link and image if available).</label><br> 
    959 <div style="padding-left: 20px;"> 
    960 <label for="syndicatePressShowFeedChannelTitle_yes"><input type="radio" id="syndicatePressShowFeedChannelTitle_yes" name="syndicatePressShowFeedChannelTitle" value="true" <?php if ($configOptions['showFeedChannelTitle'] == "true") { _e('checked="checked"', "SyndicatePressPlugin"); }?> /> Show.</label><br> 
    961 <label for="syndicatePressShowFeedChannelTitle_no"><input type="radio" id="syndicatePressShowFeedChannelTitle_no" name="syndicatePressShowFeedChannelTitle" value="false" <?php if ($configOptions['showFeedChannelTitle'] == "false") { _e('checked="checked"', "SyndicatePressPlugin"); }?>/> Do not show.</label><br> 
    962 </div> 
    963 </div> 
    964 Title formatting:<br> 
    965 <div style="padding-left: 20px;"> 
    966 <em>You can use html tags to format the feed and article titles... i.e. &lt;h2&gt;title&lt;/h2&gt;</em><br> 
    967 <input name="syndicatePressFeedTitleHTMLCodePre" size="20" value="<?php _e(apply_filters('format_to_edit',$configOptions['feedTitleHTMLCodePre']), 'SyndicatePressPlugin') ?>">Feed title<input name="syndicatePressFeedTitleHTMLCodePost" size="20" value="<?php _e(apply_filters('format_to_edit',$configOptions['feedTitleHTMLCodePost']), 'SyndicatePressPlugin') ?>"><br> 
    968 <input name="syndicatePressArticleTitleHTMLCodePre" size="20" value="<?php _e(apply_filters('format_to_edit',$configOptions['articleTitleHTMLCodePre']), 'SyndicatePressPlugin') ?>">Article title<input name="syndicatePressArticleTitleHTMLCodePost" size="20" value="<?php _e(apply_filters('format_to_edit',$configOptions['articleTitleHTMLCodePost']), 'SyndicatePressPlugin') ?>"><br> 
    969 </div> 
    970 Custom feed separation code:<br> 
    971 <div style="padding-left: 20px;"> 
    972 <em>You can insert any html content between feeds (including advertising code)<br> 
    973 <div style="padding-left: 20px;"> 
    974 i.e. To insert a horizontal line: &lt;hr&gt;</em><br> 
    975 </div> 
    976 <textarea name="syndicatePressFeedSeparationHTMLCode" style="width: 95%; height: 100px;"><?php _e($this->sp_unescapeString(apply_filters('format_to_edit',$configOptions['feedSeparationHTMLCode'])), 'SyndicatePressPlugin') ?></textarea> 
    977 </div> 
    978 Custom content to show when a feed is unavailable:<br> 
    979 <div style="padding-left: 20px;"> 
    980 <em>You can insert custom html content when a feed is not available.<br> 
    981 To include the name of the unavailable feed, use {feedname} in the code below and it will be replaced with the name of the feed.<br> 
    982 To show nothing when a feed is not available, simply delete all of the content from this field.</em> 
    983 <div style="padding-left: 20px;"> 
    984 </div> 
    985 <textarea name="syndicatePressFeedNotAvailableHTMLCode" style="width: 95%; height: 100px;"><?php _e($this->sp_unescapeString(apply_filters('format_to_edit',$configOptions['feedNotAvailableHTMLCode'])), 'SyndicatePressPlugin') ?></textarea> 
    986 </div> 
    987 </div> 
    988 </div> 
    989  
    990 <input name="synPress-update_settings" type="hidden" value="<?php echo wp_create_nonce('synPress-update_settings'); ?>" /> 
    991 <div class="submit"> 
     1089</form> 
     1090 
    9921091<table> 
    993 <tr><td> 
    994 <input type="submit" name="update_SyndicatePressPluginSettings" value="<?php _e('Update Settings', 'SyndicatePressPlugin') ?>" /> 
    995 </form> 
    996 </td><td></td></tr> 
    9971092<tr><td>&nbsp;</td><td>&nbsp;</td></tr> 
    9981093<tr><td> 
     
    10101105</table> 
    10111106</div> 
    1012  
    1013 <br>&nbsp<br> 
    1014 <h3>Quick Start...</h3> 
    1015 To insert feed contents into a Page or Post, use the following syntax:<br> 
    1016 <div style="padding-left: 20px;"> 
    1017 [sp# all] - insert all of the feeds in the feed list<br> 
    1018 [sp# feedname] - insert only the feed with the given name<br> 
    1019 [sp# feedname1,feedname2,etc...] - insert the feeds with the given names<br> 
    1020 &lt;?php sp_getFeedContent("feedname");?&gt; - inserts the feed(s) into a theme location<br> 
    1021 </div> 
    1022 <a href="<?php echo $this->homepageURL; ?>" target=_blank title="Click for the Syndicate Press homepage...">Help and documentation...</a><br> 
    1023  
    1024  
    1025 <br>&nbsp<br> 
    1026 <em>Version <?php print $this->version;?></em> 
    10271107</td> 
    10281108 
    1029 <!-- right side content --> 
    1030 <td valign=top width=30%> 
    1031 <div style='background: #ffc; border: 1px solid #333; margin: 2px; padding: 5px'> 
    1032 <h3 style="text-align:center">Help support this plugin!</h3> 
    1033 <p> 
    1034 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> 
    1035 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> 
    1036 Thank you! 
    1037 </p> 
    1038 <p align="center"> 
    1039 <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> 
    1040 <input type="hidden" name="cmd" value="_s-xclick"> 
    1041 <input type="hidden" name="hosted_button_id" value="8983567"> 
    1042 <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!"> 
    1043 <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"> 
    1044 </form> 
    1045 </p> 
    1046 </div> 
    1047  
    1048 <br>&nbsp<br> 
    1049 <div style='background: #ffc; border: 1px solid #333; margin: 2px; padding: 5px'> 
    1050 <h3 style="text-align:center">Syndicate Press news</h3> 
    1051 <p> 
    1052 <?php print $this->sp_getSPNews(); ?> 
    1053 </p> 
    1054 </div> 
    1055  
    1056 <br>&nbsp<br> 
    1057 <div style='background: #ffc; border: 1px solid #333; margin: 2px; padding: 5px'> 
    1058 <h3 style="text-align:center">Other ways to support this plugin</h3> 
    1059 <p> 
    1060 In addition to direct donations, you can also support Syndicate Press by following one of the Amazon book links below and buying a book. 
    1061 </p> 
    1062 <p align="center"> 
    1063  
    1064 <br>&nbsp<br> 
    1065 <table style="margin-left: auto; margin-right: auto"> 
    1066 <tr> 
    1067 <td style="padding: 10px;"><iframe src="http://rcm.amazon.com/e/cm?t=henrantecandl-20&o=1&p=8&l=as1&asins=0470592745&ref=qf_sp_asin_til&fc1=000000&IS2=1&lt1=_blank&m=amazon&lc1=0000FF&bc1=000000&bg1=FFFFFF&f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></td> 
    1068 <td style="padding: 10px;"><iframe src="http://rcm.amazon.com/e/cm?t=henrantecandl-20&o=1&p=8&l=as1&asins=0470937815&ref=qf_sp_asin_til&fc1=000000&IS2=1&lt1=_blank&m=amazon&lc1=0000FF&bc1=000000&bg1=FFFFFF&f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></td> 
    1069 </tr> 
    1070 <tr> 
    1071 <td style="padding: 10px;"><iframe src="http://rcm.amazon.com/e/cm?t=henrantecandl-20&o=1&p=8&l=as1&asins=0470560541&ref=qf_sp_asin_til&fc1=000000&IS2=1&lt1=_blank&m=amazon&lc1=0000FF&bc1=000000&bg1=FFFFFF&f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></td> 
    1072 <td style="padding: 10px;"><iframe src="http://rcm.amazon.com/e/cm?t=henrantecandl-20&o=1&p=8&l=as1&asins=1849514100&ref=qf_sp_asin_til&fc1=000000&IS2=1&lt1=_blank&m=amazon&lc1=0000FF&bc1=000000&bg1=FFFFFF&f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe> 
    1073 </td> 
    1074 </tr> 
    1075 <tr> 
    1076 <td style="padding: 10px;"><iframe src="http://rcm.amazon.com/e/cm?t=henrantecandl-20&o=1&p=8&l=as1&asins=B00168NGGU&ref=qf_sp_asin_til&fc1=000000&IS2=1&lt1=_blank&m=amazon&lc1=0000FF&bc1=000000&bg1=FFFFFF&f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></td> 
    1077 <td style="padding: 10px;"><iframe src="http://rcm.amazon.com/e/cm?t=henrantecandl-20&o=1&p=8&l=as1&asins=B004DNWI8W&ref=qf_sp_asin_til&fc1=000000&IS2=1&lt1=_blank&m=amazon&lc1=0000FF&bc1=000000&bg1=FFFFFF&f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></td> 
    1078 </tr> 
    1079 </table> 
    1080  
    1081 </p> 
    1082 </div> 
    1083  
    1084 </td> 
    1085 </tr> 
    1086 </table> 
    10871109 
    10881110 </div> 
     
    11031125    function SyndicatePressPlugin_ap() { 
    11041126        global $syndicatePressPluginObjectRef; 
     1127        global $adminPageHook; 
    11051128        if (!isset($syndicatePressPluginObjectRef)) { 
    11061129            return; 
    11071130        } 
    11081131        if (function_exists('add_options_page')) { 
    1109             add_options_page('Syndicate Press', 'Syndicate Press', 9, basename(__FILE__), array(&$syndicatePressPluginObjectRef, 'sp_printAdminPage')); 
     1132            $adminPageHook = add_options_page('Syndicate Press', 'Syndicate Press', 9, basename(__FILE__), array(&$syndicatePressPluginObjectRef, 'sp_printAdminPage')); 
     1133            add_action( 'admin_enqueue_scripts', 'my_admin_enqueue_scripts' ); 
    11101134        } 
    11111135    }    
     
    11171141    add_action('admin_menu', 'SyndicatePressPlugin_ap'); 
    11181142    add_action('activate_syndicatePress-plugin/syndicatePress-plugin.php',  array(&$syndicatePressPluginObjectRef, 'init')); 
     1143         
    11191144    //Filter... 
    11201145    add_filter('the_content', array(&$syndicatePressPluginObjectRef,'sp_ContentFilter'));  
     1146} 
     1147 
     1148function my_admin_enqueue_scripts($hook_suffix) { 
     1149    global $adminPageHook; 
     1150    if ( $adminPageHook == $hook_suffix ) 
     1151    { 
     1152        wp_enqueue_style('sp_printAdminPage_TAB', plugins_url('syndicate-press/css/tabber.css'), false, '2.50', false); 
     1153        wp_enqueue_script('sp_printAdminPage_TAB', plugins_url('syndicate-press/js/tabber-minimized.js'), false, '2.50', false); 
     1154    }         
    11211155} 
    11221156 
Note: See TracChangeset for help on using the changeset viewer.