This is a plugin for Textpattern. It is a drop-in replacement for the native hide
tag, with different output depending on site production status:
- Live: hide tag contents
- Testing: output tag contents, enclosed by HTML comment delimiters
- Debugging: display tag contents
To force the tag to hide its contents even when in Testing or Debugging mode, set the tag’s force
attribute to 1
.
<txp:soo_hide> This will run when the site is in Debugging or Testing mode (in Testing mode it will be enclosed in HTML comments). </txp:soo_hide>
<txp:soo_hide force="1">Your secret is safe with me.</txp:soo_hide>
- Oops. Tag registration restored.
- Documentation tidy (and new compile workflow)
- Textpattern 4.6 compatibility update
- Initial release.
- Behaviour based on site production status.
- Override test/debug behaviour with
force
attribute.