first commit

This commit is contained in:
CHIEFSOFT\ameye
2024-09-30 18:11:26 -04:00
commit e592ca6823
27270 changed files with 5002257 additions and 0 deletions
@@ -0,0 +1,32 @@
YUI.add('moodle-core-handlebars', function (Y, NAME) {
// Handlebars only exists in the global namespace and we do not want to
// Clone the entire thing.
// It should be reasonably safe within Moodle to add some core
// functionality to Handlebars at this level.
Y.Handlebars.registerHelper('get_string', function() {
var args = new Y.Array(arguments);
// Pop off the Handlebars object at the end.
args.pop();
// Add the Handlebars hashtable to support get_string arguments.
args.push(arguments[arguments.length - 1].hash);
// Perform the get_string.
return M.util.get_string.apply(this, args);
});
Y.Handlebars.registerHelper('image_url', function() {
var args = new Y.Array(arguments);
// Pop off the Handlebars object at the end.
args.pop();
// Perform the get_string.
return M.util.image_url.apply(this, args);
});
}, '@VERSION@');
@@ -0,0 +1 @@
YUI.add("moodle-core-handlebars",function(e,r){e.Handlebars.registerHelper("get_string",function(){var r=new e.Array(arguments);return r.pop(),r.push(arguments[arguments.length-1].hash),M.util.get_string.apply(this,r)}),e.Handlebars.registerHelper("image_url",function(){var r=new e.Array(arguments);return r.pop(),M.util.image_url.apply(this,r)})},"@VERSION@");
@@ -0,0 +1,32 @@
YUI.add('moodle-core-handlebars', function (Y, NAME) {
// Handlebars only exists in the global namespace and we do not want to
// Clone the entire thing.
// It should be reasonably safe within Moodle to add some core
// functionality to Handlebars at this level.
Y.Handlebars.registerHelper('get_string', function() {
var args = new Y.Array(arguments);
// Pop off the Handlebars object at the end.
args.pop();
// Add the Handlebars hashtable to support get_string arguments.
args.push(arguments[arguments.length - 1].hash);
// Perform the get_string.
return M.util.get_string.apply(this, args);
});
Y.Handlebars.registerHelper('image_url', function() {
var args = new Y.Array(arguments);
// Pop off the Handlebars object at the end.
args.pop();
// Perform the get_string.
return M.util.image_url.apply(this, args);
});
}, '@VERSION@');