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
b5853385
Commit
b5853385
authored
Sep 09, 2009
by
Richard Mansfield
Browse files
Show blog,blogpost tags on view/view page
Signed-off-by:
Richard Mansfield
<
richardm@catalyst.net.nz
>
parent
fef96786
Changes
3
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/blog/blocktype/blog/theme/raw/blog_render_self.tpl
View file @
b5853385
{
if
!
$options.hidetitle
}
<h2>
{
$artefacttitle
}
</h2>
{/
if
}
{
$description
}
{
if
$tags
}
<div
class=
"tags"
>
{
str
tag
=
tags
}
:
{
list_tags
owner
=
$owner
tags
=
$tags
}
</div>
{/
if
}
{
foreach
from
=
$postdata
item
=
post
}
{
$post.content.html
}
...
...
htdocs/artefact/blog/lib.php
View file @
b5853385
...
...
@@ -217,6 +217,8 @@ class ArtefactTypeBlog extends ArtefactType {
$smarty
->
assign
(
'options'
,
$options
);
$smarty
->
assign
(
'description'
,
clean_html
(
$this
->
get
(
'description'
)));
$smarty
->
assign
(
'owner'
,
$this
->
get
(
'owner'
));
$smarty
->
assign
(
'tags'
,
$this
->
get
(
'tags'
));
// Remove unnecessary options for blog posts
unset
(
$options
[
'hidetitle'
]);
...
...
htdocs/artefact/blog/theme/raw/render/blogpost_renderfull.tpl
View file @
b5853385
...
...
@@ -8,6 +8,7 @@
<table
class=
"cb attachments fullwidth"
>
<tbody>
<tr><th
colspan=
"2"
>
{
str
tag
=
attachedfiles
section
=
artefact
.
blog
}
:
</th></tr>
{
if
$artefact
->
get
(
'tags'
)
}
<div
class=
"tags"
>
{
str
tag
=
tags
}
:
{
list_tags
owner
=
$artefact
->
get
(
'owner'
)
tags
=
$artefact
->
get
(
'tags'
)
}
</div>
{/
if
}
{
foreach
from
=
$attachments
item
=
item
}
<tr
class=
"r
{
cycle
values
=
1
,
0
}
"
>
{
if
$icons
}
<td
style=
"width: 22px;"
><img
src=
"
{
$item
->
iconpath
|
escape
}
"
alt=
""
></td>
{/
if
}
...
...
Write
Preview
Supports
Markdown
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