3namespace Bitrix\Landing\Node;
5use Bitrix\Landing\Block;
6use Bitrix\Main\Web\DOM\Node;
7use Bitrix\Main\Web\DOM\StyleInliner;
16 foreach ($resultList as $pos =>
$res)
18 if (
$res->getNodeType() === $res::ELEMENT_NODE)
20 $classList = trim(
$res->getAttribute(
'class'));
23 $data[
'classList'][$pos] = $classList;
26 $styles = StyleInliner::getStyle(
$res);
28 foreach ($styles as
$key => $style)
30 if ($style &&
$key !==
'background-image')
32 $stylesPrepared[
$key] = $style;
34 if (
$key ===
'background-image' && $style ===
'')
36 $stylesPrepared[
$key] = $style;
39 if (!empty($stylesPrepared))
41 $data[
'style'][$pos] = $stylesPrepared;
61 if ($selector ===
'#wrapper')
63 $selector =
'#block' . $block->
getId();
67 if ($selector === $wrapper)
70 foreach ($doc->getChildNodesArray() as $node)
74 $wrapperNode[] = $node;
82 return $doc->querySelectorAll($selector);
static getStyle(Block $block, string $selector)
static getNodesBySelector(Block $block, string $selector)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
if(empty($signedUserToken)) $key