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
moodle
moodle
Commits
e379b1d8
Commit
e379b1d8
authored
Nov 22, 2021
by
Eloy Lafuente
Committed by
jun
Nov 23, 2021
Browse files
Merge branch 'MDL-73128-master' of
https://github.com/sarjona/moodle
parents
d122f73c
a0407f6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
badges/renderer.php
View file @
e379b1d8
...
...
@@ -59,7 +59,8 @@ class core_badges_renderer extends plugin_renderer_base {
$name
=
html_writer
::
tag
(
'span'
,
$bname
,
array
(
'class'
=>
'badge-name'
));
$image
=
html_writer
::
empty_tag
(
'img'
,
[
'src'
=>
$imageurl
,
'class'
=>
'badge-image'
,
'alt'
=>
$badge
->
imagecaption
]);
$imagecaption
=
$badge
->
imagecaption
??
''
;
$image
=
html_writer
::
empty_tag
(
'img'
,
[
'src'
=>
$imageurl
,
'class'
=>
'badge-image'
,
'alt'
=>
$imagecaption
]);
if
(
!
empty
(
$badge
->
dateexpire
)
&&
$badge
->
dateexpire
<
time
())
{
$image
.
=
$this
->
output
->
pix_icon
(
'i/expired'
,
get_string
(
'expireddate'
,
'badges'
,
userdate
(
$badge
->
dateexpire
)),
...
...
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