4use \Bitrix\Main\Update\Stepper;
5use \Bitrix\Main\Localization\Loc;
6use \Bitrix\Socialnetwork\Item\LogIndex;
7use \Bitrix\Socialnetwork\LogCommentTable;
8use \Bitrix\Socialnetwork\LogIndexTable;
9use \Bitrix\Main\Config\Option;
10use \Bitrix\Main\Loader;
12Loc::loadMessages(__FILE__);
21 Loader::includeModule(
"forum")
22 && Loader::includeModule(
"socialnetwork")
23 && Option::get(
'wiki',
'needLivefeedIndexComment',
'Y') ==
'Y'
31 $params = Option::get(
"wiki",
"livefeedindexcomment",
"");
39 "count" => LogCommentTable::getCount(
41 '=EVENT_ID' =>
"wiki_comment",
50 $result[
"title"] = Loc::getMessage(
"FUPD_LF_WIKI_COMMENT_EVENT_INDEX_TITLE");
56 'order' =>
array(
'ID' =>
'ASC'),
59 '=EVENT_ID' =>
"wiki_comment",
62 'select' =>
array(
'ID',
'EVENT_ID',
'SOURCE_ID'),
68 while ($record =
$res->fetch())
70 LogIndex::setIndex(
array(
71 'itemType' => LogIndexTable::ITEM_TYPE_COMMENT,
72 'itemId' => $record[
'ID'],
76 $params[
"lastId"] = $record[
'ID'];
83 Option::set(
"wiki",
"livefeedindexcomment", serialize(
$params));
92 Option::delete(
"wiki",
array(
"name" =>
"livefeedindexcomment"));
93 Option::set(
'wiki',
'needLivefeedIndexComment',
'N');
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']