Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Moodle Filter Opencast
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
Moodle Filter Opencast
Commits
099e4826
Commit
099e4826
authored
3 years ago
by
Dennis Ahrens
Browse files
Options
Downloads
Patches
Plain Diff
HsH Fiddles at this plugin. :-|
parent
f276b0a2
Branches
hsh_3.10
No related tags found
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
filter.php
+4
-3
4 additions, 3 deletions
filter.php
lang/en/filter_opencast.php
+1
-2
1 addition, 2 deletions
lang/en/filter_opencast.php
lib.php
+3
-1
3 additions, 1 deletion
lib.php
templates/player.mustache
+1
-1
1 addition, 1 deletion
templates/player.mustache
version.php
+3
-3
3 additions, 3 deletions
version.php
with
12 additions
and
10 deletions
filter.php
+
4
−
3
View file @
099e4826
...
...
@@ -57,6 +57,7 @@ class filter_opencast extends moodle_text_filter {
// Looking for tags.
$matches
=
preg_split
(
'/(<[^>]*>)/i'
,
$text
,
-
1
,
PREG_SPLIT_NO_EMPTY
|
PREG_SPLIT_DELIM_CAPTURE
);
$loginhtml
=
''
;
if
(
$matches
)
{
$renderer
=
$PAGE
->
get_renderer
(
'filter_opencast'
);
...
...
@@ -64,7 +65,7 @@ class filter_opencast extends moodle_text_filter {
$loggedin
=
true
;
if
(
!
self
::
$loginrendered
)
{
// Login and set cookie.
filter_opencast_login
();
$loginhtml
=
filter_opencast_login
();
$loggedin
=
false
;
self
::
$loginrendered
=
true
;
}
...
...
@@ -113,6 +114,6 @@ class filter_opencast extends moodle_text_filter {
}
// Return the same string except processed by the above.
return
$text
;
return
$loginhtml
.
$text
;
}
}
This diff is collapsed.
Click to expand it.
lang/en/filter_opencast.php
+
1
−
2
View file @
099e4826
...
...
@@ -33,4 +33,3 @@ $string['setting_engageurl'] = 'URL of the Opencast Engage server';
$string
[
'setting_engageurl_desc'
]
=
'If empty, the base URL of the admin tool is used.'
;
$string
[
'setting_playerurl'
]
=
'URL of the Opencast player'
;
$string
[
'setting_playerurl_desc'
]
=
'Relative URL of the Opencast player, e.g. /engage/theodul/ui/core.html for the Theodul Pass Player.'
;
\ No newline at end of file
$string
[
'to_the_video'
]
=
'Watch the video'
;
\ No newline at end of file
This diff is collapsed.
Click to expand it.
lib.php
+
3
−
1
View file @
099e4826
...
...
@@ -48,10 +48,12 @@ function filter_opencast_login() {
// Render form.
$renderer
=
$PAGE
->
get_renderer
(
'filter_opencast'
);
echo
$renderer
->
render_lti_form
(
$endpoint
,
$params
);
$html
=
$renderer
->
render_lti_form
(
$endpoint
,
$params
);
// Submit form.
$PAGE
->
requires
->
js_call_amd
(
'filter_opencast/form'
,
'init'
);
return
$html
;
}
/**
...
...
This diff is collapsed.
Click to expand it.
templates/player.mustache
+
1
−
1
View file @
099e4826
...
...
@@ -30,5 +30,5 @@
<iframe
data-frameSrc=
"
{{
src
}}
"
width=
"95%"
height=
"455px"
class=
"ocplayer"
allowfullscreen=
"true"
></iframe>
{{/
loggedin
}}
{{! Print the link to the video. }}
<a
style=
"display:block;"
target=
"_blank"
href=
"
{{
link
}}
"
>
{{#
str
}}
to_the_video, filter_opencast
{{/
str
}}
</a>
<a
style=
"display:block;"
target=
"_blank"
href=
"
{{
link
}}
"
>
Zum Video
</a>
This diff is collapsed.
Click to expand it.
version.php
+
3
−
3
View file @
099e4826
...
...
@@ -19,14 +19,14 @@
*
* @package filter
* @subpackage opencastfilter
* @copyright 2018 Tamara Gunkel
, 2020 Nina Herrmann
* @copyright 2018 Tamara Gunkel
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined
(
'MOODLE_INTERNAL'
)
||
die
();
$plugin
->
maturity
=
MATURITY_RC
;
$plugin
->
version
=
201803190
2
;
// The current plugin version (Date: YYYYMMDDXX).
$plugin
->
version
=
201803190
4
;
// The current plugin version (Date: YYYYMMDDXX).
$plugin
->
requires
=
2017050500
;
// Requires this Moodle version.
$plugin
->
component
=
'filter_opencast'
;
// Full name of the plugin.
$plugin
->
dependencies
=
array
(
...
...
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