Skip to content

Instantly share code, notes, and snippets.

@devoltt
Created June 22, 2018 11:02
Show Gist options
  • Save devoltt/7695e0d799023f4fb2f0c18c65187559 to your computer and use it in GitHub Desktop.
Save devoltt/7695e0d799023f4fb2f0c18c65187559 to your computer and use it in GitHub Desktop.
Список активных БП в Живой ленте Битрикс24
<?
## /bitrix/components/bitrix/socialnetwork.blog.post.edit/post.ajax.php 51 строка
function getBizprocList()
{
$lists = CIBlock::getList(
array("SORT" => "ASC","NAME" => "ASC"),
array("ACTIVE" => "Y","TYPE" => COption::GetOptionString("lists", "livefeed_iblock_type_id"), 'SITE_ID' => $siteId)
);
while($list = $lists->fetch())
{
if(CLists::getLiveFeed($list['ID']))
{
$shortName = substr($list['NAME'], 0, 50);
if($shortName == $list['NAME'])
$listData[$list['ID']] = $list['NAME'];
else
$listData[$list['ID']] = $shortName.'...';
}
}
return $listData;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment