Tag pi_lastmodified

Support en français pour CMS Made Simple.

Moderator: jce76350

Post Reply
alex7575

Tag pi_lastmodified

Post by alex7575 »

Quelqu'un a t il réussi à le faire marcher?
function 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;
}
si oui, merci de nous dire comment faire :)
alex7575

Re: Tag pi_lastmodified

Post by alex7575 »

pour répondre à ma question il suffit de mettre le fichier php dans le répertoire:
\plugins\  ;D
Post Reply

Return to “French - Français”