Tag pi_lastmodified
Posted: Wed Dec 07, 2005 10:33 pm
Quelqu'un a t il réussi à le faire marcher?

si oui, merci de nous dire comment fairefunction smarty_cms_function_pi_lastmodified($params, &$smarty) {
global $gCms;
$dateformat = isset($params['dateformat']) ? $params['dateformat'] : "d.m.y h:m" ;
$text = isset($params['text']) ? $params['text'] : "Letzte Bearbeitung: " ;
# check if the page exists in the db
$content = ContentManager::LoadContentFromId($gCms->variables['page_id']);
$result="".$text;
if ($content !== FALSE)
{
if ($content->mModifiedDate"") $result.=date($dateformat,strtotime($content->mModifiedDate));
}
$result .="";
return $result;
}
