Created
June 22, 2018 11:02
-
-
Save devoltt/7695e0d799023f4fb2f0c18c65187559 to your computer and use it in GitHub Desktop.
Список активных БП в Живой ленте Битрикс24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
## /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