$('.news-content').find('img').clone().appendTo('.photo-gallery > .row').wrap('<div class="col-tt-3"><a href=""></a></div>');
$('.photo-gallery a').each(function() {
var $this = $(this);
var url = $this.find('img').attr('src');
$this.find('img').parent().attr('href', url);
});
CModule::IncludeModule("highloadblock");
$hldata = Bitrix\Highloadblock\HighloadBlockTable::getById($Highloadblock_id)->fetch();
$hlentity = Bitrix\Highloadblock\HighloadBlockTable::compileEntity($hldata);
$hlDataClass = $hldata["NAME"]."Table";
$result = $hlDataClass::getList(array(
"select" => array("UF_NAME"),
"order" => array(),
"filter" => array("UF_XML_ID"=>$xmlID),
));
while($res = $result->fetch())
{
$tital[] = $res["UF_NAME"];
}