Jump to content
  • Status: Moved to Github

in AdminCP Theme Settings > JS template...

Code placed inside the IF and ENDIF tags is output raw and is not being processed in v5.0.9.

e.g. if a theme setting is enabled, output the JS:

{{if cssvar.mytheme_enable_scroll_up == TRUE}}

//  Make sure the DOM is ready first ;)
document.addEventListener('DOMContentLoaded', (event) => {
    
// console.log('DOM is ready!.')

}

{{endif}}	

but all the code in gets output into the raw body source in full instead of being parsed:

image.png

User Feedback

Recommended Comments

There are no comments to display.