├── .gitignore ├── pix ├── icon.png └── icon.svg ├── templates ├── contact_site_administrator.mustache ├── iframe_embedding_disabled.mustache ├── mobile_view_page.mustache └── review.mustache ├── .jshintrc ├── .gitmodules ├── thirdpartylibs.xml ├── embed.css ├── settings-hide-key.js ├── version.php ├── db ├── events.php ├── mobile.php ├── messages.php ├── tasks.php ├── install.php └── access.php ├── editor.js ├── dataviews.js ├── classes ├── event │ ├── course_module_instance_list_viewed.php │ ├── attempt_submitted.php │ └── course_module_viewed.php ├── task │ ├── remove_old_log_entries.php │ ├── look_for_updates.php │ ├── remove_old_auth_tokens.php │ └── remove_tmpfiles.php ├── content_type_cache_form.php ├── event.php ├── output │ └── mobile.php ├── mobile_auth.php ├── xapi_result.php ├── upload_libraries_form.php ├── editor_ajax.php ├── user_grades.php ├── content_user_data.php └── view_assets.php ├── xapi-custom-report.css ├── styles.css ├── README.md ├── view.php ├── renderer.php ├── backup └── moodle2 │ ├── backup_hvp_activity_task.class.php │ ├── restore_hvp_activity_task.class.php │ ├── backup_hvp_stepslib.php │ └── restore_hvp_stepslib.php ├── autoloader.php ├── embed.php ├── embed.js ├── index.php ├── .travis.yml ├── upgrade_content_page.php ├── grade.php ├── library_list.php ├── xapi-collector.js ├── .eslintrc ├── settings.php ├── review.php └── ajax.php /.gitignore: -------------------------------------------------------------------------------- 1 | files/tmp/* 2 | files/content/* 3 | files/libraries/* 4 | *~ 5 | -------------------------------------------------------------------------------- /pix/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marinaglancy/moodle-mod_hvp/stable/pix/icon.png -------------------------------------------------------------------------------- /templates/contact_site_administrator.mustache: -------------------------------------------------------------------------------- 1 |
' . 34 | get_string('welcomegettingstarted', 'hvp', array( 35 | 'moodle_tutorial' => 'href="https://h5p.org/moodle" target="_blank"', 36 | 'example_content' => 'href="https://h5p.org/content-types-and-applications" target="_blank"' 37 | )) . 38 | '
' . 39 | '' . 40 | get_string('welcomecommunity', 'hvp', array( 41 | 'forums' => 'href="https://h5p.org/forum" target="_blank"' 42 | )) . 43 | '
' . 44 | '' . get_string('welcomecontactus', 'hvp', 45 | 'href="https://h5p.org/contact" target="_blank"') . 46 | '
'; 47 | 48 | // Notify of communication with H5P Hub. 49 | // @codingStandardsIgnoreLine 50 | echo "H5P fetches content types directly from the H5P Hub. In order to do this the H5P plugin will communicate with the Hub once a day to fetch information about new and updated content types. It will send in anonymous data to the Hub about H5P usage. Read more at the plugin communication page at H5P.org.
"; 51 | 52 | \mod_hvp\framework::printMessages('info', \mod_hvp\framework::messages('info')); 53 | \mod_hvp\framework::printMessages('error', \mod_hvp\framework::messages('error')); 54 | } 55 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # H5P Moodle Plugin 2 | 3 | Create and add rich content inside your LMS for free. Some examples of what you 4 | get with H5P are Interactive Video, Quizzes, Collage and Timeline. 5 | 6 | ## Usage 7 | 8 | If you intend to use the repository directly in production, make sure that you're using the "Stable" branch, as this is the production branch. 9 | There are no guarantees for the state of the other branches at any given time. 10 | Also make sure that all submodules are pulled as well using: 11 | 12 | ``` 13 | git submodule update --init 14 | ``` 15 | 16 | ## Description 17 | 18 | One of the great benefits with using H5P is that it gives you access to lots of 19 | different [interactive content types](https://h5p.org/content-types-and-applications). 20 | 21 | Another great benefit with H5P is that it allows you to easily share and reuse 22 | content. To reuse content, you just download the H5P you would like to edit and 23 | make your changes – e.g. translate to a new language or adjust it to a new 24 | situation. 25 | 26 | H5P is: 27 | 28 | * Open Source 29 | * Free to Use 30 | * HTML5 31 | * Responsive 32 | 33 | The H5P community is actively contributing to improve H5P. Updates and new 34 | features are continuously made available on the community portal 35 | [H5P.org](https://h5p.org). 36 | 37 | View our [setup for Moodle](https://h5p.org/moodle) to get information on how 38 | to get started with H5P. 39 | 40 | ### GDPR Compliance 41 | Information useful to help you achieve GDPR compliance while using this plugin 42 | can be found at [H5P.org's GDPR Compliance](https://h5p.org/plugin-gdpr-compliance) page. 43 | 44 | ### Development Version 45 | Warning! Never use the development version in production, there are no guarantees for which state the development branches are in at a given time. 46 | 47 | Inside your `moodle/mod` folder you run the following command: 48 | ``` 49 | git clone -b master https://github.com/h5p/h5p-moodle-plugin.git hvp && cd hvp && git submodule update --init 50 | ``` 51 | 52 | ### Enabling The Plugin 53 | In Moodle, go to administrator -> plugin overview, and press 'Update database'. 54 | 55 | ## Settings 56 | Settings can be found at: Site Administration -> Plugins -> Activity Modules -> H5P 57 | 58 | ## Contributing 59 | Feel free to contribute by: 60 | * Submitting translations to the [Moodle AMOS translator](https://lang.moodle.org/local/amos/view.php) 61 | * Testing and creating issues. But remember to check if the issues is already 62 | reported before creating a new one. Perhaps you can contribute to an already 63 | existing issue? 64 | * Solving issues and submitting code through Pull Requests to the 'master' branch or on a separate feature branch. 65 | -------------------------------------------------------------------------------- /view.php: -------------------------------------------------------------------------------- 1 | . 16 | /** 17 | * View H5P Content 18 | * 19 | * @package mod_hvp 20 | * @copyright 2016 Joubel AS