exp_demo_mode
Available since Exponential 6.0.15 (in development, not in a release yet).
Summary
The template operator exp_demo_mode(): true while demo mode is on (the environment variable EXP_DEMO_MODE=1, expDemoMode).
Description
The template operator exp_demo_mode(): true while demo mode is on (the environment variable EXP_DEMO_MODE=1, expDemoMode). The administration draws its demo banner with it:
{if exp_demo_mode()}{include uri='design:parts/exp_demo_mode_banner.tpl'}{/if}It is worked out each time the template runs, never when it is compiled, so a compiled template and a persistent worker always show the mode the environment has now. Guide: doc/eng-us/bc/6.0/demo-mode.md.
Source
Implemented by expDemoModeOperator (kernel/common/expdemomodeoperator.php).
See also
Generated example: exp_demo_mode
Added to the reference for Exponential 6.0.15: the 4.x reference had no page for this operator.
Contributors
- Graham Brookins Updated
Comments
Add a comment