Skip to content

Commit

Permalink
Ticket #4365 - Connections page.
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonLV committed Jun 30, 2023
1 parent 84186bd commit 5677a65
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 1 deletion.
2 changes: 1 addition & 1 deletion install/sql/system.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4636,7 +4636,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', 'recommended-friends', '_sys_menu_item_title_system_connections', '_sys_menu_item_title_connections', 'page.php?i=recommended-friends', '', '', 'users', '', 2147483646, 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
Expand Down
35 changes: 35 additions & 0 deletions template/scripts/BxBasePageConnections.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php defined('BX_DOL') or die('hack attempt');
/**
* Copyright (c) UNA, Inc - https://una.io
* MIT License - https://opensource.org/licenses/MIT
*
* @defgroup UnaBaseView UNA Base Representation Classes
* @{
*/

class BxBasePageConnections extends BxTemplPage
{
public function __construct($aObject, $oTemplate)
{
parent::__construct($aObject, $oTemplate);

$iProfileId = bx_get_logged_profile_id();
if(!$iProfileId)
return;

if(($oMenuSubmenu = BxDolMenu::getObjectInstance('sys_site_submenu')) !== false) {
$sMenuSubmenu = 'sys_con_submenu';
$oMenuSubmenu->setObjectSubmenu($sMenuSubmenu, [
'title' => _t($this->_aObject['title']),
'link' => '',
'icon' => ''
]);
}

$this->addMarkers([
'profile_id' => $iProfileId
]);
}
}

/** @} */
21 changes: 21 additions & 0 deletions template/scripts_templ/BxTemplPageConnections.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php defined('BX_DOL') or die('hack attempt');
/**
* Copyright (c) UNA, Inc - https://una.io
* MIT License - https://opensource.org/licenses/MIT
*
* @defgroup UnaTemplate UNA Template Classes
* @{
*/

/**
* @see BxBasePageConnections
*/
class BxTemplPageConnections extends BxBasePageConnections
{
public function __construct($aObject, $oTemplate = false)
{
parent::__construct($aObject, $oTemplate);
}
}

/** @} */

0 comments on commit 5677a65

Please sign in to comment.