_oProfile || !isLogged()) return; $CNF = &$this->_oModule->_oConfig->CNF; if(isset($CNF['OBJECT_CONNECTIONS']) && ($oConn = BxDolConnection::getObjectInstance($CNF['OBJECT_CONNECTIONS'])) !== false) { $iProfileId = bx_get_logged_profile_id(); $iGroupProfileId = $this->_oProfile->id(); $aTitles = $this->_oModule->getMenuItemTitleByConnection($CNF['OBJECT_CONNECTIONS'], '', $iGroupProfileId, $iProfileId); $aMarkers = [ 'title_add_fan' => $aTitles['add'], 'onclick_add_fan' => "bx_conn_action(this, 'bx_events_fans', 'add', '" . $iGroupProfileId . "')", 'title_remove_fan' => $aTitles['remove'], ]; if(!$oConn->isConnectedNotMutual($iProfileId, $iGroupProfileId) && $oConn->hasQuestionnaire($iGroupProfileId)) $aMarkers['onclick_add_fan'] = $this->_oModule->_oConfig->getJsObject('entry') . ".connAction(this, 'bx_events_fans', 'add', '" . $iGroupProfileId . "')"; if ($this->_oModule->isFan($this->_aContentInfo[$CNF['FIELD_ID']])) { $a = $oConn->getConnectedInitiators($iGroupProfileId); $aMarkers['recipients'] = implode(',', $a); } $this->addMarkers($aMarkers); } } } /** @} */