| Server IP : 54.36.91.62 / Your IP : 216.73.217.111 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/annonces/templates/yootheme/cache/ |
Upload File : |
<?php // $file = /home/coopiak/amisdesseniors-fr/annonces/templates/yootheme/packages/builder/elements/text/element.json
return [
'@import' => $filter->apply('path', './element.php', $file),
'name' => 'text',
'title' => 'Text',
'group' => 'basic',
'icon' => $filter->apply('url', 'images/icon.svg', $file),
'iconSmall' => $filter->apply('url', 'images/iconSmall.svg', $file),
'element' => true,
'width' => 500,
'defaults' => [
'margin' => 'default',
'column_breakpoint' => 'm'
],
'placeholder' => [
'props' => [
'content' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.'
]
],
'templates' => [
'render' => $filter->apply('path', './templates/template.php', $file),
'content' => $filter->apply('path', './templates/content.php', $file)
],
'fields' => [
'content' => [
'label' => 'Content',
'type' => 'editor',
'source' => true
],
'dropcap' => [
'label' => 'Drop Cap',
'description' => 'Display the first letter of the paragraph as a large initial.',
'type' => 'checkbox',
'text' => 'Enable drop cap'
],
'text_style' => [
'label' => 'Text Style',
'description' => 'Select a predefined text style, including color, size and font-family.',
'type' => 'select',
'options' => [
'None' => '',
'Meta' => 'meta',
'Lead' => 'lead',
'Small' => 'small',
'Large' => 'large'
]
],
'text_color' => [
'label' => 'Text Color',
'description' => 'Select the text color. If the Background option is selected, styles that don\'t apply a background image use the primary color instead.',
'type' => 'select',
'options' => [
'None' => '',
'Muted' => 'muted',
'Emphasis' => 'emphasis',
'Primary' => 'primary',
'Secondary' => 'secondary',
'Success' => 'success',
'Warning' => 'warning',
'Danger' => 'danger'
]
],
'column' => [
'label' => 'Columns',
'description' => 'Set the number of text columns.',
'type' => 'select',
'options' => [
'None' => '',
'Halves' => '1-2',
'Thirds' => '1-3',
'Quarters' => '1-4',
'Fifths' => '1-5',
'Sixths' => '1-6'
]
],
'column_divider' => [
'description' => 'Show a divider between text columns.',
'type' => 'checkbox',
'text' => 'Show dividers',
'enable' => 'column'
],
'column_breakpoint' => [
'label' => 'Columns Breakpoint',
'description' => 'Set the device width from which the text columns should apply.',
'type' => 'select',
'options' => [
'Always' => '',
'Small (Phone Landscape)' => 's',
'Medium (Tablet Landscape)' => 'm',
'Large (Desktop)' => 'l',
'X-Large (Large Screens)' => 'xl'
],
'enable' => 'column'
],
'html_element' => [
'label' => 'HTML Element',
'description' => 'Define the purpose and structure of the content or give it no semantic meaning.',
'type' => 'select',
'options' => [
'div' => '',
'address' => 'address',
'aside' => 'aside',
'footer' => 'footer'
]
],
'position' => $config->get('builder.position'),
'position_left' => $config->get('builder.position_left'),
'position_right' => $config->get('builder.position_right'),
'position_top' => $config->get('builder.position_top'),
'position_bottom' => $config->get('builder.position_bottom'),
'position_z_index' => $config->get('builder.position_z_index'),
'blend' => $config->get('builder.blend'),
'margin' => $config->get('builder.margin'),
'margin_remove_top' => $config->get('builder.margin_remove_top'),
'margin_remove_bottom' => $config->get('builder.margin_remove_bottom'),
'maxwidth' => $config->get('builder.maxwidth'),
'maxwidth_breakpoint' => $config->get('builder.maxwidth_breakpoint'),
'block_align' => $config->get('builder.block_align'),
'block_align_breakpoint' => $config->get('builder.block_align_breakpoint'),
'block_align_fallback' => $config->get('builder.block_align_fallback'),
'text_align' => $config->get('builder.text_align_justify'),
'text_align_breakpoint' => $config->get('builder.text_align_breakpoint'),
'text_align_fallback' => $config->get('builder.text_align_justify_fallback'),
'animation' => $config->get('builder.animation'),
'_parallax_button' => $config->get('builder._parallax_button'),
'visibility' => $config->get('builder.visibility'),
'name' => $config->get('builder.name'),
'status' => $config->get('builder.status'),
'source' => $config->get('builder.source'),
'id' => $config->get('builder.id'),
'class' => $config->get('builder.cls'),
'attributes' => $config->get('builder.attrs'),
'css' => [
'label' => 'CSS',
'description' => 'Enter your own custom CSS. The following selectors will be prefixed automatically for this element: <code>.el-element</code>',
'type' => 'editor',
'editor' => 'code',
'mode' => 'css',
'attrs' => [
'debounce' => 500,
'hints' => ['.el-element']
]
],
'transform' => $config->get('builder.transform')
],
'fieldset' => [
'default' => [
'type' => 'tabs',
'fields' => [[
'title' => 'Content',
'fields' => ['content']
], [
'title' => 'Settings',
'fields' => [[
'label' => 'Text',
'type' => 'group',
'divider' => true,
'fields' => ['dropcap', 'text_style', 'text_color', 'column', 'column_divider', 'column_breakpoint', 'html_element']
], [
'label' => 'General',
'type' => 'group',
'fields' => ['position', 'position_left', 'position_right', 'position_top', 'position_bottom', 'position_z_index', 'blend', 'margin', 'margin_remove_top', 'margin_remove_bottom', 'maxwidth', 'maxwidth_breakpoint', 'block_align', 'block_align_breakpoint', 'block_align_fallback', 'text_align', 'text_align_breakpoint', 'text_align_fallback', 'animation', '_parallax_button', 'visibility']
]]
], $config->get('builder.advanced')]
]
]
];