" class="post-item-attached-img-wrap"><?php $jsIds = ""; foreach ($arResult['IMAGES'] as $id => $arWDFile) { $id = "webdav-attached-" . $id . "-" . randString(4); $jsIds .= $jsIds !== "" ? ', "' . $id . '"' : '"' . $id . '"'; ?> <div class="post-item-attached-img-block"><?php ?> <img class="post-item-attached-img" id="<?php echo $id; ?> " src="<?php echo CMobileLazyLoad::getBase64Stub(); ?> " data-src="<?php echo $arWDFile["THUMB_SRC"]; ?> " alt="" border="0" data-bx-image="<?php echo $arWDFile['PATH']; ?> " /><?php ?> </div><?php }
function ResizeMobileLogImages($res, $strImage, $db_img_arr, $f, $arDestinationSize) { $id = $f["IS_COMMENT"] == "Y" ? "blog-comm-inline-" . $f["FILE_ID"] : "blog-post-inline-" . $f["FILE_ID"]; $res = '<img src="' . CMobileLazyLoad::getBase64Stub() . '" data-src="' . $strImage . '" title="' . htmlspecialcharsbx($f["TITLE"]) . '" alt="' . htmlspecialcharsbx($f["TITLE"]) . '" border="0" width="' . round($arDestinationSize["width"] / 2) . '" height="' . round($arDestinationSize["height"] / 2) . '" id="' . $id . '" /><script>BitrixMobile.LazyLoad.registerImage("' . $id . '", oMSL.checkVisibility);</script>'; }