<?php
//[[!getParents?&resources=`1,2,3`]]
if(!empty($resources)){
$resources = explode(",",$resources);
$arr = [];
foreach($resources as $id){
$parentIds = $modx->getParentIds($id, 10, array('context' => 'web'));
$arr[] = $parentIds[0];
}
$arr = array_unique($arr);
$arr = implode(",",$arr);
return $arr;
}
$arFile = CFile::GetFileArray($arUser_Photo);
$widthF = $arFile['WIDTH'];
$heightF = $arFile['HEIGHT'];
$procent = 254*100/$widthF;
$height = floor($heightF*$procent/100);
//$itog = ;
$renderImageG = CFile::ResizeImageGet($arUser_Photo,Array("width" => "254", "height" => $height), BX_RESIZE_IMAGE_PROPORTIONAL, true);
echo '<img alt="'.$arUser['WORK_COMPANY'].'" src="'.$renderImageG['src'].'" />';
left: -20px;
top: -20px;