2009-05-10 10:50:39 +03:00
|
|
|
|
<?php
|
2008-09-21 09:36:57 +03:00
|
|
|
|
/*-------------------------------------------------------
|
|
|
|
|
*
|
|
|
|
|
* 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
|
|
|
|
|
*
|
|
|
|
|
---------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Обработка блока с комментариями
|
|
|
|
|
*
|
|
|
|
|
*/
|
2009-01-10 21:23:36 +02:00
|
|
|
|
class BlockStream extends Block {
|
2008-09-21 09:36:57 +03:00
|
|
|
|
public function Exec() {
|
2009-08-20 10:43:06 +03:00
|
|
|
|
if ($aComments=$this->Comment_GetCommentsOnline('topic',Config::Get('block.stream.row'))) {
|
2009-04-25 12:19:30 +03:00
|
|
|
|
$this->Viewer_Assign('aComments',$aComments);
|
|
|
|
|
$sTextResult=$this->Viewer_Fetch("block.stream_comment.tpl");
|
|
|
|
|
$this->Viewer_Assign('sStreamComments',$sTextResult);
|
|
|
|
|
}
|
2008-09-21 09:36:57 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
?>
|