SourceForge logo
SourceForge logo
Menu

phpwiki-checkins

From: Carsten K. <car...@us...> - 2003年11月28日 21:06:34
Update of /cvsroot/phpwiki/phpwiki/lib/plugin
In directory sc8-pr-cvs1:/tmp/cvs-serv29272
Modified Files:
	RecentChanges.php 
Log Message:
Enhancement: Mozilla RecentChanges sidebar now defaults to 10 changes
instead of 1. Make diff buttons smaller with css. Added description
line back in at the top.
Index: RecentChanges.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/plugin/RecentChanges.php,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -2 -b -p -d -r1.80 -r1.81
--- RecentChanges.php	27 Nov 2003 15:17:01 -0000	1.80
+++ RecentChanges.php	28 Nov 2003 21:06:31 -0000	1.81
@@ -354,7 +354,4 @@ class _RecentChanges_SideBarFormatter
 extends _RecentChanges_HtmlFormatter
 {
- function description () {
- //omit description
- }
 function rss_icon () {
 //omit rssicon
@@ -373,5 +370,5 @@ extends _RecentChanges_HtmlFormatter
 'border' => 0,
 'align' => 'right',
- 'width' => 32
+ 'style' => 'height:2.5ex'
 ));
 $linkurl = WikiLink(HOME_PAGE, false, $img);
@@ -389,7 +386,10 @@ extends _RecentChanges_HtmlFormatter
 return $author;
 }
+
 function diffLink ($rev) {
 $linkurl = parent::diffLink($rev);
 $linkurl->setAttr('target', '_content');
+ // FIXME: Smelly hack to get smaller diff buttons in sidebar
+ $linkurl = new RawXML(str_replace('<img ', '<img style="height:2ex" ', asXML($linkurl)));
 return $linkurl;
 }
@@ -397,4 +397,6 @@ extends _RecentChanges_HtmlFormatter
 $linkurl = parent::historyLink($rev);
 $linkurl->setAttr('target', '_content');
+ // FIXME: Smelly hack to get smaller history buttons in sidebar
+ $linkurl = new RawXML(str_replace('<img ', '<img style="height:2ex" ', asXML($linkurl)));
 return $linkurl;
 }
@@ -421,5 +423,5 @@ extends _RecentChanges_HtmlFormatter
 
 function format ($changes) {
- $this->_args['daylist'] = false; //only 1 day for Mozilla sidebar
+ $this->_args['daylist'] = false; //don't show day buttons in Mozilla sidebar
 $html = _RecentChanges_HtmlFormatter::format ($changes);
 $html = HTML::div(array('class' => 'wikitext'), $html);
@@ -653,5 +655,5 @@ extends WikiPlugin
 
 if ($args['format'] == 'sidebar' && empty($args['limit']))
- $args['limit'] = 1; // Fix default value for sidebar.
+ $args['limit'] = 10; // Fix default value for sidebar.
 
 return $args;
@@ -773,4 +775,9 @@ class DayButtonBar extends HtmlElement {
 
 // $Log$
+// Revision 1.81 2003年11月28日 21:06:31 carstenklapp
+// Enhancement: Mozilla RecentChanges sidebar now defaults to 10 changes
+// instead of 1. Make diff buttons smaller with css. Added description
+// line back in at the top.
+//
 // Revision 1.80 2003年11月27日 15:17:01 carstenklapp
 // Theme & appearance tweaks: Converted Mozilla sidebar link into a Theme
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /