Skip to content

Commit

Permalink
Fixed compatibility with Mobirise v5
Browse files Browse the repository at this point in the history
  • Loading branch information
witsec committed Mar 14, 2020
1 parent b35e243 commit a717927
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,10 @@

All notable changes to this project will be documented in this file.

## v4 (2020-03-14)

- Fixed compatibility with Mobirise v5

## v3 (2019-11-01)

- Updated the way site settings were handled
Expand Down
15 changes: 12 additions & 3 deletions src/app.js
@@ -1,9 +1,11 @@
(function(jQuery, mbrApp) {
defineM("witsec-white-label", function(g, mbrApp, tr) {
mbrApp.regExtension({
name: "witsec-white-label",
events: {
load: function() {
var a = this;
var a = this;

// On publish, remove references to Mobirise
a.addFilter("publishHTML", function(b) {
var c = a.projectSettings["witsec-white-label"] || false;

Expand Down Expand Up @@ -42,7 +44,14 @@
b.push(c);
return b
});

// Respond to enabling/disabling white label
mbrApp.$body.on("change", "#witsec-white-label", function() {
if (!$("#witsec-white-label").prop("checked")) {
a.projectSettings["witsec-white-label"] = false;
}
});
}
}
})
})(jQuery, mbrApp);
}, ["jQuery", "mbrApp", "TR()"]);
6 changes: 3 additions & 3 deletions src/params.json
@@ -1,9 +1,9 @@
{
"name": "White Label v3",
"name": "White Label v4",
"alias": "witsec-white-label",
"version": 3,
"version": 4,
"minAppVersion": "4.10.17",
"appScript": true,
"description":"White label your website by removing references to Mobirise in the source code. <a href='https://witsec.nl'>Learn more...</a>",
"logo":"thumbnail.png"
"logo":"thumbnail.svg"
}
Binary file removed src/thumbnail.png
Binary file not shown.
10 changes: 10 additions & 0 deletions src/thumbnail.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a717927

Please sign in to comment.