Content macros May 15, 2013
Note: The example macros in this text contain a space after the first and before the last bracket. This is to avoid them being executed. On real usages there should be none.
Zenphoto 1.4.5 introduced the content macros. The overall concept follows the shortcodes Wordpress features. A simple content macro looks like this (spaces to avoid execution only!):
[ ZENPHOTO_VERSION ]
This is one of the default ones (later more) and will print the Zenphoto version number.
Content macros are added directly as text to fields. They work in the following places:
- Codeblock content
- Gallery description
- Image description
- Album description
- Zenpage article content
- Zenpage page content
If you need them to work on other places you can use the function applyMacros( (...)