mirror of
https://github.com/moodle/moodle.git
synced 2025-08-10 19:36:41 +02:00
MDL-63836 course: No course header images
This feature may be added in future, but for now we are not going to include it.
This commit is contained in:
parent
5160567c5f
commit
f41207400b
10 changed files with 10 additions and 87 deletions
|
@ -1,29 +0,0 @@
|
|||
{{!
|
||||
This file is part of Moodle - http://moodle.org/
|
||||
|
||||
Moodle is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Moodle is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
}}
|
||||
{{!
|
||||
@template core/course_header_image
|
||||
|
||||
Example context (json):
|
||||
{
|
||||
"courseimage": "http://domain.name/pluginfile.php/123/course/overviewfiles/kitten.jpg"
|
||||
}
|
||||
}}
|
||||
<div class="course-header-image-wrapper">
|
||||
<div class="course-header-image rounded w-100 h-100" style='background-image: url("{{{courseimage}}}");'>
|
||||
<div class="sr-only">{{#str}}courseheaderimage, core{{/str}}</div>
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue