AntonLV 3 лет назад
Родитель
Сommit
36eea1dd42

+ 32 - 1
install/sql/system.sql

@@ -4550,6 +4550,7 @@ INSERT INTO `sys_objects_menu` (`object`, `title`, `set_name`, `module`, `templa
 ('sys_vote_reactions_do', '_sys_menu_title_vote_reactions_do', '', 'system', 3, 0, 1, 'BxTemplVoteReactionsMenuDo', ''),
 ('sys_wiki', '_sys_menu_title_wiki', 'sys_wiki', 'system', 6, 0, 1, 'BxTemplMenuWiki', ''),
 ('sys_favorite_list', '_sys_menu_title_favorite_list', 'sys_favorite_list', 'system', 9, 0, 1, '', ''),
+('sys_con_submenu', '_sys_menu_title_con_submenu', 'sys_con_submenu', 'system', 8, 0, 1, '', ''),
 
 ('sys_studio_account_popup', '_sys_menu_title_studio_account_popup', 'sys_studio_account_popup', 'system', 4, 0, 1, 'BxTemplStudioMenuAccountPopup', '');
 
@@ -4592,6 +4593,7 @@ INSERT INTO `sys_menu_sets` (`set_name`, `module`, `title`, `deletable`) VALUES
 ('sys_social_sharing', 'system', '_sys_menu_set_title_sys_social_sharing', 0),
 ('sys_wiki', 'system', '_sys_menu_set_title_sys_wiki', 0),
 ('sys_favorite_list', 'system', '_sys_menu_set_title_sys_favorite_list', 0),
+('sys_con_submenu', 'system', '_sys_menu_set_title_con_submenu', 0),
 
 ('sys_studio_account_popup', 'system', '_sys_menu_set_title_studio_account_popup', 0);
 
@@ -4633,6 +4635,7 @@ INSERT INTO `sys_menu_items` (`set_name`, `module`, `name`, `title_system`, `tit
 ('sys_site', 'system', 'home', '_sys_menu_item_title_system_home', '_sys_menu_item_title_home', '', '', '', 'home col-gray', '', 2147483647, 1, 1, 1),
 ('sys_site', 'system', 'about', '_sys_menu_item_title_system_about', '_sys_menu_item_title_about', 'page.php?i=about', '', '', 'info-circle col-blue3-dark', '', 2147483647, 1, 1, 2),
 ('sys_site', 'system', 'search', '_sys_menu_item_title_system_search', '_sys_menu_item_title_search', 'javascript:void(0);', 'bx_menu_slide_inline(\'#bx-sliding-menu-search\', this, \'site\');', '', 'search', '', 2147483647, 1, 1, 3),
+('sys_site', 'system', 'recommended-friends', '_sys_menu_item_title_system_connections', '_sys_menu_item_title_connections', 'page.php?i=recommended-friends', '', '', 'users', '', 2147483647, 1, 1, 4),
 ('sys_site', 'system', 'more-auto', '_sys_menu_item_title_system_more_auto', '_sys_menu_item_title_more_auto', 'javascript:void(0)', '', '', 'ellipsis-v', '', 2147483647, 1, 0, 9999);
 
 -- panel menu
@@ -4779,6 +4782,16 @@ INSERT INTO `sys_menu_items`(`set_name`, `module`, `name`, `title_system`, `titl
 ('sys_favorite_list', 'system', 'edit', '', '_sys_menu_item_title_favorite_list_edit', 'javascript:void(0)', 'javascript:{js_object}.cmtEdit(this, {list_id})', '', 'edit', '', '', 0, 2147483646, '', 1, 0, 1, 1),
 ('sys_favorite_list', 'system', 'delete', '', '_sys_menu_item_title_wiki_favorite_list_delete', 'javascript:void(0)', 'javascript:{js_object}.cmtDelete(this, {list_id})', '', 'times', '', '', 0, 2147483646, '', 1, 0, 1, 2);
 
+-- connections submenu
+INSERT INTO `sys_menu_items` (`set_name`, `module`, `name`, `title_system`, `title`, `link`, `onclick`, `target`, `icon`, `addon`, `submenu_object`, `visible_for_levels`, `visibility_custom`, `active`, `copyable`, `order`) VALUES
+('sys_con_submenu', 'system', 'recommended-friends', '', '_sys_menu_item_title_recom_friends', 'page.php?i=recommended-friends', '', '', '', '', '', 2147483647, '', 1, 1, 1),
+('sys_con_submenu', 'system', 'friends', '', '_sys_menu_item_title_con_friends', 'page.php?i=friends', '', '', '', '', '', 2147483647, '', 1, 1, 2),
+('sys_con_submenu', 'system', 'friend-requests', '', '_sys_menu_item_title_con_friend_requests', 'page.php?i=friend-requests', '', '', '', '', '', 2147483647, '', 1, 1, 3),
+('sys_con_submenu', 'system', 'friend-requested', '', '_sys_menu_item_title_con_friend_requested', 'page.php?i=friend-requested', '', '', '', '', '', 2147483647, '', 1, 1, 4),
+('sys_con_submenu', 'system', 'recommended-subscriptions', '', '_sys_menu_item_title_recom_subscriptions', 'page.php?i=recommended-subscriptions', '', '', '', '', '', 2147483647, '', 1, 1, 5),
+('sys_con_submenu', 'system', 'followers', '', '_sys_menu_item_title_con_followers', 'page.php?i=followers', '', '', '', '', '', 2147483647, '', 1, 1, 6),
+('sys_con_submenu', 'system', 'following', '', '_sys_menu_item_title_con_following', 'page.php?i=following', '', '', '', '', '', 2147483647, '', 1, 1, 7);
+
 -- studio: account menu
 INSERT INTO `sys_menu_items` (`set_name`, `module`, `name`, `title_system`, `title`, `link`, `onclick`, `target`, `icon`, `submenu_object`, `visible_for_levels`, `active`, `copyable`, `editable`, `order`) VALUES
 ('sys_studio_account_popup', 'system', 'account', '_sys_menu_item_title_system_sa_account', '_sys_menu_item_title_sa_account', '{member_url}', '', '', 'ami-account.svg', '', 2147483647, 1, 0, 0, 1),
@@ -5560,7 +5573,14 @@ INSERT INTO `sys_objects_page` (`object`, `uri`, `title_system`, `title`, `modul
 ('sys_search_keyword', 'search-keyword', '_sys_page_title_system_search_keyword', '_sys_page_title_search_keyword', 'system', 1, 5, '', 2147483647, 1, 'searchKeyword.php', '', '', '', 0, 1, 0, '', '', 0),
 ('sys_redirect', 'redirect', '', '_sys_page_title_redirect', 'system', 0, 18, '', 2147483647, 1, 'page.php?i=redirect', '', '', '', 0, 1, 0, '', '', 0),
 ('sys_sub_wiki_pages_list', 'wiki-pages-list', '', '_sys_page_title_wiki_pages_list', 'system', 1, 5, '', 2147483647, 1, '', '', '', '', 0, 1, 0, '', '', 0),
-('sys_sub_wiki_page_contents', 'wiki-page-contents', '', '_sys_page_title_wiki_page_contents', 'system', 1, 5, '', 2147483647, 1, '', '', '', '', 0, 1, 0, '', '', 0);
+('sys_sub_wiki_page_contents', 'wiki-page-contents', '', '_sys_page_title_wiki_page_contents', 'system', 1, 5, '', 2147483647, 1, '', '', '', '', 0, 1, 0, '', '', 0),
+('sys_con_friends', 'friends', '_sys_page_title_system_con_friends', '_sys_page_title_con_friends', 'system', 1, 12, '', 2147483646, 1, 'page.php?i=friends', '', '', '', 0, 1, 0, 'BxTemplPageConnections', '', 0),
+('sys_con_friend_requests', 'friend-requests', '_sys_page_title_system_con_friend_requests', '_sys_page_title_con_friend_requests', 'system', 1, 12, '', 2147483646, 1, 'page.php?i=friend-requests', '', '', '', 0, 1, 0, 'BxTemplPageConnections', '', 0),
+('sys_con_friend_requested', 'friend-requested', '_sys_page_title_system_con_friend_requested', '_sys_page_title_con_friend_requested', 'system', 1, 12, '', 2147483646, 1, 'page.php?i=friend-requested', '', '', '', 0, 1, 0, 'BxTemplPageConnections', '', 0),
+('sys_con_following', 'following', '_sys_page_title_system_con_following', '_sys_page_title_con_following', 'system', 1, 12, '', 2147483646, 1, 'page.php?i=following', '', '', '', 0, 1, 0, 'BxTemplPageConnections', '', 0),
+('sys_con_followers', 'followers', '_sys_page_title_system_con_followers', '_sys_page_title_con_followers', 'system', 1, 12, '', 2147483646, 1, 'page.php?i=followers', '', '', '', 0, 1, 0, 'BxTemplPageConnections', '', 0),
+('sys_recom_friends', 'recommended-friends', '_sys_page_title_system_recom_friends', '_sys_page_title_recom_friends', 'system', 1, 12, '', 2147483646, 1, 'page.php?i=recommended-friends', '', '', '', 0, 1, 0, 'BxTemplPageConnections', '', 0),
+('sys_recom_subscriptions', 'recommended-subscriptions', '_sys_page_title_system_recom_subscriptions', '_sys_page_title_recom_subscriptions', 'system', 1, 12, '', 2147483646, 1, 'page.php?i=recommended-subscriptions', '', '', '', 0, 1, 0, 'BxTemplPageConnections', '', 0);
 
 
 CREATE TABLE IF NOT EXISTS `sys_pages_types` (
@@ -5798,6 +5818,17 @@ INSERT INTO `sys_pages_blocks` (`object`, `cell_id`, `module`, `title_system`, `
 ('sys_sub_wiki_pages_list', 1, 'system', '', '_sys_page_block_title_wiki_pages_list', 0, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:10:"pages_list";s:6:"params";a:0:{}s:5:"class";s:16:"TemplServiceWiki";}', 0, 1, 1, 1),
 ('sys_sub_wiki_page_contents', 1, 'system', '', '_sys_page_block_title_wiki_page_contents', 0, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:13:"page_contents";s:6:"params";a:0:{}s:5:"class";s:16:"TemplServiceWiki";}', 0, 1, 1, 1),
 
+('sys_con_friends', 1, 'system', '', '_sys_page_block_title_con_friends', 11, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:14:"browse_friends";s:6:"params";a:1:{i:0;s:12:"{profile_id}";}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 1, 1, 1),
+('sys_con_friend_requests', 1, 'system', '', '_sys_page_block_title_con_friend_requests', 11, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:22:"browse_friend_requests";s:6:"params";a:1:{i:0;s:12:"{profile_id}";}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 1, 1, 1),
+('sys_con_friend_requested', 1, 'system', '', '_sys_page_block_title_con_friend_requested', 11, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:23:"browse_friend_requested";s:6:"params";a:1:{i:0;s:12:"{profile_id}";}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 1, 1, 1),
+
+('sys_con_following', 1, 'system', '', '_sys_page_block_title_con_following', 11, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:20:"browse_subscriptions";s:6:"params";a:1:{i:0;s:12:"{profile_id}";}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 1, 1, 1),
+('sys_con_followers', 1, 'system', '', '_sys_page_block_title_con_followers', 11, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:20:"browse_subscribed_me";s:6:"params";a:1:{i:0;s:12:"{profile_id}";}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 1, 1, 1),
+
+('sys_recom_friends', 1, 'system', '', '_sys_page_block_title_recom_friends', 11, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:30:"browse_recommendations_friends";s:6:"params";a:1:{i:0;s:12:"{profile_id}";}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 1, 1, 1),
+('sys_recom_subscriptions', 1, 'system', '', '_sys_page_block_title_recom_subscriptions', 11, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:36:"browse_recommendations_subscriptions";s:6:"params";a:1:{i:0;s:12:"{profile_id}";}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 1, 1, 1),
+
+
 -- studio dashboard blocks
 ('sys_std_dashboard', 1, 'system', '', '_sys_page_block_title_std_dash_version', 11, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:17:"get_block_version";s:6:"params";a:0:{}s:5:"class";s:20:"TemplStudioDashboard";}', 0, 0, 1, 1),
 

+ 32 - 1
modules/boonex/english/data/langs/system/en.xml

@@ -2872,6 +2872,7 @@ If it is not enabled then please consider implement this optimization, since it
     <string name="_sys_menu_item_title_cmts_item_score"><![CDATA[]]></string>
     <string name="_sys_menu_item_title_cmts_item_vote"><![CDATA[]]></string>
     <string name="_sys_menu_item_title_cmts_item_more"><![CDATA[]]></string>
+    <string name="_sys_menu_item_title_connections"><![CDATA[Connections]]></string>
     <string name="_sys_menu_item_title_dashboard"><![CDATA[Dash]]></string>
     <string name="_sys_menu_item_title_home"><![CDATA[Home]]></string>
     <string name="_sys_menu_item_title_invoices"><![CDATA[Invoices]]></string>
@@ -2971,6 +2972,7 @@ If it is not enabled then please consider implement this optimization, since it
     <string name="_sys_menu_item_title_system_cmts_item_score"><![CDATA[Score]]></string>
     <string name="_sys_menu_item_title_system_cmts_item_vote"><![CDATA[Plus]]></string>
     <string name="_sys_menu_item_title_system_cmts_item_more"><![CDATA[More]]></string>
+    <string name="_sys_menu_item_title_system_connections"><![CDATA[Connections]]></string>
     <string name="_sys_menu_item_title_system_dashboard"><![CDATA[Dashboard]]></string>
     <string name="_sys_menu_item_title_system_home"><![CDATA[Home]]></string>
     <string name="_sys_menu_item_title_system_invoices"><![CDATA[Invoices]]></string>
@@ -3181,7 +3183,15 @@ If it is not enabled then please consider implement this optimization, since it
     <string name="_sys_menu_item_title_sa_logout"><![CDATA[Sign out]]></string>
     <string name="_sys_menu_item_title_inherited"><![CDATA[Inherited]]></string>
     <string name="_sys_menu_item_title_disabled"><![CDATA[Disabled]]></string>
-    
+    <string name="_sys_menu_title_con_submenu"><![CDATA[Connections]]></string>
+    <string name="_sys_menu_set_title_con_submenu"><![CDATA[Connections]]></string>
+    <string name="_sys_menu_item_title_con_friends"><![CDATA[Friends]]></string>
+    <string name="_sys_menu_item_title_con_friend_requests"><![CDATA[Friend Requests]]></string>
+    <string name="_sys_menu_item_title_con_friend_requested"><![CDATA[Requested Friendship]]></string>
+    <string name="_sys_menu_item_title_con_following"><![CDATA[Following]]></string>
+    <string name="_sys_menu_item_title_con_followers"><![CDATA[Followers]]></string>
+    <string name="_sys_menu_item_title_recom_friends"><![CDATA[Friends Suggestions]]></string>
+    <string name="_sys_menu_item_title_recom_subscriptions"><![CDATA[Who to follow]]></string>    
     <string name="_sys_metatags_mention_added"><![CDATA[<b class="bx-ntfs-content-profile">{owner_name}</b> mentioned <b class="bx-ntfs-content-entry">{entry_caption}</b>]]></string>
     <string name="_sys_mobile_friends"><![CDATA[Friends]]></string>
     <string name="_sys_mobile_info"><![CDATA[Info]]></string>
@@ -3348,6 +3358,27 @@ If it is not enabled then please consider implement this optimization, since it
     <string name="_sys_page_title_studio_dashboard"><![CDATA[Studio Dashboard]]></string>
     <string name="_sys_page_title_wiki_pages_list"><![CDATA[Subpage: Pages List]]></string>
     <string name="_sys_page_title_wiki_page_contents"><![CDATA[Subpage: Page Contents]]></string>
+    <string name="_sys_page_title_system_con_friends"><![CDATA[Connections: Friends]]></string>
+    <string name="_sys_page_title_con_friends"><![CDATA[Friends]]></string>
+    <string name="_sys_page_block_title_con_friends"><![CDATA[Friends]]></string>
+    <string name="_sys_page_title_system_con_friend_requests"><![CDATA[Connections: Friend Requests]]></string>
+    <string name="_sys_page_title_con_friend_requests"><![CDATA[Friend Requests]]></string>
+    <string name="_sys_page_block_title_con_friend_requests"><![CDATA[Friend Requests]]></string>
+    <string name="_sys_page_title_system_con_friend_requested"><![CDATA[Connections: Requested Friendship]]></string>
+    <string name="_sys_page_title_con_friend_requested"><![CDATA[Requested Friendship]]></string>
+    <string name="_sys_page_block_title_con_friend_requested"><![CDATA[Requested Friendship]]></string>
+    <string name="_sys_page_title_system_con_following"><![CDATA[Connections: Following]]></string>
+    <string name="_sys_page_title_con_following"><![CDATA[Following]]></string>
+    <string name="_sys_page_block_title_con_following"><![CDATA[Following]]></string>
+    <string name="_sys_page_title_system_con_followers"><![CDATA[Connections: Followers]]></string>
+    <string name="_sys_page_title_con_followers"><![CDATA[Followers]]></string>
+    <string name="_sys_page_block_title_con_followers"><![CDATA[Followers]]></string>
+    <string name="_sys_page_title_system_recom_friends"><![CDATA[Recommendations: Friends]]></string>
+    <string name="_sys_page_title_recom_friends"><![CDATA[Friends Suggestions]]></string>
+    <string name="_sys_page_block_title_recom_friends"><![CDATA[Friends Suggestions]]></string>
+    <string name="_sys_page_title_system_recom_subscriptions"><![CDATA[Recommendations: Subscriptions]]></string>
+    <string name="_sys_page_title_recom_subscriptions"><![CDATA[Who to follow]]></string>
+    <string name="_sys_page_block_title_recom_subscriptions"><![CDATA[Who to follow]]></string>
     <string name="_sys_page_type_application"><![CDATA[Application]]></string>
     <string name="_sys_page_type_default"><![CDATA[Default]]></string>
     <string name="_sys_page_type_standard"><![CDATA[Standard]]></string>

+ 35 - 0
modules/boonex/russian/data/langs/system/ru.xml

@@ -2845,6 +2845,7 @@
     <string name="_sys_menu_item_title_cmts_item_score"><![CDATA[]]></string>
     <string name="_sys_menu_item_title_cmts_item_vote"><![CDATA[]]></string>
     <string name="_sys_menu_item_title_cmts_item_more"><![CDATA[]]></string>
+    <string name="_sys_menu_item_title_connections"><![CDATA[Связи]]></string>
     <string name="_sys_menu_item_title_dashboard"><![CDATA[Панель]]></string>
     <string name="_sys_menu_item_title_home"><![CDATA[Домой]]></string>
     <string name="_sys_menu_item_title_invoices"><![CDATA[Счета]]></string>
@@ -2937,6 +2938,7 @@
     <string name="_sys_menu_item_title_system_cmts_item_score"><![CDATA[Голосовать (За/Против)]]></string>
     <string name="_sys_menu_item_title_system_cmts_item_vote"><![CDATA[Голосовать (Нравится)]]></string>
     <string name="_sys_menu_item_title_system_cmts_item_more"><![CDATA[Ещё]]></string>
+    <string name="_sys_menu_item_title_system_connections"><![CDATA[Связи]]></string>
     <string name="_sys_menu_item_title_system_dashboard"><![CDATA[Панель]]></string>
     <string name="_sys_menu_item_title_system_home"><![CDATA[Домой]]></string>
     <string name="_sys_menu_item_title_system_invoices"><![CDATA[Счета]]></string>
@@ -3137,6 +3139,17 @@
     <string name="_sys_menu_item_title_sa_language"><![CDATA[Язык]]></string>
     <string name="_sys_menu_item_title_system_sa_logout"><![CDATA[Выйти]]></string>
     <string name="_sys_menu_item_title_sa_logout"><![CDATA[Выйти]]></string>
+    <string name="_sys_menu_item_title_inherited"><![CDATA[Унаследованный]]></string>
+    <string name="_sys_menu_item_title_disabled"><![CDATA[Отключенный]]></string>
+    <string name="_sys_menu_title_con_submenu"><![CDATA[Связи]]></string>
+    <string name="_sys_menu_set_title_con_submenu"><![CDATA[Связи]]></string>
+    <string name="_sys_menu_item_title_con_friends"><![CDATA[Друзья]]></string>
+    <string name="_sys_menu_item_title_con_friend_requests"><![CDATA[Хотят дружить]]></string>
+    <string name="_sys_menu_item_title_con_friend_requested"><![CDATA[Запрошенная дружба]]></string>
+    <string name="_sys_menu_item_title_con_following"><![CDATA[Подписан на]]></string>
+    <string name="_sys_menu_item_title_con_followers"><![CDATA[Подписчики]]></string>
+    <string name="_sys_menu_item_title_recom_friends"><![CDATA[Предложения друзей]]></string>
+    <string name="_sys_menu_item_title_recom_subscriptions"><![CDATA[На кого подписаться]]></string>
     <string name="_sys_metatags_mention_added"><![CDATA[<b class="bx-ntfs-content-profile">{owner_name}</b> упомянул <b class="bx-ntfs-content-entry">{entry_caption}</b>]]></string>
     <string name="_sys_mobile_friends"><![CDATA[Друзья]]></string>
     <string name="_sys_mobile_info"><![CDATA[Инфо]]></string>
@@ -3300,6 +3313,28 @@
 	<string name="_sys_page_title_studio_dashboard"><![CDATA[Студия - Панель]]></string>
 	<string name="_sys_page_title_wiki_pages_list"><![CDATA[Подстраница: Список страниц]]></string>
 	<string name="_sys_page_title_wiki_page_contents"><![CDATA[Подстраница: Содержание страницы]]></string>
+    
+        <string name="_sys_page_title_system_con_friends"><![CDATA[Связи: Друзья]]></string>
+        <string name="_sys_page_title_con_friends"><![CDATA[Друзья]]></string>
+        <string name="_sys_page_block_title_con_friends"><![CDATA[Друзья]]></string>
+        <string name="_sys_page_title_system_con_friend_requests"><![CDATA[Связи: Хотят дружить]]></string>
+        <string name="_sys_page_title_con_friend_requests"><![CDATA[Хотят дружить]]></string>
+        <string name="_sys_page_block_title_con_friend_requests"><![CDATA[Хотят дружить]]></string>
+        <string name="_sys_page_title_system_con_friend_requested"><![CDATA[Связи: Запрошенная дружба]]></string>
+        <string name="_sys_page_title_con_friend_requested"><![CDATA[Запрошенная дружба]]></string>
+        <string name="_sys_page_block_title_con_friend_requested"><![CDATA[Запрошенная дружба]]></string>
+        <string name="_sys_page_title_system_con_following"><![CDATA[Связи: Подписан на]]></string>
+        <string name="_sys_page_title_con_following"><![CDATA[Подписан на]]></string>
+        <string name="_sys_page_block_title_con_following"><![CDATA[Подписан на]]></string>
+        <string name="_sys_page_title_system_con_followers"><![CDATA[Связи: Подписчики]]></string>
+        <string name="_sys_page_title_con_followers"><![CDATA[Подписчики]]></string>
+        <string name="_sys_page_block_title_con_followers"><![CDATA[Подписчики]]></string>
+        <string name="_sys_page_title_system_recom_friends"><![CDATA[Рекомендации: Друзья]]></string>
+        <string name="_sys_page_title_recom_friends"><![CDATA[Предложения друзей]]></string>
+        <string name="_sys_page_block_title_recom_friends"><![CDATA[Предложения друзей]]></string>
+        <string name="_sys_page_title_system_recom_subscriptions"><![CDATA[Рекомендации: Подписки]]></string>
+        <string name="_sys_page_title_recom_subscriptions"><![CDATA[На кого подписаться]]></string>
+        <string name="_sys_page_block_title_recom_subscriptions"><![CDATA[На кого подписаться]]></string>
         <string name="_sys_page_type_application"><![CDATA[Приложение]]></string>
 	<string name="_sys_page_type_default"><![CDATA[Тип по умолчанию]]></string>
         <string name="_sys_page_type_standard"><![CDATA[Стандартная]]></string>

+ 34 - 0
template/scripts/BxBaseProfileSearchResult.php

@@ -90,6 +90,40 @@ class BxBaseProfileSearchResult extends BxTemplSearchResult
                     'api_request_url' => '/api.php?r=system/browse_friends/TemplServiceProfiles&params[]=' . $aParams['profile'] . '&params[]='
                 ]);
                 break;
+
+            case 'friend_requests':
+                $aParams = array_merge($aParams, [
+                    'object' => 'sys_profiles_friends', 
+                    'type' => 'initiators',
+                    'mutual' => 0,
+                    'profile2' => 0
+                ]);
+                
+                if (!$this->_setConnectionsConditions($aParams)) 
+                    break;
+
+                $this->aCurrent = array_merge($this->aCurrent, [
+                    'title' => _t('_sys_page_title_browse_connections', BxDolProfile::getInstanceMagic($aParams['profile'])->getDisplayName()),
+                    'api_request_url' => '/api.php?r=system/browse_friend_requests/TemplServiceProfiles&params[]=' . $aParams['profile'] . '&params[]='
+                ]);
+                break;
+                
+            case 'friend_requested':
+                $aParams = array_merge($aParams, [
+                    'object' => 'sys_profiles_friends', 
+                    'type' => 'content',
+                    'mutual' => 0,
+                    'profile2' => 0
+                ]);
+                
+                if (!$this->_setConnectionsConditions($aParams)) 
+                    break;
+
+                $this->aCurrent = array_merge($this->aCurrent, [
+                    'title' => _t('_sys_page_title_browse_connections', BxDolProfile::getInstanceMagic($aParams['profile'])->getDisplayName()),
+                    'api_request_url' => '/api.php?r=system/browse_friend_requested/TemplServiceProfiles&params[]=' . $aParams['profile'] . '&params[]='
+                ]);
+                break;
                 
             case 'subscriptions':
                 $aParams = array_merge($aParams, [

+ 38 - 0
template/scripts/BxBaseServiceProfiles.php

@@ -490,6 +490,44 @@ class BxBaseServiceProfiles extends BxDol
         return $this->_serviceBrowseConnections('friends', $aParamsBrowse, $aParams['design_box'], $aParams['empty_message'], $aParams['ajax_paginate']);
     }
 
+    public function serviceBrowseFriendRequests ($iProfileId, $aParams = [])
+    {
+        if(is_string($aParams))
+            $aParams = json_decode($aParams, true);
+
+        $aParams = array_merge([
+            'params' => false,
+            'design_box' => BX_DB_PADDING_DEF,
+            'empty_message' => false,
+            'ajax_paginate' => true,
+        ], $aParams);
+
+        $aParamsBrowse = ['profile' => $iProfileId];
+        if(!empty($aParams['params']) && is_array($aParams['params']))
+            $aParamsBrowse = array_merge($aParamsBrowse, $aParams['params']);
+
+        return $this->_serviceBrowseConnections('friend_requests', $aParamsBrowse, $aParams['design_box'], $aParams['empty_message'], $aParams['ajax_paginate']);
+    }
+
+    public function serviceBrowseFriendRequested ($iProfileId, $aParams = [])
+    {
+        if(is_string($aParams))
+            $aParams = json_decode($aParams, true);
+
+        $aParams = array_merge([
+            'params' => false,
+            'design_box' => BX_DB_PADDING_DEF,
+            'empty_message' => false,
+            'ajax_paginate' => true,
+        ], $aParams);
+
+        $aParamsBrowse = ['profile' => $iProfileId];
+        if(!empty($aParams['params']) && is_array($aParams['params']))
+            $aParamsBrowse = array_merge($aParamsBrowse, $aParams['params']);
+
+        return $this->_serviceBrowseConnections('friend_requested', $aParamsBrowse, $aParams['design_box'], $aParams['empty_message'], $aParams['ajax_paginate']);
+    }
+
     public function serviceBrowseSubscriptions ($iProfileId, $aParams = [])
     {
         if(is_string($aParams))