ЕСЛИОШИБКА(A1 + B1;"ERROR!!!")
<div style="background-image: url([[*img]]);">...</div>
$res = \CIBlockElement::GetByID($elementId);
$row = $res->GetNext();
$url = $row["DETAIL_PAGE_URL"];
(() => {
showPreloader();
A().then(() => {
B();
hidePreloader();
});
})();
(() => {
showPreloader();
A();
B();
hidePreloader();
})();
output: {
assetModuleFilename: (path) => {
if(typeof path.filename !== "undefined" && path.filename.match(/(img)/)) {
path.filename = path.filename.replace('src/', '');
return `${path.filename}/[name].[ext]`;
}
return '[name].[ext]';
}
}