mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-68636 core_contentbank: Changing get_icon function
This commit is contained in:
parent
f9830e456a
commit
6fc3477cc5
7 changed files with 81 additions and 16 deletions
|
@ -23,11 +23,11 @@
|
|||
{
|
||||
"name": "accordion.h5p",
|
||||
"link": "http://something/contentbank/contenttype/h5p/view.php?url=http://something/pluginfile.php/1/contentbank/public/accordion.h5p",
|
||||
"icon" : "<img class='icon iconsize-big' alt='accordion.h5p' aria-hidden='true' src='http://something/theme/image.php/boost/core/1581597850/f/h5p-64'>"
|
||||
"icon" : "http://something/theme/image.php/boost/core/1581597850/f/h5p-64"
|
||||
},
|
||||
{
|
||||
"name": "resume.pdf",
|
||||
"icon": "<img class='icon iconsize-big' alt='resume.pdf' aria-hidden='true' src='http://something/theme/image.php/boost/core/1584597850/f/pdf-64'>"
|
||||
"icon": "http://something/theme/image.php/boost/core/1584597850/f/pdf-64"
|
||||
}
|
||||
],
|
||||
"tools": [
|
||||
|
@ -65,7 +65,7 @@
|
|||
<div class="cb-file position-relative mb-2" data-file="{{{name}}}">
|
||||
<div class="p-2">
|
||||
<div class="cb-thumbnail mb-1 text-center">
|
||||
{{{ icon }}}
|
||||
<img class="icon iconsize-big" alt="{{{name}}}" title="{{{name}}}" src="{{{ icon }}}">
|
||||
</div>
|
||||
|
||||
{{#link}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue