@EVAL
$parent = $modx->getObject('modResource', $modx->resource->get('parent'));
return "<SPAN style='color:red'>id ресурса ".$parent->get('id')."</SPAN>";
<td class="[[+ec.class_prev]]"><a href="/[[+ec.link_prev]]">‹</a></td>
<td class="[[+ec.class_month]]" colspan="5" data-year="[[+ec.year]]" id="calendar-mount">[[+ec.month_name]]</td>
<td class="[[+ec.class_next]]"><a href="/[[+ec.link_next]]">›</a></td>
//добавить этот код
$("#sync1 .owl-item.active img").load(function() {
var height = $(this).height();
$("#sync1 .owl-stage-outer.owl-height").css("height",height);
});
$tpl = 'tpl.ParallaxBanner';
if (isset($options)){
$options = explode('&tpl=',$options);
$key = intval($options[0]) - 1;
$tpl = $options[1];
}else{
$key = 0;
}
$data = $modx->fromJSON($input);
$data = $data[$key];
$output = $modx->getChunk($tpl,$data);
return $output;
<?
if ($arResult['DATA_SAVED'] == 'Y' AND $arResult["USER_PROPERTIES"]["SHOW"] == "Y")// заменяю иф в самом начале
ShowNote(GetMessage('PROFILE_DATA_SAVED'));
?>
<input type="text" name="UF_VK" maxlength="255" value="<?=$arResult["USER_PROPERTIES"]["DATA"]["UF_VK"]["VALUE"]?>" />
<?
//вывожу дату
$IBLOCK_ID = intval($arParams['IBLOCK_ID']);
//print $IBLOCK_ID;
if(!CModule::IncludeModule("iblock"))
die('iblock module is not included!');
$arSort = Array("SORT"=>"ASC", "NAME"=>"ASC");
$arSelect = Array("ID","NAME","PROPERTY_DATA_SOBYTIYA");
$arFilter = Array("IBLOCK_ID"=>$IBLOCK_ID,"ACTIVE" => "Y", ">=DATE_ACTIVE_FROM" => $curdate, "PROPERTY" => array('ADD_TO_EVENTS' => array('VALUE' => 'Y')), "<=DATE_ACTIVE_FROM" => $curdatelast);
$arFilterDate = Array("IBLOCK_ID" => $IBLOCK_ID);
$obIBlockResult = CIBlockElement::GetList($arSort, $arFilter, false, false, $arSelect);
$arFilter = $obIBlockResult->GetNext();
?>
$GLOBALS['arrFilterTomain'] = array("PROPERTY_CITYS_VALUE"=>"Москва%");