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
ef80238b
Commit
ef80238b
authored
Nov 19, 2014
by
Robert Lyon
Committed by
Gerrit Code Review
Nov 19, 2014
Browse files
Merge "Adding comment display to image gallery artefact (Bug #1037531)"
parents
57b89080
34025e76
Changes
4
Show whitespace changes
Inline
Side-by-side
htdocs/artefact/file/blocktype/gallery/lib.php
View file @
ef80238b
...
...
@@ -402,7 +402,17 @@ class PluginBlocktypeGallery extends PluginBlocktype {
}
$smarty
->
assign
(
'frame'
,
get_config_plugin
(
'blocktype'
,
'gallery'
,
'photoframe'
));
$smarty
->
assign
(
'copyright'
,
$copyright
);
if
(
!
empty
(
$configdata
[
'artefactid'
]))
{
$artefact
=
$instance
->
get_artefact_instance
(
$configdata
[
'artefactid'
]);
require_once
(
get_config
(
'docroot'
)
.
'artefact/comment/lib.php'
);
require_once
(
get_config
(
'docroot'
)
.
'lib/view.php'
);
$view
=
new
View
(
$configdata
[
'viewid'
]);
list
(
$commentcount
,
$comments
)
=
ArtefactTypeComment
::
get_artefact_comments_for_view
(
$artefact
,
$view
,
$instance
->
get
(
'id'
));
$smarty
->
assign
(
'commentcount'
,
$commentcount
);
$smarty
->
assign
(
'comments'
,
$comments
);
}
return
$smarty
->
fetch
(
'blocktype:gallery:'
.
$template
.
'.tpl'
);
}
...
...
htdocs/theme/raw/artefact/file/blocktype/gallery/templates/slideshow.tpl
View file @
ef80238b
...
...
@@ -33,3 +33,6 @@ $j(function() {
{
else
}
{
str
tag
=
noimagesfound
section
=
artefact
.
file
}
{/
if
}
{
if
$commentcount
||
$commentcount
===
0
}
{
$comments
|
safe
}
{/
if
}
htdocs/theme/raw/artefact/file/blocktype/gallery/templates/squarethumbs.tpl
View file @
ef80238b
...
...
@@ -27,3 +27,6 @@ $j(function() {
});
</script>
{
if
isset
(
$copyright
)
}
<div
class=
"cb"
id=
"lbBottom"
>
{
$copyright
|
safe
}
</div>
{/
if
}
{
if
$commentcount
||
$commentcount
===
0
}
{
$comments
|
safe
}
{/
if
}
htdocs/theme/raw/artefact/file/blocktype/gallery/templates/thumbnails.tpl
View file @
ef80238b
...
...
@@ -27,3 +27,6 @@ $j(function() {
});
</script>
{
if
isset
(
$copyright
)
}
<div
class=
"cb"
id=
"lbBottom"
>
{
$copyright
|
safe
}
</div>
{/
if
}
{
if
$commentcount
||
$commentcount
===
0
}
{
$comments
|
safe
}
{/
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