*
* @triggers HTML_SHOWREV_OUTPUT
* @param null|string $txt wiki text or null for showing $ID
* @return void
*/
public function show($txt = null)
{
global $ID;
global $REV;
global $HIGH;
global $INFO;
global $DATE_AT;
//disable section editing for old revisions or in preview
if ($txt || $REV) {
$secedit = false;
} else {
$secedit = true;
}
if (!is_null($txt)) {
//PreviewHeader
echo '
';
// print intro for preview
echo p_locale_xhtml('preview');
echo '