block.ifctrlactivated.php
Tags
Table of Contents
- jtpl_block_html_ifctrlactivated() : string
- a special if block to check if a ctrl is activated in the form TO BE USED inside a `{form}` or `{formadata}` block.
Functions
jtpl_block_html_ifctrlactivated()
a special if block to check if a ctrl is activated in the form TO BE USED inside a `{form}` or `{formadata}` block.
jtpl_block_html_ifctrlactivated(jTplCompiler $compiler, bool $begin[, array<string|int, mixed> $params = array() ]) : string
{ifctrlactivated 'name1'} some tpl {else} some other tpl {/ifctrlactivated}
Parameters
- $compiler : jTplCompiler
-
the template compiler
- $begin : bool
-
true if it is the begin of block, else false
- $params : array<string|int, mixed> = array()
-
0=>'name', to match against current control name
Tags
Return values
string —the php code corresponding to the begin or end of the block