Revision history for LatestAction
Additions:
----
CategoryUserContributions.
CategoryUserContributions.
Additions:
/**
* Add list of n latest changes, like a portable RecentChanges.
*
* Usage: {{latest max="5"}}
*
* @package Latest
* @subpackage
* @name latest
*
* @author {@link http://www.guegue.com/~javier/ Javier Wilson} - original idea and code.
* @version 0.1
* @since Not (yet?) part of offical Wikka release
*
* @input int $max optional: number of listings
*
* @todo Nothing I can think about for now.
*
*/
// set defaults
$output ='';
// ***** PARAMETERS Interface *****
$uMax = $vars['max'];
if ($uMax) $max = $uMax;
// ***** end PARAMETERS Interface *****
// ***** HTML code generation *****
if ($this->HasAccess('read', $page['tag'])) {
$output .= ' '.$this->Link($page['tag'], '', '', 0).'<span class="datetime"> '.$dateformatted.'</span><br />'."\n";
if ($j > $max)
break;
// ***** end HTML code generation *****
print $output;
* Add list of n latest changes, like a portable RecentChanges.
*
* Usage: {{latest max="5"}}
*
* @package Latest
* @subpackage
* @name latest
*
* @author {@link http://www.guegue.com/~javier/ Javier Wilson} - original idea and code.
* @version 0.1
* @since Not (yet?) part of offical Wikka release
*
* @input int $max optional: number of listings
*
* @todo Nothing I can think about for now.
*
*/
// set defaults
$output ='';
// ***** PARAMETERS Interface *****
$uMax = $vars['max'];
if ($uMax) $max = $uMax;
// ***** end PARAMETERS Interface *****
// ***** HTML code generation *****
if ($this->HasAccess('read', $page['tag'])) {
$output .= ' '.$this->Link($page['tag'], '', '', 0).'<span class="datetime"> '.$dateformatted.'</span><br />'."\n";
if ($j > $max)
break;
// ***** end HTML code generation *****
print $output;
Deletions:
echo ' '.$this->Link($page['tag'], '', '', 0).'<span class="datetime"> '.$dateformatted.'</span><br />'."\n";
Additions:
The php code of actions/latest.php:
Deletions:
$readable++;
Additions:
%%(php)
Deletions:
Additions:
=====Latest Action=====
Deletions:
Additions:
>>==See also:==
~-Documentation: LatestActionInfo
>>This is the development page for the latest changes action.::c::
~-Documentation: LatestActionInfo
>>This is the development page for the latest changes action.::c::