public static function getHTML($object) { $t = new Template('plugin.html'); $t->replace('PLUGIN_CAROUSEL', PluginV::getCarousel($object)); $plugin_parameters = ''; foreach ($object as $p) { $plugin_parameters .= PluginC::getUI($p['name']); } $t->replace('PLUGIN_PARAMETERS', $plugin_parameters); return $t; }
/** * Get HTML representation of the plugins widget * @return string */ public static function getHTML() { // discover the plugins and create the plugin widget // get carroussel return PluginV::getHTML(PluginC::discover()); }