Changeset 789608
- Timestamp:
- 10/18/2013 04:14:29 AM (12 years ago)
- Location:
- syndicate-press/trunk
- Files:
-
- 1 added
- 3 edited
-
css/TinyLightbox.css (added)
-
php/TinyFeedParser.php (modified) (13 diffs)
-
readme.txt (modified) (2 diffs)
-
syndicate-press-plugin.php (modified) (16 diffs)
Legend:
- Unmodified
- Added
- Removed
-
syndicate-press/trunk/php/TinyFeedParser.php
r752708 r789608 2 2 /* 3 3 File: TinyFeedParser.php 4 Date: 5/15/20135 Version 1.9.1 24 Date: 9/16/2013 5 Version 1.9.13 6 6 Author: HenryRanch LLC 7 7 … … 109 109 var $articleTitleHTMLCodePre = '<h3>'; 110 110 var $articleTitleHTMLCodePost = '</h3>'; 111 var $articleBodyHTMLCodePre = '<div >';111 var $articleBodyHTMLCodePre = '<div name="bodyHtmlCodePre">'; 112 112 var $articleBodyHTMLCodePost = '</div>'; 113 113 var $articleTimestampHTMLCodePre = '<i>'; … … 121 121 var $articleSubtitleHTMLCodePre = '<i>'; 122 122 var $articleSubtitleHTMLCodePost = '</i>'; 123 var $articleImageHTMLCodePre = '<div ><br>';123 var $articleImageHTMLCodePre = '<div name="imgHtmlCodePre"><br>'; 124 124 var $articleImageHTMLCodePost ='</div>'; 125 125 … … 131 131 var $truncateTitleAtWord = ''; 132 132 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"; 133 135 134 136 function TinyFeedParser() … … 632 634 function getJS() 633 635 { 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 ' }'. 646 649 '} '. 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 '}'. 647 657 '</script>'; 648 658 } 659 649 660 650 661 function getHtml() … … 655 666 { 656 667 $html .= $this->getJS(); 668 } 669 670 if($this->openArticleInLightbox == 'true') 671 { 672 $html .= $this->getJS(); 673 $html .= $this->lightboxHTMLCode; 657 674 } 658 675 … … 673 690 { 674 691 $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"; 677 694 } 678 695 $headerHtmlPre = $this->articleTitleHTMLCodePre; … … 692 709 } 693 710 } 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"; 695 712 696 713 $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 715 744 if($article->subtitle != '') 716 745 { 717 //$html = $this->addBrIfNeeded($html);718 746 $html .= $this->articleSubtitleHTMLCodePre.$article->subtitle.$this->articleSubtitleHTMLCodePost."\r\n"; 719 747 } … … 722 750 if($article->pubDateStr) 723 751 { 724 //$html = $this->addBrIfNeeded($html);725 752 if($this->useCustomTimestampFormat) 726 753 { … … 734 761 else 735 762 { 736 //$html = $this->addBrIfNeeded($html);737 763 $html .= $this->articleTimestampHTMLCodePre.'No timestamp info...'.$this->articleTimestampHTMLCodePost."\r\n"; 738 764 } … … 741 767 if($article->copyright) 742 768 { 743 //$html = $this->addBrIfNeeded($html);744 769 $html .= $this->articleCopyrightHTMLCodePre.$article->copyright.$this->articleCopyrightHTMLCodePost."\r\n"; 745 770 } 746 771 if($article->author) 747 772 { 748 //$html = $this->addBrIfNeeded($html);749 773 $html .= $this->articleAuthorHTMLCodePre.$article->author.$this->articleAuthorHTMLCodePost."\r\n"; 750 774 } 751 775 if($article->price) 752 776 { 753 //$html = $this->addBrIfNeeded($html);754 777 $html .= $this->articlePriceHTMLCodePre.$article->price.$this->articlePriceHTMLCodePost."\r\n"; 755 778 } … … 781 804 } 782 805 783 //$html = $this->addBrIfNeeded($html);784 806 if(($this->showContentOnlyInLinkTitle == 'false')) 785 807 { … … 805 827 $html .= '<font size=-4>Last feed update: '.$this->feedUpdateTime.'</font>'."\r\n"; 806 828 } 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"; 812 834 } 813 835 return $html; -
syndicate-press/trunk/readme.txt
r752708 r789608 4 4 Tags: 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 5 5 Requires at least: 2.8 6 Tested up to: 3. 5.17 Stable tag: 1.0.2 76 Tested up to: 3.6.1 7 Stable tag: 1.0.28 8 8 9 9 Syndicate Press lets you include RSS, RDF or Atom feeds directly in your Wordpress posts, pages, widgets or theme. … … 47 47 48 48 http://syndicatepress.henryranch.net/documentation/changelog/ 49 50 v1.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. 49 56 50 57 v1.0.27: Custom shortcode parameter: replaceStringInTitle -
syndicate-press/trunk/syndicate-press-plugin.php
r752708 r789608 5 5 Description: This plugin provides a high performance, highly configurable and easy to use news syndication aggregator which supports RSS, RDF and ATOM feeds. 6 6 Author: HenryRanch LLC (henryranch.net) 7 Version: 1.0.2 77 Version: 1.0.28 8 8 Author URI: http://syndicatepress.henryranch.net/ 9 9 License: GPL2 … … 64 64 if (!class_exists("SyndicatePressPlugin")) { 65 65 class SyndicatePressPlugin { 66 var $version = "1.0.2 7";66 var $version = "1.0.28"; 67 67 var $homepageURL = "http://syndicatepress.henryranch.net/"; 68 68 … … 122 122 'feedSeparationHTMLCode' => '<hr>', 123 123 '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", 124 129 'feedNotAvailableHTMLCode' => 'Sorry, the {feedname} feed is not available at this time.' 125 130 ); … … 189 194 try 190 195 { 196 $permissionString = ''; 191 197 $filePermissions = @fileperms($filepath); 192 198 // Owner … … 486 492 $inputCacheDirPerm = $this->sp_getFilePermissions($inputCacheDir); 487 493 $outputCacheDirPerm = $this->sp_getFilePermissions($outputCacheDir); 494 $permProblem = ''; 488 495 if($mainCacheDirPerm != "rwxr-xr-x" && $mainCacheDirPerm != "---------") 489 496 { … … 672 679 function sp_writeFile($fileName, $content) 673 680 { 681 //echo "writing to file $fileName : <br> $content<br>"; 674 682 $fp = fopen($fileName, 'w'); 675 683 fwrite($fp, $content); 676 684 fclose($fp); 685 } 686 687 function sp_readFile($filename) 688 { 689 return file_get_contents($filename, true); 677 690 } 678 691 … … 818 831 $parser->addNoFollowTag = $configOptions['addNoFollowTag']; 819 832 $parser->hideArticlesAfterArticleNumber = $configOptions['hideArticlesAfterArticleNumber']; 833 $parser->openArticleInLightbox = $configOptions['openArticleInLightbox']; 834 $parser->lightboxHTMLCode = $this->sp_unescapeString($configOptions['lightboxHTMLCode']); 820 835 if($configOptions['timestampFormat'] != '') 821 836 { … … 968 983 $parser = new TinyFeedParser($cachedInputFeedFile); 969 984 $parser->showContentOnlyInLinkTitle = 'false'; 970 $parser->maxNumArticlesToDisplay = 3;985 $parser->maxNumArticlesToDisplay = 5; 971 986 $parser->exclusiveKeywordList = ""; 972 987 $parser->inclusiveKeywordList = 'Syndicate Press'; 973 $parser->maxDescriptionLength = 300;988 $parser->maxDescriptionLength = -1; 974 989 $parser->showFeedChannelTitle = 'false'; 975 990 $parser->useCustomFeednameAsChannelTitle = 'false'; … … 985 1000 $parser->maxHeadlineLength = 128; 986 1001 $parser->allowImagesInDescription = 'false'; 987 $parser->allowMarkupInDescription = 'false'; 1002 $parser->allowMarkupInDescription = 'true'; 1003 $parser->showArticlesInLightbox = false; 988 1004 $parser->parseFeed($cachedInputFeedFile); 989 1005 $content = $parser->getHtml(); … … 1071 1087 $configOptions['stripCDataTags'] = $_POST['syndicatePressStripCdataTags']; 1072 1088 $this->sp_clearCache(); 1089 } 1090 if (isset($_POST['syndicatePressOpenArticleInLightbox'])) { 1091 $configOptions['openArticleInLightbox'] = $_POST['syndicatePressOpenArticleInLightbox']; 1073 1092 } 1074 1093 if (isset($_POST['syndicatePressAllowMarkup'])) { … … 1141 1160 $configOptions['feedNotAvailableHTMLCode'] = $this->sp_escapeString(apply_filters('feedNotAvailableHTMLCode_save_pre', $_POST['syndicatePressFeedNotAvailableHTMLCode'])); 1142 1161 } 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 1143 1169 1144 1170 update_option($this->adminOptionsName, $configOptions); … … 1434 1460 <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> 1435 1461 </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 1437 1488 </form> 1438 1489 <div class="tabbertab"> … … 1549 1600 <div class="tabbertab"> 1550 1601 <h2>Donations</h2> 1551 <!--<div style='background: #ffc; border: 1px solid #333; margin: 2px; padding: 5px'>--> 1602 <table> 1603 <tr><td width="70%"> 1552 1604 <b><u>Help support this plugin!</u></b> 1553 1605 <p> … … 1566 1618 <br>Donations are securely processed by Paypal.<br> 1567 1619 </p> 1568 <!--</div>--> 1569 </div> 1570 <div class="tabbertab"> 1571 <h2>Recommended reading</h2> 1620 <p> 1572 1621 <b><u>Other ways to support this plugin</u></b> 1573 1622 <p> … … 1581 1630 <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<1=_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> 1582 1631 <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<1=_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<1=_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<1=_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>1585 1632 </tr> 1586 1633 <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> 1587 1655 </table> 1588 1656 </div> … … 1625 1693 //Filter... 1626 1694 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 1701 function 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); 1628 1704 } 1629 1705
Note: See TracChangeset
for help on using the changeset viewer.