jsoo / soo_hide

Enhanced txp:hide tag for Textpattern CMS: http://textpattern.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

soo_hide

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.

Download

Usage

<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>

History

0.1.3 (2017-03-11)

  • Oops. Tag registration restored.

0.1.2 (2017-03-11)

  • Documentation tidy (and new compile workflow)

0.1.1 (2017-03-11)

  • Textpattern 4.6 compatibility update

0.1.0 (2011-01-13)

  • Initial release.
  • Behaviour based on site production status.
  • Override test/debug behaviour with force attribute.

About

Enhanced txp:hide tag for Textpattern CMS: http://textpattern.com


Languages

Language:PHP 100.0%