Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
95df18cb
Commit
95df18cb
authored
Jan 11, 2007
by
Richard Mansfield
Browse files
Add creation date to blog post rendering
parent
7a708d44
Changes
3
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/blog/lang/en.utf8/artefact.blog.php
View file @
95df18cb
...
...
@@ -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'
;
...
...
htdocs/artefact/blog/lib.php
View file @
95df18cb
...
...
@@ -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'
);
}
...
...
htdocs/artefact/blog/theme/default/render/blogpost_renderfull.tpl
View file @
95df18cb
...
...
@@ -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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment