diff --git a/classes/my_certificates_table.php b/classes/my_certificates_table.php index b0c0858..3810722 100644 --- a/classes/my_certificates_table.php +++ b/classes/my_certificates_table.php @@ -136,7 +136,7 @@ class my_certificates_table extends \table_sql { public function col_download($certificate) { global $OUTPUT; - $icon = new \pix_icon('i/import', get_string('download')); + $icon = new \pix_icon('download', get_string('download'), 'customcert'); $link = new \moodle_url('/mod/customcert/my_certificates.php', array('userid' => $this->userid, 'certificateid' => $certificate->id, diff --git a/classes/report_table.php b/classes/report_table.php index e34be5b..e554bb6 100644 --- a/classes/report_table.php +++ b/classes/report_table.php @@ -145,7 +145,7 @@ class report_table extends \table_sql { public function col_download($user) { global $OUTPUT; - $icon = new \pix_icon('i/import', get_string('download')); + $icon = new \pix_icon('download', get_string('download'), 'customcert'); $link = new \moodle_url('/mod/customcert/report.php', array('id' => $this->cm->id, 'downloadcert' => '1', diff --git a/lib.php b/lib.php index 491d91a..ff7c8db 100644 --- a/lib.php +++ b/lib.php @@ -418,3 +418,12 @@ function mod_customcert_inplace_editable($itemtype, $itemid, $newvalue) { $updateelement->name, $updateelement->name); } } + +/** + * Get icon mapping for font-awesome. + */ +function mod_customcert_get_fontawesome_icon_map() { + return [ + 'mod_customcert:download' => 'fa-download' + ]; +} diff --git a/pix/download.png b/pix/download.png new file mode 100644 index 0000000..0f08f97 Binary files /dev/null and b/pix/download.png differ diff --git a/pix/download.svg b/pix/download.svg new file mode 100644 index 0000000..007cc99 --- /dev/null +++ b/pix/download.svg @@ -0,0 +1,3 @@ + +]> \ No newline at end of file