public function onCollectButtonList(BASE_CLASS_EventCollector $event) { $cssUrl = OW::getPluginManager()->getPlugin('FBCONNECT')->getStaticCssUrl() . 'fbconnect.css'; OW::getDocument()->addStyleSheet($cssUrl); $button = new FBCONNECT_CMP_ConnectButton(); $event->add(array('iconClass' => 'ow_ico_signin_f', 'markup' => $button->render())); }
public function __construct() { parent::__construct(); $tpl = OW::getPluginManager()->getPlugin("fbconnect")->getMobileCmpViewDir() . "connect_button.html"; $this->setTemplate($tpl); }