From e1aaa605d5681c52708c43b8df8863421e540b38 Mon Sep 17 00:00:00 2001 From: justinhunt Date: Mon, 22 Aug 2022 02:18:41 +0000 Subject: [PATCH] added several new presets and a version bump --- CHANGES.txt | 3 +++ presets/buncee.txt | 1 + presets/flip.txt | 1 + presets/lightbox2image.txt | 1 + presets/lightbox2thumbnail.txt | 1 + presets/quizlet.txt | 1 + presets/wordwall.txt | 1 + version.php | 4 ++-- 8 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 presets/buncee.txt create mode 100644 presets/flip.txt create mode 100644 presets/lightbox2image.txt create mode 100644 presets/lightbox2thumbnail.txt create mode 100644 presets/quizlet.txt create mode 100644 presets/wordwall.txt diff --git a/CHANGES.txt b/CHANGES.txt index dcf375a..97abc2a 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,5 +1,8 @@ Change List ========= +Version 1.4.16(Build 2022082200) +- Added lightbox, Buncee, Flip, Wordwall, Quizlet templates + Version 1.4.15(Build 2022062700) - Removed JQuery UI because it breaks drawers in Moodle 4 diff --git a/presets/buncee.txt b/presets/buncee.txt new file mode 100644 index 0000000..5e114d4 --- /dev/null +++ b/presets/buncee.txt @@ -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":"
\n
\n
\n
\n","bodyend":"","script":"","style":"","dataset":"","datasetvars":"","alternate":"","alternateend":""} \ No newline at end of file diff --git a/presets/flip.txt b/presets/flip.txt new file mode 100644 index 0000000..ee91e1c --- /dev/null +++ b/presets/flip.txt @@ -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":"
\n
\n\n
\n
\n","bodyend":"","script":"","style":"","dataset":"","datasetvars":"","alternate":"","alternateend":""} \ No newline at end of file diff --git a/presets/lightbox2image.txt b/presets/lightbox2image.txt new file mode 100644 index 0000000..fdedf85 --- /dev/null +++ b/presets/lightbox2image.txt @@ -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":"\n
\n","bodyend":"
\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":""} \ No newline at end of file diff --git a/presets/lightbox2thumbnail.txt b/presets/lightbox2thumbnail.txt new file mode 100644 index 0000000..8ace849 --- /dev/null +++ b/presets/lightbox2thumbnail.txt @@ -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":"\n
\n","bodyend":"
\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":""} \ No newline at end of file diff --git a/presets/quizlet.txt b/presets/quizlet.txt new file mode 100644 index 0000000..cdccc9c --- /dev/null +++ b/presets/quizlet.txt @@ -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":"
\n
\n\n","bodyend":"","script":"","style":"","dataset":"","datasetvars":"","alternate":"","alternateend":""} \ No newline at end of file diff --git a/presets/wordwall.txt b/presets/wordwall.txt new file mode 100644 index 0000000..3b8871b --- /dev/null +++ b/presets/wordwall.txt @@ -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":"
\n
\n\n
\n
\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":""} \ No newline at end of file diff --git a/version.php b/version.php index bb43e8b..366f279 100644 --- a/version.php +++ b/version.php @@ -25,8 +25,8 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2022062700; // The current plugin version (Date: YYYYMMDDXX) +$plugin->version = 2022082200; // The current plugin version (Date: YYYYMMDDXX) $plugin->requires = 2011070100; // Requires this Moodle version $plugin->component = 'filter_generico'; // Full name of the plugin (used for diagnostics) $plugin->maturity = MATURITY_STABLE; -$plugin->release = 'Version 1.4.15(Build 2022062700)'; +$plugin->release = 'Version 1.4.16(Build 2022082200)';