Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upstream merge #65

Merged
merged 16 commits into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion amd/build/communicator.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions amd/build/communicator.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions amd/build/contenthubregistration.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion amd/build/contenthubregistration.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion editor
Submodule editor updated 504 files
2 changes: 2 additions & 0 deletions lang/en/hvp.php
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,8 @@
$string['contenthub:licenseagreementtitle'] = 'End User License Agreement (EULA)';
$string['contenthub:licenseagreementdescription'] = 'Please read the following agreement before proceeding with the ';
$string['contenthub:licenseagreementmaintext'] = 'TODO';
$string['contenthubsearchenable'] = 'Enable shared content in H5P Hub';
$string['contenthubsearchdescription'] = 'Find and download shared content from H5P Hub.';
$string['contenthub:register'] = 'Register an account on the H5P Hub <a href="{$a}">here</a>';
$string['contenthub:changesettings'] = 'Change account settings <a href="{$a}">here</a>';
$string['contenthub:nopermissions'] = 'You do not have permission to register the site with the content hub.';
Expand Down
4 changes: 1 addition & 3 deletions locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,7 @@ function hvp_add_editor_assets($id = null, $mformid = null) {
$editorajaxtoken = \H5PCore::createToken('editorajax');

$interface = \mod_hvp\framework::instance('interface');
$siteuuid = $interface->getOption('site_uuid', null);
$secret = $interface->getOption('hub_secret', null);
$enablecontenthub = !empty($siteuuid) && !empty($secret);
$enablecontenthub = ($interface->getOption('hub_is_enabled', null) ? $interface->getOption('h5p_search_content_hub', null) : "0") === "1";

$settings['editor'] = array(
'filesPath' => $filespathbase . 'editor',
Expand Down
8 changes: 8 additions & 0 deletions settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,14 @@
''
));

// Content Hub on by default for all users
$settings->add(
new admin_setting_configcheckbox(
'mod_hvp/h5p_search_content_hub',
get_string('contenthubsearchenable', 'hvp'),
get_string('contenthubsearchdescription', 'hvp'), 1));

// Register on the Content Hub to allow uploading content
$settings->add(new admin_setting_html(
'mod_hvp/content_hub_settings_box',
get_string('contenthub:settings:box', 'hvp'),
Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2023122503;
$plugin->version = 2024112100;
$plugin->requires = 2013051403;
$plugin->cron = 0;
$plugin->component = 'mod_hvp';
$plugin->maturity = MATURITY_STABLE;
$plugin->release = '1.26.1';
$plugin->supported = [400, 404];
$plugin->release = '1.27.1';
Loading