Changeset 2034
- Timestamp:
- 01/29/10 07:10:11 (13 years ago)
- Location:
- plugins/zoneclearFeedServer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/zoneclearFeedServer/_define.php
r2032 r2034 17 17 /* Description*/ "Mix your blog with a feeds planet", 18 18 /* Author */ "JC Denis, BG", 19 /* Version */ '0.3 ',19 /* Version */ '0.3.1', 20 20 /* Permissions */ 'admin' 21 21 ); 22 /* date */ #2010012 722 /* date */ #20100129 23 23 ?> -
plugins/zoneclearFeedServer/_public.php
r2032 r2034 34 34 $zc->checkFeedsUpdate(); 35 35 return; 36 37 36 } 38 37 } 39 38 40 class zoneclearFeedServerPosts extends rsExtPost Public39 class zoneclearFeedServerPosts extends rsExtPost 41 40 { 42 41 public static function zcFeed(&$rs,$info) … … 47 46 public static function zcFeedBrother($type,$args) 48 47 { 49 $func = isset($GLOBALS['beforeZcFeedRsExt'][$type]) ? 50 $GLOBALS['beforeZcFeedRsExt'][$type] : 51 array('rsExtPostPublic',$type); 52 48 if (isset($GLOBALS['beforeZcFeedRsExt'][$type])) { 49 $func = $GLOBALS['beforeZcFeedRsExt'][$type]; 50 } 51 elseif (is_callable('rsExtPostPublic',$type)) { 52 $func = array('rsExtPostPublic',$type); 53 } 54 else { 55 $func = array('rsExtPost',$type); 56 } 53 57 return call_user_func_array($func,$args); 54 58 } 55 59 56 60 public static function getAuthorLink(&$rs) 57 61 { … … 60 64 $sitename = $rs->zcFeed('sitename'); 61 65 62 if ($author && $sitename) 63 { 64 return $author.' (<a href="'.$site.'">'.$sitename.'</a>)'; 65 } 66 else 67 { 68 return self::zcFeedBrother('getAuthorLink',array(&$rs)); 69 } 66 return ($author && $sitename) ? 67 $author.' (<a href="'.$site.'">'.$sitename.'</a>)' : 68 self::zcFeedBrother('getAuthorLink',array(&$rs)); 70 69 } 71 70 72 71 public static function getAuthorCN(&$rs) 73 72 { 74 73 $author = $rs->zcFeed('author'); 75 return $author ? $author : self::zcFeedBrother('getAuthorCN',array(&$rs)); 74 return $author ? 75 $author : 76 self::zcFeedBrother('getAuthorCN',array(&$rs)); 76 77 } 77 78 78 79 public static function getURL(&$rs) 79 80 { 80 $url = zoneclearFeedServer::absoluteURL($rs->zcFeed('site'),$rs->zcFeed('url')); 81 return $url ? $url : self::zcFeedBrother('getURL',array(&$rs)); 81 $url = $rs->zcFeed('url'); 82 83 return $url ? 84 zoneclearFeedServer::absoluteURL($rs->zcFeed('site'),$url) : 85 self::zcFeedBrother('getURL',array(&$rs)); 82 86 } 83 87 84 88 public static function getContent(&$rs,$absolute_urls=false) 85 89 { … … 87 91 $sitename = $rs->zcFeed('sitename'); 88 92 $content = self::zcFeedBrother('getContent',array(&$rs,$absolute_urls)); 89 90 if ($url && $sitename && $rs->post_type == 'post') 91 { 93 94 if ($url && $sitename && $rs->post_type == 'post') { 92 95 return $content . 93 96 '<p class="zonclear-original"><em>'. -
plugins/zoneclearFeedServer/release.txt
r2032 r2034 3 3 * Add feed rating (with rateIt ?) 4 4 * Add public page of feed desription 5 6 0.3.1 20100128 7 * Fixed bug with getURL on classic post 5 8 6 9 0.3 20100127
Note: See TracChangeset
for help on using the changeset viewer.