Jelix 1.6.37

block.swf.php

Tags
subpackage

jtpl_plugin

author

Lepeltier kévin

contributor

Dominique Papin

copyright

2008 Lepeltier kévin

copyright

2008 Dominique Papin

link
http://www.jelix.org
licence

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

Inspired by the method satay Drew McLellan (http://www.alistapart.com/articles/flashsatay/)

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

Search results