mirror of
https://github.com/e107inc/e107.git
synced 2025-04-20 04:32:01 +02:00
Issue #2796 New shortcode for newforumposts_menu: {TOPIC_DATESTAMP: format=short|long|forum|relative}
This commit is contained in:
parent
a4091ea6d6
commit
03915060eb
@ -150,7 +150,23 @@
|
||||
return e107::getParser()->toBadge($val);
|
||||
}
|
||||
|
||||
/**
|
||||
* @example {TOPIC_DATESTAMP: format=relative}
|
||||
* @param string $parm['format'] short|long|forum|relative
|
||||
* @return HTML
|
||||
*/
|
||||
function sc_topic_datestamp($parm=null)
|
||||
{
|
||||
$mode = empty($parm['format']) ? 'forum' : $parm['format'];
|
||||
return e107::getParser()->toDate($this->var['thread_datestamp'], $mode);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @example {TOPIC_LASTPOST_DATE: format=relative}
|
||||
* @param string $parm['format'] short|long|forum|relative
|
||||
* @return HTML
|
||||
*/
|
||||
function sc_topic_lastpost_date($parm=null)
|
||||
{
|
||||
$mode = empty($parm['format']) ? 'forum' : $parm['format'];
|
||||
@ -277,9 +293,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* What does this do?
|
||||
*/
|
||||
|
||||
function sc_threaddatestamp($parm = '')
|
||||
{
|
||||
$gen = e107::getDateConvert(); // XXX _URL_ check if all required info is there
|
||||
|
Loading…
x
Reference in New Issue
Block a user