Commit 54fc6474 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Show blogpost author in renderfull mode

parent aa1c4b95
......@@ -79,6 +79,7 @@ $string['noresults'] = 'No results';
$string['postbody'] = 'Body';
$string['postbodydesc'] = ' ';
$string['postedon'] = 'Posted on';
$string['postedbyon'] = 'Posted by %s on %s';
$string['posttitle'] = 'Title';
$string['posttitledesc'] = 'The title appears above your post.';
$string['posts'] = 'posts';
......
......@@ -468,7 +468,9 @@ class ArtefactTypeBlogPost extends ArtefactType {
protected function render_full($options) {
$smarty = smarty();
$smarty->assign('artefact', $this);
$smarty->assign('creationtime', format_date($this->ctime));
$smarty->assign('postedbyon', get_string('postedbyon', 'artefact.blog',
display_name($this->owner),
format_date($this->ctime)));
return $smarty->fetch('artefact:blog:render/blogpost_renderfull.tpl');
}
......
......@@ -4,5 +4,5 @@
<div>
<h3>{$artefact->get('title')|escape}</h3>
<div>{$artefact->get('description')}</div>
<div>{str tag=postedon section=artefact.blog} {$creationtime}</div>
<div>{$postedbyon}</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