3 * Extensions/modifications to the stock RecentChanges (and PageHistory) format.
6 require_once 'lib/plugin/RecentChanges.php';
7 //require_once('lib/plugin/PageHistory.php');
9 class _blog_RecentChanges_BoxFormatter
10 extends _RecentChanges_BoxFormatter
12 function pageLink (&$rev, $link_text=false) {
13 if (!$link_text and $rev->get('pagetype') == 'wikiblog')
14 $link_text = $rev->get('summary');
15 elseif (preg_match("/\/Blog\b/", $rev->_pagename))
17 if ($link_text and strlen($link_text) > 20)
18 $link_text = substr($link_text,0,20)."...";
19 return WikiLink($rev->getPage(),'auto',$link_text);
23 class _blog_RecentChanges_Formatter
24 extends _RecentChanges_HtmlFormatter
26 function pageLink (&$rev, $link_text=false) {
27 if (!$link_text and $rev->get('pagetype') == 'wikiblog')
28 $link_text = $rev->get('summary');
29 return WikiLink($rev,'auto',$link_text);
33 class _blog_PageHistory_Formatter
34 extends _PageHistory_HtmlFormatter
36 function pageLink (&$rev, $link_text=false) {
37 if (!$link_text and $rev->get('pagetype') == 'wikiblog')
38 $link_text = $rev->get('summary');
39 return WikiLink($rev,'auto',$link_text);
48 // c-hanging-comment-ender-p: nil
49 // indent-tabs-mode: nil