Skip to content

Conditional tag to expose system info #1651

@philwareham

Description

@philwareham

Is your feature request related to a problem?

Nope

What is the feature?

It may be handy to have a new tag that works in a kind of similar fashion to our if_plugin tag - in that if the Textpattern version is x or higher then execute the enclosed code.

That way we could provide some level of backwards compatibility in themes - i.e. if I've bolted in some code that only works with Textpattern 4.10 but isn't essential to the general functions of the theme, we can still provide that theme for Textpattern 4.9.

Think of it as a kind of 'progressive enhancement for Textpattern themes'.

Obviously I've not thought this through whatsoever 😀 so please feel free to provide opinions!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions