_bCodeAdded || !$this->_sAppId) return ''; $iProfileId = bx_get_logged_profile_id(); if(empty($iProfileId)) return ''; $aTags = self::getTags($iProfileId); if(!$aTags) return ''; $this->_bCodeAdded = true; return $this->_oTemplate->parseHtmlByName('wonderpush.html', [ 'params' => json_encode([ 'webKey' => $this->_sWebKey, 'userId' => $aTags['user_hash'], 'applicationName' => getParam('site_title'), 'requiresUserConsent' => getParam('sys_push_wonderpush_requires_user_consent') ? true : false, ]), 'tags' => json_encode($aTags), ]); } } /** @} */