Changeset 486
Legend:
- Unmodified
- Added
- Removed
-
trunk/rss/feed.php
r482 r486 29 29 ############################################################################### 30 30 # $Log$ 31 # Revision 1.80 2005/05/23 08:05:04 mbonetti 32 # new plugin hook after feed items 33 # 31 34 # Revision 1.79 2005/05/20 07:42:21 mbonetti 32 35 # CVS Log messages in the file header … … 486 489 487 490 488 $severalFeeds = count($cids) > 1;491 $severalFeeds = count($cids) > 1; 489 492 if ($hasUnreadItems && $iid == "") { 490 493 echo "\n<div id=\"feedaction\" class=\"withmargin\">"; … … 499 502 } 500 503 501 502 $shown = itemsList($title, $items, ($severalFeeds? (IL_NO_COLLAPSE | IL_FOLDER_VIEW):IL_CHANNEL_VIEW)); 503 504 504 $ilRet = itemsList($title, $items, ($severalFeeds? (IL_NO_COLLAPSE | IL_FOLDER_VIEW):IL_CHANNEL_VIEW)); 505 $ilRet[] = $iid; 506 $ilRet[] = $cid; 507 rss_plugin_hook('rss.plugins.items.afteritems', $ilRet); 508 509 510 505 511 if ($nv != null) { 506 512 list($prev,$succ,$up) = $nv; -
trunk/rss/util.php
r480 r486 428 428 function itemsList($title,$items, $options = IL_NONE){ 429 429 430 $retChannels = $retUnread = $retRead = 0; 431 432 430 433 $anchor = ""; 431 434 if (!defined('FEEDCONTENT_ANCHOR_SET')) { … … 515 518 516 519 if ($prev_cid != $cid) { 520 521 $retChannels++; 522 517 523 $prev_cid = $cid; 518 524 if ($cntr++ > 0) { … … 598 604 599 605 if ($iunread & FEED_MODE_UNREAD_STATE) { 600 $cls = "item unread"; 601 } 606 $cls = "item unread"; 607 $retUnread++; 608 } else { 609 $retRead++; 610 } 602 611 603 612 // some url fields are juste guid's which aren't actual links … … 712 721 } 713 722 714 return $ret;723 return array($retChannels,$retUnread,$retRead); 715 724 } 716 725
