Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle_mod-hvp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle_mod-hvp
Commits
ce2bff49
Commit
ce2bff49
authored
6 years ago
by
Thomas Marstrander
Browse files
Options
Downloads
Patches
Plain Diff
Add settings
parent
526693aa
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
classes/output/mobile.php
+8
-1
8 additions, 1 deletion
classes/output/mobile.php
db/mobile.php
+0
-1
0 additions, 1 deletion
db/mobile.php
version.php
+1
-1
1 addition, 1 deletion
version.php
with
9 additions
and
3 deletions
classes/output/mobile.php
+
8
−
1
View file @
ce2bff49
...
@@ -42,6 +42,13 @@ class mobile {
...
@@ -42,6 +42,13 @@ class mobile {
// TODO: Import js from other file
// TODO: Import js from other file
$scripts
=
$view
->
getjsassets
();
$scripts
=
$view
->
getjsassets
();
$corescripts
=
$view
->
getcorejsassets
();
$corescripts
=
$view
->
getcorejsassets
();
$h5pintegration
=
$view
->
getSettings
();
$jscontent
=
'window.H5PIntegration = '
.
json_encode
(
$h5pintegration
)
.
';'
;
$jscontent
.
=
file_get_contents
(
$CFG
->
dirroot
.
'/mod/hvp/library/js/jquery.js'
);
$jscontent
.
=
file_get_contents
(
$CFG
->
dirroot
.
'/mod/hvp/library/js/h5p.js'
);
// $jscontent .= file_get_contents($CFG->dirroot . '/mod/hvp/library/js/h5p-event-dispatcher.js');
return
array
(
return
array
(
'templates'
=>
array
(
'templates'
=>
array
(
...
@@ -50,7 +57,7 @@ class mobile {
...
@@ -50,7 +57,7 @@ class mobile {
'html'
=>
$html
,
'html'
=>
$html
,
),
),
),
),
'javascript'
=>
'console.log("Add JS here..")'
,
'javascript'
=>
$jscontent
,
);
);
}
}
}
}
This diff is collapsed.
Click to expand it.
db/mobile.php
+
0
−
1
View file @
ce2bff49
...
@@ -5,7 +5,6 @@ $addons = array(
...
@@ -5,7 +5,6 @@ $addons = array(
'coursehvp'
=>
array
(
// Handler unique name (alphanumeric).
'coursehvp'
=>
array
(
// Handler unique name (alphanumeric).
'delegate'
=>
'CoreCourseModuleDelegate'
,
// Delegate (where to display the link to the plugin)
'delegate'
=>
'CoreCourseModuleDelegate'
,
// Delegate (where to display the link to the plugin)
'method'
=>
'mobile_course_view'
,
// Main function in \mod_certificate\output\mobile
'method'
=>
'mobile_course_view'
,
// Main function in \mod_certificate\output\mobile
'init'
=>
'mobile_course_init'
,
// TODO: Perhaps concatenate core scripts here ?
'displaydata'
=>
array
(
'displaydata'
=>
array
(
'icon'
=>
$CFG
->
wwwroot
.
'/mod/hvp/pix/icon.svg'
,
'icon'
=>
$CFG
->
wwwroot
.
'/mod/hvp/pix/icon.svg'
,
'class'
=>
''
,
'class'
=>
''
,
...
...
This diff is collapsed.
Click to expand it.
version.php
+
1
−
1
View file @
ce2bff49
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
defined
(
'MOODLE_INTERNAL'
)
||
die
();
defined
(
'MOODLE_INTERNAL'
)
||
die
();
$plugin
->
version
=
201
81130
00
;
$plugin
->
version
=
201
90225
00
;
$plugin
->
requires
=
2013051403
;
$plugin
->
requires
=
2013051403
;
$plugin
->
cron
=
0
;
$plugin
->
cron
=
0
;
$plugin
->
component
=
'mod_hvp'
;
$plugin
->
component
=
'mod_hvp'
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment