4use \Bitrix\Landing\Block;
5use \Bitrix\Landing\Internals\BlockTable;
23 $found = preg_match_all(
24 '/[\s"](g-font-[^\s"]+)/s',
30 foreach ($matches[1] as $font)
33 strpos($font,
'g-font-size-') !== 0
34 && strpos($font,
'g-font-weight-') !== 0
35 && strpos($font,
'g-font-style-') !== 0
43 'font' => array_unique($fonts)
64 $res = BlockTable::getList([
73 while ($row = $res->fetch())
75 $block =
new Block($row[
'ID']);
89 if (isset($blockAssets[
'font']))
91 foreach ($blockAssets[
'font'] as $fontCode)
93 \Bitrix\Landing\Hook\Page\Fonts::setFontCode($fontCode);
static saveAssets(Block $block)
static processingLanding(int $landingId)
static view(Block $block)
static processing(Block $block)
saveAssets(array $assets)