Skip to content

Commit

Permalink
added several new presents and version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
justinhunt committed Aug 22, 2022
1 parent d592159 commit 04f9d6e
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
Change List
=========
Version 3.1.59 (Build 202208XXXX)
Version 3.1.59 (Build 2022082200)
- Added strict multiplayer
- Added lightbox, Buncee, Flip, Wordwall, Quizlet templates

Version 3.1.58 (Build 2022060500)
- Added better free trial link
Expand Down
1 change: 1 addition & 0 deletions presets/buncee.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"Buncee","key":"buncee","version":"1.0.0","instructions":"Enter the share link of Buncee and it will be embedded on the page.","showatto":"1","showplayers":"0","requirecss":"","requirejs":"","shim":"","defaults":"buncee_url=\"\"","amd":"1","body":"<div style=\"width: 100%; max-width: calc(30% + 700px);\">\n<div id=\"@@AUTOID@@\" style=\"padding-top: 56.25%;position:relative; overflow: hidden; width: 100% \">\n</div>\n</div>\n<script>\nvar buncee_url='@@buncee_url@@';\nbuncee_url = buncee_url.replace('app.edu.buncee.com/buncee','app.api.edu.buncee.com/player');\nvar iframe_code = \"<iframe style='position: absolute; top: 0; left: 0; bottom: 0; right: 0; width: 100%; height: 100%;' src='\" + buncee_url +\"?embed=1&render_slide_panel=0' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>\";\n document.getElementById(\"@@AUTOID@@\").innerHTML += iframe_code;\n</script>","bodyend":"","script":"","style":"","dataset":"","datasetvars":"","alternate":"","alternateend":""}
1 change: 1 addition & 0 deletions presets/flip.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"Flip","key":"flip","version":"1.0.0","instructions":"Enter the share link of Flip activity and it will be embedded on the page.","showatto":"1","showplayers":"0","requirecss":"","requirejs":"","shim":"","defaults":"share_link=\"\"","amd":"1","body":"<div style=\"width: 100%; max-width: calc(30% + 700px);\">\n<div style=\"padding-top: 76%;position:relative; overflow: hidden; width: 100% \">\n<iframe\n style=\"position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n width: 100%;\n height: 100%;\"\n src=\"@@share_link@@?embed=true\"\n webkitallowfullscreen\n mozallowfullscreen\n allowfullscreen\n allow=\"microphone; camera; display-capture\"></iframe>\n</div>\n</div>\n","bodyend":"","script":"","style":"","dataset":"","datasetvars":"","alternate":"","alternateend":""}
1 change: 1 addition & 0 deletions presets/lightbox2image.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"Image Lightbox","key":"lightbox2image","version":"1.0.3","instructions":"Add content to display in lightbox between the tags on the page. The first image between the tags will be the clickable thumbnail. If there is no image it wont work, so make sure you add an image","showatto":"1","showplayers":"0","requirecss":"//cdnjs.cloudflare.com/ajax/libs/fancybox/3.3.5/jquery.fancybox.min.css","requirejs":"","shim":"","defaults":"thumbwidth=150","amd":"1","body":"<a id=\"@@AUTOID@@\" data-fancybox data-src=\"#@@AUTOID@@_content\" href=\"javascript:;\" ></a>\n<div id=\"@@AUTOID@@_content\" class=\"hide\">\n","bodyend":"</div>\n","script":"var thumb = $('#' + @@AUTOID@@ + \"_content img\").first().clone();\nthumb.attr('width', @@thumbwidth@@ + 'px');\nthumb.attr('height', 'auto');\nthumb.appendTo($('#' + @@AUTOID@@));\nif(!$.fn.fancybox){ \n$.getScript('https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.js', function(){});\n}return;","style":"","dataset":"","datasetvars":"","alternate":"","alternateend":""}
1 change: 1 addition & 0 deletions presets/lightbox2thumbnail.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"Lightbox2_Thumbnail","key":"lightbox2thumbnail","version":"1.0.3","instructions":"Add content to display in lightbox between the tags on the page. The first image between the tags will be the clickable thumbnail. If there is no image it wont work, so make sure you add an image","showatto":"1","showplayers":"0","requirecss":"//cdnjs.cloudflare.com/ajax/libs/fancybox/3.3.5/jquery.fancybox.min.css","requirejs":"","shim":"","defaults":"thumbwidth=150","amd":"1","body":"<a id=\"@@AUTOID@@\" data-fancybox data-src=\"#@@AUTOID@@_content\" href=\"javascript:;\" ></a>\n<div id=\"@@AUTOID@@_content\" class=\"hide\">\n","bodyend":"</div>\n","script":"var thumb = $('#' + @@AUTOID@@ + \"_content img\").first();\nthumb.attr('width', @@thumbwidth@@ + 'px');\nthumb.attr('height', 'auto');\nthumb.appendTo($('#' + @@AUTOID@@));\nif(!$.fn.fancybox){ \n$.getScript('https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.js', function(){});\n}return;","style":"","dataset":"","datasetvars":"","alternate":"","alternateend":""}
1 change: 1 addition & 0 deletions presets/quizlet.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"Quizlet","key":"quizlet","version":"1.0.1","instructions":"Enter the quizlet set url and game type, and it will be embedded on the page.","showatto":"1","showplayers":"0","requirecss":"","requirejs":"","shim":"","defaults":"game_type=\"match|learn|test|flashcards|spell\"","amd":"1","body":"<div style=\"width: 100%; max-width: calc(30% + 700px);\">\n<div id=\"@@AUTOID@@_qc\" style=\"padding-top: 56.25%;position:relative; overflow: hidden; width: 100%; min-height: 500px\">\n<script>\nvar iframe_code='<iframe src=\"https://quizlet.com/@quizlet_id@/@@game_type@@/embed?i=935py&x=1jj1\" style=\"position: absolute; top: 0; left: 0; bottom: 0; right: 0; width: 100%; height: 100%;\"></iframe>';\nvar quizlet_id=\"@@quizlet_url@@\".split('/')[3];\niframe_code=iframe_code.replace('@quizlet_id@',quizlet_id);\n document.getElementById(\"@@AUTOID@@\" + '_qc').innerHTML += iframe_code;\n</script>\n","bodyend":"","script":"","style":"","dataset":"","datasetvars":"","alternate":"","alternateend":""}
1 change: 1 addition & 0 deletions presets/wordwall.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"Wordwall-oembed","key":"wordwall-oembed","version":"1.0.3","instructions":"Enter the URL of a Wordwall activity and it will be embedded on the page.","showatto":"1","showplayers":"0","requirecss":"","requirejs":"","shim":"","defaults":"wordwall_url=\"\"","amd":"1","body":"<div style=\"width: 100%; max-width: calc(30% + 700px);\">\n<div id=\"@@AUTOID@@_content\" class=\"pfilter_wwcontent\" style=\"padding-top: 76%;position:relative; overflow: hidden; width: 100% \">\n\n</div>\n</div>\n","bodyend":"","script":"var oembedurl = \"https://wordwall.net/api/oembed?url=\" + encodeURIComponent(@@wordwall_url@@) + \"&format=json\";\n$.ajax({\n url: oembedurl,\n crossDomain: true,\n type: 'GET',\n error: function(xhr, status, error) {\n console.log(theurl);\n console.log(error);\n },\n success: function(data) {\n $(\"#\" + @@AUTOID@@ + \"_content\").html(data.html);\n var iframe = $(\"#\" + @@AUTOID@@ + \"_content iframe\");\n iframe.removeAttr('width');\n iframe.removeAttr('height');\n iframe.attr('style','position: absolute;top: 0; left: 0; bottom: 0; right: 0; width: 100%; height: 100%;');\n   }\n});\n\n","style":"","dataset":"","datasetvars":"","alternate":"","alternateend":""}
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@

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

$plugin->version = 2022060500;
$plugin->version = 2022082200;
$plugin->requires = 2016052300;//moodle 3.1.0
$plugin->component = 'filter_poodll';
$plugin->maturity = MATURITY_STABLE;
$plugin->release = '3.1.58 (Build 2022060500)';
$plugin->release = '3.1.59 (Build 2022082200)';

0 comments on commit 04f9d6e

Please sign in to comment.