From: <var...@us...> - 2009-03-25 09:14:51
|
Revision: 6699 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6699&view=rev Author: vargenau Date: 2009-03-25 09:14:26 +0000 (Wed, 25 Mar 2009) Log Message: ----------- font-size:smaller moved to CSS Modified Paths: -------------- trunk/lib/plugin/AuthorHistory.php trunk/themes/MacOSX/MacOSX.css trunk/themes/MonoBook/main.css trunk/themes/Sidebar/monobook.css trunk/themes/blog/Kubrick.css trunk/themes/default/phpwiki.css Modified: trunk/lib/plugin/AuthorHistory.php =================================================================== --- trunk/lib/plugin/AuthorHistory.php 2009-03-24 15:13:25 UTC (rev 6698) +++ trunk/lib/plugin/AuthorHistory.php 2009-03-25 09:14:26 UTC (rev 6699) @@ -2,6 +2,7 @@ rcs_id('$Id$'); /** Copyright 1999, 2000, 2001, 2002 $ThePhpWikiProgrammingTeam + Copyright 2009 Marc-Etienne Vargenau, Alcatel-Lucent This file is part of PhpWiki. @@ -20,14 +21,13 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ - /* *** EXPERIMENTAL PLUGIN ****************** Needs a lot of work! Use at your own risk. - ****************************************** - + ****************************************** + try this in a page called AuthorHistory: - + <?plugin AuthorHistory page=username includeminor=true ?> ---- <?plugin AuthorHistory page=all ?> @@ -36,8 +36,8 @@ try this in a subpage of your UserName: (UserName/AuthorHistory) <?plugin AuthorHistory page=all includeminor=true ?> - + * Displays a list of revision edits by one particular user, for the * current page, a specified page, or all pages. @@ -73,12 +73,12 @@ function getDescription() { return sprintf(_("List all page revisions edited by one user with diff links, or show a PageHistory-like list of a single page for only one user.")); } - + function getVersion() { return preg_replace("/[Revision: $]/", '', "\$Revision$"); } - + function getDefaultArguments() { global $request; return array('exclude' => '', @@ -93,7 +93,7 @@ // info arg allows multiple columns // info=mtime,hits,summary,version,author,locked,minor // exclude arg allows multiple pagenames exclude=HomePage,RecentChanges - + function run($dbi, $argstr, &$request, $basepage) { $this->_args = $this->getArgs($argstr, $request); extract($this->_args); @@ -105,20 +105,18 @@ return ''; //$pagelist = new PageList($info, $exclude); /////////////////////////// - + $nbsp = HTML::raw(' '); - + global $WikiTheme; // date & time formatting - + if (! ($page == 'all')) { $p = $dbi->getPage($page); - - $t = HTML::table(array('class'=> 'pagelist', - 'style' => 'font-size:smaller')); + + $t = HTML::table(array('class'=> 'pagelist')); $th = HTML::thead(); $tb = HTML::tbody(); - - + $th->pushContent(HTML::tr(HTML::td(array('align'=> 'right'), _("Version")), $includeminor ? HTML::td(_("Minor")) : "", @@ -126,13 +124,13 @@ HTML::td(_("Summary")), HTML::td(_("Modified")) )); - + $allrevisions_iter = $p->getAllRevisions(); while ($rev = $allrevisions_iter->next()) { - + $isminor = $rev->get('is_minor_edit'); $authordoesmatch = $author == $rev->get('author'); - + if ($authordoesmatch && (!$isminor || ($includeminor && $isminor))) { $difflink = Button(array('action' => 'diff', 'previous' => 'minor'), @@ -146,7 +144,7 @@ HTML::td(array('align'=> 'right'), $WikiTheme->formatdatetime($rev->get('mtime'))) ); - + $class = $isminor ? 'evenrow' : 'oddrow'; $tr->setAttr('class', $class); $tb->pushContent($tr); @@ -160,17 +158,15 @@ $t->pushContent($th, $tb); } else { - + //search all pages for all edits by this author - + ///////////////////////////////////////////////////////////// - - $t = HTML::table(array('class'=> 'pagelist', - 'style' => 'font-size:smaller')); + + $t = HTML::table(array('class'=> 'pagelist')); $th = HTML::thead(); $tb = HTML::tbody(); - - + $th->pushContent(HTML::tr(HTML::td(_("Page Name")), HTML::td(array('align'=> 'right'), _("Version")), @@ -179,11 +175,11 @@ HTML::td(_("Modified")) )); ///////////////////////////////////////////////////////////// - + $allpages_iter = $dbi->getAllPages($includedeleted); while ($p = $allpages_iter->next()) { ///////////////////////////////////////////////////////////// - + $allrevisions_iter = $p->getAllRevisions(); while ($rev = $allrevisions_iter->next()) { $isminor = $rev->get('is_minor_edit'); @@ -203,29 +199,29 @@ HTML::td(array('align'=> 'right'), $WikiTheme->formatdatetime($rev->get('mtime')), $nbsp) ); - + $class = $isminor ? 'evenrow' : 'oddrow'; $tr->setAttr('class', $class); $tb->pushContent($tr); //$pagelist->addPage($rev->getPage()); } } - + ///////////////////////////////////////////////////////////// - + } - + $captext = fmt($includeminor ? "History of all major and minor modifications for any page edited by %s." : "History of major modifications for any page edited by %s." , WikiLink($author, 'auto')); $t->pushContent(HTML::caption($captext)); $t->pushContent($th, $tb); } - + // if (!$noheader) { // total minor, major edits. if include minoredits was specified // } return $t; - + // if (!$noheader) { // $pagelink = WikiLink($page, 'auto'); // @@ -242,51 +238,9 @@ // // return $pagelist; } - + }; -// $Log: not supported by cvs2svn $ -// Revision 1.5 2004/02/28 21:14:08 rurban -// generally more PHPDOC docs -// see http://xarch.tu-graz.ac.at/home/rurban/phpwiki/xref/ -// fxied WikiUserNew pref handling: empty theme not stored, save only -// changed prefs, sql prefs improved, fixed password update, -// removed REPLACE sql (dangerous) -// moved gettext init after the locale was guessed -// + some minor changes -// -// Revision 1.4 2004/02/17 12:11:36 rurban -// added missing 4th basepage arg at plugin->run() to almost all plugins. This caused no harm so far, because it was silently dropped on normal usage. However on plugin internal ->run invocations it failed. (InterWikiSearch, IncludeSiteMap, ...) -// -// Revision 1.3 2004/01/26 09:18:00 rurban -// * changed stored pref representation as before. -// the array of objects is 1) bigger and 2) -// less portable. If we would import packed pref -// objects and the object definition was changed, PHP would fail. -// This doesn't happen with an simple array of non-default values. -// * use $prefs->retrieve and $prefs->store methods, where retrieve -// understands the interim format of array of objects also. -// * simplified $prefs->get() and fixed $prefs->set() -// * added $user->_userid and class '_WikiUser' portability functions -// * fixed $user object ->_level upgrading, mostly using sessions. -// this fixes yesterdays problems with loosing authorization level. -// * fixed WikiUserNew::checkPass to return the _level -// * fixed WikiUserNew::isSignedIn -// * added explodePageList to class PageList, support sortby arg -// * fixed UserPreferences for WikiUserNew -// * fixed WikiPlugin for empty defaults array -// * UnfoldSubpages: added pagename arg, renamed pages arg, -// removed sort arg, support sortby arg -// -// Revision 1.2 2003/12/08 22:44:58 carstenklapp -// Code cleanup: fixed rcsid -// -// Revision 1.1 2003/12/08 22:43:30 carstenklapp -// New experimental plugin to provide a different kind of -// PageHistory. Functional as-is, but is in need of much cleanup and -// refactoring. Probably very, very slow on wikis with many pages! -// - // For emacs users // Local Variables: // mode: php Modified: trunk/themes/MacOSX/MacOSX.css =================================================================== --- trunk/themes/MacOSX/MacOSX.css 2009-03-24 15:13:25 UTC (rev 6698) +++ trunk/themes/MacOSX/MacOSX.css 2009-03-25 09:14:26 UTC (rev 6699) @@ -411,13 +411,15 @@ /** * PageList output */ +.pagelist { + font-size: smaller; +} .pagelist tr.evenrow { background: #f8f8f8; } .pagelist tr.oddrow { background: #eee; } .pagelist thead td { background: #e8e8e8; text-decoration: none; font-weight: bold; - font-size: smaller; } .pagelist thead td u { text-decoration: none; } /* Yellow highlight for every td of mouseover'd tr in pagelist tbody Modified: trunk/themes/MonoBook/main.css =================================================================== --- trunk/themes/MonoBook/main.css 2009-03-24 15:13:25 UTC (rev 6698) +++ trunk/themes/MonoBook/main.css 2009-03-25 09:14:26 UTC (rev 6699) @@ -1602,12 +1602,13 @@ /** * PhpWiki Tables */ -.pagelist { } +.pagelist { + font-size: smaller; +} .pagelist thead td { background: #e8e8e8; text-decoration: none; font-weight: bold; - font-size: smaller; } .pagelist thead td u { text-decoration: none; } .pagelist tr.evenrow { background: #eee; } Modified: trunk/themes/Sidebar/monobook.css =================================================================== --- trunk/themes/Sidebar/monobook.css 2009-03-24 15:13:25 UTC (rev 6698) +++ trunk/themes/Sidebar/monobook.css 2009-03-25 09:14:26 UTC (rev 6699) @@ -1655,12 +1655,13 @@ /** * PhpWiki Tables */ -.pagelist { } +.pagelist { + font-size: smaller; +} .pagelist thead td { background: #e8e8e8; text-decoration: none; font-weight: bold; - font-size: smaller; } .pagelist thead td u { text-decoration: none; } .pagelist tr.evenrow { background: #eee; } Modified: trunk/themes/blog/Kubrick.css =================================================================== --- trunk/themes/blog/Kubrick.css 2009-03-24 15:13:25 UTC (rev 6698) +++ trunk/themes/blog/Kubrick.css 2009-03-25 09:14:26 UTC (rev 6699) @@ -316,7 +316,7 @@ font-size: 0.71em; } -table.pagelist td { +table.pagelist { font-size: 0.81em; } Modified: trunk/themes/default/phpwiki.css =================================================================== --- trunk/themes/default/phpwiki.css 2009-03-24 15:13:25 UTC (rev 6698) +++ trunk/themes/default/phpwiki.css 2009-03-25 09:14:26 UTC (rev 6699) @@ -209,12 +209,13 @@ */ table, td { font-family: Arial, Helvetica, sans-serif; } caption { font-family: Arial, Helvetica, sans-serif; } -.pagelist { } +.pagelist { + font-size: smaller; +} .pagelist thead td { background: #e8e8e8; text-decoration: none; font-weight: bold; - font-size: smaller; } .pagelist thead td u { text-decoration: none; } .pagelist tr.evenrow { background: #eee; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |