Content last modified Tuesday 24 August 2021
hop to #bottom
Categories:
Author:
Current version:
0.1
About It:
Get it:
Rate it:
  • Helpful?
  • 0 Yes
  • 2 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!

kff_txp_version

This extremely simple and tiny plugin displays the version number of Textpattern running on your site. It outputs plaintext which can be linkified if desired. Typically, its output is “Textpattern 4.2.0”, or whatever your version is.

Syntax & Attributes

The plugin creates a new tag <txp:kff_txp_version />, which has the following attributes:

link=“boolean”
Whether or not to make the word “Textpattern” link to the TXP website.
Values: 1 (yes) or 0 (no)
Default: 1

wraptag=“tag”
(X)HTML tag (without brackets) to wrap around output.
Default: unset

class=“class_name”
(X)HTML class attribute to be applied to wraptag. Used for styling purpose.
Default: unset

Examples

Default tag
The default tag <txp:kff_txp_version /> without attributes produces the linkified output:
<a href="http://textpattern.com/">Textpattern</a> 4.2.0

Plaintext output
The tag <txp:kff_txp_version link="0" /> produces plaintext output:
Textpattern 4.2.0

Article Request Count:
Keywords/tags:
Posted here:
09 Sep 2009

You know you want to visit the Archives.
Published with Textpattern