- Модуль: landing
- Путь к файлу: ~/bitrix/modules/landing/lib/block/designerrepo.php
- Класс: BitrixLandingBlockDesignerRepo
- Вызов: DesignerRepo::installRepo
static function installRepo(): void
{
Designer::registerRepoElement([
'XML_ID' => 'text',
'SORT' => 100,
'HTML' => '
Sed feugiat porttitor nunc, non dignissim ipsum vestibulum in. Donec in blandit dolor. Vivamus a fringilla lorem, vel faucibus ante. Nunc ullamcorper, justo a iaculis elementum, enim orci viverra eros, fringilla porttitor lorem eros vel odio. Praesent egestas ac arcu ac convallis. Donec ut diam risus purus.
',
'MANIFEST' => [
'nodes' => [
'.landing-block-node-text' => [
'type' => 'text'
]
],
'style' => [
'.landing-block-node-text' => [
'type' => ['typo']
]
]
]
]);
Designer::registerRepoElement([
'XML_ID' => 'title',
'SORT' => 200,
'HTML' => 'The Title
',
'MANIFEST' => [
'nodes' => [
'.landing-block-node-title' => [
'type' => 'text'
]
],
'style' => [
'.landing-block-node-title' => [
'type' => ['typo']
]
]
]
]);
Designer::registerRepoElement([
'XML_ID' => 'text_title',
'SORT' => 300,
'HTML' => '
The Title with text
Sed feugiat porttitor nunc, non dignissim ipsum vestibulum in. Donec in blandit dolor. Vivamus a fringilla lorem, vel faucibus ante. Nunc ullamcorper, justo a iaculis elementum, enim orci viverra eros, fringilla porttitor lorem eros vel odio. Praesent egestas ac arcu ac convallis. Donec ut diam risus purus.
',
'MANIFEST' => [
'nodes' => [
'.landing-block-node-title' => [
'type' => 'text'
],
'.landing-block-node-text' => [
'type' => 'text'
]
],
'style' => [
'.landing-block-node-containertext' => [
'type' => ['margins']
],
'.landing-block-node-title' => [
'type' => ['typo']
],
'.landing-block-node-text' => [
'type' => ['typo']
]
]
]
]);
// todo: full width?
Designer::registerRepoElement([
'XML_ID' => 'img',
'SORT' => 400,
'HTML' => '
',
'MANIFEST' => [
'nodes' => [
'.landing-block-node-img' => [
'type' => 'img'
]
],
'style' => [
'.landing-block-node-containerimg' => [
'type' => ['text-align', 'margins']
]
]
]
]);
Designer::registerRepoElement([
'XML_ID' => 'video',
'SORT' => 500,
'HTML' => '
',
'MANIFEST' => [
'nodes' => [
'.landing-block-node-embed' => [
'type' => 'embed'
]
],
'assets' => [
'ext' => ['landing_inline_video']
]
]
]);
Designer::registerRepoElement([
'XML_ID' => 'button',
'SORT' => 600,
'HTML' => '
',
'MANIFEST' => [
'nodes' => [
'.landing-block-node-button' => [
'type' => 'link'
]
],
'style' => [
'.landing-block-node-containerbutton' => [
'type' => ['row-align', 'paddings']
],
'.landing-block-node-button' => [
'type' => ['button', 'margin-left', 'margin-right']
]
]
]
]);
Designer::registerRepoElement([
'XML_ID' => 'double_button',
'SORT' => 700,
'HTML' => '
',
'MANIFEST' => [
'nodes' => [
'.landing-block-node-button' => [
'type' => 'link'
],
'.landing-block-node-button2' => [
'type' => 'link'
]
],
'style' => [
'.landing-block-node-containerbuttons' => [
'type' => ['row-align', 'paddings']
],
'.landing-block-node-button' => [
'type' => ['button', 'margin-left', 'margin-right']
],
'.landing-block-node-button2' => [
'type' => ['button', 'margin-left', 'margin-right']
]
]
]
]);
Designer::registerRepoElement([
'XML_ID' => 'icon',
'SORT' => 800,
'HTML' => '
',
'MANIFEST' => [
'nodes' => [
'.landing-block-node-icon' => [
'type' => 'icon'
]
],
'style' => [
'.landing-block-node-containericon' => [
'type' => ['text-align', 'color', 'font-size', 'margins']
]
]
]
]);
Designer::registerRepoElement([
'XML_ID' => 'icon_text',
'SORT' => 900,
'HTML' => '
Sed feugiat porttitor nunc, non dignissim ipsum vestibulum in. Donec in blandit dolor. Vivamus a fringilla lorem, vel faucibus ante. Nunc ullamcorper, justo a iaculis elementum, enim orci viverra eros, fringilla porttitor lorem eros vel odio. Praesent egestas ac arcu ac convallis. Donec ut diam risus purus.
',
'MANIFEST' => [
'nodes' => [
'.landing-block-node-icon' => [
'type' => 'icon'
],
'.landing-block-node-text' => [
'type' => 'text'
]
],
'style' => [
'.landing-block-node-containericon' => [
'type' => ['text-align', 'color', 'font-size', 'margins']
],
'.landing-block-node-text' => [
'type' => ['typo']
]
]
]
]);
Designer::registerRepoElement([
'XML_ID' => 'icon_title',
'SORT' => 1000,
'HTML' => '
The Title with icon
',
'MANIFEST' => [
'nodes' => [
'.landing-block-node-icon' => [
'type' => 'icon'
],
'.landing-block-node-title' => [
'type' => 'text'
],
],
'style' => [
'.landing-block-node-containericon' => [
'type' => ['text-align', 'color', 'font-size', 'margins']
],
'.landing-block-node-title' => [
'type' => ['typo']
]
]
]
]);
}