4 prints out a wiki-news style summary of the calendar entries for the current
5 page as an aview plugin. The most reccent 10 entries are shown by default.
7 The Calendar plugin should be included for page creation and archival browsing.
10 Developed by AndyFundinger
15 $ewiki_plugins["view_append"][] = "ewiki_view_append_blog";
17 include_once("plugins/page/wikinews.php");
19 function ewiki_view_append_blog($id, $data, $action) {
22 if(!calendar_exists(false)){
27 ($n_num = $ewiki_config["wikinews_num"]) || ($n_num = 10);
28 ($n_len = $ewiki_config["wikinews_len"]) || ($n_len = 512);
30 $o='<div class="text-blog">'
31 .ewiki_wikinews_summary($n_num,$n_len,'/^'.$id.EWIKI_NAME_SEP.'\d{8}$/')
33 $o.='<a href="'.ewiki_script("calendarlist", $id).'">View all log entries.</a>';