From: <var...@us...> - 2008-10-24 14:25:38
|
Revision: 6335 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6335&view=rev Author: vargenau Date: 2008-10-24 14:25:18 +0000 (Fri, 24 Oct 2008) Log Message: ----------- Do not display a link for a deleted page, just the page name Modified Paths: -------------- trunk/lib/plugin/RecentChanges.php Modified: trunk/lib/plugin/RecentChanges.php =================================================================== --- trunk/lib/plugin/RecentChanges.php 2008-10-24 13:50:21 UTC (rev 6334) +++ trunk/lib/plugin/RecentChanges.php 2008-10-24 14:25:18 UTC (rev 6335) @@ -459,16 +459,23 @@ if ($args['historylinks']) $line->pushContent($this->historyLink($rev), ' '); + // Do not display a link for a deleted page, just the page name + if ($rev->hasDefaultContents()) { + $linkorname = $rev->_pagename; + } else { + $linkorname = $this->pageLink($rev); + } + if (isa($WikiTheme, 'WikiTheme_MonoBook')) { $line->pushContent( $args['historylinks'] ? '' : $this->historyLink($rev), - ' . . ', $this->pageLink($rev), '; ', + ' . . ', $linkorname, '; ', $time, ' . . ', $this->authorLink($rev),' ', $this->authorContribs($rev),' ', $this->summaryAsHTML($rev)); } else { - $line->pushContent($this->pageLink($rev), ' ', + $line->pushContent($linkorname, ' ', $time, ' ', $this->summaryAsHTML($rev), ' ... ', This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-01-15 10:07:10
|
Revision: 6401 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6401&view=rev Author: vargenau Date: 2009-01-15 10:07:04 +0000 (Thu, 15 Jan 2009) Log Message: ----------- Do the same for Gforge theme as for Monobook theme Modified Paths: -------------- trunk/lib/plugin/RecentChanges.php Modified: trunk/lib/plugin/RecentChanges.php =================================================================== --- trunk/lib/plugin/RecentChanges.php 2009-01-15 09:00:25 UTC (rev 6400) +++ trunk/lib/plugin/RecentChanges.php 2009-01-15 10:07:04 UTC (rev 6401) @@ -2,6 +2,7 @@ rcs_id('$Id$'); /** Copyright 1999,2000,2001,2002,2007 $ThePhpWikiProgrammingTeam + Copyright 2008-2009 Marc-Etienne Vargenau, Alcatel-Lucent This file is part of PhpWiki. @@ -466,7 +467,7 @@ $linkorname = $this->pageLink($rev); } - if (isa($WikiTheme, 'WikiTheme_MonoBook')) { + if ((isa($WikiTheme, 'WikiTheme_MonoBook')) or (isa($WikiTheme, 'WikiTheme_gforge'))) { $line->pushContent( $args['historylinks'] ? '' : $this->historyLink($rev), ' . . ', $linkorname, '; ', This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-01-15 10:10:54
|
Revision: 6402 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6402&view=rev Author: vargenau Date: 2009-01-15 10:10:45 +0000 (Thu, 15 Jan 2009) Log Message: ----------- Let us be more explicit Modified Paths: -------------- trunk/lib/plugin/RecentChanges.php Modified: trunk/lib/plugin/RecentChanges.php =================================================================== --- trunk/lib/plugin/RecentChanges.php 2009-01-15 10:07:04 UTC (rev 6401) +++ trunk/lib/plugin/RecentChanges.php 2009-01-15 10:10:45 UTC (rev 6402) @@ -1363,7 +1363,7 @@ if ($days == 1) $label = _("1 day"); elseif ($days < 1) - $label = "..."; //alldays + $label = _("All time"); else $label = sprintf(_("%s days"), abs($days)); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-01-30 13:57:17
|
Revision: 6463 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6463&view=rev Author: vargenau Date: 2009-01-30 13:57:13 +0000 (Fri, 30 Jan 2009) Log Message: ----------- Valid XHTML code Modified Paths: -------------- trunk/lib/plugin/RecentChanges.php Modified: trunk/lib/plugin/RecentChanges.php =================================================================== --- trunk/lib/plugin/RecentChanges.php 2009-01-30 13:06:32 UTC (rev 6462) +++ trunk/lib/plugin/RecentChanges.php 2009-01-30 13:57:13 UTC (rev 6463) @@ -1350,47 +1350,35 @@ $this->pushContent(HTML::legend($caption)); $table = HTML::table(); - $first = true; + $tr = HTML::tr(); foreach (explode(",", $daylist) as $days) { - if ($first) { - $td = $this->_makeDayButton($days); - $first = false; - } else { - $td->pushContent($this->_makeDayButton($days)); - } + $tr->pushContent($this->_makeDayButton($days)); } - $tr = HTML::tr(); - $tr->pushContent($td); $table->pushContent($tr); - $td = $this->_makeUsersButton(0); - $td->pushContent($this->_makeUsersButton(1)); $tr = HTML::tr(); - $tr->pushContent($td); + $tr->pushContent($this->_makeUsersButton(0)); + $tr->pushContent($this->_makeUsersButton(1)); $table->pushContent($tr); - $td = $this->_makePagesButton(0); - $td->pushContent($this->_makePagesButton(1)); $tr = HTML::tr(); - $tr->pushContent($td); + $tr->pushContent($this->_makePagesButton(0)); + $tr->pushContent($this->_makePagesButton(1)); $table->pushContent($tr); - $td = $this->_makeMinorButton(1); - $td->pushContent($this->_makeMinorButton(0)); $tr = HTML::tr(); - $tr->pushContent($td); + $tr->pushContent($this->_makeMinorButton(1)); + $tr->pushContent($this->_makeMinorButton(0)); $table->pushContent($tr); - $td = $this->_makeShowAllButton(1); - $td->pushContent($this->_makeShowAllButton(0)); $tr = HTML::tr(); - $tr->pushContent($td); + $tr->pushContent($this->_makeShowAllButton(1)); + $tr->pushContent($this->_makeShowAllButton(0)); $table->pushContent($tr); - $td = $this->_makeNewPagesButton(0); - $td->pushContent($this->_makeNewPagesButton(1)); $tr = HTML::tr(); - $tr->pushContent($td); + $tr->pushContent($this->_makeNewPagesButton(0)); + $tr->pushContent($this->_makeNewPagesButton(1)); $table->pushContent($tr); $this->pushContent($table); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ru...@us...> - 2009-06-16 06:50:12
|
Revision: 6940 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6940&view=rev Author: rurban Date: 2009-06-16 06:50:10 +0000 (Tue, 16 Jun 2009) Log Message: ----------- Add ShowHideFolder button to OptionsButtonBars fieldset Modified Paths: -------------- trunk/lib/plugin/RecentChanges.php Modified: trunk/lib/plugin/RecentChanges.php =================================================================== --- trunk/lib/plugin/RecentChanges.php 2009-06-15 15:27:55 UTC (rev 6939) +++ trunk/lib/plugin/RecentChanges.php 2009-06-16 06:50:10 UTC (rev 6940) @@ -444,9 +444,14 @@ } if ($lines) $html->pushContent($lines); - if ($first) + if ($first) { + if ($this->_args['daylist']) + $html->pushContent // force display of OptionsButtonBars + (JavaScript + ("document.getElementById('rc-action-body').style.display='block';")); $html->pushContent(HTML::p(array('class' => 'rc-empty'), $this->empty_message())); + } return $html; } @@ -1341,6 +1346,13 @@ function OptionsButtonBars ($plugin_args) { $this->__construct('fieldset', array('class' => 'wiki-rc-action')); + // Add ShowHideFolder button + $icon = $GLOBALS['WikiTheme']->_findData('images/folderArrowOpen.png'); + $img = HTML::img(array('id' => 'rc-action-img', + 'src' => $icon, + 'onClick' => "showHideFolder('rc-action')", + 'title' => _("Click to hide/show"))); + // Display selection buttons extract($plugin_args); @@ -1349,8 +1361,9 @@ $caption = _("Show changes for:"); } - $this->pushContent(HTML::legend($caption)); - $table = HTML::table(); + $this->pushContent(HTML::legend($caption,' ',$img)); + $table = HTML::table(array('id' => 'rc-action-body', + 'style' => 'display:none')); $tr = HTML::tr(); foreach (explode(",", $daylist) as $days) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-06-19 15:24:17
|
Revision: 6943 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6943&view=rev Author: vargenau Date: 2009-06-19 15:24:11 +0000 (Fri, 19 Jun 2009) Log Message: ----------- Valid XHTML code Modified Paths: -------------- trunk/lib/plugin/RecentChanges.php Modified: trunk/lib/plugin/RecentChanges.php =================================================================== --- trunk/lib/plugin/RecentChanges.php 2009-06-19 11:19:19 UTC (rev 6942) +++ trunk/lib/plugin/RecentChanges.php 2009-06-19 15:24:11 UTC (rev 6943) @@ -1350,7 +1350,8 @@ $icon = $GLOBALS['WikiTheme']->_findData('images/folderArrowOpen.png'); $img = HTML::img(array('id' => 'rc-action-img', 'src' => $icon, - 'onClick' => "showHideFolder('rc-action')", + 'onclick' => "showHideFolder('rc-action')", + 'alt' => _("Click to hide/show"), 'title' => _("Click to hide/show"))); // Display selection buttons This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-06-19 15:34:34
|
Revision: 6944 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6944&view=rev Author: vargenau Date: 2009-06-19 15:34:27 +0000 (Fri, 19 Jun 2009) Log Message: ----------- Better display by default Modified Paths: -------------- trunk/lib/plugin/RecentChanges.php Modified: trunk/lib/plugin/RecentChanges.php =================================================================== --- trunk/lib/plugin/RecentChanges.php 2009-06-19 15:24:11 UTC (rev 6943) +++ trunk/lib/plugin/RecentChanges.php 2009-06-19 15:34:27 UTC (rev 6944) @@ -1364,7 +1364,7 @@ $this->pushContent(HTML::legend($caption,' ',$img)); $table = HTML::table(array('id' => 'rc-action-body', - 'style' => 'display:none')); + 'style' => 'display:block')); $tr = HTML::tr(); foreach (explode(",", $daylist) as $days) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-06-21 10:25:38
|
Revision: 6945 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6945&view=rev Author: vargenau Date: 2009-06-21 10:24:32 +0000 (Sun, 21 Jun 2009) Log Message: ----------- Highlight buttons at start Modified Paths: -------------- trunk/lib/plugin/RecentChanges.php Modified: trunk/lib/plugin/RecentChanges.php =================================================================== --- trunk/lib/plugin/RecentChanges.php 2009-06-19 15:34:27 UTC (rev 6944) +++ trunk/lib/plugin/RecentChanges.php 2009-06-21 10:24:32 UTC (rev 6945) @@ -1383,18 +1383,18 @@ $table->pushContent($tr); $tr = HTML::tr(); - $tr->pushContent($this->_makeMinorButton(1)); - $tr->pushContent($this->_makeMinorButton(0)); + $tr->pushContent($this->_makeMinorButton(1, $show_minor)); + $tr->pushContent($this->_makeMinorButton(0, $show_minor)); $table->pushContent($tr); $tr = HTML::tr(); - $tr->pushContent($this->_makeShowAllButton(1)); - $tr->pushContent($this->_makeShowAllButton(0)); + $tr->pushContent($this->_makeShowAllButton(1, $show_all)); + $tr->pushContent($this->_makeShowAllButton(0, $show_all)); $table->pushContent($tr); $tr = HTML::tr(); - $tr->pushContent($this->_makeNewPagesButton(0)); - $tr->pushContent($this->_makeNewPagesButton(1)); + $tr->pushContent($this->_makeNewPagesButton(0, $only_new)); + $tr->pushContent($this->_makeNewPagesButton(1, $only_new)); $table->pushContent($tr); $this->pushContent($table); @@ -1459,59 +1459,37 @@ HTML::a(array('href' => $url, 'class' => 'wiki-rc-action'), $label)); } - function _makeMinorButton ($minor) { + function _makeMinorButton ($minor_button, $show_minor) { global $request; - if ($minor == 0) { - $label = _("Major modifications only"); - } else { - $label = _("All modifications"); - } - - $selfurl = $request->getURLtoSelf(array('action' => $request->getArg('action'))); - $url = $request->getURLtoSelf(array('action' => $request->getArg('action'), 'show_minor' => $minor)); - if ($url == $selfurl) { - return HTML::td(array('colspan'=>3, 'class'=>'tdselected'), $label); - } - return HTML::td(array('colspan'=>3, 'class'=>'tdunselected'), - HTML::a(array('href' => $url, 'class' => 'wiki-rc-action'), $label)); + $url = $request->getURLtoSelf(array('action' => $request->getArg('action'), 'show_minor' => $minor_button)); + $label = ($minor_button == 0) ? _("Major modifications only") : _("All modifications"); + $selected = HTML::td(array('colspan'=>3, 'class'=>'tdselected'), $label); + $unselected = HTML::td(array('colspan'=>3, 'class'=>'tdunselected'), + HTML::a(array('href' => $url, 'class' => 'wiki-rc-action'), $label)); + return ($minor_button == $show_minor) ? $selected : $unselected; } - function _makeShowAllButton ($showall) { + function _makeShowAllButton ($showall_button, $show_all) { global $request; - if ($showall == 0) { - $label = _("Page once only"); - } else { - $label = _("Full changes"); - } - - $selfurl = $request->getURLtoSelf(array('action' => $request->getArg('action'))); - $url = $request->getURLtoSelf(array('action' => $request->getArg('action'), 'show_all' => $showall)); - if ($url == $selfurl) { - return HTML::td(array('colspan'=>3, 'class'=>'tdselected'), $label); - } - return HTML::td(array('colspan'=>3, 'class'=>'tdunselected'), - HTML::a(array('href' => $url, 'class' => 'wiki-rc-action'), $label)); + $url = $request->getURLtoSelf(array('action' => $request->getArg('action'), 'show_all' => $showall_button)); + $label = ($showall_button == 0) ? _("Page once only") : _("Full changes"); + $selected = HTML::td(array('colspan'=>3, 'class'=>'tdselected'), $label); + $unselected = HTML::td(array('colspan'=>3, 'class'=>'tdunselected'), + HTML::a(array('href' => $url, 'class' => 'wiki-rc-action'), $label)); + return ($showall_button == $show_all) ? $selected : $unselected; } - function _makeNewPagesButton ($newpages) { + function _makeNewPagesButton ($newpages_button, $only_new) { global $request; - if ($newpages == 0) { - $label = _("Old and new pages"); - } else { - $label = _("New pages only"); - } - - $selfurl = $request->getURLtoSelf(array('action' => $request->getArg('action'))); - $url = $request->getURLtoSelf(array('action' => $request->getArg('action'), 'only_new' => $newpages)); - if ($url == $selfurl) { - return HTML::td(array('colspan'=>3, 'class'=>'tdselected'), $label); - } - - return HTML::td(array('colspan'=>3, 'class'=>'tdunselected'), - HTML::a(array('href' => $url, 'class' => 'wiki-rc-action'), $label)); + $url = $request->getURLtoSelf(array('action' => $request->getArg('action'), 'only_new' => $newpages_button)); + $label = ($newpages_button == 0) ? _("Old and new pages") : _("New pages only"); + $selected = HTML::td(array('colspan'=>3, 'class'=>'tdselected'), $label); + $unselected = HTML::td(array('colspan'=>3, 'class'=>'tdunselected'), + HTML::a(array('href' => $url, 'class' => 'wiki-rc-action'), $label)); + return ($newpages_button == $only_new) ? $selected : $unselected; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-06-22 08:10:27
|
Revision: 6947 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6947&view=rev Author: vargenau Date: 2009-06-22 08:10:25 +0000 (Mon, 22 Jun 2009) Log Message: ----------- Highlight days button at start Modified Paths: -------------- trunk/lib/plugin/RecentChanges.php Modified: trunk/lib/plugin/RecentChanges.php =================================================================== --- trunk/lib/plugin/RecentChanges.php 2009-06-21 11:43:42 UTC (rev 6946) +++ trunk/lib/plugin/RecentChanges.php 2009-06-22 08:10:25 UTC (rev 6947) @@ -1367,8 +1367,8 @@ 'style' => 'display:block')); $tr = HTML::tr(); - foreach (explode(",", $daylist) as $days) { - $tr->pushContent($this->_makeDayButton($days)); + foreach (explode(",", $daylist) as $days_button) { + $tr->pushContent($this->_makeDayButton($days_button, $days)); } $table->pushContent($tr); @@ -1400,23 +1400,21 @@ $this->pushContent($table); } - function _makeDayButton ($days) { + function _makeDayButton ($days_button, $days) { global $request; - if ($days == 1) + $url = $request->getURLtoSelf(array('action' => $request->getArg('action'), 'days' => $days_button)); + if ($days_button == 1) { $label = _("1 day"); - elseif ($days < 1) + } elseif ($days_button < 1) { $label = _("All time"); - else - $label = sprintf(_("%s days"), abs($days)); - - $selfurl = $request->getURLtoSelf(array('action' => $request->getArg('action'))); - $url = $request->getURLtoSelf(array('action' => $request->getArg('action'), 'days' => $days)); - if ($url == $selfurl) { - return HTML::td(array('class'=>'tdselected'), $label); + } else { + $label = sprintf(_("%s days"), abs($days_button)); } - return HTML::td(array('class'=>'tdunselected'), - HTML::a(array('href' => $url, 'class' => 'wiki-rc-action'), $label)); + $selected = HTML::td(array('class'=>'tdselected'), $label); + $unselected = HTML::td(array('class'=>'tdunselected'), + HTML::a(array('href' => $url, 'class' => 'wiki-rc-action'), $label)); + return ($days_button == $days) ? $selected : $unselected; } function _makeUsersButton ($users) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-08-05 09:27:58
|
Revision: 7056 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7056&view=rev Author: vargenau Date: 2009-08-05 09:27:48 +0000 (Wed, 05 Aug 2009) Log Message: ----------- Display "minor edit" for minor edits (like in PageHistory) Modified Paths: -------------- trunk/lib/plugin/RecentChanges.php Modified: trunk/lib/plugin/RecentChanges.php =================================================================== --- trunk/lib/plugin/RecentChanges.php 2009-08-05 09:04:53 UTC (rev 7055) +++ trunk/lib/plugin/RecentChanges.php 2009-08-05 09:27:48 UTC (rev 7056) @@ -463,8 +463,14 @@ $class = 'rc-' . $this->importance($rev); $time = $this->time($rev); - if (! $rev->get('is_minor_edit')) + if ($rev->get('is_minor_edit')) { + $minor_flag = HTML(" ", + HTML::span(array('class' => 'pageinfo-minoredit'), + "(" . _("minor edit") . ")")); + } else { $time = HTML::span(array('class' => 'pageinfo-majoredit'), $time); + $minor_flag = ''; + } $line = HTML::li(array('class' => $class)); @@ -488,7 +494,8 @@ $time, ' . . ', $this->authorLink($rev),' ', $this->authorContribs($rev),' ', - $this->summaryAsHTML($rev)); + $this->summaryAsHTML($rev),' ', + $minor_flag); } else { $line->pushContent($linkorname, ' ', $time, ' ', This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2010-04-06 16:00:00
|
Revision: 7320 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7320&view=rev Author: vargenau Date: 2010-04-06 15:59:54 +0000 (Tue, 06 Apr 2010) Log Message: ----------- Do not expand Mediawiki templates in summary Modified Paths: -------------- trunk/lib/plugin/RecentChanges.php Modified: trunk/lib/plugin/RecentChanges.php =================================================================== --- trunk/lib/plugin/RecentChanges.php 2010-04-06 14:58:41 UTC (rev 7319) +++ trunk/lib/plugin/RecentChanges.php 2010-04-06 15:59:54 UTC (rev 7320) @@ -228,7 +228,14 @@ return ''; return HTML::span( array('class' => 'wiki-summary'), "(", - TransformLinks($summary, $rev->get('markup'), $rev->getPageName()), + // TransformLinks($summary, $rev->get('markup'), $rev->getPageName()), + // We do parse the summary: + // 1) if the summary contains {{foo}}, the template must no be + // expanded + // 2) if the summary contains camel case, and DISABLE_MARKUP_WIKIWORD + // is true, the camel case must not be linked. + // Side-effect: brackets are not linked. TBD. + $summary, ")"); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2012-12-29 20:51:56
|
Revision: 8708 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8708&view=rev Author: vargenau Date: 2012-12-29 20:51:48 +0000 (Sat, 29 Dec 2012) Log Message: ----------- Use HTML list Modified Paths: -------------- trunk/lib/plugin/RecentChanges.php Modified: trunk/lib/plugin/RecentChanges.php =================================================================== --- trunk/lib/plugin/RecentChanges.php 2012-12-29 20:26:09 UTC (rev 8707) +++ trunk/lib/plugin/RecentChanges.php 2012-12-29 20:51:48 UTC (rev 8708) @@ -803,15 +803,14 @@ include_once 'lib/InlineParser.php'; $last_date = ''; $first = true; - $html = HTML(); + $html = HTML::ul(); $counter = 1; - $sp = HTML::Raw("\n · "); while ($rev = $changes->next()) { // enforce view permission if (mayAccessPage('view', $rev->_pagename)) { if ($link = $this->pageLink($rev)) // some entries may be empty // (/Blog/.. interim pages) - $html->pushContent($sp, $link, HTML::br()); + $html->pushContent(HTML::li($link)); if ($first) $this->setValidators($rev); $first = false; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2013-02-06 09:56:08
|
Revision: 8726 http://sourceforge.net/p/phpwiki/code/8726 Author: vargenau Date: 2013-02-06 09:56:05 +0000 (Wed, 06 Feb 2013) Log Message: ----------- Fix rss_icon, rss2_icon and pageLink arguments Modified Paths: -------------- trunk/lib/plugin/RecentChanges.php Modified: trunk/lib/plugin/RecentChanges.php =================================================================== --- trunk/lib/plugin/RecentChanges.php 2013-02-06 09:55:23 UTC (rev 8725) +++ trunk/lib/plugin/RecentChanges.php 2013-02-06 09:56:05 UTC (rev 8726) @@ -642,12 +642,12 @@ class _RecentChanges_SideBarFormatter extends _RecentChanges_HtmlFormatter { - function rss_icon() + function rss_icon($args = array()) { //omit rssicon } - function rss2_icon() + function rss2_icon($args = array()) { } @@ -703,7 +703,7 @@ return $linkurl; } - function pageLink($rev) + function pageLink($rev, $link_text = false) { $linkurl = parent::pageLink($rev); $linkurl->setAttr('target', '_content'); @@ -766,11 +766,11 @@ class _RecentChanges_BoxFormatter extends _RecentChanges_HtmlFormatter { - function rss_icon() + function rss_icon($args = array()) { } - function rss2_icon() + function rss2_icon($args = array()) { } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2013-09-03 12:42:21
|
Revision: 8839 http://sourceforge.net/p/phpwiki/code/8839 Author: vargenau Date: 2013-09-03 12:42:18 +0000 (Tue, 03 Sep 2013) Log Message: ----------- Initialize $html Modified Paths: -------------- trunk/lib/plugin/RecentChanges.php Modified: trunk/lib/plugin/RecentChanges.php =================================================================== --- trunk/lib/plugin/RecentChanges.php 2013-09-03 10:00:36 UTC (rev 8838) +++ trunk/lib/plugin/RecentChanges.php 2013-09-03 12:42:18 UTC (rev 8839) @@ -795,6 +795,9 @@ function format($changes) { include_once 'lib/InlineParser.php'; + + $html = HTML(HTML::h2(false, $this->headline())); + $first = true; while ($rev = $changes->next()) { // enforce view permission This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2014-06-11 16:04:33
|
Revision: 8888 http://sourceforge.net/p/phpwiki/code/8888 Author: vargenau Date: 2014-06-11 16:04:26 +0000 (Wed, 11 Jun 2014) Log Message: ----------- Fix French Modified Paths: -------------- trunk/lib/plugin/RecentChanges.php Modified: trunk/lib/plugin/RecentChanges.php =================================================================== --- trunk/lib/plugin/RecentChanges.php 2014-06-11 16:02:40 UTC (rev 8887) +++ trunk/lib/plugin/RecentChanges.php 2014-06-11 16:04:26 UTC (rev 8888) @@ -365,7 +365,7 @@ * de: %s days "Die %d jüngste %s [innerhalb (von] %s Tagen) sind unten aufgelistet." * * en: day/days "The %d most recent %s during [the past] (day) are listed below." - * fr: 1 jour "Les %d %s les plus récentes pendant [le dernier (d'une] jour) sont énumérées ci-dessous." + * fr: 1 jour "Les %d %s les plus récentes pendant [le dernier jour) sont énumérées ci-dessous." * fr: %s jours "Les %d %s les plus récentes pendant [les derniers (%s] jours) sont énumérées ci-dessous." */ if ($limit > 0) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2014-11-25 16:02:40
|
Revision: 9372 http://sourceforge.net/p/phpwiki/code/9372 Author: vargenau Date: 2014-11-25 16:02:37 +0000 (Tue, 25 Nov 2014) Log Message: ----------- Prettyprint Modified Paths: -------------- trunk/lib/plugin/RecentChanges.php Modified: trunk/lib/plugin/RecentChanges.php =================================================================== --- trunk/lib/plugin/RecentChanges.php 2014-11-25 16:01:00 UTC (rev 9371) +++ trunk/lib/plugin/RecentChanges.php 2014-11-25 16:02:37 UTC (rev 9372) @@ -1403,14 +1403,19 @@ if ($format == 'rss') $fmt_class = '_RecentChanges_RssFormatter'; elseif ($format == 'rss2') - $fmt_class = '_RecentChanges_Rss2Formatter'; elseif ($format == 'atom') - $fmt_class = '_RecentChanges_AtomFormatter'; elseif ($format == 'rss091') { + $fmt_class = '_RecentChanges_Rss2Formatter'; + elseif ($format == 'atom') + $fmt_class = '_RecentChanges_AtomFormatter'; + elseif ($format == 'rss091') { include_once 'lib/RSSWriter091.php'; $fmt_class = '_RecentChanges_RssFormatter091'; } elseif ($format == 'sidebar') - $fmt_class = '_RecentChanges_SideBarFormatter'; elseif ($format == 'box') - $fmt_class = '_RecentChanges_BoxFormatter'; elseif ($format == 'contribs') - $fmt_class = '_RecentChanges_UserContribsFormatter'; else + $fmt_class = '_RecentChanges_SideBarFormatter'; + elseif ($format == 'box') + $fmt_class = '_RecentChanges_BoxFormatter'; + elseif ($format == 'contribs') + $fmt_class = '_RecentChanges_UserContribsFormatter'; + else $fmt_class = '_RecentChanges_HtmlFormatter'; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2015-02-12 12:10:34
|
Revision: 9535 http://sourceforge.net/p/phpwiki/code/9535 Author: vargenau Date: 2015-02-12 12:10:32 +0000 (Thu, 12 Feb 2015) Log Message: ----------- Add <ul> for list Modified Paths: -------------- trunk/lib/plugin/RecentChanges.php Modified: trunk/lib/plugin/RecentChanges.php =================================================================== --- trunk/lib/plugin/RecentChanges.php 2015-02-12 11:45:34 UTC (rev 9534) +++ trunk/lib/plugin/RecentChanges.php 2015-02-12 12:10:32 UTC (rev 9535) @@ -797,7 +797,8 @@ { include_once 'lib/InlineParser.php'; - $html = HTML(HTML::h2(false, $this->headline())); + $html = HTML::div(); + $ul = HTML::ul(); $first = true; while ($rev = $changes->next()) { @@ -805,15 +806,18 @@ if (mayAccessPage('view', $rev->_pagename)) { if ($link = $this->pageLink($rev)) // some entries may be empty // (/Blog/.. interim pages) - $html->pushContent(HTML::li($link)); + $ul->pushContent(HTML::li($link)); if ($first) $this->setValidators($rev); $first = false; } } - if ($first) + if ($first) { $html->pushContent(HTML::p(array('class' => 'rc-empty'), $this->empty_message())); + } else { + $html->pushContent($ul); + } return $html; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2015-03-02 15:45:08
|
Revision: 9580 http://sourceforge.net/p/phpwiki/code/9580 Author: vargenau Date: 2015-03-02 15:45:06 +0000 (Mon, 02 Mar 2015) Log Message: ----------- Use __construct Modified Paths: -------------- trunk/lib/plugin/RecentChanges.php Modified: trunk/lib/plugin/RecentChanges.php =================================================================== --- trunk/lib/plugin/RecentChanges.php 2015-03-02 10:43:16 UTC (rev 9579) +++ trunk/lib/plugin/RecentChanges.php 2015-03-02 15:45:06 UTC (rev 9580) @@ -1151,7 +1151,7 @@ */ class LinkRevisionIterator extends WikiDB_PageRevisionIterator { - function LinkRevisionIterator($revisions, $category) + function __construct($revisions, $category) { /** * @var WikiRequest $request @@ -1195,7 +1195,7 @@ class PageMatchRevisionIterator extends WikiDB_PageRevisionIterator { - function PageMatchRevisionIterator($revisions, $match) + function __construct($revisions, $match) { $this->_revisions = $revisions; $this->search = new TextSearchQuery($match, true); @@ -1222,7 +1222,7 @@ */ class AuthorPageRevisionIterator extends WikiDB_PageRevisionIterator { - function AuthorPageRevisionIterator($revisions, $author) + function __construct($revisions, $author) { $this->_revisions = $revisions; $this->_author = $author; @@ -1244,7 +1244,7 @@ */ class OwnerPageRevisionIterator extends WikiDB_PageRevisionIterator { - function OwnerPageRevisionIterator($revisions, $owner) + function __construct($revisions, $owner) { $this->_revisions = $revisions; $this->_owner = $owner; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2015-07-10 10:55:29
|
Revision: 9709 http://sourceforge.net/p/phpwiki/code/9709 Author: vargenau Date: 2015-07-10 10:55:26 +0000 (Fri, 10 Jul 2015) Log Message: ----------- Add missing parameter Modified Paths: -------------- trunk/lib/plugin/RecentChanges.php Modified: trunk/lib/plugin/RecentChanges.php =================================================================== --- trunk/lib/plugin/RecentChanges.php 2015-07-10 10:04:59 UTC (rev 9708) +++ trunk/lib/plugin/RecentChanges.php 2015-07-10 10:55:26 UTC (rev 9709) @@ -118,7 +118,7 @@ function authorURL($author) { - return $this->authorHasPage() ? WikiURL($author) : false; + return $this->authorHasPage($author) ? WikiURL($author) : false; } function status($rev) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2016-10-10 19:39:32
|
Revision: 9958 http://sourceforge.net/p/phpwiki/code/9958 Author: vargenau Date: 2016-10-10 19:39:29 +0000 (Mon, 10 Oct 2016) Log Message: ----------- Use __construct Modified Paths: -------------- trunk/lib/plugin/RecentChanges.php Modified: trunk/lib/plugin/RecentChanges.php =================================================================== --- trunk/lib/plugin/RecentChanges.php 2016-10-10 14:14:48 UTC (rev 9957) +++ trunk/lib/plugin/RecentChanges.php 2016-10-10 19:39:29 UTC (rev 9958) @@ -30,7 +30,7 @@ public $_absurls = false; public $action = "RecentChanges"; - function _RecentChanges_Formatter($rc_args) + function __construct($rc_args) { $this->_args = $rc_args; $this->_diffargs = array('action' => 'diff'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2016-10-14 08:38:18
|
Revision: 9966 http://sourceforge.net/p/phpwiki/code/9966 Author: vargenau Date: 2016-10-14 08:38:16 +0000 (Fri, 14 Oct 2016) Log Message: ----------- Fix getMostRecentParams prototype Modified Paths: -------------- trunk/lib/plugin/RecentChanges.php Modified: trunk/lib/plugin/RecentChanges.php =================================================================== --- trunk/lib/plugin/RecentChanges.php 2016-10-14 08:33:12 UTC (rev 9965) +++ trunk/lib/plugin/RecentChanges.php 2016-10-14 08:38:16 UTC (rev 9966) @@ -1340,7 +1340,7 @@ return $args; } - function getMostRecentParams(&$args) + function getMostRecentParams($args) { $show_all = false; $show_minor = false; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2016-11-25 11:07:42
|
Revision: 9975 http://sourceforge.net/p/phpwiki/code/9975 Author: vargenau Date: 2016-11-25 11:07:40 +0000 (Fri, 25 Nov 2016) Log Message: ----------- Make "contribs" and "new pages" work in RecentChanges when not in English Modified Paths: -------------- trunk/lib/plugin/RecentChanges.php Modified: trunk/lib/plugin/RecentChanges.php =================================================================== --- trunk/lib/plugin/RecentChanges.php 2016-11-18 16:23:19 UTC (rev 9974) +++ trunk/lib/plugin/RecentChanges.php 2016-11-25 11:07:40 UTC (rev 9975) @@ -228,14 +228,14 @@ $author = $rev->get('author'); if (preg_match("/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/", $author)) return ''; return HTML('(', - Button(array('action' => _("RecentChanges"), + Button(array('action' => __("RecentChanges"), 'format' => 'contribs', 'author' => $author, 'days' => 360), _("contribs"), $author), ' | ', - Button(array('action' => _("RecentChanges"), + Button(array('action' => __("RecentChanges"), 'format' => 'contribs', 'owner' => $author, 'days' => 360), This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2016-12-12 13:40:04
|
Revision: 9992 http://sourceforge.net/p/phpwiki/code/9992 Author: vargenau Date: 2016-12-12 13:40:01 +0000 (Mon, 12 Dec 2016) Log Message: ----------- _("PageHistory") --> __("PageHistory") Modified Paths: -------------- trunk/lib/plugin/RecentChanges.php Modified: trunk/lib/plugin/RecentChanges.php =================================================================== --- trunk/lib/plugin/RecentChanges.php 2016-12-07 09:09:56 UTC (rev 9991) +++ trunk/lib/plugin/RecentChanges.php 2016-12-12 13:40:01 UTC (rev 9992) @@ -101,7 +101,7 @@ function historyURL($rev) { $page = $rev->getPage(); - return WikiURL($page, array('action' => _("PageHistory")), + return WikiURL($page, array('action' => __("PageHistory")), $this->_absurls); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2020-03-23 11:21:55
|
Revision: 10154 http://sourceforge.net/p/phpwiki/code/10154 Author: vargenau Date: 2020-03-23 11:21:53 +0000 (Mon, 23 Mar 2020) Log Message: ----------- print is enough Modified Paths: -------------- trunk/lib/plugin/RecentChanges.php Modified: trunk/lib/plugin/RecentChanges.php =================================================================== --- trunk/lib/plugin/RecentChanges.php 2020-03-23 10:43:05 UTC (rev 10153) +++ trunk/lib/plugin/RecentChanges.php 2020-03-23 11:21:53 UTC (rev 10154) @@ -743,17 +743,17 @@ elseif (!empty($pagematch)) $title = $pagematch; else $title = WIKI_NAME . $show_minor ? _("RecentEdits") : _("RecentChanges"); - printf("<title>" . $title . "</title>\n"); + print("<title>" . $title . "</title>\n"); global $WikiTheme; $css = $WikiTheme->getCSS(); $css->printXML(); - printf("</head>\n"); + print("</head>\n"); - printf("<body class=\"sidebar\">\n"); + print("<body class=\"sidebar\">\n"); $html->printXML(); echo '<a href="http://www.feedvalidator.org/check.cgi?url=http://phpwiki.demo.free.fr/index.php/RecentChanges?format=rss"><img src="themes/default/buttons/valid-rss.png" alt="[Valid RSS]" title="Validate the RSS feed" width="44" height="15" /></a>'; - printf("\n</body>\n"); - printf("</html>\n"); + print("\n</body>\n"); + print("</html>\n"); $request->finish(); // cut rest of page processing short } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2020-12-19 18:42:55
|
Revision: 10186 http://sourceforge.net/p/phpwiki/code/10186 Author: vargenau Date: 2020-12-19 18:42:53 +0000 (Sat, 19 Dec 2020) Log Message: ----------- Fix PHP syntax Modified Paths: -------------- trunk/lib/plugin/RecentChanges.php Modified: trunk/lib/plugin/RecentChanges.php =================================================================== --- trunk/lib/plugin/RecentChanges.php 2020-12-18 15:54:09 UTC (rev 10185) +++ trunk/lib/plugin/RecentChanges.php 2020-12-19 18:42:53 UTC (rev 10186) @@ -559,7 +559,7 @@ $this->rss_icon($author_args), $this->rss2_icon($author_args), $this->atom_icon($author_args), - $this->rdf_icon($author_args), + $this->rdf_icon($author_args)); } function format($changes) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |