Jelix 1.8.14-pre

block.ifctrlactivated.php

Tags
subpackage

jtpl_plugin

author

Laurent Jouanneau

copyright

2024 Laurent Jouanneau

see
https://www.jelix.org
licence

GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html

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

Search results