69 $extranetSite = $this->
getComponent()->getExtranetSiteValue();
71 $result[
'folderUsers'] = Option::get(
'socialnetwork',
'user_page',
false, SITE_ID);
72 $result[
'folderUsers'] = ($result[
'folderUsers'] ?: ($extranetSite ? SITE_DIR.
'contacts/personal/' : SITE_DIR.
'company/personal/'));
74 $result[
'folderWorkgroups'] = Option::get(
'socialnetwork',
'workgroups_page',
false, SITE_ID);
75 $result[
'folderWorkgroups'] = ($result[
'folderWorkgroups'] ?: SITE_DIR.
'workgroups/');
77 $result[
'pathToUserBlogPost'] = \Bitrix\Socialnetwork\Helper\Path::get(
'userblogpost_page');
78 $result[
'pathToUserBlogPost'] = ($result[
'pathToUserBlogPost'] ?: $result[
'folderUsers'].
'user/#user_id#/blog/#post_id#/');
80 $result[
'pathToLogEntry'] = Option::get(
'socialnetwork',
'log_entry_page',
false, SITE_ID);
81 $result[
'pathToLogEntry'] = ($result[
'pathToLogEntry'] ?: $result[
'folderUsers'].
'personal/log/#log_id#/');
83 $result[
'pathToMessagesChat'] = Option::get(
'main',
'TOOLTIP_PATH_TO_MESSAGES_CHAT',
false, SITE_ID);
84 $result[
'pathToMessagesChat'] = ($result[
'pathToMessagesChat'] ?: $result[
'folderUsers'].
'messages/chat/#user_id#/');
86 $result[
'pathToVideoCall'] = Option::get(
'main',
'TOOLTIP_PATH_TO_VIDEO_CALL',
false, SITE_ID);
87 $result[
'pathToVideoCall'] = ($result[
'pathToVideoCall'] ?: $result[
'folderUsers'].
'video/#user_id#/');
89 $result[
'pathToSmile'] = Option::get(
'socialnetwork',
'smile_page',
false, SITE_ID);
90 $result[
'pathToSmile'] = ($result[
'pathToSmile'] ?:
'/bitrix/images/socialnetwork/smile/');
92 $pathToUser = Option::get(
'main',
'TOOLTIP_PATH_TO_USER',
false, SITE_ID);
93 $pathToUser = ($pathToUser ?: $result[
'folderUsers'].
'user/#user_id#/');
95 Util::checkEmptyParamString($componentParams,
'PATH_TO_USER', $pathToUser);
96 Util::checkEmptyParamString($componentParams,
'PATH_TO_USER_MICROBLOG', $result[
'folderUsers'].
'user/#user_id#/blog/');
97 Util::checkEmptyParamString($componentParams,
'PATH_TO_USER_BLOG_POST', $result[
'pathToUserBlogPost']);
98 Util::checkEmptyParamString($componentParams,
'PATH_TO_USER_BLOG_POST_EDIT', $result[
'folderUsers'].
'user/#user_id#/blog/edit/#post_id#/');
99 Util::checkEmptyParamString($componentParams,
'PATH_TO_USER_BLOG_POST_IMPORTANT', $result[
'folderUsers'].
'user/#user_id#/blog/important/');
100 Util::checkEmptyParamString($componentParams,
'PATH_TO_GROUP', $result[
'folderWorkgroups'].
'group/#group_id#/');
101 Util::checkEmptyParamString($componentParams,
'PATH_TO_GROUP_MICROBLOG', $result[
'folderWorkgroups'].
'group/#group_id#/blog/');
102 Util::checkEmptyParamString($componentParams,
'PATH_TO_GROUP_BLOG_POST', $result[
'folderWorkgroups'].
'group/#group_id#/blog/#post_id#/');
103 Util::checkEmptyParamString($componentParams,
'PATH_TO_LOG_ENTRY', $result[
'pathToLogEntry']);
104 Util::checkEmptyParamString($componentParams,
'PATH_TO_MESSAGES_CHAT', $result[
'pathToMessagesChat']);
105 Util::checkEmptyParamString($componentParams,
'PATH_TO_VIDEO_CALL', $result[
'pathToVideoCall']);
106 Util::checkEmptyParamString($componentParams,
'PATH_TO_SMILE', $result[
'pathToSmile']);
108 $componentParams[
'PATH_TO_USER_MICROBLOG_POST'] = $componentParams[
'PATH_TO_USER_BLOG_POST'];
109 $componentParams[
'PATH_TO_GROUP_MICROBLOG_POST'] = $componentParams[
'PATH_TO_GROUP_BLOG_POST'];