function GetPublicViewHTML($arUserField, $arHtmlControl) { $val = CUserTypeVideo::BaseConvertFromDB(htmlspecialcharsback($arHtmlControl["VALUE"])); // Unserialize array return CUserTypeVideo::BaseGetPublicHTML($arUserField["SETTINGS"], $val); }
<?php if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) { die; } ?> <?php if ($arParams["arUserField"]["MULTIPLE"] == "Y") { for ($i = 0, $l = count($arParams['arUserField']["VALUE"]); $i < $l; $i++) { $val = $arParams['arUserField']["VALUE"][$i]; $name = str_replace("[]", "[" . $i . "]", $arParams['arUserField']["FIELD_NAME"]); if ($val != "") { echo CUserTypeVideo::GetPublicViewHTML(array("SETTINGS" => $arParams['arUserField']["SETTINGS"]), array("NAME" => $name, "VALUE" => $val)); echo "\n<br />\n"; } } } else { echo CUserTypeVideo::GetPublicViewHTML(array("SETTINGS" => $arParams['arUserField']["SETTINGS"]), array("NAME" => $arParams['arUserField']["FIELD_NAME"], "VALUE" => $arParams['arUserField']["VALUE"])); }