Skip to content

Commit

Permalink
added notranslate preset and version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
justinhunt committed Jan 30, 2024
1 parent 9d88c90 commit 86fd3c3
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 4 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.73 (Build 202401xxxx)
Version 3.1.73 (Build 2024013000)
- Added a try/catch to renderedcontent filter processing
- Added Loom and Canva and NoTranslate presets

Version 3.1.72(Build 2024012400)
- Added a template and code to support it, that allows you to call a renderer function from a template
Expand Down
2 changes: 1 addition & 1 deletion db/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function xmldb_filter_poodll_install() {
'pw-multiplayervideo','pw-multispeedplayer','pw-poodllaudio','pwtinyaudioplayer','superinteractiveaudiowidget','superinteractivevideowidget',
'videoembed', 'videolightbox_w',
'tabs', 'tabitem', 'accordian', 'accordianitem',
'countdown','dice','flipclock','icontoggle','lightbox2','poodllcalc','popover','popuprecorder','speechcards',
'countdown','dice','loom','icontoggle','lightbox2','poodllcalc','popover','popuprecorder','speechcards',
'textblockreader','tta','selecttoread');
$templateindex = 0;
foreach ($presets as $preset) {
Expand Down
1 change: 1 addition & 0 deletions presets/canva.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"key":"canva","name":"Canva","instructions":"This is a simple template that embeds a Canva thing","requirecss":"","requirejs":"","shim":"","defaults":"","amd":"1","body":"<div style=\"position: relative; width: 100%; height: 0; padding-top: 56.2500%;\n padding-bottom: 0; box-shadow: 0 2px 8px 0 rgba(63,69,81,0.16); margin-top: 1.6em; margin-bottom: 0.9em; overflow: hidden;\n border-radius: 8px; will-change: transform;\">\n <iframe loading=\"lazy\" style=\"position: absolute; width: 100%; height: 100%; top: 0; left: 0; border: none; padding: 0;margin: 0;\"\n src=\"@@smartembedlink@@?embed\" allowfullscreen=\"allowfullscreen\" allow=\"fullscreen\">\n </iframe>\n</div>\n<a href=\"@@smartembedlink@@\" target=\"_blank\" rel=\"noopener\">video</a>","bodyend":"","script":"","style":"","dataset":"","datasetvars":"","alternate":"","alternateend":"","version":"1.0.0"}
1 change: 1 addition & 0 deletions presets/loom.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"Loom","key":"loom","version":"1.0.0","instructions":"This is a simple template to embed a loom video. ","showatto":"1","showplayers":"0","requirecss":"","requirejs":"","shim":"","defaults":"","amd":"1","body":"<div style=\"max-width:' + @@width@@ + 'px\">\n<div style=\"padding:60.44% 0 0 0;position:relative;\">\n<iframe src=\"https://www.loom.com/embed/@@loomid@@\" style=\"position:absolute;top:0;left:0;width:100%;height:100%;\" frameborder=\"0\"webkitallowfullscreen=\"\" mozallowfullscreen=\"\" allowfullscreen=\"\"></iframe>\n</div>\n</div>","bodyend":"","script":"","style":"","dataset":"","datasetvars":"","alternate":"","alternateend":""}
1 change: 1 addition & 0 deletions presets/notranslate.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"No Translate","key":"notranslate","version":"1.0.0","instructions":"Use this with blocks of text to prevent browsers from applying auto-translate to them.","showatto":"1","showplayers":"0","requirecss":"","requirejs":"","shim":"","defaults":"","amd":"1","body":"<div translate=\"no\" class=\"notranslate\">","bodyend":"</div>","script":"","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 = 2024012400;
$plugin->version = 2024013000;
$plugin->requires = 2016052300;//moodle 3.1.0
$plugin->component = 'filter_poodll';
$plugin->maturity = MATURITY_STABLE;
$plugin->release = '3.1.72(Build 2024012400)';
$plugin->release = '3.1.73(Build 2024013000)';

0 comments on commit 86fd3c3

Please sign in to comment.