Example #1
0
<?php

$p = new kfmPlugin('return_url');
if (isset($_GET['return_directory'])) {
    $p->addJavascript(file_get_contents(dirname(__FILE__) . '/plugin_conditional.js'));
}
$GLOBALS['kfm']->addPlugin($p);
Example #2
0
<?php

$p = new kfmPlugin('lightbox');
$p->addSetting('lightbox_slideshow_delay', array('type' => 'integer', 'unit' => 's', 'properties' => array('size' => 3)), 4);
$p->addJavascript('var lightbox_slideshow_delay={$setting.lightbox_slideshow_delay}*1000;');
$GLOBALS['kfm']->addPlugin($p);