2013-01-30 00:21:21 +00:00
|
|
|
var eejs = require("ep_etherpad-lite/node/eejs");
|
2013-03-30 00:34:19 +00:00
|
|
|
var settings = require('../../src/node/utils/Settings');
|
2013-01-30 00:21:21 +00:00
|
|
|
|
|
|
|
exports.eejsBlock_scripts = function (hook_name, args, cb) {
|
|
|
|
args.content = args.content + eejs.require("ep_email_notifications/templates/scripts.html", {}, module);
|
|
|
|
return cb();
|
|
|
|
};
|
|
|
|
|
2013-03-26 19:44:34 +00:00
|
|
|
exports.eejsBlock_mySettings = function (hook_name, args, cb) {
|
2013-03-26 20:40:02 +00:00
|
|
|
args.content = args.content + eejs.require('ep_email_notifications/templates/email_notifications_settings.ejs');
|
2013-03-26 19:44:34 +00:00
|
|
|
return cb();
|
|
|
|
};
|
|
|
|
|
|
|
|
exports.eejsBlock_styles = function (hook_name, args, cb) {
|
|
|
|
args.content = args.content + '<link href="../static/plugins/ep_email_notifications/static/css/email_notifications.css" rel="stylesheet">';
|
|
|
|
};
|
2013-03-30 00:34:19 +00:00
|
|
|
|
|
|
|
exports.clientVars = function(hook, context, callback) {
|
|
|
|
// return the setting to the clientVars, sending the value
|
|
|
|
return callback({ "panelDisplayLocation": settings.ep_email_notifications.panelDisplayLocation });
|
|
|
|
};
|