Commit 95df18cb authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Add creation date to blog post rendering

parent 7a708d44
......@@ -68,6 +68,7 @@ $string['nofilesattachedtothispost'] = 'No attached files';
$string['noresults'] = 'No results';
$string['postbody'] = 'Body';
$string['postbodydesc'] = 'This is where your actual post goes.';
$string['postedon'] = 'Posted on';
$string['posttitle'] = 'Title';
$string['posttitledesc'] = 'The title appears above your post.';
$string['publish'] = 'Publish';
......
......@@ -433,6 +433,7 @@ class ArtefactTypeBlogPost extends ArtefactType {
protected function render_full($options) {
$smarty = smarty();
$smarty->assign('artefact', $this);
$smarty->assign('creationtime', format_date($this->ctime));
return $smarty->fetch('artefact:blog:render/blogpost_renderfull.tpl');
}
......
......@@ -4,4 +4,5 @@
<div>
<h3>{$artefact->get('title')|escape}</h3>
<div>{$artefact->get('description')}</div>
<div>{str tag=postedon section=artefact.blog} {$creationtime}</div>
</div>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment