Created
January 20, 2016 15:36
-
-
Save karpovets/97068acafc2ca7b392d3 to your computer and use it in GitHub Desktop.
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
//==============================================// | |
// Показывать все свойства в DISPLAY_PROPERTIES // | |
//==============================================// | |
$arResult["DISPLAY_PROPERTIES"] = array(); | |
foreach ($arResult["PROPERTIES"] as $pid => &$arProp) | |
{ | |
// Не выводим для просмотра свойства с сортировкой мнеьше 0 (они будут у нас служебными) | |
if ($arProp["SORT"] < 0) | |
continue; | |
if((is_array($arProp["VALUE"]) && count($arProp["VALUE"])>0) || | |
(!is_array($arProp["VALUE"]) && strlen($arProp["VALUE"])>0)) | |
{ | |
$arResult["DISPLAY_PROPERTIES"][$pid] = CIBlockFormatProperties::GetDisplayValue($arResult, $arProp); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment