Skip to content

Commit

Permalink
ability to change theme fixed per page
Browse files Browse the repository at this point in the history
  • Loading branch information
btopro committed Oct 24, 2024
1 parent afdc1a3 commit 84ac5a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/saveNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ const strip_tags = require("locutus/php/strings/strip_tags");
}
// allow setting theme via page break
if ((data["attributes"]["developer-theme"]) && data["attributes"]["developer-theme"] != '') {
themes = HAXCMS.getThemes();
value = filter_var(data["attributes"]["developer-theme"], "FILTER_SANITIZE_STRING");
let themes = HAXCMS.getThemes();
let value = filter_var(data["attributes"]["developer-theme"], "FILTER_SANITIZE_STRING");
// support for removing the custom theme or applying none
if (value == '_none_' || value == '' || !value || !themes[value]) {
delete page.metadata.theme;
Expand Down

0 comments on commit 84ac5a1

Please sign in to comment.