-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
50 changed files
with
869 additions
and
1,305 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"name": "kaltura/moodle_plugin" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
lib/editor/atto/plugins/kalturamedia/ltibrowse_container.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
require_once(dirname(dirname(dirname(dirname(dirname(dirname(__FILE__)))))).'/config.php'); | ||
require_login(); | ||
global $PAGE; | ||
$PAGE->set_context(context_system::instance()); | ||
$PAGE->set_pagelayout('embedded'); | ||
echo $OUTPUT->header(); | ||
$requestQueryString = isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : ""; | ||
|
||
?> | ||
|
||
<iframe id="kafIframe" src="ltibrowse.php?<?php echo $requestQueryString; ?>" width="100%" height="600" style="border: 0;" allowfullscreen> | ||
</iframe> | ||
<div id="kalturaMediaSubmitButton"></div> | ||
<script> | ||
var buttonJs = window.opener.buttonJs; | ||
var embedButton = Y.Node.create('<button></button>'); | ||
embedButton.setAttribute('id', 'KalturaMediaSubmit'); | ||
embedButton.setAttribute('disabled', 'disabled'); | ||
embedButton.setHTML("<?php echo get_string('embedbuttontext', 'atto_kalturamedia'); ?>"); | ||
embedButton.hide(); | ||
Y.one("#kalturaMediaSubmitButton").append(embedButton); | ||
function kaltura_atto_embed_callback(data) | ||
{ | ||
var button = Y.one('#KalturaMediaSubmit'); | ||
for(param in data) | ||
{ | ||
var attributeName = 'data-embedinfo-'+param; | ||
button.setAttribute(attributeName, data[param]); | ||
} | ||
button.removeAttribute('disabled'); | ||
button.show(); | ||
|
||
embedButton.on('click', buttonJs.embedItem, buttonJs, button._getDataAttributes()); | ||
} | ||
|
||
function getEmbedInfo(data) { | ||
return embedInfo; | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.