public function fullInit() { //FULL INIT $this->genericInit(); //OVerwrite require_once $this->getPlugin()->getRootDir() . 'overwrite' . DS . 'components' . DS . 'brief_info.php'; // Bridges GHEADER_CLASS_PhotoBridge::getInstance()->init(); GHEADER_CLASS_NewsfeedBridge::getInstance()->init(); GHEADER_CLASS_NotificationsBridge::getInstance()->init(); GHEADER_CLASS_CommentsBridge::getInstance()->init(); GHEADER_CLASS_CreditsBridge::getInstance()->init(); OW::getEventManager()->bind('admin.add_auth_labels', array($this, 'onAddAuthLabels')); }
public function onCollectActions(BASE_CLASS_EventCollector $e) { $sectionLabel = OW::getLanguage()->text('groups', 'email_notification_section_label'); $sectionIcon = 'ow_ic_files'; $e->add(array('section' => 'groups', 'action' => self::ACTION_COMMENT, 'sectionIcon' => $sectionIcon, 'sectionLabel' => $sectionLabel, 'description' => OW::getLanguage()->text($this->plugin->getKey(), 'notifications_setting_comment'), 'selected' => true)); $e->add(array('section' => 'groups', 'action' => self::ACTION_ADD, 'sectionIcon' => $sectionIcon, 'sectionLabel' => $sectionLabel, 'description' => OW::getLanguage()->text($this->plugin->getKey(), 'notifications_setting_add'), 'selected' => true)); if (GHEADER_CLASS_NewsfeedBridge::getInstance()->isActive()) { $e->add(array('section' => 'groups', 'action' => self::ACTION_LIKE, 'sectionIcon' => $sectionIcon, 'sectionLabel' => $sectionLabel, 'description' => OW::getLanguage()->text($this->plugin->getKey(), 'notifications_setting_like'), 'selected' => true)); } }