Plugin Directory

Changeset 789608


Ignore:
Timestamp:
10/18/2013 04:14:29 AM (12 years ago)
Author:
hranchFundi
Message:

v1.0.28

  • article lightbox
  • admin panel arrangement
  • warnings cleanup
  • bug fixes
Location:
syndicate-press/trunk
Files:
1 added
3 edited

Legend:

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

    r752708 r789608  
    22/*
    33File: TinyFeedParser.php
    4 Date: 5/15/2013
    5 Version 1.9.12
     4Date: 9/16/2013
     5Version 1.9.13
    66Author: HenryRanch LLC
    77
     
    109109    var $articleTitleHTMLCodePre = '<h3>';
    110110    var $articleTitleHTMLCodePost = '</h3>';
    111     var $articleBodyHTMLCodePre = '<div>';
     111    var $articleBodyHTMLCodePre = '<div name="bodyHtmlCodePre">';
    112112    var $articleBodyHTMLCodePost = '</div>';
    113113    var $articleTimestampHTMLCodePre = '<i>';
     
    121121    var $articleSubtitleHTMLCodePre = '<i>';
    122122    var $articleSubtitleHTMLCodePost = '</i>';
    123     var $articleImageHTMLCodePre = '<div><br>';
     123    var $articleImageHTMLCodePre = '<div name="imgHtmlCodePre"><br>';
    124124    var $articleImageHTMLCodePost ='</div>';
    125125
     
    131131    var $truncateTitleAtWord = '';
    132132    var $replaceStringInTitle = '';
     133    var $openArticleInLightbox = false;
     134    var $lightboxHTMLCode = '';//"\r\n<div id=\"lightbox-external\" class=\"lightbox_content\">\r\n<a href=\"javascript:void(0)\" onclick=\"document.getElementById('lightbox-external').style.display='none';document.getElementById('body').style.display='none'\" title=\"click to close the lightbox\">X</a><br>\r\n<iframe id=\"external-content-iframe\" name=\"external-content-iframe\" frameborder=0 width=\"100%\" height=\"400\">Hello world!</iframe>\r\n</div><!-- end div lightbox-external-->\r\n";
    133135   
    134136    function TinyFeedParser()
     
    632634    function getJS()
    633635    {
    634         return '<script language="javascript">'.
    635                'function toggle(elementId) {'.
    636                'var ele = document.getElementById(elementId);'.
    637                'var text = document.getElementById("displayText");'.
    638                'if(ele.style.display == "block") {'.
    639                'ele.style.display = "none";'.
    640                //'text.innerHTML = "show";'.
    641                '}'.
    642                'else {'.
    643                'ele.style.display = "block";'.
    644                //'text.innerHTML = "hide";'.
    645                '}'.
     636        return '<script language="javascript" type="text/javascript">'.
     637               'function toggle(elementId) '.
     638               '{'.
     639               '  var ele = document.getElementById(elementId);'.
     640               '  var text = document.getElementById("displayText");'.
     641               '  if(ele.style.display == "block")'.
     642               '  {'.
     643               '    ele.style.display = "none";'.
     644               '  }'.
     645               '  else '.
     646               '  {'.
     647               '    ele.style.display = "block";'.
     648               '  }'.
    646649               '} '.
     650               'function loadLightbox(elementId, url) {'.           
     651               '  var request = new XMLHttpRequest();'.
     652               '  request.open("GET", url, false);'.
     653               '  request.send(null);'.
     654               '  var content = request.responseText;'.
     655               '  document.getElementById(elementId).innerHTML = content;'.
     656               '}'.                           
    647657               '</script>';
    648658    }
     659   
    649660
    650661    function getHtml()
     
    655666        {
    656667            $html .= $this->getJS();
     668        }
     669               
     670        if($this->openArticleInLightbox == 'true')
     671        {
     672            $html .= $this->getJS();
     673            $html .= $this->lightboxHTMLCode;
    657674        }
    658675
     
    673690                {
    674691                    $hiddenDivId = 'hiddenArticleDiv-'.rand().'-feedIndex-'.$this->feedIndex;
    675                     $html .= "<br><div id=\"showHideArticlesControlDiv\"><a id=\"displayText\" href=\"javascript:toggle('".$hiddenDivId."');\">Show / Hide more articles from this feed.</a><br></div>";
    676                     $html .= "<div id=\"".$hiddenDivId."\" style=\"display: none\">\r\n";
     692                    $html .= "<br>\r\n<div id=\"showHideArticlesControlDiv\"><a id=\"displayText\" href=\"javascript:toggle('".$hiddenDivId."');\">Show / Hide more articles from this feed.</a><br></div><!-- end div showHideArticlesControlDiv-->";
     693                    $html .= "\r\n<div id=\"".$hiddenDivId."\" style=\"display: none\">\r\n";
    677694                }
    678695                $headerHtmlPre = $this->articleTitleHTMLCodePre;
     
    692709                }
    693710            }
    694             $html .= "<div id=\"itemDiv-feed-".$this->feedIndex.'-article-'.($currentArticleIndex-1)."\"><!-- Article GUID: ".$article->guid."-->\r\n";
     711            $html .= "\r\n<div id=\"itemDiv-feed-".$this->feedIndex.'-article-'.($currentArticleIndex-1)."\"><!-- Article GUID: ".$article->guid."-->\r\n";
    695712           
    696713            $html .= $headerHtmlPre;
    697             $html .= '<a href="'.$article->link.'" ';
    698             if($this->showContentOnlyInLinkTitle == 'true')
    699             {
    700                 $html .= 'title="'.$article->description.'  Click to read the full article..."';
    701                 if($article->description == '')
    702                 {
    703                     continue;
    704                 }
    705             }
    706             else
    707             {
    708                 $html .= 'title="Click to read article..."';
    709             }
    710             if($this->addNoFollowTag == 'true')
    711             {
    712                $html .= ' rel="nofollow"';
    713             }
    714             $html .= ' target=_blank>'.$article->title.'</a>'.$headerHtmlPost."\r\n";
     714
     715
     716            if($this->openArticleInLightbox == 'true')
     717            {
     718                $html .= ' <a href="javascript:void(0)" onclick="document.getElementById(\'external-content-iframe\').src=\''.$article->link.
     719                      '\';document.getElementById(\'lightbox-external\').style.display=\'block\';document.getElementById(\'main\').style.display=\'block\';">'.$article->title.'</a>'."\r\n";
     720            }           
     721                else
     722                {           
     723                $html .= '<a href="'.$article->link.'" ';
     724                if($this->showContentOnlyInLinkTitle == 'true')
     725                {
     726                    $html .= 'title="'.$article->description.'  Click to read the full article..."';
     727                    if($article->description == '')
     728                    {
     729                      continue;
     730                }
     731                }
     732                else
     733                {
     734                    $html .= 'title="Click to read article..."';
     735                }
     736                if($this->addNoFollowTag == 'true')
     737                {
     738                    $html .= ' rel="nofollow"';
     739                }
     740                $html .= ' target=_blank>'.$article->title.'</a>';
     741                }
     742                $html .= $headerHtmlPost."\r\n";           
     743           
    715744            if($article->subtitle != '')
    716745            {
    717                 //$html = $this->addBrIfNeeded($html);
    718746                $html .= $this->articleSubtitleHTMLCodePre.$article->subtitle.$this->articleSubtitleHTMLCodePost."\r\n";
    719747            }
     
    722750                if($article->pubDateStr)
    723751                {
    724                     //$html = $this->addBrIfNeeded($html);
    725752                    if($this->useCustomTimestampFormat)
    726753                    {
     
    734761                else
    735762                {
    736                     //$html = $this->addBrIfNeeded($html);
    737763                    $html .= $this->articleTimestampHTMLCodePre.'No timestamp info...'.$this->articleTimestampHTMLCodePost."\r\n";
    738764                }
     
    741767            if($article->copyright)
    742768            {
    743                 //$html = $this->addBrIfNeeded($html);
    744769                $html .= $this->articleCopyrightHTMLCodePre.$article->copyright.$this->articleCopyrightHTMLCodePost."\r\n";
    745770            }
    746771            if($article->author)
    747772            {
    748                 //$html = $this->addBrIfNeeded($html);
    749773                $html .= $this->articleAuthorHTMLCodePre.$article->author.$this->articleAuthorHTMLCodePost."\r\n";
    750774            }           
    751775            if($article->price)
    752776            {
    753                 //$html = $this->addBrIfNeeded($html);
    754777                $html .= $this->articlePriceHTMLCodePre.$article->price.$this->articlePriceHTMLCodePost."\r\n";
    755778            }
     
    781804            }
    782805
    783             //$html = $this->addBrIfNeeded($html);
    784806            if(($this->showContentOnlyInLinkTitle == 'false'))
    785807            {
     
    805827                $html .= '<font size=-4>Last feed update: '.$this->feedUpdateTime.'</font>'."\r\n";
    806828            }
    807             $html .= "</div>\r\n";
    808         }
    809         if($this->hideArticlesAfterArticleNumber > 1)
    810         {
    811             $html .= "</div>\r\n";
     829            $html .= "\r\n</div><!-- end div itemDiv-feed-".$this->feedIndex.'-article-'.($currentArticleIndex-1)."-->\r\n";
     830        }
     831        if(($this->hideArticlesAfterArticleNumber > 1)  && (($currentArticleIndex - 2) >= $this->hideArticlesAfterArticleNumber))
     832        {
     833            $html .= "\r\n</div><!-- end div hidearticles - $hiddenDivId -->\r\n";
    812834        }
    813835        return $html;
  • syndicate-press/trunk/readme.txt

    r752708 r789608  
    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.5.1
    7 Stable tag: 1.0.27
     6Tested up to: 3.6.1
     7Stable tag: 1.0.28
    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
     50v1.0.28: Lightbox popup for article links
     51- Added new lightbox feature with tab on SP Admin Control Panel
     52- Fixed issue with 'hide articles after X number of articles' where styling was off and content would jump out of theme div's.
     53- Cleaned up some dead code from the parser
     54- Re-arranged the Donations tab to highlight the donors website link
     55- Cleaned up some warnings visible in php/wordpress debug mode related to uninitialized vars.
    4956
    5057v1.0.27: Custom shortcode parameter: replaceStringInTitle
  • syndicate-press/trunk/syndicate-press-plugin.php

    r752708 r789608  
    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.27
     7Version: 1.0.28
    88Author URI: http://syndicatepress.henryranch.net/
    99License: GPL2
     
    6464if (!class_exists("SyndicatePressPlugin")) {
    6565  class SyndicatePressPlugin {
    66         var $version = "1.0.27";
     66        var $version = "1.0.28";
    6767        var $homepageURL = "http://syndicatepress.henryranch.net/";
    6868       
     
    122122            'feedSeparationHTMLCode' => '<hr>',
    123123            'addNoFollowTag' => 'true',
     124            'openArticleInLightbox' => 'false',           
     125            'lightboxHTMLCode' => "<div id=\"lightbox-external\" class=\"lightbox_content\">\r\n".
     126                                     "<a href=\"javascript:void(0)\" onclick=\"document.getElementById('lightbox-external').style.display='none';document.getElementById('body').style.display='none'\" title=\"click to close the lightbox\">X</a><br>\r\n".
     127                                    "<iframe id=\"external-content-iframe\" name=\"external-content-iframe\" frameborder=0 width=\"100%\" height=\"400\">Hello world!</iframe>\r\n".
     128                                     "</div>\r\n",
    124129            'feedNotAvailableHTMLCode' => 'Sorry, the {feedname} feed is not available at this time.'
    125130            );
     
    189194            try
    190195            {
     196                 $permissionString = '';
    191197                $filePermissions = @fileperms($filepath);
    192198                // Owner
     
    486492            $inputCacheDirPerm = $this->sp_getFilePermissions($inputCacheDir);
    487493            $outputCacheDirPerm = $this->sp_getFilePermissions($outputCacheDir);
     494            $permProblem = '';
    488495            if($mainCacheDirPerm != "rwxr-xr-x" && $mainCacheDirPerm != "---------")
    489496            {
     
    672679        function sp_writeFile($fileName, $content)
    673680        {
     681                //echo "writing to file $fileName : <br> $content<br>";
    674682            $fp = fopen($fileName, 'w');
    675683            fwrite($fp, $content);
    676684            fclose($fp);
     685        }
     686
     687        function sp_readFile($filename)
     688        {
     689              return file_get_contents($filename, true);
    677690        }
    678691
     
    818831                $parser->addNoFollowTag = $configOptions['addNoFollowTag'];
    819832                $parser->hideArticlesAfterArticleNumber = $configOptions['hideArticlesAfterArticleNumber'];
     833                $parser->openArticleInLightbox = $configOptions['openArticleInLightbox'];
     834                $parser->lightboxHTMLCode = $this->sp_unescapeString($configOptions['lightboxHTMLCode']);
    820835                if($configOptions['timestampFormat']  != '')
    821836                {
     
    968983                $parser = new TinyFeedParser($cachedInputFeedFile);
    969984                $parser->showContentOnlyInLinkTitle = 'false';
    970                 $parser->maxNumArticlesToDisplay = 3;
     985                $parser->maxNumArticlesToDisplay = 5;
    971986                $parser->exclusiveKeywordList = "";
    972987                $parser->inclusiveKeywordList = 'Syndicate Press';
    973                 $parser->maxDescriptionLength = 300;
     988                $parser->maxDescriptionLength = -1;
    974989                $parser->showFeedChannelTitle = 'false';
    975990                $parser->useCustomFeednameAsChannelTitle = 'false';
     
    9851000                $parser->maxHeadlineLength = 128;
    9861001                $parser->allowImagesInDescription = 'false';
    987                 $parser->allowMarkupInDescription = 'false';
     1002                $parser->allowMarkupInDescription = 'true';
     1003                $parser->showArticlesInLightbox = false;
    9881004                $parser->parseFeed($cachedInputFeedFile);
    9891005                $content = $parser->getHtml();
     
    10711087          $configOptions['stripCDataTags'] = $_POST['syndicatePressStripCdataTags'];
    10721088          $this->sp_clearCache();
     1089        }           
     1090        if (isset($_POST['syndicatePressOpenArticleInLightbox'])) {
     1091          $configOptions['openArticleInLightbox'] = $_POST['syndicatePressOpenArticleInLightbox'];
    10731092        }
    10741093        if (isset($_POST['syndicatePressAllowMarkup'])) {
     
    11411160          $configOptions['feedNotAvailableHTMLCode'] = $this->sp_escapeString(apply_filters('feedNotAvailableHTMLCode_save_pre', $_POST['syndicatePressFeedNotAvailableHTMLCode']));
    11421161        }
     1162        if (isset($_POST['syndicatePressLightboxCSSTextArea'])) {
     1163          $this->sp_writeFile(dirname(__FILE__).'/css/TinyLightbox.css', $this->sp_escapeString(apply_filters('lightboxCSSCode_save_pre', $_POST['syndicatePressLightboxCSSTextArea'])));
     1164        }
     1165        if (isset($_POST['syndicatePressLightboxHTMLTextArea'])) {
     1166          $configOptions['lightboxHTMLCode'] = $this->sp_escapeString(apply_filters('lightboxHTMLCode_save_pre', $_POST['syndicatePressLightboxHTMLTextArea']));
     1167        }
     1168       
    11431169               
    11441170        update_option($this->adminOptionsName, $configOptions);
     
    14341460        <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>
    14351461        </div>
    1436   </div>
     1462     </div>
     1463     <div class="tabbertab">
     1464        <h2>Lightbox</h2>
     1465        <b><u>You may configure Syndicate Press to show article sources in a popup lightbox.</u></b><br>
     1466        <div style="padding-left: 20px;">
     1467        This feature was sponsored by <a href="http://www.collectorsbluebook.com/" target="_blank">CollectorsBlueBook.com</a>.<br><br>
     1468        </div>
     1469        <b><u>Open article in lightbox instead of new window:</u></b><br>
     1470        <p>
     1471        <div style="padding-left: 20px;">
     1472        <label for="syndicatePressOpenArticleInLightbox_yes"><input type="radio" id="syndicatePressOpenArticleInLightbox_yes" name="syndicatePressOpenArticleInLightbox" value="true" <?php if ($configOptions['openArticleInLightbox'] == "true") { _e('checked="checked"', "SyndicatePressPlugin"); }?> /> Open the article in a popup lightbox.</label><br>
     1473        <label for="syndicatePressOpenArticleInLightbox_no"><input type="radio" id="syndicatePressOpenArticleInLightbox_no" name="syndicatePressOpenArticleInLightbox" value="false" <?php if ($configOptions['openArticleInLightbox'] == "false") { _e('checked="checked"', "SyndicatePressPlugin"); }?>/> Open the article in a new tab/window.</label><br>
     1474        </div>
     1475        </p>
     1476        <p>
     1477        <div style="padding-left: 20px;">
     1478        Edit the CSS of the Lightbox here (<i>Class names must match the CSS classes referenced in the HTML code </i>):<br>
     1479        <textarea name="syndicatePressLightboxCSSTextArea"  style="width: 95%; height: 300px;"><?php echo $this->sp_readFile(dirname(__FILE__).'/css/TinyLightbox.css'); ?></textarea>
     1480        </div>
     1481        <div style="padding-left: 20px;">
     1482        <br>Edit the HTML of the Lightbox here (<i>CSS style class names must match the CSS classes defined in the CSS code </i>):<br>
     1483        <textarea name="syndicatePressLightboxHTMLTextArea"  style="width: 95%; height: 150px;"><?php _e($this->sp_unescapeString(apply_filters('format_to_edit',$configOptions['lightboxHTMLCode']), true), 'SyndicatePressPlugin') ?></textarea>
     1484        </div>       
     1485        </p>
     1486     </div>
     1487     
    14371488</form>
    14381489     <div class="tabbertab">
     
    15491600     <div class="tabbertab">
    15501601        <h2>Donations</h2>
    1551         <!--<div style='background: #ffc; border: 1px solid #333; margin: 2px; padding: 5px'>-->
     1602        <table>
     1603        <tr><td width="70%">
    15521604        <b><u>Help support this plugin!</u></b>
    15531605        <p>
     
    15661618    <br>Donations are securely processed by Paypal.<br>
    15671619        </p>
    1568         <!--</div>-->
    1569      </div>
    1570      <div class="tabbertab">
    1571         <h2>Recommended reading</h2>
     1620        <p>
    15721621        <b><u>Other ways to support this plugin</u></b>
    15731622        <p>
     
    15811630        <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>
    15821631        <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>
    1583         <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>
    1584         <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>
    15851632        </tr>
    15861633        <tr><td colspan="6"><font size=-12>Syndicate Press Plugin is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com.</font></td></tr>
     1634        </table>
     1635        </p>
     1636        <td width="30%" style="vertical-align: top;">
     1637        <div style='background: #ffc; border: 1px solid #333; margin: 2px; padding: 5px'>
     1638        <b><u>Thank you to our supporters:</u></b><br><br>
     1639            <a href="http://www.collectorsbluebook.com/">Collectors Blue Book</a><br>
     1640            <a href="http://boltonstudios.com/">Bolton Studios Web Design and Development</a><br>
     1641        <a href="http://dennisholloway.com/">Dennis Holloway Photography</a><br>
     1642            <a href="http://www.pushentertainment.com/">Push Entertainment Ltd</a><br>
     1643            <a href="http://rolandarblog.com">Roland Artist Relations Blog</a><br>
     1644            <a href="http://www.dah.org.il/">Site Building Simple</a><br>
     1645            Anonymous<br>
     1646            Anonymous<br>
     1647            Anonymous<br>
     1648            <a href="http://www.saillwhite.com/">Saill White</a><br>
     1649            Anonymous<br>
     1650            Anonymous<br>
     1651            Anonymous<br>
     1652            Lead Foot Media LLC<br>
     1653        </div>
     1654        </td></tr>
    15871655        </table>
    15881656     </div>   
     
    16251693  //Filter...
    16261694  add_filter('the_content', array(&$syndicatePressPluginObjectRef,'sp_ContentFilter'));
    1627     add_filter('widget_text', array(&$syndicatePressPluginObjectRef,'sp_ContentFilter'));
     1695  add_filter('widget_text', array(&$syndicatePressPluginObjectRef,'sp_ContentFilter'));
     1696 
     1697  //enqueing scripts and styles for the main site (not admin)
     1698  add_action( 'wp_enqueue_scripts', 'my_enqueue_scripts' );
     1699}
     1700
     1701function my_enqueue_scripts($hook_suffix) {
     1702    wp_enqueue_style('sp_printPage_lightbox', plugins_url('syndicate-press/css/TinyLightbox.css'), false, '1.00', false);
     1703    //wp_enqueue_script('sp_printPage_TAB', plugins_url('syndicate-press/js/tabber-minimized.js'), false, '2.50', false);
    16281704}
    16291705
Note: See TracChangeset for help on using the changeset viewer.