Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 34... Línea 34...
34
    Example context (json):
34
    Example context (json):
35
    {
35
    {
36
        "contenthtml" : "<iframe src=\"http://something/h5p/embed.php?url=h5pfileurl\"></iframe>",
36
        "contenthtml" : "<iframe src=\"http://something/h5p/embed.php?url=h5pfileurl\"></iframe>",
37
        "usercanedit" : true,
37
        "usercanedit" : true,
38
        "editcontenturl" : "http://something/contentbank/edit.php?contextid=1&plugin=h5p&id=1",
38
        "editcontenturl" : "http://something/contentbank/edit.php?contextid=1&plugin=h5p&id=1",
39
        "closeurl" : "http://moodle.test/h5pcb/moodle/contentbank/index.php"
39
        "closeurl" : "http://moodle.test/h5pcb/moodle/contentbank/index.php",
-
 
40
        "customfieldshtml" : "custom fields html"
40
    }
41
    }
41
}}
42
}}
42
<div class="core_contentbank_viewcontent">
43
<div class="core_contentbank_viewcontent">
43
    {{>core_contentbank/viewcontent/toolbarview}}
44
    {{>core_contentbank/viewcontent/toolbarview}}
44
    <div class="mt-1 mb-1" data-region="viewcontent-content">
45
    <div class="mt-1 mb-1" data-region="viewcontent-content">
45
        {{{ contenthtml }}}
46
        {{{ contenthtml }}}
46
    </div>
47
    </div>
-
 
48
    <div class="ps-2 pt-3">
-
 
49
        {{{ customfieldshtml }}}
-
 
50
    </div>
47
</div>
51
</div>