block.swf.php
Tags
Table of Contents
- jtpl_block_html_swf() : string
- swf plugin : Adds html code to display a swf
Functions
jtpl_block_html_swf()
swf plugin : Adds html code to display a swf
jtpl_block_html_swf(jTplCompiler $compiler, bool $begin, array<string|int, mixed> $params) : string
Example : {swf 'promobidon.swf', array('id'=>'promo', 'width'=>150, 'height'=>90), array('quality'=>'hight', 'wmode'=>'transparent'), array('longeur'=>150)} {image 'toupie.png'} {/swf}
Render :
$params[0] url of the swf $params[1]['id'] id of <object .../> $params[1]['class'] class of <object .../> $params[1]['width'] Width final of SWF $params[1]['height'] Height final of SWF $params[2][xx] Parameter of the Flash Player $params[3][xx] Flashvar for the Flash Player
Parameters
- $compiler : jTplCompiler
-
the template compiler
- $begin : bool
-
true if it is the begin of block, else false
- $params : array<string|int, mixed>
-
parameters for the url
Return values
string —PHP generated code