NEEDS 2nd OPINION BEFORE MOVING | H5P Activity Plugin and boost theme (but also Fordson)

Re: NEEDS 2nd OPINION BEFORE MOVING | H5P Activity Plugin and boost theme (but also Fordson)

by Ger Tielemans -
Number of replies: 0

Hello Mary,

After my post on Wednesday I went sick to bed with a flew.

Yesterday I left my bed and I was very happy and surprised to see the solution already in to the forum yesterday: great this community.

Thanks for all your effort, Mary.

 The workaround in the code - line 64 in /mod/hvp/mod_form.php -  works great for Boost, but for a child of Boost like Fordson you need some extension of this work-around like:


  // Editor placeholder.

        if (($CFG->theme == 'boost') or ($CFG->theme == 'fordson')) {

          $h5peditor = array();

          $h5peditor[] = $mform->createElement('html', '<div class="h5p-editor">' . get_string('javascriptloading', 'hvp') .  '</div>');

          $mform->addGroup($h5peditor, 'h5peditorgroup', get_string('editor', 'hvp'));

        }

        else {

          $mform->addElement('static', 'h5peditor', get_string('editor', 'hvp'), '<div class="h5p-editor">' . get_string('javascriptloading', 'hvp') .  '</div>');

        }

Average of ratings: Useful (1)