mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-40759 fontawesome: lang strings comments
This commit is contained in:
parent
7e8940b544
commit
dc633a24b9
2 changed files with 12 additions and 9 deletions
|
@ -263,8 +263,7 @@ class comment {
|
|||
'comments',
|
||||
'commentscount',
|
||||
'commentsrequirelogin',
|
||||
'deletecommentbyon',
|
||||
'deletecomment',
|
||||
'deletecommentbyon'
|
||||
),
|
||||
'moodle'
|
||||
);
|
||||
|
@ -916,8 +915,11 @@ class comment {
|
|||
$replacements = array();
|
||||
|
||||
if (!empty($cmt->delete) && empty($nonjs)) {
|
||||
$strdelete = get_string('deletecommentbyon', 'moodle', (object)['user' => $cmt->fullname, 'time' => $cmt->time]);
|
||||
$deletelink = html_writer::start_tag('div', array('class'=>'comment-delete'));
|
||||
$deletelink .= html_writer::start_tag('a', array('href' => '#', 'id' => 'comment-delete-'.$this->cid.'-'.$cmt->id));
|
||||
$deletelink .= html_writer::start_tag('a', array('href' => '#', 'id' => 'comment-delete-'.$this->cid.'-'.$cmt->id,
|
||||
'title' => $strdelete));
|
||||
|
||||
$deletelink .= $OUTPUT->pix_icon('t/delete', get_string('delete'));
|
||||
$deletelink .= html_writer::end_tag('a');
|
||||
$deletelink .= html_writer::end_tag('div');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue