Content last modified Monday 6 March 2017
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
Article modified:
09 Sep 2009

If there is a comment form at the Information URL, you may want to leave your comments/questions there for quicker feedback. Otherwise, comment away:

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

Subscribe to this article's comments RSS feed. [ ? ]   View Recent Comments across the site.

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.
Published with Textpattern