Function ipRenderWidget()

ipRenderWidget — Generate widget HTML


string ipRenderWidget ( string $widgetName , [ array $data ] , [ null $skin ] )

Generate widget HTML

Package: ImpressPages


string $widgetName Widget name.
array $data = array() Widget's data.
null $skin = null Widget skin name.

Return values:

string Widget HTML.

Render a widget from the data you have by hand without any drag & drop functionality. 

$html = ipRenderWidget('Heading', array('title' => 'My Title'));

Render a widget with specific look 

$html = ipRenderWidget('Heading', array('title' => 'My Title', 'level' => 2), 'look1');

comments powered by Disqus