AutorÃa | Ultima modificación | Ver Log |
{{!This file is part of Moodle - http://moodle.org/Moodle is free software: you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe 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 ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with Moodle. If not, see <http://www.gnu.org/licenses/>.}}{{!@template block_multiblock/columns-3equalThis template shows the multiple blocks in a two-column layout (equal width)Example context (json):{"multiblockid": 28,"multiblock": [{"id": 1,"title": "Block 1","content": "<p>Block 1</p>","footer": "My footer","active": true},{"id": 2,"title": "Block 2","content": "<p>Block 2</p>","footer": "","active": false},{"id": 3,"title": "Block 3","content": "<p>Block 3</p>","footer": "","active": false}]}}}<div class="multiblock multiblock-columns-3 multiblock-columns-3equal mt-5"><div class="container"><div class="row">{{#multiblock}}<div class="col-md-4"><section id="inst{{id}}" class="block block_{{type}} card mb-3 h-100"><div class="card-body p-0">{{#title}}<h5 id="instance-{{id}}-header" class="card-title d-inline">{{{title}}}</h5>{{/title}}<div class="card-text content p-0 m-0{{#title}} mt-3{{/title}}">{{{content}}}<div class="footer">{{{footer}}}</div>{{{annotation}}}</div></div></section></div>{{/multiblock}}</div></div></div>{{#js}}require(['jquery'], function($) {$('#inst{{multiblockid}}').addClass('multiblock-columns-3-parent');});{{/js}}