mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-16 21:34:25 +03:00
42 lines
1.2 KiB
PHP
42 lines
1.2 KiB
PHP
<?php
|
|
/*-------------------------------------------------------
|
|
*
|
|
* LiveStreet Engine Social Networking
|
|
* Copyright © 2008 Mzhelskiy Maxim
|
|
*
|
|
*--------------------------------------------------------
|
|
*
|
|
* Official site: www.livestreet.ru
|
|
* Contact e-mail: rus.engine@gmail.com
|
|
*
|
|
* GNU General Public License, version 2:
|
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
*
|
|
---------------------------------------------------------
|
|
*/
|
|
|
|
/**
|
|
* Блок настройки списка пользователей в ленте
|
|
*
|
|
* @package blocks
|
|
* @since 1.0
|
|
*/
|
|
class BlockUserfeedUsers extends Block {
|
|
/**
|
|
* Запуск обработки
|
|
*/
|
|
public function Exec() {
|
|
/**
|
|
* Пользователь авторизован?
|
|
*/
|
|
if ($oUserCurrent = $this->User_getUserCurrent()) {
|
|
/**
|
|
* Получаем необходимые переменные и прогружаем в шаблон
|
|
*/
|
|
$aUserSubscribes = $this->Userfeed_getUserSubscribes($oUserCurrent->getId());
|
|
$aFriends = $this->User_getUsersFriend($oUserCurrent->getId());
|
|
$this->Viewer_Assign('aUserfeedSubscribedUsers', $aUserSubscribes['users']);
|
|
$this->Viewer_Assign('aUserfeedFriends', $aFriends['collection']);
|
|
}
|
|
}
|
|
} |